CN105681951A - Selfie stick recognition method, selfie stick recognition device and mobile terminal - Google Patents
Selfie stick recognition method, selfie stick recognition device and mobile terminal Download PDFInfo
- Publication number
- CN105681951A CN105681951A CN201610064329.3A CN201610064329A CN105681951A CN 105681951 A CN105681951 A CN 105681951A CN 201610064329 A CN201610064329 A CN 201610064329A CN 105681951 A CN105681951 A CN 105681951A
- Authority
- CN
- China
- Prior art keywords
- self
- shooting bar
- button
- voltage
- mobile terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000011664 signaling Effects 0.000 claims description 37
- 230000001960 triggered effect Effects 0.000 claims description 19
- 238000001514 detection method Methods 0.000 claims description 5
- 238000013500 data storage Methods 0.000 claims description 2
- 210000000352 storage cell Anatomy 0.000 claims description 2
- 238000003780 insertion Methods 0.000 description 9
- 230000037431 insertion Effects 0.000 description 9
- 238000005259 measurement Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
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
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Telephone Set Structure (AREA)
Abstract
The present invention discloses a selfie stick recognition method, a selfie stick recognition device and a mobile terminal. The method comprises obtaining a selfie stick recognition signal of a microphone wiring end of a current selfie stick connected with the mobile terminal; comparing the selfie stick recognition signal with selfie stick recognition data preset in the mobile terminal; and recognizing the current selfie stick according to a comparison result. With adoption of the method, the problems that the mobile terminal cannot recognize whether the equipment plugged into an earphone jack of the mobile terminal is a selfie stick or not and cannot determine which concretely is the selfie stick connected with the mobile terminal can be solved.
Description
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of self-shooting bar recognition methods, device and mobile terminal.
Background technology
Along with popularizing of the mobile terminals such as mobile phone, the use of self-shooting bar is also more and more extensive.
In prior art, for the self-shooting bar with headset plug, it is the communication being realized self-shooting bar and mobile terminal by the connection of headset plug Yu the earpiece holes of mobile terminal. But no matter being inserted from dabber or insert earphone, after headset plug inserts the earpiece holes of mobile terminal, mobile terminal identifies the insertion equipment of the earpiece holes inserting mobile terminal and is earphone.
At present, mobile terminal identification self-shooting bar is after legitimate device, think the earphone of a certain type, follow-up flow process carries out according to existing common headphones handling process, but mobile terminal still None-identified goes out whether this insertion equipment is self-shooting bar, which self-shooting bar what more None-identified was connected to mobile terminal is.
Summary of the invention
In view of this, the purpose of the present invention is to propose to a kind of self-shooting bar recognition methods, device and mobile terminal, whether go out to insert the equipment in mobile terminal earphone hole for self-shooting bar solving prior art None-identified, and the problem which self-shooting bar being connected with mobile terminal is specially.
For achieving the above object, the present invention adopts the following technical scheme that
First aspect, embodiments provides a kind of self-shooting bar recognition methods, including:
Obtain the self-shooting bar identification signal of mike terminals on the current self-shooting bar being connected with mobile terminal;
Described self-shooting bar identification signal is contrasted with the self-shooting bar mark data being pre-set in described mobile terminal;
Described current self-shooting bar is identified according to comparing result.
Second aspect, embodiments provides a kind of self-shooting bar identification device, including:
Self-shooting bar identification signal acquisition module, for obtaining the self-shooting bar identification signal of mike terminals on the current self-shooting bar being connected with mobile terminal;
Mark Data Comparison module, for contrasting described self-shooting bar identification signal with the self-shooting bar mark data being pre-set in described mobile terminal;
Self-shooting bar identification module, for identifying described current self-shooting bar according to comparing result.
The third aspect, embodiments provides a kind of mobile terminal, and described mobile terminal includes the self-shooting bar identification device described in above-mentioned second aspect.
The invention has the beneficial effects as follows: self-shooting bar recognition methods provided by the invention, device and mobile terminal, pre-set self-shooting bar mark data in the terminal, this self-shooting bar identification data packet is containing the self-shooting bar identification signal that may recognize that, the self-shooting bar identification signal of mike terminals on the connected current self-shooting bar of acquisition for mobile terminal, by this self-shooting bar identification signal is contrasted with self-shooting bar mark data, both may determine that whether the equipment of being currently inserted into is self-shooting bar, may identify which out that again which self-shooting bar current self-shooting bar is, whether thus solving prior art None-identified, to go out to insert the equipment in mobile terminal earphone hole be self-shooting bar, and the problem which self-shooting bar being connected with mobile terminal is specially.
Accompanying drawing explanation
Following by the exemplary embodiment that the present invention is described in detail with reference to the drawings, the person of ordinary skill in the art is more clear that the above-mentioned and other feature and advantage of the present invention, in accompanying drawing:
Fig. 1 is the equivalent circuit diagram that the self-shooting bar that the embodiment of the present invention provides is connected with mobile terminal;
Fig. 2 is the schematic flow sheet of the self-shooting bar recognition methods that the embodiment of the present invention one provides;
Fig. 3 is the headset plug connection diagram with mobile terminal of the embodiment of the present invention one offer;
Fig. 4 is the schematic flow sheet of the self-shooting bar recognition methods that the embodiment of the present invention two provides;
Fig. 5 is the schematic flow sheet of the self-shooting bar recognition methods that the embodiment of the present invention three provides;
Fig. 6 is the schematic flow sheet of the self-shooting bar recognition methods that the embodiment of the present invention four provides;
Fig. 7 is the schematic flow sheet pre-setting button data method that the embodiment of the present invention four provides;
Fig. 8 is the structured flowchart of the self-shooting bar identification device that the embodiment of the present invention five provides;
Fig. 9 is the structured flowchart of the mark data presetting module that the embodiment of the present invention five provides;
Figure 10 is the structured flowchart of the self-shooting bar identification module that the embodiment of the present invention five provides;
Figure 11 is the structured flowchart of the self-shooting bar identification device that the embodiment of the present invention six provides;
Figure 12 is the structured flowchart of the button data presetting module that the embodiment of the present invention six provides;
Figure 13 is the structured flowchart that the button that the embodiment of the present invention six provides determines module.
Detailed description of the invention
Technical scheme is further illustrated below in conjunction with accompanying drawing and by detailed description of the invention. It is understood that specific embodiment described herein is used only for explaining the present invention, but not limitation of the invention. It also should be noted that, for the ease of describing, accompanying drawing illustrate only part related to the present invention but not entire infrastructure.
Fig. 1 is the equivalent circuit diagram that the self-shooting bar that the embodiment of the present invention provides is connected with mobile terminal, and the headset plug being connected to mobile terminal earphone hole can be four-section type headset plug. As it is shown in figure 1, the microphone bias voltage V in mobile terminalMICBIASThe mike terminals 10 of four-section type headset plug it are connected to by resistance R, self-shooting bar can be equivalent to after button K1 connects with resistance R2 in parallel with fixed resistance R1, one end of resistance R1 connects mike terminals 10, and other end ground connection, wherein resistance R can sets itself. When button K1 is not pressed, resistance R and resistance R1 series connection, self-shooting bar identification signal can be measured by mike terminals 10; When button K1 is pressed, resistance R1 and connecting with resistance R after resistance R2 parallel connection, can measure push button signalling by mike terminals 10. Because the probability that the signal that earphone produces at this mike terminals 10 place with self-shooting bar is identical is only small, it is possible to identify that insertion equipment is earphone or self-shooting bar by self-shooting bar identification signal.
Embodiment one
Fig. 2 is the schematic flow sheet of the self-shooting bar recognition methods that the embodiment of the present invention one provides. When the method is connected to mobile terminal suitable in line traffic control self-shooting bar, mobile terminal can confirm that connection equipment is self-shooting bar, and automatically into the situation of self-shooting bar exposal model, being also applied for user when having multiple line traffic control self-shooting bar, mobile terminal may recognize which situation connected line traffic control self-shooting bar be. The method can be performed by self-shooting bar identification device. This device can be realized by the mode of software and/or hardware, and this device may be disposed in mobile terminal.As in figure 2 it is shown, the method includes:
The self-shooting bar identification signal of mike terminals on the current self-shooting bar that step 110, acquisition are connected with mobile terminal.
Exemplary, the self-shooting bar being suitable in the present embodiment is line traffic control self-shooting bar, and the headset plug on self-shooting bar is four-section type headset plug, and this four-section type headset plug has mike, L channel, four terminals of R channel and ground. As it is shown on figure 3, the microphone bias voltage V in mobile terminalMICBIASThe mike terminals 10 of four-section type headset plug it are connected to by resistance R, after four-section type headset plug inserts the earpiece holes of mobile terminal, the self-shooting bar identification signal of acquisition for mobile terminal mike terminals 10. Wherein, this self-shooting bar identification signal can be the magnitude of voltage at mike terminals 10 place, or flows through the current value of mike terminals 10, or the resistance value between mike terminals 10 and ground terminals.
Step 120, by self-shooting bar identification signal and be pre-set in mobile terminal self-shooting bar mark data contrast.
Wherein, self-shooting bar mark data can comprise the self-shooting bar identification signal of multiple self-shooting bar and/or the self-shooting bar mark corresponding with the self-shooting bar identification signal of multiple self-shooting bars.
Exemplary, self-shooting bar identification signal is contrasted with the self-shooting bar mark data being pre-set in mobile terminal, judge self-shooting bar identification signal whether with self-shooting bar identification data matches, such as, the self-shooting bar identification data packet self-shooting bar identification signal containing multiple self-shooting bars, self-shooting bar identification signal by the current self-shooting bar of acquisition, contrast with the self-shooting bar identification signal of multiple self-shooting bars respectively, if the self-shooting bar identification signal of current self-shooting bar is consistent with the self-shooting bar identification signal of arbitrary multiple self-shooting bars, then judge self-shooting bar identification signal and self-shooting bar identification data matches, otherwise, judge that self-shooting bar identification signal identifies data with self-shooting bar and do not mate, represent the self-shooting bar mark data not recording current self-shooting bar in this mobile terminal, None-identified goes out current self-shooting bar, then further current self-shooting bar can be carried out the setting of self-shooting bar mark data, in order to connect use in the future.
Step 130, identify current self-shooting bar according to comparing result.
In the present embodiment, according to comparing result, can check the self-shooting bar identification signal of current self-shooting bar whether with self-shooting bar identification data matches, when the self-shooting bar identification signal of current self-shooting bar is with self-shooting bar identification data matches, the self-shooting bar that can determine that and mate identifies the self-shooting bar that data are corresponding, both can determine that with this insertion equipment is for self-shooting bar, may recognize that again as which self-shooting bar.
The self-shooting bar recognition methods that the embodiment of the present invention one provides, pre-set self-shooting bar mark data in the terminal, this self-shooting bar identification data packet is containing the self-shooting bar identification signal that may recognize that, the self-shooting bar identification signal of mike terminals on the connected current self-shooting bar of acquisition for mobile terminal, by this self-shooting bar identification signal is contrasted with self-shooting bar mark data, both may determine that whether the equipment of being currently inserted into is self-shooting bar, may identify which out that again which self-shooting bar current self-shooting bar is, whether thus solving prior art None-identified, to go out to insert the equipment in mobile terminal earphone hole be self-shooting bar, and the problem which self-shooting bar being connected with mobile terminal is specially.
Embodiment two
Fig. 4 is the schematic flow sheet of the self-shooting bar recognition methods that the embodiment of the present invention two provides.The present embodiment is optimized based on embodiment one, and self-shooting bar identification signal is specifically configured to self-shooting bar magnitude of voltage; Accordingly, the self-shooting bar identification signal of mike terminals on the current self-shooting bar being connected with mobile terminal is obtained particularly as follows: by voltage detection unit, obtain the current self-shooting bar magnitude of voltage of mike terminals on current self-shooting bar.
Further, pre-set self-shooting bar mark data, including:
After setting self-shooting bar and being connected to mobile terminal, obtaining the self-shooting bar magnitude of voltage of mike terminals on self-shooting bar to be set;
The corresponding relation identified by the self-shooting bar of self-shooting bar magnitude of voltage with self-shooting bar to be set identifies data as self-shooting bar and stores.
Further, identify current self-shooting bar according to comparing result, including:
The self-shooting bar mark that current self-shooting bar magnitude of voltage is corresponding is determined according to comparing result;
Current self-shooting bar is identified according to the self-shooting bar determined.
Thus, pre-set the corresponding relation that the self-shooting bar of self-shooting bar magnitude of voltage and self-shooting bar to be set identifies, when self-shooting bar is connected to mobile terminal, by the current self-shooting bar magnitude of voltage of mike terminals on current self-shooting bar, contrast with the above-mentioned self-shooting bar magnitude of voltage pre-set, according to above-mentioned corresponding relation, which self-shooting bar can accurately quickly recognize current self-shooting bar is.
Accordingly, the method for the present embodiment comprises the following steps:
Step 210, after setting self-shooting bar and being connected to mobile terminal, obtaining the self-shooting bar magnitude of voltage of mike terminals on self-shooting bar to be set.
Exemplary, after four-section type headset plug inserts earpiece holes, the voltage measurement unit in mobile terminal is connected to mike terminals, and this voltage measurement unit can be power management integrated circuit (PowerManagementIC, PMIC).
Step 220, the corresponding relation identified by the self-shooting bar of self-shooting bar magnitude of voltage with self-shooting bar to be set identify data as self-shooting bar and store.
Wherein, self-shooting bar to be set is same self-shooting bar or different self-shooting bar from current self-shooting bar, and self-shooting bar mark can be in order to distinguish the different character of self-shooting bar, character string or Chinese character etc.
Exemplary, it is possible to the corresponding relation identified by the self-shooting bar of self-shooting bar magnitude of voltage with self-shooting bar to be set identifies data as self-shooting bar and stores in mobile terminal system file, forms self-shooting bar data memory storehouse.
Step 230, by voltage detection unit, obtain the current self-shooting bar magnitude of voltage of mike terminals on current self-shooting bar.
Step 240, by current self-shooting bar magnitude of voltage and be pre-set in mobile terminal self-shooting bar mark data contrast.
In the present embodiment, current self-shooting bar magnitude of voltage is contrasted with the self-shooting bar magnitude of voltage of multiple self-shooting bars in self-shooting bar data memory storehouse respectively, when the self-shooting bar magnitude of voltage of current self-shooting bar magnitude of voltage with arbitrary multiple self-shooting bars is consistent, it is determined that insertion equipment is self-shooting bar.
Step 250, determine according to comparing result current self-shooting bar magnitude of voltage corresponding self-shooting bar mark.
Exemplary, after determining that insertion equipment is self-shooting bar, according to the corresponding relation that the self-shooting bar of self-shooting bar magnitude of voltage with self-shooting bar to be set identifies, it is determined that the self-shooting bar mark that current self-shooting bar magnitude of voltage is corresponding.
Step 260, identify current self-shooting bar according to the self-shooting bar determined.
Owing to each self-shooting bar is both provided with self-shooting bar mark that is unique and that be different from other self-shooting bars, mobile terminal can identify different self-shooting bars according to self-shooting bar. Such as, user has No. 1, No. 2 and No. 33 and self-shooting bar, the self-shooting bar of 3 self-shooting bars pre-setting user identifies respectively " 1 ", " 2 " and " 3 ", when mobile terminal determines that self-shooting bar is designated " 1 ", it is possible to identifying current self-shooting bar is No. 1 self-shooting bar.
The self-shooting bar recognition methods that the embodiment of the present invention two provides, by pre-setting the corresponding relation that the self-shooting bar of self-shooting bar magnitude of voltage and self-shooting bar to be set identifies, when self-shooting bar is connected to mobile terminal, by the current self-shooting bar magnitude of voltage of mike terminals on current self-shooting bar, contrast with the above-mentioned self-shooting bar magnitude of voltage pre-set, according to above-mentioned corresponding relation, which self-shooting bar can directly quickly recognize current self-shooting bar is.
Embodiment three
Fig. 5 is the schematic flow sheet of the self-shooting bar recognition methods that the embodiment of the present invention three provides. The present embodiment is optimized based on embodiment one, adds following steps after step identifies described current self-shooting bar according to comparing result: obtain the push button signalling triggered when the button on current self-shooting bar is pressed; Push button signalling is contrasted with the button data pre-set that currently self-shooting bar is corresponding with mobile terminal; According to comparing result, it is determined that the button being currently pressed.
Thus, after identifying current self-shooting bar, when the button on this self-shooting bar is pressed, the push button signalling triggered when being pressed by this button, the button data that pre-set corresponding with current self-shooting bar contrasts, and can accurately identify out the button being currently pressed.
Accordingly, the method for the present embodiment comprises the following steps:
The self-shooting bar identification signal of mike terminals on the current self-shooting bar that step 310, acquisition are connected with mobile terminal.
Step 320, by self-shooting bar identification signal and be pre-set in mobile terminal self-shooting bar mark data contrast.
Step 330, identify current self-shooting bar according to comparing result.
The push button signalling triggered when step 340, the button obtained on current self-shooting bar are pressed.
Can being provided with multiple button on the present embodiment self-shooting bar, the push button signalling triggered when different key is pressed is different, and thus, mobile terminal may recognize that the button being pressed. Wherein, push button signalling can be the button magnitude of voltage of mike terminals on self-shooting bar, or flows through the button current value of mike terminals, or the button resistance value between mike terminals and ground terminals.
Step 350, push button signalling is contrasted with the button data pre-set corresponding with current self-shooting bar in mobile terminal.
Wherein, button data contains the push button signalling of multiple buttons of multiple self-shooting bar and/or marking keys corresponding with the push button signalling of multiple buttons respectively.
The control methods of the push button signalling of this enforcement is similar to step 120 in embodiment one, repeats no more herein.
Step 360, according to comparing result, it is determined that the button being currently pressed.
When determining that push button signalling is consistent with button data, can determine, according to the corresponding relation of push button signalling Yu marking keys, the button being currently pressed.
The self-shooting bar recognition methods that the embodiment of the present invention three provides, after identifying current self-shooting bar, when button on this self-shooting bar is pressed, the push button signalling triggered when this button is pressed, the button data that pre-set corresponding with current self-shooting bar contrasts, and can accurately identify out the button being currently pressed.
Embodiment four
Fig. 6 is the schematic flow sheet of the self-shooting bar recognition methods that the embodiment of the present invention four provides. The present embodiment is optimized based on embodiment three, and push button signalling is specifically configured to button magnitude of voltage; Accordingly, the push button signalling triggered when the button on current self-shooting bar is pressed is obtained particularly as follows: when the button that obtains on current self-shooting bar is pressed, the current button magnitude of voltage of mike terminals on current self-shooting bar.
Further, before the push button signalling triggered when the button obtained on current self-shooting bar is pressed, also include:
By button data write mobile terminal kernel corresponding for the current self-shooting bar of storage;
Accordingly, push button signalling is contrasted with the button data pre-set that currently self-shooting bar is corresponding with mobile terminal, including:
By kernel, button voltage range corresponding with current self-shooting bar respectively for current button magnitude of voltage is contrasted.
Further, according to comparing result, it is determined that the button being currently pressed, including:
According to comparing result, it is determined that current button voltage range belonging to button magnitude of voltage;
The marking keys that button voltage range belonging to current button magnitude of voltage is corresponding, it is determined that the button being currently pressed.
Preferably, referring to Fig. 7, pre-set button data, including:
Step 510, after setting self-shooting bar and being connected to mobile terminal, obtaining the multiple button magnitudes of voltage triggered when the button setting on self-shooting bar is repeatedly pressed.
Exemplary, after four-section type headset plug inserts earpiece holes, the voltage measurement unit in mobile terminal is connected to mike terminals, and this voltage measurement unit can be power management integrated circuit. When user repeatedly presses the same button on self-shooting bar, mobile terminal obtains corresponding multiple button magnitude of voltage by voltage measurement unit, and touch potential can by user's sets itself.
Step 520, maximum and minima according to multiple button magnitudes of voltage determine button voltage range.
Exemplary, the button voltage triggered when considering every time to push button would be likely to occur little error, the multiple button magnitudes of voltage got are compared mutually, obtain maximum and the minima of multiple button magnitude of voltage, and using bound as voltage range of this maximum and minima, it is determined that go out button voltage range.
Step 530, the corresponding relation of button voltage range and the marking keys of the button that is pressed and self-shooting bar to be set mark is stored as button data.
Wherein, self-shooting bar to be set is same self-shooting bar or different self-shooting bar from current self-shooting bar, and self-shooting bar mark can be in order to distinguish the different character of self-shooting bar, character string or Chinese character etc.
Exemplary, it is possible to the corresponding relation that button voltage range and the marking keys of the button that is pressed and self-shooting bar to be set identify is stored in self-shooting bar data memory storehouse as button data.
Thus, pre-set button voltage range and the corresponding relation of the marking keys of the button that is pressed and self-shooting bar to be set mark is made, after identifying current self-shooting bar, when button on current self-shooting bar is pressed, the current button magnitude of voltage of mike terminals on current self-shooting bar, contrast with the above-mentioned button voltage range pre-set, according to above-mentioned corresponding relation, can accurately quickly recognize the button being pressed.
Accordingly, the method for the present embodiment comprises the following steps:
The self-shooting bar identification signal of mike terminals on the current self-shooting bar that step 410, acquisition are connected with mobile terminal.
Step 420, by self-shooting bar identification signal and be pre-set in mobile terminal self-shooting bar mark data contrast.
Step 430, identify current self-shooting bar according to comparing result.
Step 440, by storage current self-shooting bar corresponding button data write mobile terminal kernel.
Identifying current self-shooting bar for after which, self-shooting bar data memory storehouse is inquired about the button data corresponding with current self-shooting bar, and this button data is written to mobile terminal kernel, so that the button operation that kernel is according to this current self-shooting bar of button data identification.
When step 450, the button obtained on current self-shooting bar are pressed, the current button magnitude of voltage of mike terminals on current self-shooting bar.
Step 460, by kernel, button voltage range corresponding with current self-shooting bar respectively for current button magnitude of voltage is contrasted.
Exemplary, the button voltage range of multiple buttons corresponding with current self-shooting bar respectively for current button magnitude of voltage is contrasted, it is judged that whether current button magnitude of voltage is in arbitrary button voltage range.
Step 470, according to comparing result, it is determined that current button voltage range belonging to button magnitude of voltage.
The marking keys that step 480, button voltage range belonging to current button magnitude of voltage are corresponding, it is determined that the button being currently pressed.
Wherein, marking keys is in order to distinguish different buttons, it is possible to be recorded as keypress functions such as " focusings ", " focusing " and " taking pictures ".
According to the corresponding relation that button voltage range identifies with the marking keys of the button that is pressed and self-shooting bar to be set, it is determined that marking keys, and then identify the button being currently pressed.
Additionally, in order to reduce the probability of self-shooting bar misrecognized further, it is possible to first passing through the voice of mike typing one end subscriber of four-section type headset plug, this section of voice is identified by mobile terminal, if may identify which out the content of voice, then judge that insertion equipment is earphone; Otherwise, it is judged that insertion equipment is self-shooting bar.
The self-shooting bar recognition methods that the embodiment of the present invention four provides, by pre-setting button voltage range and the corresponding relation work of the marking keys of the button that is pressed and self-shooting bar to be set mark, after identifying current self-shooting bar, when button on current self-shooting bar is pressed, the current button magnitude of voltage of mike terminals on current self-shooting bar, contrast with the above-mentioned button voltage range pre-set, according to above-mentioned corresponding relation, can accurately quickly recognize the button being pressed.
Embodiment five
Fig. 8 is the structured flowchart of the self-shooting bar identification device that the embodiment of the present invention two provides. As shown in Figure 8, this device includes: self-shooting bar identification signal acquisition module 1, mark Data Comparison module 2 and self-shooting bar identification module 3.
Wherein, self-shooting bar identification signal acquisition module 1, for obtaining the self-shooting bar identification signal of mike terminals on the current self-shooting bar being connected with mobile terminal;
Mark Data Comparison module 2, for contrasting self-shooting bar identification signal with the self-shooting bar mark data being pre-set in mobile terminal;
Self-shooting bar identification module 3, for identifying current self-shooting bar according to comparing result.
The self-shooting bar identification device that the embodiment of the present invention five provides may be used for performing the self-shooting bar recognition methods that the embodiment of the present invention one provides, and possesses corresponding function and beneficial effect.
Further, above-mentioned self-shooting bar identification signal is self-shooting bar magnitude of voltage;
Accordingly, self-shooting bar identification signal acquisition module 1 specifically for:
By voltage detection unit, obtain the current self-shooting bar magnitude of voltage of mike terminals on current self-shooting bar.
Further, in such scheme, self-shooting bar identification device also includes mark data presetting module 4, is used for pre-setting self-shooting bar mark data.
Referring to Fig. 9, these mark data are preset mould 4 and are included:
Self-shooting bar magnitude of voltage acquiring unit 41, for, after setting self-shooting bar and being connected to mobile terminal, obtaining the self-shooting bar magnitude of voltage of mike terminals on self-shooting bar to be set;
Mark data storage cell 42, the corresponding relation for being identified by the self-shooting bar of self-shooting bar magnitude of voltage with self-shooting bar to be set identifies data as self-shooting bar and stores; Wherein self-shooting bar to be set is same self-shooting bar or different self-shooting bar from current self-shooting bar.
Preferably, referring to Figure 10, in such scheme, self-shooting bar identification mould 3 includes:
Self-shooting bar mark determines unit 31, for determining, according to comparing result, the self-shooting bar mark that current self-shooting bar magnitude of voltage is corresponding;
Self-shooting bar recognition unit 32, for identifying current self-shooting bar according to the self-shooting bar determined.
Embodiment six
Figure 11 is the structured flowchart of the self-shooting bar identification device that the embodiment of the present invention six provides. As shown in figure 11, this device includes: self-shooting bar identification signal acquisition module 1, mark Data Comparison module 2, self-shooting bar identification module 3, mark data presetting module 4, push button signalling acquisition module 5, button data contrast module 6 and button determine module 7.
Wherein, push button signalling acquisition module 5, for, after identify current self-shooting bar according to comparing result, obtaining the push button signalling triggered when the button on current self-shooting bar is pressed;
Button data contrast module 6, for contrasting push button signalling with the button data pre-set that currently self-shooting bar is corresponding with mobile terminal;
Button determines module 7, for according to comparing result, it is determined that the button being currently pressed.
Above-mentioned push button signalling is button magnitude of voltage;
Accordingly, push button signalling acquisition module 5 specifically for:
Obtain the button on current self-shooting bar when being pressed, the current button magnitude of voltage of mike terminals on current self-shooting bar.
Further, in the present embodiment such scheme, self-shooting bar identification device also includes button data presetting module 8, is used for pre-setting button data.
Referring to Figure 12, this button data presetting module 8 includes:
Button magnitude of voltage acquiring unit 81, for, after setting self-shooting bar and being connected to mobile terminal, obtaining the multiple button magnitudes of voltage triggered when the button setting on self-shooting bar is repeatedly pressed;
First button voltage range determines unit 82, determines button voltage range for maximum and the minima according to multiple button magnitudes of voltage;
Button data memory element 83, for storing the corresponding relation that button voltage range and the marking keys of the button that is pressed and self-shooting bar to be set identify as button data; Wherein self-shooting bar to be set is same self-shooting bar or different self-shooting bar from current self-shooting bar.
Further, in the present embodiment such scheme, self-shooting bar identification device also includes:
Button data writing module 9, before the push button signalling triggered during for being pressed at the button obtained on current self-shooting bar, by button data write mobile terminal kernel corresponding for the current self-shooting bar of storage;
Accordingly, button data contrast module 6 specifically for:
By kernel, button voltage range corresponding with current self-shooting bar respectively for current button magnitude of voltage is contrasted.
Preferably, referring to Figure 13, in the present embodiment such scheme, button determines that module 7 includes:
Second button voltage range determines list, 71, for according to comparing result, it is determined that current button voltage range belonging to button magnitude of voltage;
Button determines unit 72, for the marking keys that the button voltage range belonging to current button magnitude of voltage is corresponding, it is determined that the button being currently pressed.
The self-shooting bar identification device that the embodiment of the present invention six provides may be used for performing the self-shooting bar recognition methods that the embodiment of the present invention three or embodiment four provide, and possesses corresponding function and beneficial effect.
Embodiment seven
The mobile terminal that the embodiment of the present invention seven provides, including the self-shooting bar identification device that the embodiment of the present invention provides. This mobile terminal by self-shooting bar identification device provided by the invention, can adopt corresponding self-shooting bar recognition methods that the insertion equipment being connected to mobile terminal earphone hole is identified.
Wherein, mobile terminal can be smart mobile phone, panel computer or personal digital assistant etc.
The mobile terminal that the embodiment of the present invention seven provides, including the self-shooting bar identification device that the embodiment of the present invention provides, possesses corresponding function and beneficial effect.
Note, 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 and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute without departing from protection scope of the present invention. Therefore, although the present invention being described in further detail by above example, but the present invention is not limited only to above example, when without departing from present inventive concept, other Equivalent embodiments more can also be included, and the scope of the present invention is determined by appended right.
Claims (19)
1. a self-shooting bar recognition methods, it is characterised in that including:
Obtain the self-shooting bar identification signal of mike terminals on the current self-shooting bar being connected with mobile terminal;
Described self-shooting bar identification signal is contrasted with the self-shooting bar mark data being pre-set in described mobile terminal;
Described current self-shooting bar is identified according to comparing result.
2. method according to claim 1, it is characterised in that described self-shooting bar identification signal is self-shooting bar magnitude of voltage;
The self-shooting bar identification signal of mike terminals on the current self-shooting bar that described acquisition is connected with mobile terminal, including:
By voltage detection unit, obtain the current self-shooting bar magnitude of voltage of mike terminals on described current self-shooting bar.
3. method according to claim 2, it is characterised in that pre-set self-shooting bar mark data, including:
After setting self-shooting bar and being connected to mobile terminal, the self-shooting bar magnitude of voltage of mike terminals on self-shooting bar to be set described in acquisition;
The corresponding relation identified by the self-shooting bar of described self-shooting bar magnitude of voltage with self-shooting bar described to be set identifies data as self-shooting bar and stores; Self-shooting bar wherein said to be set is same self-shooting bar or different self-shooting bar from described current self-shooting bar.
4. method according to claim 3, it is characterised in that described identify described current self-shooting bar according to comparing result, including:
The self-shooting bar mark that described current self-shooting bar magnitude of voltage is corresponding is determined according to comparing result;
Current self-shooting bar is identified according to the self-shooting bar determined.
5. method according to claim 1, it is characterised in that after identify described current self-shooting bar according to comparing result, also include:
Obtain the push button signalling triggered when the button on described current self-shooting bar is pressed;
Described push button signalling is contrasted with the button data pre-set corresponding to described current self-shooting bar with described mobile terminal;
According to comparing result, it is determined that the button being currently pressed.
6. method according to claim 5, it is characterised in that described push button signalling is button magnitude of voltage;
The push button signalling triggered when button on the described current self-shooting bar of described acquisition is pressed, including:
Obtain the button on described current self-shooting bar when being pressed, the current button magnitude of voltage of mike terminals on current self-shooting bar.
7. method according to claim 6, it is characterised in that pre-set button data, including:
After setting self-shooting bar and being connected to described mobile terminal, the multiple button magnitudes of voltage triggered when the button set on self-shooting bar is repeatedly pressed described in acquisition;
Maximum and minima according to the plurality of button magnitude of voltage determine button voltage range;
The corresponding relation that described button voltage range and the marking keys of the button that is pressed and self-shooting bar to be set identify is stored as button data;Self-shooting bar wherein said to be set is same self-shooting bar or different self-shooting bar from described current self-shooting bar.
8. method according to claim 7, it is characterised in that before the push button signalling triggered when the button obtained on described current self-shooting bar is pressed, also include:
By button data write mobile terminal kernel corresponding for the described current self-shooting bar of storage;
Accordingly, described push button signalling is contrasted with the button data pre-set corresponding to described current self-shooting bar with described mobile terminal, including:
By kernel, button voltage range corresponding with current self-shooting bar respectively for current button magnitude of voltage is contrasted.
9. method according to claim 8, it is characterised in that described according to comparing result, it is determined that the button being currently pressed, including:
According to comparing result, it is determined that the button voltage range belonging to described current button magnitude of voltage;
The marking keys that button voltage range belonging to described current button magnitude of voltage is corresponding, it is determined that the button being currently pressed.
10. a self-shooting bar identification device, it is characterised in that including:
Self-shooting bar identification signal acquisition module, for obtaining the self-shooting bar identification signal of mike terminals on the current self-shooting bar being connected with mobile terminal;
Mark Data Comparison module, for contrasting described self-shooting bar identification signal with the self-shooting bar mark data being pre-set in described mobile terminal;
Self-shooting bar identification module, for identifying described current self-shooting bar according to comparing result.
11. device according to claim 10, it is characterised in that described self-shooting bar identification signal is self-shooting bar magnitude of voltage;
Described self-shooting bar identification signal acquisition module specifically for:
By voltage detection unit, obtain the current self-shooting bar magnitude of voltage of mike terminals on described current self-shooting bar.
12. device according to claim 11, it is characterised in that also include mark data presetting module, being used for pre-setting self-shooting bar mark data, described mark data presetting module includes:
Self-shooting bar magnitude of voltage acquiring unit, for after setting self-shooting bar and being connected to described mobile terminal, the self-shooting bar magnitude of voltage of mike terminals on self-shooting bar to be set described in acquisition;
Mark data storage cell, the corresponding relation for being identified by the self-shooting bar of described self-shooting bar magnitude of voltage with self-shooting bar described to be set identifies data as self-shooting bar and stores; Self-shooting bar wherein said to be set is same self-shooting bar or different self-shooting bar from described current self-shooting bar.
13. device according to claim 12, it is characterised in that described self-shooting bar identification module includes:
Self-shooting bar mark determines unit, for determining, according to comparing result, the self-shooting bar mark that described current self-shooting bar magnitude of voltage is corresponding;
Self-shooting bar recognition unit, for identifying current self-shooting bar according to the self-shooting bar determined.
14. device according to claim 10, it is characterised in that also include:
Push button signalling acquisition module, for, after identify described current self-shooting bar according to comparing result, obtaining the push button signalling triggered when the button on described current self-shooting bar is pressed;
Button data contrast module, for contrasting described push button signalling with the button data pre-set corresponding to described current self-shooting bar with described mobile terminal;
Button determines module, for according to comparing result, it is determined that the button being currently pressed.
15. device according to claim 14, it is characterised in that described push button signalling is button magnitude of voltage;
Described push button signalling acquisition module specifically for:
Obtain the button on described current self-shooting bar when being pressed, the current button magnitude of voltage of mike terminals on current self-shooting bar.
16. device according to claim 15, it is characterised in that also include button data presetting module, being used for pre-setting button data, described button data presetting module includes:
Button magnitude of voltage acquiring unit, for after setting self-shooting bar and being connected to mobile terminal, the multiple button magnitudes of voltage triggered when the button set on self-shooting bar is repeatedly pressed described in acquisition;
First button voltage range determines unit, determines button voltage range for maximum and the minima according to the plurality of button magnitude of voltage;
Button data memory element, for storing the corresponding relation that described button voltage range and the marking keys of the button that is pressed and self-shooting bar to be set identify as button data; Self-shooting bar wherein said to be set is same self-shooting bar or different self-shooting bar from described current self-shooting bar.
17. device according to claim 16, it is characterised in that also include:
Button data writing module, before the push button signalling triggered during for being pressed at the button obtained on described current self-shooting bar, by button data write mobile terminal kernel corresponding for the described current self-shooting bar of storage;
Accordingly, described button data contrast module specifically for:
By kernel, button voltage range corresponding with current self-shooting bar respectively for current button magnitude of voltage is contrasted.
18. device according to claim 17, it is characterised in that described button determines that module includes:
Second button voltage range determines unit, for according to comparing result, it is determined that the button voltage range belonging to described current button magnitude of voltage;
Button determines unit, for the marking keys that the button voltage range belonging to described current button magnitude of voltage is corresponding, it is determined that the button being currently pressed.
19. a mobile terminal, it is characterised in that described mobile terminal includes the self-shooting bar identification device described in any one of claim 10-18.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610064329.3A CN105681951B (en) | 2016-01-29 | 2016-01-29 | A kind of self-shooting bar recognition methods, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610064329.3A CN105681951B (en) | 2016-01-29 | 2016-01-29 | A kind of self-shooting bar recognition methods, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105681951A true CN105681951A (en) | 2016-06-15 |
CN105681951B CN105681951B (en) | 2018-03-06 |
Family
ID=56234704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610064329.3A Expired - Fee Related CN105681951B (en) | 2016-01-29 | 2016-01-29 | A kind of self-shooting bar recognition methods, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105681951B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030189A (en) * | 2007-03-09 | 2007-09-05 | 华为技术有限公司 | Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface |
CN103686535A (en) * | 2013-12-02 | 2014-03-26 | Tcl集团股份有限公司 | Terminal capable of automatically recognizing headset microphone and karaoke devices, and recognition method thereof |
CN104461568A (en) * | 2014-12-25 | 2015-03-25 | 小米科技有限责任公司 | Electronic accessory recognition device and method |
CN105120388A (en) * | 2015-08-12 | 2015-12-02 | 青岛海信移动通信技术股份有限公司 | Identification method and device of selfie stick |
CN105163234A (en) * | 2015-08-04 | 2015-12-16 | 广东欧珀移动通信有限公司 | Selfie stick fitting method, device and corresponding mobile device |
-
2016
- 2016-01-29 CN CN201610064329.3A patent/CN105681951B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101030189A (en) * | 2007-03-09 | 2007-09-05 | 华为技术有限公司 | Method for inspecting connected peripheral apparatus mode, terminal, earphone, charger and USB interface |
CN103686535A (en) * | 2013-12-02 | 2014-03-26 | Tcl集团股份有限公司 | Terminal capable of automatically recognizing headset microphone and karaoke devices, and recognition method thereof |
CN104461568A (en) * | 2014-12-25 | 2015-03-25 | 小米科技有限责任公司 | Electronic accessory recognition device and method |
CN105163234A (en) * | 2015-08-04 | 2015-12-16 | 广东欧珀移动通信有限公司 | Selfie stick fitting method, device and corresponding mobile device |
CN105120388A (en) * | 2015-08-12 | 2015-12-02 | 青岛海信移动通信技术股份有限公司 | Identification method and device of selfie stick |
Also Published As
Publication number | Publication date |
---|---|
CN105681951B (en) | 2018-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105094814A (en) | Method and device for notification information display | |
CN102056051B (en) | Electronic device, electronic system, and method for processing signals from an audio accessory thereof | |
CN103607512B (en) | Memo reminding method and terminal | |
CN105094760A (en) | Picture marking method and device | |
CN103118193B (en) | Method and device for switching users by voice based on mobile terminal | |
CN105472771A (en) | Wireless connection method and device | |
CN104866226A (en) | Terminal device and method for controlling same | |
CN104615663A (en) | File sorting method and device and terminal | |
CN105678238A (en) | Fingerprint authentication apparatus and method | |
CN105630749A (en) | Extraction method and device of digital information | |
CN104951470A (en) | Electric coupon content showing method and device | |
CN109065017B (en) | Voice data generation method and related device | |
CN105549851A (en) | Pressure grade setting method and module | |
CN107864442B (en) | Test method based on intelligent voice equipment, intelligent voice equipment and storage medium | |
CN105224057B (en) | A kind of Dynamic Configuration and system of battery of mobile terminal ID | |
CN104268149A (en) | Clustering method and clustering device | |
US8344701B2 (en) | Electronic apparatus with fake charging preventing function and method thereof | |
CN101546594A (en) | System for realizing identification of electronic voice recording equipment | |
CN108801321A (en) | Sensor calibrating method, electronic device and computer readable storage medium | |
CN105681951A (en) | Selfie stick recognition method, selfie stick recognition device and mobile terminal | |
CN105138137A (en) | Method and device for conducting camera shooting by combining fingerprint and volume keys in stand-by state | |
CN104780153A (en) | Method and device for filtering information | |
CN112367583A (en) | Wireless earphone and wearing detection method thereof | |
EP3070961A1 (en) | Circuit for detecting button-pressing action of earphone, terminal, and earphone | |
CN111866644B (en) | Bluetooth headset, detection method and device of Bluetooth headset and storage medium |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180306 |
|
CF01 | Termination of patent right due to non-payment of annual fee |