CN105120388B - The recognition methods of self-shooting bar and device - Google Patents

The recognition methods of self-shooting bar and device Download PDF

Info

Publication number
CN105120388B
CN105120388B CN201510492660.0A CN201510492660A CN105120388B CN 105120388 B CN105120388 B CN 105120388B CN 201510492660 A CN201510492660 A CN 201510492660A CN 105120388 B CN105120388 B CN 105120388B
Authority
CN
China
Prior art keywords
earphone
impedance
ground
selfie stick
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
Application number
CN201510492660.0A
Other languages
Chinese (zh)
Other versions
CN105120388A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510492660.0A priority Critical patent/CN105120388B/en
Publication of CN105120388A publication Critical patent/CN105120388A/en
Application granted granted Critical
Publication of CN105120388B publication Critical patent/CN105120388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Telephone Set Structure (AREA)

Abstract

The present invention provides recognition methods and the device of a kind of self-shooting bar.The recognition methods of self-shooting bar of the present invention, including:After the headset plug of equipment to be identified is inserted into the earphone interface of mobile terminal, the impedance between the sound channel and ground of the headset plug is obtained;According to the impedance between the sound channel and ground of the headset plug, determines and be inserted into whether the equipment to be identified of the earphone interface is self-shooting bar.The present invention can realize the identification of self-shooting bar.

Description

