CN105163234B - A kind of adaptation method of self-shooting bar, device and corresponding mobile device - Google Patents
A kind of adaptation method of self-shooting bar, device and corresponding mobile device Download PDFInfo
- Publication number
- CN105163234B CN105163234B CN201510471558.2A CN201510471558A CN105163234B CN 105163234 B CN105163234 B CN 105163234B CN 201510471558 A CN201510471558 A CN 201510471558A CN 105163234 B CN105163234 B CN 105163234B
- Authority
- CN
- China
- Prior art keywords
- voltage
- self
- button
- shooting bar
- magnitude
- 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.)
- Expired - Fee Related
Links
Landscapes
- Telephone Function (AREA)
- Telephone Set Structure (AREA)
Abstract
The embodiment of the present invention, which provides a kind of adaptation method of self-shooting bar, device and corresponding mobile device, this method, to be included:After headset plug insertion mobile device is detected, if judging, Mike's terminal voltage value is changed, and Mike's terminal voltage value after change is defined as into button magnitude of voltage;Judge whether button magnitude of voltage with photographing instruction has corresponding relation, if being not present, establish the corresponding relation of button magnitude of voltage and photographing instruction.The embodiment of the present invention is by using above-mentioned technical proposal, when user by it is a kind of be not connected in the self-shooting bar being adapted to before dispatching from the factory with mobile device when, mobile device can carry out automatic adaptation by establishing the corresponding relation of button magnitude of voltage and photographing instruction, self-shooting bar after adaptation can normal use, eliminate the worry of user.In addition, after using above-mentioned technical proposal, carry out the compatible self-shooting bar not being adapted to before dispatching from the factory without issuing redaction again, time and the cost of issue redaction can be saved.
Description
Technical field
The present embodiments relate to mobile device technology field, more particularly to a kind of adaptation method of self-shooting bar, device and
Corresponding mobile device.
Background technology
At present, camera has become the standard configuration of most mobile device, with the continuous lifting of camera performance, moves
Camera function in dynamic equipment is also stronger and stronger, to like the user to take pictures to bring facility.
Many mobile device users are all liked carrying out self-timer using mobile device, but because the arm length of oneself is limited, clap
The photo taken the photograph is simultaneously not fully up to expectations, so, the self-shooting bar to arise at the historic moment is become for the indispensable self-timer of many mobile device users
Sharp weapon.
Self-shooting bar on the market is roughly divided into two classes.The first kind, which needs to establish by bluetooth and mobile device, to be connected, but
This self-shooting bar needs to charge, and can not be used if power drain;Second class passes through the headset plug that carries and mobile device
Earphone jack connects, and without charging, camera function can be achieved in the button pressed on self-shooting bar, is easy to use quick.
For above-mentioned second class self-shooting bar, i.e. headset plug (generally 3.5mm four-part forms plug) interconnection system self-shooting bar, its
The course of work is specially:After the earphone jack connection of the headset plug and mobile device of self-shooting bar, user is pressed on self-shooting bar
During button, the magnitude of voltage (can be designated as button magnitude of voltage) at Mike (MIC) end on headset plug can be read in mobile device, and judging should
Whether magnitude of voltage meets photographical condition, if so, then can control camera to take pictures.In order that mobile device connects with above-mentioned headset plug
Formula self-shooting bar cooperating is connect, it is necessary to be fitted to the button magnitude of voltage of several frequently seen self-shooting bar before mobile device dispatches from the factory
Match somebody with somebody, establish the corresponding relation of button magnitude of voltage and photographing instruction.However, the self-shooting bar species of in the market is various, standard differs, such as
By a kind of not when the self-shooting bar being adapted to before dispatching from the factory is connected with mobile device, its button voltage is likely to not meet and wanted fruit user
Ask, so as to cause user to press the button on self-shooting bar can not also to realize to take pictures, influence the normal use of user.
The content of the invention
The purpose of the present invention is to propose to a kind of adaptation method of self-shooting bar, device and corresponding mobile device, to realize movement
Equipment automatic adaptation self-shooting bar.
In a first aspect, the embodiments of the invention provide a kind of adaptation method of self-shooting bar, including:
After headset plug insertion mobile device is detected, if judging, Mike's terminal voltage value changes, after changing
Mike's terminal voltage value be defined as button magnitude of voltage;
Judge whether the button magnitude of voltage with photographing instruction has corresponding relation, if being not present, establish the button
The corresponding relation of magnitude of voltage and the photographing instruction.
Second aspect, the embodiments of the invention provide a kind of adaptive device of self-shooting bar, including:
Button magnitude of voltage determining module, for after headset plug insertion mobile device is detected, Mike end to be electric if judging
Pressure value changes, then Mike's terminal voltage value after change is defined as into button magnitude of voltage;
Corresponding relation building module, for judging whether the button magnitude of voltage with photographing instruction has corresponding relation, if
It is not present, then establishes the corresponding relation of the button magnitude of voltage and the photographing instruction.
The third aspect, the embodiments of the invention provide a kind of mobile device, the mobile device is included in the embodiment of the present invention
Self-shooting bar adaptive device.
The adaptation scheme of the self-shooting bar provided in the embodiment of the present invention, after headset plug insertion mobile device is detected,
If judging, Mike's terminal voltage value is changed, and Mike's terminal voltage value after change is defined as into button magnitude of voltage;Judge button
Whether magnitude of voltage with photographing instruction has corresponding relation, if being not present, establishes that button magnitude of voltage is corresponding with photographing instruction to close
System.By using above-mentioned technical proposal, when user by it is a kind of be not connected in the self-shooting bar being adapted to before dispatching from the factory with mobile device when,
Mobile device can carry out automatic adaptation by establishing the corresponding relation of button magnitude of voltage and photographing instruction, the self-shooting bar after adaptation
Can normal use, eliminate the worry of user.In addition, after using above-mentioned technical proposal, it is next compatible without issuing redaction again
The self-shooting bar not being adapted to before dispatching from the factory, time and the cost of issue redaction can be saved.
Brief description of the drawings
Fig. 1 is a kind of schematic flow sheet of the adaptation method for self-shooting bar that the embodiment of the present invention one provides;
Fig. 2 is a kind of schematic flow sheet of the adaptation method for self-shooting bar that the embodiment of the present invention two provides;
Fig. 3 is a kind of schematic flow sheet of the adaptation method for preferable self-shooting bar that the embodiment of the present invention three provides;
Fig. 4 is a kind of structured flowchart of the adaptive device for self-shooting bar that the embodiment of the present invention four provides.
Embodiment
Further illustrate technical scheme below in conjunction with the accompanying drawings and by embodiment.It is appreciated that
It is that specific embodiment described herein is used only for explaining the present invention, rather than limitation of the invention.Further need exist for illustrating
, for the ease of description, part related to the present invention rather than entire infrastructure are illustrate only in accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail
The processing described as flow chart or method.Although operations (or step) are described as the processing of order by flow chart,
Many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the order of operations can be pacified again
Row.The processing can be terminated when its operations are completed, it is also possible to the additional step being not included in accompanying drawing.Institute
State processing and can correspond to method, function, code, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of schematic flow sheet of the adaptation method for self-shooting bar that the embodiment of the present invention one provides, and this method can be with
Performed by the adaptive device of self-shooting bar, wherein the device can be realized by software and/or hardware, can typically be integrated in mobile device
In.As shown in figure 1, this method includes:
Step 101, detect headset plug insertion mobile device after, if judging, Mike's terminal voltage value changes,
Mike's terminal voltage value after change is defined as button magnitude of voltage.
Exemplary, the mobile device in the present embodiment concretely possesses mobile phone and tablet personal computer of camera function etc. and set
It is standby.Self-shooting bar concretely carries the self-shooting bar of headset plug, can be connected by the earphone jack of headset plug and mobile device,
And mobile device is controlled to take pictures.Device for performing the present embodiment method can specifically be embedded in the system bottom of mobile device.
Exemplary, the supporting headset plug of earphone jack in existing mobile device is generally 3.5mm four-part forms
Plug, including L channel end, R channel end, earth terminal and Mike (MIC) end.When the earphone of headset plug insertion mobile device is inserted
Kong Shi, MIC end can be applied in certain voltage, can by analog-digital converter (Analog-to-Digital Converter,
ADC MIC ends) are read to ground voltage value (hereinafter referred to as MIC terminal voltage values).
In the present embodiment, when detecting that MIC terminal voltage values are in preset range, it may be determined that to detect headset plug
Insert mobile device.Exemplary, when the earphone jack of headset plug insertion mobile device, MIC ends can be typically applied in
1.9V voltage, typically when the MIC terminal voltage values read are in more than 1.2V, it may be determined that to detect that headset plug inserts,
I.e. above-mentioned preset range is concretely between 1.2V to 1.9V.
After headset plug insertion mobile device is detected, if judging, MIC terminal voltage values change, can be by after change
MIC terminal voltage values be defined as button magnitude of voltage.Exemplary, when the button on self-shooting bar is pressed, inside mobile device
Processor can switching circuit, now MIC terminal voltage values can change, such as be changed into 0.27V from 1.5V, can be by after change
MIC terminal voltage values (0.27V) are defined as button magnitude of voltage.
Step 102, judge whether button magnitude of voltage with photographing instruction has corresponding relation, if being not present, establish button
The corresponding relation of magnitude of voltage and photographing instruction.
Exemplary, because the specification of various self-shooting bars has differences, the earth impedance at the MIC ends of its Earphone joint is not
Together, typically from hundreds of Europe to several kilo-ohms, so as to cause when the button on self-shooting bar is pressed, MIC ends that ADC is read
Magnitude of voltage (button magnitude of voltage) is also different.Existing mobile device is before dispatching from the factory, it will usually is carried out with several frequently seen self-shooting bar
Adaptation, the button magnitude of voltage of these self-shooting bars and photographing instruction are established into corresponding relation.User inserts the headset plug of self-shooting bar
After entering mobile device, if the self-shooting bar that user now inserts is a mobile device dispatch from the factory before be adapted to self-shooting bar when, press
After button on self-shooting bar, the button magnitude of voltage that ADC is read will have corresponding relation with photographing instruction, can be according to corresponding relation
Photographing instruction is directly performed, such as key assignments is reported to upper strata, associative operation of taking pictures is continued executing with by upper strata, so as to realize work(of taking pictures
Energy;If the self-shooting bar that user now inserts was not adapted to before mobile device dispatches from the factory, and judged its button magnitude of voltage and finger of taking pictures
Corresponding relation is not present in order, then can establish the corresponding relation of the button magnitude of voltage and photographing instruction.When reusing this next time
During self-shooting bar, there is corresponding relation in the button magnitude of voltage and photographing instruction that will judge the self-shooting bar, can be according to corresponding relation
Directly perform photographing instruction.
The adaptation method of the self-shooting bar provided in the embodiment of the present invention one, detecting headset plug insertion mobile device
Afterwards, if judging, Mike's terminal voltage value is changed, and Mike's terminal voltage value after change is defined as into button magnitude of voltage;Judgement is pressed
Whether key magnitude of voltage with photographing instruction has corresponding relation, if being not present, it is corresponding with photographing instruction to establish button magnitude of voltage
Relation.By using above-mentioned technical proposal, when a kind of self-shooting bar not being adapted to before dispatching from the factory is connected by user with mobile device
When, mobile device can carry out automatic adaptation by establishing the corresponding relation of button magnitude of voltage and photographing instruction, after adaptation from
Dabber can normal use, eliminate the worry of user.In addition, after using above-mentioned technical proposal, without issuing redaction again
The self-shooting bar that compatibility is not adapted to before dispatching from the factory, time and the cost of issue redaction can be saved.
On the basis of above-described embodiment, the corresponding relation of button magnitude of voltage and photographing instruction is established, specifically may include:It is aobvious
Show the inquiry message for whether having inserted self-shooting bar;When detecting that the confirmation operation of self-shooting bar has been inserted in user's triggering, foundation is pressed
The corresponding relation of key magnitude of voltage and photographing instruction.Exemplary, when the headset plug of insertion is not the headset plug of self-shooting bar
When, for example, insertion be a line control earphone headset plug, when the buttons such as the volume key on line control earphone are pressed, MIC
Terminal voltage value can also change, and the magnitude of voltage that now ADC is read also will not have corresponding relation with photographing instruction.In order to keep away
Exempt from the part equipped with headset plug beyond self-shooting bar being mistakenly considered self-shooting bar, can first display whether to have inserted the inquiry of self-shooting bar
Information, such as display " has inserted self-shooting bar on the display screen of mobile deviceYes/No ", if user clicks on "Yes", it can examine
The confirmation operation that self-shooting bar has been inserted in user's triggering is measured, can then establish button magnitude of voltage pass corresponding with photographing instruction
System.Certainly, if the MIC terminal voltage values read have established with associative operation instructions such as volume adjustings in a mobile device
Corresponding relation, also can directly perform associative operation, now need to consider the working condition that mobile device is current, such as determine movement
When equipment is currently at music state, the associative operations such as volume adjusting can be directly performed.
Embodiment two
Fig. 2 be the embodiment of the present invention two provide a kind of self-shooting bar adaptation method schematic flow sheet, the present embodiment with
Optimized based on above-described embodiment, in the present embodiment, " it is corresponding will to judge whether button magnitude of voltage exists with photographing instruction
Relation " is optimized for:Whether inquiry button magnitude of voltage is contained in the self-shooting bar button voltage adaptation set pre-established, according to inquiry
As a result judge whether button magnitude of voltage with photographing instruction has corresponding relation;" pair of button magnitude of voltage and photographing instruction will be established
Should be related to " it is optimized for:Button magnitude of voltage is added to the self-shooting bar button voltage adaptation set pre-established.
Accordingly, the method for the present embodiment comprises the following steps:
Step 201, detect headset plug insertion mobile device after, if judging, Mike's terminal voltage value changes,
Mike's terminal voltage value after change is defined as button magnitude of voltage.
Whether step 202, inquiry button magnitude of voltage are contained in the self-shooting bar button voltage adaptation set pre-established, if
It is that then explanation need not be adapted to, and can terminate flow;Otherwise, step 203 is performed.
Step 203, button magnitude of voltage is added to the self-shooting bar button voltage adaptation set pre-established.
It is exemplary, after mobile device dispatches from the factory, when self-shooting bar is connected by user with mobile device for the first time, pre-establish from
It specifically may include the self-shooting bar button magnitude of voltage being adapted to before dispatching from the factory, these button magnitudes of voltage in dabber button voltage adaptation set
It is probably discrete numerical value, such as 0.1V, 0.15V, 0.27V ...;It is also likely to be all magnitudes of voltage within the scope of one, such as 0.1V
To all magnitudes of voltage between 0.27V.If the self-shooting bar that user now inserts is a mobile device dispatch from the factory before be adapted to from
During dabber, then button magnitude of voltage will be contained in the self-shooting bar button voltage adaptation set pre-established, it is not necessary to fitted
Match somebody with somebody, you can directly perform photographing instruction, such as key assignments is reported to upper strata, associative operation of taking pictures is continued executing with by upper strata, so as to real
Existing camera function;If the self-shooting bar that user now inserts was not adapted to before mobile device dispatches from the factory, and through inquiry button magnitude of voltage
(such as 0.3V) is not included in the self-shooting bar button voltage adaptation set that pre-establishes, can now be added the button magnitude of voltage pre-
The self-shooting bar button voltage adaptation set first established, the self-shooting bar button voltage adaptation set pre-established is carried out more with realizing
Newly, self-shooting bar adaptation procedure is completed.When reusing the self-shooting bar next time, the button magnitude of voltage of the self-shooting bar will be inquired
It is contained in the self-shooting bar button voltage adaptation set pre-established after renewal.
Whether the adaptation method for the self-shooting bar that the embodiment of the present invention two provides, be contained in advance by inquiry button magnitude of voltage
The self-shooting bar button voltage adaptation set of foundation, can be right to judge whether button magnitude of voltage has corresponding relation with photographing instruction
Self-shooting bar button voltage is managed concentratedly, improves the recognition efficiency and Adaption efficiency of self-shooting bar.
, it is necessary to which explanation, before mobile device dispatches from the factory, can also pre-establish a sky on the basis of above-described embodiment
Self-shooting bar button voltage adaptation set, during any one self-shooting bar of user's first connection, mobile device can be by execution
The method for stating embodiment carries out automatic adaptation to the self-shooting bar.
On the basis of above-described embodiment, the self-shooting bar button voltage adaptation set that pre-establishes may include the first array and
Second array.Wherein, the first array is used for the button magnitude of voltage for storing conventional self-shooting bar;Button magnitude of voltage is added and pre-established
Self-shooting bar button voltage adaptation set, be specially:Button magnitude of voltage is write into the second array.Conventional self-shooting bar concretely exists
The self-shooting bar that mobile device was adapted to before dispatching from the factory.This have the advantage that the self-shooting bar being adapted to before dispatching from the factory and user
The self-shooting bar being voluntarily adapted to during use carries out grouping management, can maintain easily and call.
On the basis of above-mentioned the present embodiment, in the self-shooting bar button voltage adaptation for pre-establishing the addition of button magnitude of voltage
While set, MIC terminal voltage values when also headset plug corresponding to the button magnitude of voltage can just have been inserted into mobile device also add
Enter the self-shooting bar button voltage adaptation set pre-established, and corresponding relation is established with button magnitude of voltage, to record the self-shooting bar
More parameter informations.
Embodiment three
A kind of schematic flow sheet of the adaptation method for preferable self-shooting bar that Fig. 3 provides for the embodiment of the present invention three, the party
Method can be performed by the adaptive device of self-shooting bar, and the device can be integrated in the smart mobile phone for being provided with camera.This method has
Body comprises the following steps:
Step 301, establish the first array of self-shooting bar button voltage adaptation and self-shooting bar button the second array of voltage adaptation.
Exemplary, specifically it can establish the first array of self-shooting bar button voltage adaptation and oneself in the system bottom of smart mobile phone
Dabber button the second array of voltage adaptation.Wherein, the array of self-shooting bar button voltage adaptation first can specifically be named as btn_low
[] array, for storing the button magnitude of voltage of conventional self-shooting bar;Self-shooting bar button the second array of voltage adaptation can be specifically named as
Btn_low_other_selfstick [] array, for store user using during mobile phone, be voluntarily adapted to from
Button magnitude of voltage corresponding to dabber.
Exemplary, the bottom code of btn_low [] array is as follows:
U16*btn_low, * btn_high;
Btn_low=wcd9xxx_mbhc_cal_btn_det_mp (btn_cfg, MBHC_BTN_DET_V_BTN_LOW);
Btn_low [0]=- 50;
Btn_low [1]=21;
Btn_low [2]=62;
Btn_low [3]=150;
Btn_low [4]=149;
Btn_low [5]=190;
Btn_low [6]=229;
Btn_low [7]=270;
As shown in above-mentioned code, 8 button magnitudes of voltage, btn_low [7]=270 expressions pair are included in btn_low [] array
The button magnitude of voltage for the self-shooting bar answered is 0.27V.
Whether the MIC terminal voltage values that step 302, judgement detect are in preset range, if so, then performing step 303;
Otherwise, flow is terminated.
Step 303, judge whether MIC terminal voltage values change, if so, then performing step 304;Otherwise, repeat
This step.
Step 304, the MIC magnitudes of voltage after change are defined as button magnitude of voltage.
Step 305, inquiry button magnitude of voltage whether be contained in the first array of self-shooting bar button voltage adaptation or self-shooting bar by
In the array of key voltage adaptation second, if so, then explanation need not be adapted to, flow can be terminated;Otherwise, step 306 is performed.
Exemplary, if user was not adapted to self-shooting bar voluntarily, btn_low_other_selfstick [] array is sky
's.When button magnitude of voltage is 0.3V, this magnitude of voltage of 0.3V is not inquired in btn_low [] array, can continue executing with step
Rapid 306.
Step 306, display whether to have inserted the inquiry message of self-shooting bar.
Step 307, judge whether to detect the confirmation operation that self-shooting bar has been inserted in user's triggering, if so, then performing step
308;Otherwise, flow is terminated.
Step 308, button magnitude of voltage is write to self-shooting bar button the second array of voltage adaptation, end adaptation flow.
Exemplary, above-mentioned button magnitude of voltage 0.3V is write into btn_low_other_selfstick [] array.Work as user
When pressing the button of self-shooting bar again, corresponding button can be found in btn_low_other_selfstick [] array
Magnitude of voltage 0.3V, so as to directly perform photographing instruction.
The adaptation method for the preferable self-shooting bar that the present embodiment three provides, can make smart mobile phone voluntarily to be not adapted to from
Dabber carries out dynamic adaptation, so as to compatible all self-shooting bar on the market.For the smart mobile phone to have dispatched from the factory, only send out
Software of cloth, carry out the compatible self-shooting bar not being adapted to before dispatching from the factory without issuing redaction again, issue redaction can be saved
Time and cost.
Example IV
Fig. 4 is a kind of structured flowchart of the adaptive device for self-shooting bar that the embodiment of the present invention four provides, and the device can be by soft
Part and/or hardware are realized, are typically integrated in mobile device, can be realized self-shooting bar by performing the adaptation method of self-shooting bar
Adaptation.As shown in figure 4, the device includes:Button magnitude of voltage determining module 401 and corresponding relation building module 402.
Wherein, button magnitude of voltage determining module 401, for detect headset plug insertion mobile device after, if judge
Mike's terminal voltage value changes, then Mike's terminal voltage value after change is defined as into button magnitude of voltage;Corresponding relation establishes mould
Block 402, for judging whether the button magnitude of voltage with photographing instruction has corresponding relation, if being not present, establish described in press
The corresponding relation of key magnitude of voltage and the photographing instruction.
On the basis of above-described embodiment, corresponding relation building module may include query unit and add unit.Wherein, look into
Inquiry unit, the self-shooting bar button voltage adaptation set pre-established for inquiring about the button magnitude of voltage whether to be contained in, according to
Query Result judges whether the button magnitude of voltage with photographing instruction has corresponding relation;Unit is added, in Query Result
When being not included in the self-shooting bar button voltage adaptation set pre-established for the button magnitude of voltage, the button magnitude of voltage is added
Enter the self-shooting bar button voltage adaptation set pre-established.
On the basis of above-described embodiment, the self-shooting bar button voltage adaptation set that pre-establishes may include the first array and
Second array.Wherein, the first array is used for the button magnitude of voltage for storing conventional self-shooting bar;Unit is added to be particularly used in:Looking into
When inquiry result is that the button magnitude of voltage is not included in the self-shooting bar button voltage adaptation set pre-established, by button electricity
Pressure value writes second array.
On the basis of above-described embodiment, corresponding relation building module may also include display unit and determining unit.Wherein,
Display unit, for when it is determined that corresponding relation is not present with photographing instruction in the button magnitude of voltage, displaying whether to be inserted from
The inquiry message of dabber;Determining unit, for when detecting that the confirmation operation of self-shooting bar has been inserted in user's triggering, described in foundation
The corresponding relation of button magnitude of voltage and the photographing instruction.
On the basis of above-described embodiment, detect that headset plug inserts mobile device, be specially:When detecting Mike end
When magnitude of voltage is in preset range, it is determined that to detect that headset plug inserts mobile device.
Embodiment five
The embodiment of the present invention five provides a kind of mobile device, and the equipment includes the self-shooting bar described in the embodiment of the present invention
Adaptive device, it can voluntarily be adapted to self-shooting bar by performing the adaptation method of the self-shooting bar described in the embodiment of the present invention.
Exemplary, the mobile device in the present embodiment concretely possesses the smart mobile phone and tablet personal computer of camera function
Etc. equipment.
The said goods can perform the adaptation method for the self-shooting bar that any embodiment of the present invention is provided, and possess execution method phase
The functional module and beneficial effect answered.Not ins and outs of detailed description in the present embodiment, implement reference can be made to the present invention is any
The adaptation method for the self-shooting bar that example is provided.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (8)
- A kind of 1. adaptation method of self-shooting bar, it is characterised in that including:After headset plug insertion mobile device is detected, if judging, Mike's terminal voltage value changes, by the wheat after change Gram terminal voltage value is defined as button magnitude of voltage;Judge whether the button magnitude of voltage with photographing instruction has corresponding relation, if being not present, display whether to be inserted from The inquiry message of dabber, when detect user triggering inserted self-shooting bar confirmation operation when, establish the button magnitude of voltage with The corresponding relation of the photographing instruction.
- 2. according to the method for claim 1, it is characterised in that judge whether the button magnitude of voltage exists with photographing instruction Corresponding relation, including:Inquire about whether the button magnitude of voltage is contained in the self-shooting bar button voltage adaptation set pre-established, according to Query Result Judge whether the button magnitude of voltage with photographing instruction has corresponding relation;The corresponding relation for establishing the button magnitude of voltage and the photographing instruction, including:The self-shooting bar button voltage adaptation set that will be pre-established described in button magnitude of voltage addition.
- 3. according to the method for claim 2, it is characterised in that the self-shooting bar button voltage adaptation set pre-established Including the first array and the second array;Wherein, first array is used for the button magnitude of voltage for storing conventional self-shooting bar;The self-shooting bar button voltage adaptation set that will be pre-established described in button magnitude of voltage addition, including:The button magnitude of voltage is write into second array.
- 4. according to the method for claim 1, it is characterised in that it is described to detect that headset plug inserts mobile device, specifically For:When detecting that Mike's terminal voltage value is in preset range, it is determined that to detect that headset plug inserts mobile device.
- A kind of 5. adaptive device of self-shooting bar, it is characterised in that including:Button magnitude of voltage determining module, for detect headset plug insertion mobile device after, if judging Mike's terminal voltage value Change, then Mike's terminal voltage value after change is defined as button magnitude of voltage;Corresponding relation building module, for judging whether the button magnitude of voltage with photographing instruction has corresponding relation, if not depositing Then establishing the corresponding relation of the button magnitude of voltage and the photographing instruction;Wherein, the corresponding relation building module includes:Display unit, for when it is determined that corresponding relation is not present with photographing instruction in the button magnitude of voltage, displaying whether to have inserted Enter the inquiry message of self-shooting bar;Determining unit, for when detecting that the confirmation operation of self-shooting bar has been inserted in user's triggering, establishing the button magnitude of voltage With the corresponding relation of the photographing instruction.
- 6. device according to claim 5, it is characterised in that the corresponding relation building module includes:Query unit, the self-shooting bar button voltage adaptation collection pre-established for inquiring about the button magnitude of voltage whether to be contained in Close, judge whether the button magnitude of voltage with photographing instruction has corresponding relation according to Query Result;Unit is added, for being that the self-shooting bar button voltage that the button magnitude of voltage is not included in pre-establishing is fitted in Query Result During with set, will the button magnitude of voltage add described in the self-shooting bar button voltage adaptation set that pre-establishes.
- 7. device according to claim 6, it is characterised in that the self-shooting bar button voltage adaptation set pre-established Including the first array and the second array;Wherein, first array is used for the button magnitude of voltage for storing conventional self-shooting bar;The addition unit is specifically used for:When Query Result is that the button magnitude of voltage is not included in the self-shooting bar button voltage adaptation set pre-established, by institute State button magnitude of voltage and write second array.
- A kind of 8. mobile device, it is characterised in that the adaptation dress including the self-shooting bar as any one of claim 5-7 Put.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510471558.2A CN105163234B (en) | 2015-08-04 | 2015-08-04 | A kind of adaptation method of self-shooting bar, device and corresponding mobile device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510471558.2A CN105163234B (en) | 2015-08-04 | 2015-08-04 | A kind of adaptation method of self-shooting bar, device and corresponding mobile device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105163234A CN105163234A (en) | 2015-12-16 |
CN105163234B true CN105163234B (en) | 2018-02-02 |
Family
ID=54803972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510471558.2A Expired - Fee Related CN105163234B (en) | 2015-08-04 | 2015-08-04 | A kind of adaptation method of self-shooting bar, device and corresponding mobile device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105163234B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105635583A (en) * | 2016-01-27 | 2016-06-01 | 宇龙计算机通信科技(深圳)有限公司 | Shooting method and device |
CN105744155B (en) * | 2016-01-29 | 2018-06-08 | 广东欧珀移动通信有限公司 | A kind of self-shooting bar button calibration method, device and mobile terminal |
CN105611446B (en) * | 2016-01-29 | 2018-03-06 | 广东欧珀移动通信有限公司 | Self-shooting bar recognition methods, device and mobile terminal |
CN105611448B (en) * | 2016-01-29 | 2018-03-27 | 广东欧珀移动通信有限公司 | A kind of self-shooting bar recognition methods, device and mobile terminal |
CN105611449B (en) * | 2016-01-29 | 2018-04-06 | 广东欧珀移动通信有限公司 | A kind of method, apparatus and mobile terminal for identifying self-shooting bar |
CN105677603B (en) * | 2016-01-29 | 2018-01-19 | 广东欧珀移动通信有限公司 | A kind of method, apparatus and mobile terminal for identifying self-shooting bar |
CN105611450B (en) * | 2016-01-29 | 2018-03-09 | 广东欧珀移动通信有限公司 | A kind of method, apparatus 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 |
CN105681951B (en) * | 2016-01-29 | 2018-03-06 | 广东欧珀移动通信有限公司 | A kind of self-shooting bar recognition methods, device and mobile terminal |
CN105635486B (en) * | 2016-03-01 | 2019-05-10 | Oppo广东移动通信有限公司 | A kind of method and terminal starting self-shooting bar photographing mode |
CN108882082B (en) * | 2018-05-18 | 2020-08-18 | 深圳市沃特沃德股份有限公司 | Method for sending instruction to Bluetooth headset and storage box |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627238A (en) * | 2003-12-10 | 2005-06-15 | 联想(北京)有限公司 | Wire controlled device and method for recognizing key-press operations through the device |
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 |
US8290537B2 (en) * | 2008-09-15 | 2012-10-16 | Apple Inc. | Sidetone adjustment based on headset or earphone type |
CN103516865A (en) * | 2012-06-19 | 2014-01-15 | 深圳富泰宏精密工业有限公司 | Photographing system and photographing method |
-
2015
- 2015-08-04 CN CN201510471558.2A patent/CN105163234B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1627238A (en) * | 2003-12-10 | 2005-06-15 | 联想(北京)有限公司 | Wire controlled device and method for recognizing key-press operations through the device |
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 |
US8290537B2 (en) * | 2008-09-15 | 2012-10-16 | Apple Inc. | Sidetone adjustment based on headset or earphone type |
CN103516865A (en) * | 2012-06-19 | 2014-01-15 | 深圳富泰宏精密工业有限公司 | Photographing system and photographing method |
Also Published As
Publication number | Publication date |
---|---|
CN105163234A (en) | 2015-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105163234B (en) | A kind of adaptation method of self-shooting bar, device and corresponding mobile device | |
RU2632153C2 (en) | Method, device and terminal for displaying virtual keyboard | |
CN104811552B (en) | A kind of shortcut function starts method, apparatus and verbal system | |
CN107482710A (en) | Wireless charging method and terminal | |
CN104503690B (en) | A kind of aligning method and device of application icon | |
CN106775185B (en) | Desktop display method and terminal | |
CN105100460A (en) | Method and system for controlling intelligent terminal by use of sound | |
CN111277991B (en) | Operator name display method and device, mobile terminal and storage medium | |
CN106484199A (en) | Thresholding method to set up and device | |
CN110368676A (en) | Control method, device, storage medium and the electronic equipment of touch information | |
CN107196372A (en) | Charging method and device | |
WO2019042292A1 (en) | Method for responding to incoming call by means of fingerprint recognition, storage medium, and mobile terminal | |
CN107635066A (en) | A kind of Dialing Method and mobile terminal | |
CN105491216A (en) | Incoming call processing method and device, and terminal | |
CN102710846A (en) | System and method for realizing electronic book page turning based on forced induction | |
CN202798883U (en) | Mobile terminal utilizing gesture to carry out quick dialing | |
CN106814958A (en) | The touch control method and device of function key | |
CN103179261B (en) | The system and method for controlling mobile phone through speech is realized based on ambient temperature | |
CN106210961A (en) | Bluetooth earphone and control method thereof | |
CN104821985A (en) | Calling control method and device | |
EP4156666A1 (en) | Call prompting method, call device, readable storage medium and system on chip | |
CN107066197A (en) | The control method and terminal device of terminal device | |
CN103312861A (en) | Control method, control system and equipment containing same | |
CN106210247A (en) | Terminal control method and device | |
CN104219648A (en) | Method and device for prompting top-up information |
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 | ||
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. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180202 |