Identification method and device for selfie stick
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for identifying a selfie stick.
Background
With the development of communication technology, functions of a mobile terminal are more and more abundant, for example, photographing and audio-video functions of a smart phone are also more and more powerful, and as pixels of a camera of the smart phone are higher and higher, most of daily photographing and video recording functions are carried, for example, people send WeChat, microblogs and the like at ordinary times and take photos by using the smart phone. However, mobile phone photographing has certain limitation, that is, the mobile phone needs to be held by hand to photograph, the length of the hand limits the distance from a person when the mobile phone photographs, and once the hand is extended far, the photographing is easy to shake the hand, and the photographed photo effect is poor. In order to solve the problem, people research and invent a selfie stick, and a handle is clamped on the selfie stick to carry out selfie.
Among the prior art, to taking the earphone plug from rapping bar, realize from rapping bar and mobile terminal's communication through being connected of earphone plug and mobile terminal's earphone interface, after earphone plug inserts mobile terminal's earphone interface, mobile terminal discerns that inserts mobile terminal's earphone interface from rapping bar for legal equipment after, if the user presses the auto heterodyne button from rapping bar, mobile terminal obtains the instruction of shooing of auto heterodyne button through earphone interface, instruct to accomplish the function of shooing according to this shooting. That is, after the mobile terminal in the prior art recognizes that the selfie stick is a legal device, the device is regarded as a certain type of earphone plug, and the subsequent process is performed according to the existing common earphone processing process. But the mobile terminal still cannot identify whether the legal device is a selfie stick.
Therefore, the problem of the prior art is that the mobile terminal cannot recognize whether the device inserted into the earphone interface of the mobile terminal is a selfie stick.
Disclosure of Invention
The invention provides a method and a device for identifying a selfie stick, which are used for solving the problem that whether a device inserted into an earphone interface of a mobile terminal is the selfie stick cannot be identified by the mobile terminal in the prior art.
In a first aspect, the present invention provides a method for identifying a selfie stick, including:
after an earphone plug of equipment to be identified is inserted into an earphone interface of a mobile terminal, acquiring impedance between a sound channel of the earphone plug and the ground;
and determining whether the equipment to be identified inserted into the earphone interface is a selfie stick or not according to the impedance between the sound channel of the earphone plug and the ground.
In a second aspect, the present invention provides an identification apparatus for a selfie stick, comprising:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring impedance between a sound channel of an earphone plug and the ground after the earphone plug of equipment to be identified is inserted into an earphone interface of the mobile terminal;
and the determining module is used for determining whether the equipment to be identified inserted into the earphone interface is a selfie stick or not according to the impedance between the sound channel of the earphone plug and the ground.
The invention provides a method and a device for identifying a selfie stick, which are characterized in that after an earphone plug of a device to be identified is inserted into an earphone interface of a mobile terminal, whether the device to be identified inserted into the earphone interface is the selfie stick is determined according to the impedance between a sound channel of the earphone plug and the ground, because the earphone plug of the selfie stick is different from the common earphone plug, the impedance between the left and right sound channels of the earphone plug of the selfie stick and the ground is very high, and the impedance between the left and right sound channels of the earphone plug of the common earphone and the ground is very low, the characteristics of the selfie stick are utilized, and whether the device to be identified inserted into the earphone interface is the selfie stick is directly determined according to the impedance between the sound channel of the earphone plug and the ground, so that the problem that whether the device inserted into the earphone interface of the mobile terminal is the selfie.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic flow chart illustrating an embodiment of a method for recognizing a selfie stick according to the present invention;
FIG. 2 is a schematic flow chart illustrating a method for identifying a selfie stick according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an embodiment of an identification apparatus for a selfie stick of the present invention
FIG. 4A is a schematic structural diagram of an identification apparatus for a selfie stick according to another embodiment of the present invention;
FIG. 4B is a schematic structural diagram of an identification apparatus for a selfie stick according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The mobile terminal according to the embodiment of the present invention may include, but is not limited to, a mobile communication device such as a smart phone and a tablet computer, and may also include a mobile terminal having both a touch screen and a physical key.
The method provided by the embodiment of the invention aims to solve the technical problem that the mobile terminal in the prior art cannot identify the self-tapping rod.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a flowchart illustrating an embodiment of a method for recognizing a selfie stick according to the present invention. The execution main body of the embodiment may be a recognition device of a selfie stick, and the device may be disposed in a mobile terminal, and is used for recognizing the selfie stick when the mobile terminal is inserted into an earphone plug of the selfie stick. As shown in fig. 1, the method of the present embodiment includes:
step 101, after an earphone plug of a device to be identified is inserted into an earphone interface of a mobile terminal, acquiring impedance between a sound channel of the earphone plug and the ground;
step 102, determining whether the device to be identified inserted into the earphone interface is a selfie stick or not according to the impedance between the sound channel of the earphone plug and the ground.
The embodiment of the invention mainly aims at identifying the selfie stick with the earphone plug, the earphone plug is a four-section type earphone plug, namely the equipment to be identified is the selfie stick with the earphone plug.
The four-section type earphone plug means that the earphone plug adopts a four-section type contact pin structure; the four-section type earphone plug is divided into two types, one type of contact pin structure is that a left sound channel, a right sound channel, a microphone and a ground wire are connected in sequence from the top of the contact pin, and the earphone plug is generally called an European standard earphone plug; another type of pin structure is that the connection from the top of the pin is left channel, right channel, ground wire, microphone, and this type of headphone plug is commonly called a american standard headphone plug.
The specific implementation process of this embodiment is as follows:
firstly, after an earphone plug of a device to be identified is inserted into an earphone interface of the mobile terminal, acquiring impedance between a sound channel of the earphone plug and the ground, and then determining whether the device to be identified inserted into the earphone interface is a selfie stick or not according to the impedance between the sound channel of the earphone plug and the ground.
Because the headphone plug of the selfie stick is different from the common headphone plug, the impedance between the left and right sound channels of the headphone plug of the selfie stick and the ground is very large, and the impedance between the left and right sound channels of the headphone plug of the common headphone and the ground is very small, so that when the selfie stick is identified by utilizing the characteristic, whether the device to be identified, which is inserted into the headphone interface, is the selfie stick is determined according to the impedance between the sound channel of the headphone plug and the ground, for example, whether the device to be identified is the selfie stick can be judged by comparing the device with a preset impedance threshold value.
On the basis of the above embodiment, in practical applications, there are various specific ways to determine whether the device to be identified inserted into the headset interface is a selfie stick according to the impedance between the sound channel of the headset plug and the ground, and optionally, as an implementable way, any one of the following three ways may be specifically adopted:
judging whether the impedance between the left channel of the earphone plug and the ground is greater than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick;
or,
judging whether the impedance between the right channel of the earphone plug and the ground is greater than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick;
or,
and judging whether the impedance between the left sound channel of the earphone plug and the ground and the impedance between the right sound channel of the earphone plug and the ground are both larger than an impedance threshold, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick.
Specifically, the impedance threshold is a predetermined value, and the impedance threshold may be set according to the impedance between the left and right channels of the normal headphone plug and the ground, that is, larger than the impedance between the left and right channels of the normal headphone plug and the ground.
The impedance threshold may specifically be set by:
calculating the impedance b of a common American standard earphone plug inserted into a mobile terminal with a European standard earphone interface and the impedance c of the common European standard earphone plug inserted into the mobile terminal with the European standard earphone interface, wherein the set impedance threshold value must be larger than b and larger than c, and the impedance between the left and right sound channels of the earphone plug of a selfie stick and the ground can be counted in advance, and the set impedance threshold value is smaller than the impedance between the left and right sound channels of the earphone plug of the selfie stick and the ground.
Still further, the impedance d between the left and right sound channels and the ground after the apple earphone plug is inserted into the mobile terminal is judged, and because the apple earphone is different from the earphone hardware on the general market, the set impedance threshold value is guaranteed to be larger than d, so that the mobile terminal can be guaranteed to recognize the beat rod insertion and the insertion recognition of the common earphone and the apple earphone can not be influenced.
When the earphone plug is used for photographing, the equipment to be recognized can be determined to be a selfie stick, and the earphone plug is a four-section earphone plug, and can be used as a common four-section earphone when the photographing is carried out, namely the process is similar to the process of controlling the photographing by the four-section earphone; if the impedance between the left channel and the ground and the impedance between the right channel and the ground are both smaller than the impedance threshold, the earphone plug is considered as the earphone plug of the common earphone, in the embodiment of the present invention, a three-section earphone, a four-section american standard earphone or a four-section european standard earphone can be further determined, and the specific determination method may adopt the existing method for determining the earphone type, which is not limited by the present invention.
In the above specific embodiment, the impedance between the left channel and the ground and the impedance between the right channel and the ground can be recognized as long as one of the conditions is satisfied, and the recognition accuracy is high.
The method for identifying a selfie stick provided by this embodiment determines whether the device to be identified inserted in the earphone interface is a selfie stick or not by inserting the earphone plug of the device to be identified into the earphone interface of the mobile terminal according to the impedance between the sound channel of the earphone plug and the ground, because the earphone plug of the selfie stick is different from the common earphone plug, the impedance between the left and right sound channels of the earphone plug of the selfie stick and the ground is very large, and the impedance between the left and right sound channels of the earphone plug of the common earphone and the ground is very small, so that the characteristics of the selfie stick are utilized, and whether the device to be identified inserted in the earphone interface is a selfie stick or not is directly determined according to the impedance between the sound channel of the earphone plug and the ground, thereby solving the problem that the mobile terminal in the prior art cannot identify whether the device inserted in the earphone interface
In another embodiment of the method for identifying a selfie stick according to the present invention, on the basis of the embodiment shown in fig. 1, before determining whether the device to be identified inserted into the earphone interface is a selfie stick according to the impedance between the sound channel of the earphone plug and the ground, it may further be determined whether the device to be identified inserted into the earphone interface is a legal device, and in this embodiment, the following method may be specifically adopted for determination:
acquiring a voltage value between a microphone of the earphone plug and the ground;
judging whether the voltage value is within a preset voltage value range or not;
if the voltage value is within the preset voltage value range, determining that the equipment to be identified, which is inserted into the earphone interface, is legal equipment; and the preset voltage value range is larger than the voltage value detection range of the mobile terminal earphone.
Specifically, in this embodiment, the device to be identified is a selfie stick, and the existing standards for identifying the plug of the earphone of the mobile terminal are not uniform, that is, the voltage value detection ranges of different earphones of the mobile terminal are different, so that the difference between the hardware of the selfie stick with the plug of the earphone matched with different mobile terminals is large, but when the selfie stick is matched with one mobile terminal, the voltage value between the microphone of the plug of the earphone and the ground is always within the voltage value detection range of the earphone of the mobile terminal.
When the prior mobile terminal identifies the matched selfie stick, the method is the same as the identification method for identifying the common earphone, namely, the voltage value between the microphone of the earphone plug of the selfie stick and the ground is compared with a preset voltage value range, and the preset voltage value range is the voltage value detection range of the earphone of the mobile terminal, so that the earphone plug of the selfie stick is identified, the selfie stick is treated as the common earphone, but because the impedance difference between the microphone of the earphone plug on the common selfie stick and the ground is larger, the voltage value difference between the microphone and the ground is larger after different earphone plugs of the selfie stick are inserted into the earphone interface of the mobile terminal, if the prior identification method for identifying the common earphone is still adopted, the voltage value between the microphone of the earphone plug of the selfie stick and the ground is compared with the voltage value detection range of the earphone of the mobile terminal, at this moment, the voltage value between the microphone and the ground may not be within the voltage value detection range of the mobile terminal earphone, and the selfie stick is identified as illegal equipment, so that before the selfie stick is identified, the preset voltage value range can be enlarged in the identification device of the selfie stick, namely, the preset voltage value range is larger than the voltage value detection range of the mobile terminal for a common earphone, so that after the earphone plug of the selfie stick is inserted into the earphone interface of the mobile terminal, whether the voltage value between the microphone of the inserted earphone plug and the ground is within the preset voltage value range is judged, if the voltage value is within the preset voltage value range, the selfie stick is identified as legal equipment, and if the voltage value is not within the preset voltage value range, the selfie stick is identified as illegal equipment.
The legal device is an illegal device if the mobile terminal recognizes that the plug of the earphone of a certain earphone type is inserted into the mobile terminal.
The above-mentioned adjusting the preset voltage value range to be larger is preset before the mobile terminal is inserted into the earphone plug, but does not mean that the preset voltage value range is adjusted before the earphone plug is inserted each time.
After the automatic shooting rod is identified as legal equipment, whether the automatic shooting rod is the automatic shooting rod can be further identified through the method shown in fig. 1, after the mobile terminal starts a shooting application program, if a user presses a self-shooting button of the automatic shooting rod, the mobile terminal obtains a shooting instruction corresponding to the self-shooting button through an earphone interface, and a shooting function is completed according to the shooting instruction.
According to the identification method for the selfie stick, after the earphone plug of the device to be identified is inserted into the earphone interface of the mobile terminal, whether the obtained voltage value between the microphone of the earphone plug and the ground is within the preset voltage value range is judged, so that whether the device to be identified inserted into the earphone interface is legal or not is determined. Because the preset voltage value range is larger than the voltage value detection range of the mobile terminal earphone, even if the voltage value between the microphone of the inserted to-be-identified equipment and the ground is not matched with the mobile terminal, namely the voltage value between the microphone of the earphone plug of the selfie stick and the ground exceeds the voltage value detection range of the mobile terminal earphone, the inserted to-be-identified equipment can still be identified as legal equipment.
In another embodiment of the method for identifying a selfie stick according to the present invention, based on the above embodiment, further, after the mobile terminal identifies the selfie stick, in order to implement a selfie stick selfie function, this embodiment further provides a manner of determining whether to execute a selfie action according to impedances of a microphone corresponding to a selfie key and a ground, so as to implement a selfie stick selfie function. The method of this embodiment further comprises the steps of:
after a photographing application program is started, acquiring the impedance of a microphone and the ground corresponding to a self-photographing key of a selfie stick;
judging whether the impedance between the microphone and the ground is within a preset impedance value range of the microphone and the ground;
and if the impedance of the microphone and the ground is within the preset impedance value range of the microphone and the ground, triggering the mobile terminal to execute a photographing action.
Specifically, the mobile terminal normally supports a headset with three keys, volume up, volume down and center keys. After a user opens a photographing application program on the mobile terminal, the user can trigger the mobile terminal to execute a photographing action by pressing volume up or volume down, so that the photographing function is completed. After the photographing application program of the mobile terminal is started, photographing can be performed according to an operation instruction input by a user. When a user presses a self-timer button (namely volume up or volume down), acquiring the impedance between a microphone and the ground corresponding to the self-timer button of a self-timer rod, and judging whether the impedance between the microphone and the ground corresponding to the self-timer button is within a preset impedance value range of the microphone and the ground; and if the impedance of the microphone and the ground corresponding to the self-photographing key is within the preset impedance value range of the microphone and the ground, triggering the mobile terminal to execute a photographing action, and thus finishing photographing.
Specifically, when a user presses different keys, the impedances of the microphone and the ground are different, and it is determined which key is pressed according to the impedances of the microphone and the ground, but the impedances of the microphone and the ground are different after each key press for the same key, and are not completely the same, so that it is necessary to set the impedance range of the microphone and the ground corresponding to the key in order to determine which key is pressed, for example, 0 ohm to 70 ohm is defined as middle key press, 110 ohm to 180 ohm is volume plus key press, and 210 ohm to 290 ohm is volume minus key press. For the selfie stick, after the selfie stick key is pressed, the selfie stick key needs to be identified as a volume up key or a volume down key (which is set by the photographing application program), for example, the impedance between the microphone and the ground after the selfie stick key is pressed is 220 ohms (at this time, the selfie key value is 220 ohms), and since 220 ohms is in the range of 210 ohms to 290 ohms, photographing can be completed.
In the specific embodiment, whether the impedance between the microphone corresponding to the selfie button and the ground is within the preset impedance value range between the microphone and the ground is determined, so that whether the mobile terminal is triggered to execute the photographing action is determined, and the photographing function of the selfie stick is finally realized.
On the basis of the above embodiment, in practical applications, since the difference between different selfie sticks is different from each other except for the earphone plug, the hardware difference of the selfie key on the selfie stick is also very large, so even if the selfie stick can be identified, there is a possibility that the selfie key is pressed during photographing, and the photographing function cannot be completed.
Specifically, after the earphone plugs of different selfie sticks are inserted into the earphone interface of the mobile terminal, the selfie button is pressed, and the impedance between the microphone corresponding to the selfie button and the ground is not within the preset impedance value range between the microphone and the ground, so that the indication triggering the mobile terminal to perform the photographing action cannot be recognized.
Aiming at the situation, the detection ranges of the three keys are recalibrated while the requirement on the three-key earphone is met, namely the impedance value ranges of the microphone and the ground corresponding to the self-photographing key are adjusted, the preset impedance value ranges of the microphone and the ground are ensured to be larger than the impedance value ranges of the microphone and the ground corresponding to the self-photographing key of the mobile terminal earphone, so that the photographing indication of the self-photographing key of the common earphone for controlling the mobile terminal can be identified, and the photographing indication of the self-photographing key of the automatic photographing pole can also be identified.
When the impedance range of the microphone and the ground corresponding to the selfie stick key is adjusted, the impedance range of the microphone and the ground corresponding to the middle key can be reduced as much as possible, because the selfie stick key can normally complete the photographing function only when corresponding to the volume plus key and the volume minus key, the impedance ranges of the microphone and the ground corresponding to the volume plus key and the volume minus key are enlarged as much as possible, and it is ensured that the selfie stick key has differences, but the selfie stick key can fall in the impedance ranges of the microphone and the ground corresponding to the volume plus key and the volume minus key when pressed, and the mobile terminal is triggered to execute the photographing action, so that the photographing function is completed.
Specifically, since a typical selfie stick does not have a uniform standard, the impedance between the microphone and the ground after the selfie button is pressed may not be within 110 ohms to 290 ohms, for example, the impedance between the microphone and the ground after the selfie stick button is pressed is 500 ohms, and thus, the selfie cannot be completed. In order to solve the problem, the impedance range of the microphone corresponding to the self-timer button and the ground is changed from 210 to 290 to 210 to 510, so that the self-timer button is pressed to be equivalent to the volume reduction button, and self-timer shooting is completed.
According to the specific embodiment, the preset impedance value range of the microphone and the ground is larger than the impedance value range of the microphone and the ground corresponding to the self-photographing key of the earphone of the mobile terminal, so that for different self-photographing rods, after a user presses the self-photographing key, the mobile terminal can recognize the impedance of the microphone and the ground to execute the photographing action instruction for the mobile terminal, the mobile terminal can be triggered to execute the photographing action, and photographing is finally completed.
On the basis of foretell embodiment, in practical application, take earphone plug from rapping bar insert mobile terminal's earphone interface after, mobile terminal discerns this from rapping bar after, will usually treat as the four-section type earphone from rapping bar, can lead to mobile terminal to be in earphone male state always like this, speaker can't produce sound when leading to the broadcast music, the unable sound production of earphone your sound production and the other side can't hear the sound when making a call, can't record a series of problems such as sound during recording. In order to enable the use of basic functions such as handset, speaker, microphone, etc. not to be affected after the selfie stick with the earphone plug is inserted into the mobile terminal, optionally, as an implementable mode, after determining that the device to be identified inserted into the earphone interface is the selfie stick, the method further includes:
marking the type of the earphone plug of the selfie stick, so that the application layer performs the operation of pulling out the common earphone after knowing that the earphone plug is the earphone plug of the selfie stick; or,
reporting that the earphone plug is the earphone plug from rapping bar to the application layer.
Specifically, after recognizing that the selfie stick is inserted into the earphone interface, the driver layer of the mobile terminal can report to the application layer as a four-segment earphone (in a manner adopted by various handset manufacturers supporting selfie sticks in the market), and then the driver layer can mark the type of the earphone plug as the earphone plug of the selfie stick, thus the application layer needs to read the mark in the driving layer after acquiring the four-segment earphone inserting event, to determine whether the earphone plug is inserted into the mobile terminal normally or from the mobile terminal, if the application layer knows that the earphone plug is the earphone plug from the mobile terminal, the application layer performs the operation of pulling out the common earphone (at this time, the earphone plug of the driving layer is not actually pulled out), therefore, subsequent related audio operations such as playing music, making a call, recording and the like can not pass through the earphone access, and the loudspeaker, the receiver and the microphone can not be used. Follow-up is not at the plug-in state of earphone, handles the auto heterodyne button incident, guarantees from the rapping bar the auto heterodyne function can normal use.
Or, the driver layer directly reports a special earphone type after judging that the headphone plug from the rapping bar inserts the earphone interface, shows that this headphone plug is the headphone plug from the rapping bar, and the operation that ordinary earphone was extracted need not be carried out to the application layer like this, only need continue to carry on next step can, promptly at headphone plug not male state, handle the auto heterodyne button event, guarantee that the auto heterodyne function from the rapping bar can normal use.
Among the above-mentioned embodiment, the application layer can learn the headphone plug and be the headphone plug from rapping bar, can not treat as ordinary headphone plug, can guarantee the function from rapping bar of normal use, can guarantee again to insert the back from rapping bar, other functions of mobile terminal can normal use, it is ordinary earphone to have avoided among the prior art direct will take headphone plug from rapping bar discernment, the earphone interface that leads to mobile terminal is in earphone male state always, the problem of the use of basic functions such as cell-phone earphone, speaker, mike has been influenced.
FIG. 2 is a flowchart illustrating a method for recognizing a selfie stick according to another embodiment of the present invention. As shown in fig. 2, the present invention provides a specific embodiment of a complete recognition process for taking a picture after a selfie stick with an earphone plug is inserted into a mobile terminal at the mobile terminal side, and as shown in fig. 2, the present invention specifically includes the following steps:
step 201, after an earphone plug of a device to be identified is inserted into an earphone interface of the mobile terminal, acquiring a voltage value between a microphone of the earphone plug and the ground;
step 202, judging whether the voltage value is within a preset voltage value range;
if yes, executing step 203, and determining that the device to be identified, which is inserted into the earphone interface, is a legal device; the preset voltage value range is larger than the voltage value detection range of the mobile terminal earphone;
specifically, after the device is judged to be a legal device, the earphone plug of which earphone type needs to be further judged, and the judgment can be realized by the existing earphone type judging mode. And after the device is judged to be legal, the user can take a picture by using the selfie stick, specifically see step 206-step 208.
If not, or after the step 203, executing a step 204, and judging whether the impedance between the left channel and the ground and/or the impedance between the right channel and the ground of the earphone plug is larger than an impedance threshold value;
if yes, executing step 205, and determining that the device to be identified, which is inserted into the earphone interface, is a selfie stick;
if not, ending;
step 206, after the photographing application program is started, obtaining the impedance between a microphone corresponding to a self-photographing key of the selfie stick and the ground;
step 207, judging whether the impedances of the microphone and the ground are within a preset impedance value range of the microphone and the ground;
if yes, executing step 208, triggering the mobile terminal to execute a photographing action; the preset impedance value range of the microphone and the ground is larger than the impedance value range of the microphone and the ground corresponding to a self-photographing key of the mobile terminal earphone;
if not, the process is ended.
The steps 204 and 205 are optional steps in the process of implementing the identification method of the selfie stick, and the steps 204 and 205 are executed only when the step 203 cannot identify the selfie stick.
In this embodiment, the implementation principle and the technical effect similar to those of the above method embodiment are not described herein again.
FIG. 3 is a schematic structural diagram of an embodiment of an identification apparatus for a selfie stick according to the present invention. As shown in fig. 3, the recognition apparatus for a selfie stick of the present embodiment may include: an acquisition module 301 and a determination module 303;
the acquiring module 301 is configured to acquire impedance between a sound channel of an earphone plug and ground after the earphone plug of a device to be identified is inserted into an earphone interface of the mobile terminal;
a determining module 302, configured to determine whether the device to be identified inserted into the headset interface is a selfie stick according to an impedance between a sound channel of the headset plug and ground.
Specifically, the embodiment of the invention mainly aims at identifying the selfie stick with the earphone plug, and the earphone plug is a four-section earphone plug.
The four-section type earphone plug means that the earphone plug adopts a four-section type contact pin structure; the four-section type earphone plug is divided into two types, one type of contact pin structure is that a left sound channel, a right sound channel, a microphone and a ground wire are sequentially arranged from left to right, and the earphone plug is generally called as an European standard earphone plug; another type of pin structure is left channel, right channel, ground wire, microphone in sequence from left to right, and such a headphone plug is commonly referred to as a american standard headphone plug.
The specific implementation process of this embodiment is as follows:
firstly, the obtaining module 301 obtains the impedance between the sound channel of the earphone plug and the ground after the earphone plug of the device to be identified is inserted into the earphone interface of the mobile terminal, and then the determining module 302 determines whether the device to be identified inserted into the earphone interface is a selfie stick according to the impedance between the sound channel of the earphone plug and the ground.
Because the headphone plug of the selfie stick is different from the common headphone plug, the impedance between the left and right sound channels of the headphone plug of the selfie stick and the ground is very large, and the impedance between the left and right sound channels of the headphone plug of the common headphone and the ground is very small, so that when the selfie stick is identified by using the characteristic, the determining module 302 determines whether the device to be identified, which is inserted into the headphone interface, is the selfie stick according to the impedance between the sound channel of the headphone plug and the ground, for example, the device to be identified can be compared with a preset impedance threshold value to determine whether the device is the selfie stick.
FIG. 4A is a schematic structural diagram of an identification apparatus for a selfie stick according to another embodiment of the present invention. On the basis of the structure of the identification apparatus of the selfie stick shown in fig. 3, optionally, as an implementable manner, as shown in fig. 4A, in this embodiment, the obtaining module 301 is further configured to obtain a voltage value between a microphone of the headset plug and ground;
from rapping bar's recognition device, still include: the judging module 303 is configured to judge whether the voltage value is within a preset voltage value range;
a determining module 302, further configured to: if the voltage value is within the preset voltage value range, determining that the equipment to be identified, which is inserted into the earphone interface, is legal equipment; and the preset voltage value range is larger than the voltage value detection range of the mobile terminal earphone.
Optionally, as an implementable manner, the determining module 302 is specifically configured to:
judging whether the impedance between the left channel of the earphone plug and the ground is greater than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick;
or,
judging whether the impedance between the right channel of the earphone plug and the ground is greater than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick;
or,
and judging whether the impedance between the left sound channel of the earphone plug and the ground and the impedance between the right sound channel of the earphone plug and the ground are both larger than an impedance threshold, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick.
FIG. 4B is a schematic structural diagram of an identification apparatus for a selfie stick according to another embodiment of the present invention. On the basis of the structure of the recognition apparatus for a selfie stick shown in fig. 3 and 4A, optionally, as an implementable manner, as shown in fig. 4B, in this embodiment, the obtaining module 301 is further configured to obtain impedances of a microphone and a ground corresponding to a selfie key of the selfie stick after the photographing application is started;
the judging module 303 is further configured to judge whether the impedance between the microphone and the ground is within a preset impedance value range between the microphone and the ground;
from rapping bar's recognition device, still include: the processing module 304 is configured to trigger the mobile terminal to perform a photographing action if the determining module 303 determines that the impedances of the microphone and the ground are within a preset impedance value range of the microphone and the ground;
and the preset impedance value range of the microphone and the ground is larger than the impedance value range of the microphone and the ground corresponding to the self-photographing key of the mobile terminal earphone.
Optionally, as an implementable manner, the processing module 304 is further configured to mark a type of an earphone plug of the selfie stick, so that the application layer performs an operation of pulling out a common earphone after knowing that the earphone plug is the earphone plug of the selfie stick; or,
the processing module 304 is further configured to report to the application layer that the headset plug is a headset plug of a selfie stick.
It should be noted that, for the embodiment of the identification apparatus of the selfie stick, since it basically corresponds to the embodiment of the method, the relevant points can be referred to the partial description of the embodiment of the method.
Fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 5, the mobile terminal of this embodiment may include: a processor 501, a memory 502, and a communication interface 503;
the memory 502 is used for storing programs and data information; in particular, the program may include program code comprising computer operating instructions. The memory 502 may include Random Access Memory (RAM) and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
A communication interface 503 for communicating with a selfie stick; the communication interface 503 may specifically be a headset interface.
The processor 501 is configured to execute the program stored in the memory 502, and is configured to execute the method in the embodiment shown in fig. 1-2, which is similar to the method in the embodiment shown in fig. 1-2 in the implementation principle and technical effect, and reference may be made to the method in the embodiment shown in fig. 1-2, which is not described herein again.
The processor 501 may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the Processor 501 may be a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.
The above components communicate over one or more buses. Those skilled in the art will appreciate that the configuration of the mobile terminal shown in fig. 5 is not intended to limit the present invention, and may be a bus architecture, a star architecture, a combination of more or fewer components than those shown, or a different arrangement of components.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units or modules is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or modules may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for recognizing a selfie stick, comprising:
after an earphone plug of equipment to be identified is inserted into an earphone interface of a mobile terminal, acquiring impedance between a sound channel of the earphone plug and the ground;
determining whether the equipment to be identified inserted into the earphone interface is a selfie stick or not according to the impedance between the sound channel of the earphone plug and the ground;
after the device to be identified inserted into the earphone interface is determined to be a selfie stick, marking the earphone plug type of the selfie stick, so that an application layer performs the operation of pulling out a common earphone after knowing that the earphone plug is the earphone plug of the selfie stick; or after the device to be identified inserted into the earphone interface is determined to be a selfie stick, reporting that the earphone plug is the earphone plug of the selfie stick to an application layer.
2. The method of claim 1, wherein determining whether the device to be identified inserted into the headphone jack is before a selfie stick according to an impedance between a sound channel of the headphone plug and a ground further comprises:
acquiring a voltage value between a microphone of the earphone plug and the ground;
judging whether the voltage value is within a preset voltage value range or not;
if the voltage value is within the preset voltage value range, determining that the equipment to be identified, which is inserted into the earphone interface, is legal equipment; and the preset voltage value range is larger than the voltage value detection range of the mobile terminal earphone.
3. The method of claim 1, wherein the determining whether the device to be identified inserted into the headphone jack is a selfie stick according to an impedance between a sound channel of the headphone plug and a ground comprises:
judging whether the impedance between the left channel of the earphone plug and the ground is greater than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick;
or,
judging whether the impedance between the right channel of the earphone plug and the ground is greater than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick;
or,
and judging whether the impedance between the left sound channel of the earphone plug and the ground and the impedance between the right sound channel of the earphone plug and the ground are both larger than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick.
4. The method according to any one of claims 1-3, further comprising:
after a photographing application program is started, acquiring the impedance of a microphone and the ground corresponding to a self-photographing key of the selfie stick;
judging whether the impedance of the microphone and the ground is within a preset impedance value range of the microphone and the ground;
if the impedance of the microphone and the ground is within the preset impedance value range of the microphone and the ground, triggering the mobile terminal to execute a photographing action;
and the preset impedance value range of the microphone and the ground is larger than the impedance value range of the microphone and the ground corresponding to the self-photographing key of the mobile terminal earphone.
5. An identification device from a racket, comprising:
the system comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring impedance between a sound channel of an earphone plug and the ground after the earphone plug of equipment to be identified is inserted into an earphone interface of the mobile terminal;
the determining module is used for determining whether the equipment to be identified inserted into the earphone interface is a selfie stick or not according to the impedance between the sound channel of the earphone plug and the ground;
the processing module is used for marking the type of the earphone plug of the selfie stick after determining that the device to be identified inserted into the earphone interface is the selfie stick, so that the application layer can perform the operation of pulling out the common earphone after knowing that the earphone plug is the earphone plug of the selfie stick; or after the device to be identified inserted into the earphone interface is determined to be a selfie stick, reporting that the earphone plug is the earphone plug of the selfie stick to an application layer.
6. The device of claim 5, wherein the obtaining module is further configured to obtain a voltage value between a microphone of the headset plug and ground;
the device, still include: the judging module is used for judging whether the voltage value is within a preset voltage value range or not;
the determining module is further configured to:
if the voltage value is within the preset voltage value range, determining that the equipment to be identified, which is inserted into the earphone interface, is legal equipment; and the preset voltage value range is larger than the voltage value detection range of the mobile terminal earphone.
7. The apparatus of claim 5, wherein the determining module is specifically configured to:
judging whether the impedance between the left channel of the earphone plug and the ground is greater than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick;
or,
judging whether the impedance between the right channel of the earphone plug and the ground is greater than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick;
or,
and judging whether the impedance between the left sound channel of the earphone plug and the ground and the impedance between the right sound channel of the earphone plug and the ground are both larger than an impedance threshold value, and if so, determining that the equipment to be identified inserted into the earphone interface is a selfie stick.
8. The apparatus of claim 6,
the acquisition module is further used for acquiring the impedance of a microphone and the ground corresponding to a self-shooting key of the selfie stick after a shooting application program is started;
the judging module is further used for judging whether the impedance between the microphone and the ground is within a preset impedance value range between the microphone and the ground;
the processing module is further configured to trigger the mobile terminal to perform a photographing action if the impedances of the microphone and the ground are within the preset impedance value range of the microphone and the ground;
and the preset impedance value range of the microphone and the ground is larger than the impedance value range of the microphone and the ground corresponding to the self-photographing key of the mobile terminal earphone.
CN201510492660.0A 2015-08-12 2015-08-12 The recognition methods of self-shooting bar and device Active CN105120388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510492660.0A CN105120388B (en) 2015-08-12 2015-08-12 The recognition methods of self-shooting bar and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510492660.0A CN105120388B (en) 2015-08-12 2015-08-12 The recognition methods of self-shooting bar and device

Publications (2)

Publication Number Publication Date
CN105120388A CN105120388A (en) 2015-12-02
CN105120388B true CN105120388B (en) 2018-09-07

Family

ID=54668229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510492660.0A Active CN105120388B (en) 2015-08-12 2015-08-12 The recognition methods of self-shooting bar and device

Country Status (1)

Country Link
CN (1) CN105120388B (en)

Families Citing this family (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611460B (en) * 2015-12-22 2018-08-07 周奇 A kind of head circuit and intelligent mobile terminal
CN105635583A (en) * 2016-01-27 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Shooting method and device
CN105681569B (en) * 2016-01-29 2018-03-06 广东欧珀移动通信有限公司 Self-timer mode open method, device and mobile terminal and system
CN105611448B (en) * 2016-01-29 2018-03-27 广东欧珀移动通信有限公司 A kind of self-shooting bar recognition methods, device and mobile terminal
CN105741863B (en) * 2016-01-29 2018-06-29 广东欧珀移动通信有限公司 The method and apparatus and mobile terminal that a kind of audio frequency of mobile terminal plays
CN105677603B (en) * 2016-01-29 2018-01-19 广东欧珀移动通信有限公司 A kind of method, apparatus and mobile terminal for identifying self-shooting bar
CN105611445B (en) * 2016-01-29 2018-04-03 广东欧珀移动通信有限公司 Recognition methods, device and the mobile terminal of self-shooting bar and self-shooting bar
CN105704373B (en) * 2016-01-29 2019-04-23 Oppo广东移动通信有限公司 A kind of self-shooting bar recognition methods, device and self-shooting bar, mobile terminal and system
CN105611447B (en) * 2016-01-29 2018-02-23 广东欧珀移动通信有限公司 Self-shooting bar, the method and device and mobile terminal for identifying self-shooting bar
CN105681951B (en) * 2016-01-29 2018-03-06 广东欧珀移动通信有限公司 A kind of self-shooting bar recognition methods, device and mobile terminal
CN105763981A (en) * 2016-01-29 2016-07-13 广东欧珀移动通信有限公司 Selfie stick identification method and device, selfie stick, mobile terminal and system
CN105611449B (en) * 2016-01-29 2018-04-06 广东欧珀移动通信有限公司 A kind of method, apparatus and mobile terminal for identifying self-shooting bar
CN105744418B (en) * 2016-01-29 2018-02-16 广东欧珀移动通信有限公司 A kind of method, apparatus and mobile terminal for identifying self-shooting bar
CN105681952B (en) * 2016-01-29 2018-03-27 广东欧珀移动通信有限公司 Self-shooting bar, the method and device and mobile terminal for identifying self-shooting bar
CN105554308B (en) * 2016-01-29 2017-11-14 广东欧珀移动通信有限公司 Self-shooting bar, the method and device for identifying self-shooting bar
CN105741862B (en) * 2016-01-29 2018-05-08 广东欧珀移动通信有限公司 A kind of method and apparatus and mobile terminal of audio frequency of mobile terminal typing
CN105611446B (en) * 2016-01-29 2018-03-06 广东欧珀移动通信有限公司 Self-shooting bar recognition methods, device and mobile terminal
CN105611450B (en) * 2016-01-29 2018-03-09 广东欧珀移动通信有限公司 A kind of method, apparatus and mobile terminal for identifying self-shooting bar
CN105611069B (en) * 2016-02-15 2019-05-03 Oppo广东移动通信有限公司 A kind of photographic method and mobile terminal of terminal
CN105491247B (en) * 2016-02-15 2018-12-11 广东欧珀移动通信有限公司 Identify method, apparatus, storage medium and the terminal of self-shooting bar
CN105704376B (en) * 2016-02-19 2018-09-04 广东欧珀移动通信有限公司 A kind of rotating camera control method, device and mobile terminal
CN105791575A (en) * 2016-03-01 2016-07-20 广东欧珀移动通信有限公司 Incoming call answering method and device
CN105635486B (en) * 2016-03-01 2019-05-10 Oppo广东移动通信有限公司 A kind of method and terminal starting self-shooting bar photographing mode
CN105791576B (en) * 2016-03-01 2019-03-15 Oppo广东移动通信有限公司 A kind of processing method and processing device of long-pressing physical button
CN106231021A (en) * 2016-07-22 2016-12-14 柳州易旺科技有限公司 A kind of self-shooting bar identification system
CN107172515A (en) * 2017-05-19 2017-09-15 青岛海信移动通信技术股份有限公司 Test earphone plug is inserted in mobile terminal detection circuit and mobile terminal
KR102427206B1 (en) * 2017-11-13 2022-07-29 삼성전자주식회사 An device and a method for controlling a microphone according to a connection of an external accessory
CN108646852A (en) * 2018-04-04 2018-10-12 厦门美图移动科技有限公司 Identify equipment, method and the mobile terminal of self-timer

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1780438A (en) * 2004-11-25 2006-05-31 三星电子株式会社 Method for performing a camera function in a mobile communication terminal
CN1894944A (en) * 2003-12-12 2007-01-10 索尼爱立信移动通讯股份有限公司 Accessory identification algorithm for system connector
CN103516865A (en) * 2012-06-19 2014-01-15 深圳富泰宏精密工业有限公司 Photographing system and photographing method
CN204389860U (en) * 2015-01-29 2015-06-10 深圳市锐仁电子有限公司 A kind of line traffic control self-shooting bar with Wound-rotor type cloud platform head
CN204403740U (en) * 2014-12-25 2015-06-17 黄玲芳 A kind of Novel belt line self-shooting bar

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8290537B2 (en) * 2008-09-15 2012-10-16 Apple Inc. Sidetone adjustment based on headset or earphone type

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1894944A (en) * 2003-12-12 2007-01-10 索尼爱立信移动通讯股份有限公司 Accessory identification algorithm for system connector
CN1780438A (en) * 2004-11-25 2006-05-31 三星电子株式会社 Method for performing a camera function in a mobile communication terminal
CN103516865A (en) * 2012-06-19 2014-01-15 深圳富泰宏精密工业有限公司 Photographing system and photographing method
CN204403740U (en) * 2014-12-25 2015-06-17 黄玲芳 A kind of Novel belt line self-shooting bar
CN204389860U (en) * 2015-01-29 2015-06-10 深圳市锐仁电子有限公司 A kind of line traffic control self-shooting bar with Wound-rotor type cloud platform head

Also Published As

Publication number Publication date
CN105120388A (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN105120388B (en) The recognition methods of self-shooting bar and device
CN108076226B (en) Method for adjusting call quality, mobile terminal and storage medium
CN105391965B (en) Video recording method based on multi-cam and device
WO2015066949A1 (en) Human-machine interaction system, method and device thereof
WO2021057673A1 (en) Image display method and electronic device
US20200045159A1 (en) Method for Call Processing and Electronic Device
WO2015149359A1 (en) Method for automatically adjusting volume, volume adjustment apparatus and electronic device
WO2017166598A1 (en) Sound channel adjusting method and apparatus for headphones, electronic device, and storage medium
CN105491284A (en) Preview image display method and device
CN103731519A (en) Protective shell with shutter structure and shooting method thereof
WO2015143896A1 (en) Recognition circuit, method, apparatus and system for external device based on earphone socket
CN102437825A (en) Control apparatus and control method
CN105554631B (en) Audio switching method, device and electronic equipment
CN105741863B (en) The method and apparatus and mobile terminal that a kind of audio frequency of mobile terminal plays
CN108076300B (en) Video processing method, video processing device and mobile terminal
CN105138956A (en) Face detection method and device
CN107135452A (en) Audiphone adaptation method and device
CN106453838A (en) Method and apparatus for adjusting volume
CN111988704B (en) Sound signal processing method, device and storage medium
CN108600887A (en) Method of toch control based on wireless headset and Related product
CN103685752A (en) Loudspeaker and earphone automatic switching method based on camera
CN105426065A (en) Browsing position marking method and device
JP6437632B2 (en) Fingerprint identification method, apparatus, program, and recording medium
CN107065400B (en) Electronic equipment, system and preservation control method
WO2023231787A9 (en) Audio processing method and apparatus

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