CN105611448B - A kind of self-shooting bar recognition methods, device and mobile terminal - Google Patents

A kind of self-shooting bar recognition methods, device and mobile terminal Download PDF

Info

Publication number
CN105611448B
CN105611448B CN201610064307.7A CN201610064307A CN105611448B CN 105611448 B CN105611448 B CN 105611448B CN 201610064307 A CN201610064307 A CN 201610064307A CN 105611448 B CN105611448 B CN 105611448B
Authority
CN
China
Prior art keywords
voltage
self
shooting bar
external equipment
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.)
Active
Application number
CN201610064307.7A
Other languages
Chinese (zh)
Other versions
CN105611448A (en
Inventor
袁岩
杨海
郑志勇
吕孝俊
张强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610064307.7A priority Critical patent/CN105611448B/en
Publication of CN105611448A publication Critical patent/CN105611448A/en
Application granted granted Critical
Publication of CN105611448B publication Critical patent/CN105611448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection 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)

Abstract

The invention discloses a kind of self-shooting bar and self-shooting bar recognition methods, device and mobile terminal.Methods described includes:When the headset plug of external equipment inserts the earphone jack of mobile terminal, the second voltage at the R channel port of first voltage and the headset plug at the L channel port of the headset plug is obtained;Judge whether the external equipment is self-shooting bar according to the first voltage and the second voltage.The present invention is after external equipment is inserted into the earphone jack of mobile terminal by earphone, the second voltage at first voltage and R channel port at the L channel port of acquisition for mobile terminal earphone jack, and determine whether external equipment is self-shooting bar according to the numerical values recited of first voltage and second voltage, and then mobile terminal changes to screening-mode when connecting self-shooting bar.Mobile terminal automatic identification self-shooting bar and the mobile terminal automatic start screening-mode after self-shooting bar is recognized are realized, simplifies user's operation, improves Consumer's Experience.

Description

A kind of self-shooting bar recognition methods, device and mobile terminal
Technical field
The present embodiments relate to self-shooting bar identification technology, more particularly to a kind of self-shooting bar and self-shooting bar recognition methods, dress Put and mobile terminal.
Background technology
With the development of mobile terminal, mobile terminal is fixed on self-shooting bar and carries out self-timer by increasing people.From The shoot button that dabber includes expansion link, is arranged at the fixed support on expansion link top and is arranged at expansion link bottom, wherein, Gu Fixed rack is used to pick up mobile terminal, the freely adjustable length of expansion link, and the shoot button of expansion link bottom is used to be taken pictures.
In order that mobile terminal can obtain the photographing instruction that user is triggered by shoot button, provide in the prior art It is a kind of headset plug carry out electric signal transmission by way of.One end of wire is four-part form plug, is inserted by four-part form plug Enter into the earphone jack of terminal, the other end connection shoot button of wire.
However, for mobile phone, no matter insert self-shooting bar or insert four-section type headset, mobile phone terminal is all identified as Four-section type headset.If user thinks self-timer, the camera applications in first opening a terminal manually are needed, then be manually switched to preposition shooting Head, operation is relatively complicated, and Consumer's Experience is bad.
The content of the invention
The present invention provides a kind of self-shooting bar and self-shooting bar recognition methods, device and mobile terminal, to realize that terminal is known automatically Other self-shooting bar, simplify the warming-up exercise of self-timer, improve Consumer's Experience.
In a first aspect, the embodiments of the invention provide a kind of self-shooting bar, including headset plug, the left sound of the headset plug Road port and R channel port short circuit, and the L channel port and the R channel port pass through short circuit point and default power supply Positive pole is connected;The negative pole of the default power supply is connected with the grounding ports of the headset plug.
Second aspect, the embodiment of the present invention additionally provide a kind of self-shooting bar recognition methods, including:
When the headset plug of external equipment inserts the earphone jack of mobile terminal, the L channel of the headset plug is obtained First voltage at port and the second voltage at the R channel port of the headset plug;
Judge whether the external equipment is self-shooting bar according to the first voltage and the second voltage.
The third aspect, the embodiment of the present invention additionally provide a kind of self-shooting bar identification device, including:
Voltage acquisition unit, for when the headset plug of external equipment inserts the earphone jack of mobile terminal, obtaining institute State the second voltage at the R channel port of the first voltage and the headset plug at the L channel port of headset plug;
External equipment determining unit, for the first voltage obtained according to the voltage acquisition unit and described second Voltage judges whether the external equipment is self-shooting bar.
Fourth aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal includes third aspect institute The self-shooting bar identification device shown.
Mobile terminal can pass through the first voltage at the L channel port of earphone jack and R channel port in the present invention The second voltage at place determines whether the external equipment of earphone jack connection is self-shooting bar, and then the mobile terminal when connecting self-shooting bar Start screening-mode.Prior art can not to insertion earphone jack in equipment distinguish, therefore when inserting self-shooting bar without Method automatically switches to screening-mode.The present invention is mobile after external equipment is inserted into the earphone jack of mobile terminal by earphone Terminal obtains the first voltage at the L channel port of earphone jack and the second voltage at R channel port, and according to the first electricity The numerical values recited of pressure and second voltage determines whether external equipment is self-shooting bar, and then mobile terminal is changed to when connecting self-shooting bar Screening-mode.Realize mobile terminal automatic identification self-shooting bar and mobile terminal automatic start shoots mould after self-shooting bar is recognized Formula, simplify user's operation, improve Consumer's Experience.
Brief description of the drawings
Fig. 1 is the self-shooting bar structural representation in the embodiment of the present invention one;
Fig. 2 is the self-shooting bar internal circuit schematic diagram in the embodiment of the present invention one;
Fig. 3 is the flow chart of the self-shooting bar recognition methods in the embodiment of the present invention two;
Fig. 4 is the flow chart of the self-shooting bar recognition methods in the embodiment of the present invention three;
Fig. 5 is the structural representation of the self-shooting bar identification device in the embodiment of the present invention four;
Fig. 6 is the structural representation of the mobile terminal in the embodiment of the present invention five.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to just Part related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is the structural representation for the self-shooting bar that the embodiment of the present invention one provides, and self-shooting bar includes the telescopic body of rod, set The fixed support for being placed in body of rod top and the shoot button for being arranged at body of rod bottom, wherein, fixed support is used to pick up movement eventually End, the telescopic freely adjustable length of the body of rod, the shoot button of expansion link bottom are used to be taken pictures.Shoot button and movement The data transfer of terminal can be able to be by wired mode or wireless mode, wired mode:By earphone jack by shoot button The photographing instruction of upper triggering is sent to mobile terminal.Wireless mode can be:It will be triggered by Bluetooth signal in shoot button Photographing instruction is sent to mobile terminal.It should be noted that when using communication, can also be determined by earphone jack Whether self-shooting bar is connected with.Wherein, mobile terminal can be the mobile devices capable of taking pictures such as smart mobile phone, tablet personal computer (PAD).
The self-shooting bar that the present embodiment provides, including headset plug, as shown in Fig. 2 the L channel port of the headset plug With R channel port short circuit, and the positive pole phase that the L channel port and the R channel port pass through short circuit point and default power supply Even;The negative pole of the default power supply is connected with the grounding ports of the headset plug.
In Fig. 2, behind L channel port and R channel port short circuit, L channel port with it is any one on the line of R channel port Point can be used as short circuit point.L channel port is with after the short circuit of R channel port, being connected to the positive pole of default power supply.Default power supply is used Burning voltage is provided in the short-circuit for L channel port and the formation of R channel port, so that mobile terminal can be respectively from a left side Two identical or essentially identical magnitudes of voltage are obtained at sound channel port and R channel port.Meanwhile the voltage that default power supply provides Less than the maximum voltage that voltage measurement chip can measure in mobile terminal, to ensure the stability of voltage measurement.Exemplary, Default power supply provides 5V voltages.
Common headphones, no matter four-section type headset plug or three-section earphone plug, the L channel port of headset plug connects Connect L channel, and the output left audio of the left channel loudspeaker by being connected with L channel;The R channel port of headset plug Connect R channel, and the output right audio channel of the right channel loudspeaker by being connected with R channel.In order to allow L channel and right sound Road can work independently, therefore L channel and R channel be two independent audio output circuits, thus L channel and R channel it Between current loop is not present.Meanwhile when exporting audio by earphone, the voice data of L channel and R channel output is not With, cause the first voltage at L channel port and the second voltage at R channel port.
In the present invention, because self-shooting bar need not provide audio playing function, therefore its L channel port and R channel port It is idle.Behind L channel port and R channel port short circuit, the second electricity at first voltage and R channel at L channel port Press identical, and first voltage and second voltage are equal to the voltage of default positive source.
After the technical scheme self-shooting bar that the present embodiment provides is connected by headset plug with mobile terminal, by mobile terminal point First voltage that Huo Qu be at the L channel port of headset plug and the second voltage at R channel port, then according to the first electricity The numerical values recited of pressure and second voltage determines whether the external equipment of connection is self-shooting bar, and then determines whether that startup is taken pictures mould Formula, simplify user's operation, improve Consumer's Experience.
Embodiment two
Fig. 3 is a kind of flow chart of self-shooting bar recognition methods provided in an embodiment of the present invention, and methods described is applied to movement Terminal, including:
S110, when the headset plug of external equipment inserts the earphone jack of mobile terminal, obtain the left sound of headset plug Second voltage at the R channel port of first voltage and headset plug at road port.
When the headset plug of external equipment inserts the earphone jack of mobile terminal, in mobile terminal triggering headset plugging It is disconnected.When triggering headset plugging interruption, first voltage and earphone at the L channel port of acquisition for mobile terminal headset plug are inserted Second voltage at the R channel port of head.
When headset plug is inserted into the earphone jack of mobile terminal, the L channel port of headset plug and earphone jack L channel port contact;Similarly, R channel port contact, the headset plug of the R channel port of headset plug and earphone jack Microphone port contacted with the microphone port of earphone jack, the grounding ports of the grounding ports of headset plug and earphone jack Contact.The voltage for the L channel port that mobile terminal passes through test earphone jack, it may be determined that the L channel of the headset plug of insertion The first voltage of port;The voltage for the R channel port that mobile terminal passes through test earphone jack, it may be determined that the earphone of insertion is inserted The second voltage of the R channel port of head.The detective pin of chip with voltage measurement function is connected respectively to by mobile terminal Behind the L channel port and R channel port of earphone jack, L channel Port detecting is passed through by the chip with voltage measurement function First voltage, pass through R channel Port detecting second voltage.Exemplary, the chip with voltage measurement function is power management Integrated circuit (Power Management IC, PMIC).
Headset plug can be that four-section type headset plug can also be three-section earphone plug.The plug quilt of four-section type headset Four sections are divided into, corresponds to L channel port (L), R channel port (R), grounding ports (GND) and microphone port respectively (MIC).The plug of three-section earphone is divided into L channel port (L), R channel port (R) and grounding ports (GND).This hair It is bright middle by due to the L channel port of headset plug and R channel port short circuit, therefore the first voltage at L channel port and the right side Second voltage at sound channel port is identical.
S120, according to first voltage and second voltage judge whether external equipment is self-shooting bar.
Preferably, if first voltage and second voltage are equal to predeterminated voltage, it is determined that external equipment is self-shooting bar.Such as Fruit first voltage or second voltage are more than or less than predeterminated voltage, it is determined that external equipment is earphone.Wherein, predeterminated voltage is pre- If the positive electrode potential energy of power supply.
The technical scheme that the present embodiment provides, mobile terminal can pass through the first electricity at the L channel port of earphone jack Pressure determines whether the external equipment that earphone jack connects is self-shooting bar with the second voltage at R channel port, and then works as connection certainly Mobile terminal starts screening-mode during dabber.Prior art can not be distinguished the equipment in insertion earphone jack, therefore is worked as Screening-mode can not be automatically switched to when inserting self-shooting bar.The present embodiment is inserted into mobile terminal when external equipment by earphone After earphone jack, the second electricity at the first voltage and R channel port at the L channel port of acquisition for mobile terminal earphone jack Pressure, and determine whether external equipment is self-shooting bar according to the numerical values recited of first voltage and second voltage, and then when connection self-timer Mobile terminal changes to screening-mode during bar.Realize mobile terminal automatic identification self-shooting bar and moved eventually after self-shooting bar is recognized Automatic start screening-mode is held, simplifies user's operation, improves Consumer's Experience.
Embodiment three
Fig. 4 is a kind of flow chart of self-shooting bar recognition methods provided in an embodiment of the present invention, as entering to embodiment two One step illustrates, S120, according to first voltage and second voltage judges whether external equipment is self-shooting bar, can be entered by following manner Row is implemented:
If S120a, first voltage are identical with second voltage, it is determined that external equipment is self-shooting bar.
After mobile terminal detects first voltage and second voltage, the numerical values recited of first voltage and second voltage is judged. If first voltage value and second voltage value are equal, L channel port and R channel on the headset plug of external equipment can determine that Port short circuit.Because the left and right acoustic channels of common headphones are used for audio output, therefore the magnitude of voltage of L channel port and R channel end The magnitude of voltage of mouth constantly changes with the different of the voice data of output, therefore when first voltage and equal second voltage, Can determine that external equipment is self-shooting bar, improves the recognition speed of self-shooting bar.
Due to may be because of L channel port in headset plug caused by the reasons such as dust granules, loose contact and right sound in circuit Occur interference resistance between road port, cause first voltage that mobile terminal measures and second voltage inconsistent, or due to surveying Chip is measured when existing reasonable error causes first voltage and inconsistent second voltage when measuring voltage, now if strictly pressed Judge that external equipment is self-shooting bar according to first voltage and second voltage identical principle, then may cause erroneous judgement.Based on this, S120 can also be implemented by following manner:
If S120b, first voltage and second voltage difference are less than preset difference value, it is determined that external equipment is self-timer Bar.
The difference that various embodiments of the present invention collect can be regarded as the absolute value of difference.Preset difference value can be first voltage or The preset ratio of second voltage.Preset ratio can beFor example, first voltage is 1 volt, second voltage is 1.02 volts, then the difference of first voltage and second voltage is 0.02 volt.If preset ratio isThen preset difference value is 0.1 Volt, therefore the difference of first voltage and second voltage is less than preset difference value, it may be determined that external equipment is self-shooting bar.
The technical scheme that the present embodiment provides can determine whether external equipment is certainly according to first voltage and second voltage Dabber, improve the speed of self-shooting bar identification.
Further, the L channel of common headphones is identical with the voice data that R channel exports in one extreme case, Now mobile terminal determines that external equipment type has error only according to first voltage and second voltage.Based on this, S120, root Judge whether external equipment is self-shooting bar according to first voltage and second voltage, can also be implemented by following manner:
If S120c, first voltage and second voltage are identical with predeterminated voltage, it is determined that external equipment is self-shooting bar, Predeterminated voltage is the voltage of the positive pole of default power supply.
If first voltage, second voltage are and predeterminated voltage three is identical two-by-two, it is determined that external equipment is self-shooting bar. Such as:The first voltage that mobile terminal measures is 5 volts, second voltage is 5 volts, and the predeterminated voltage to prestore is also 5 volts, Then determine that external equipment is self-shooting bar.
Mobile terminal can read predeterminated voltage from default storage region.Predeterminated voltage can be written to by earphone driver Default storage region.Predeterminated voltage can also control application program to be pre-written into default storage region by self-shooting bar.Self-shooting bar control System application is used to receive the dependent instruction triggered on self-shooting bar, and carries out machine operation according to dependent instruction.Dependent instruction is such as:Clap According to instruction, Focussing instruction etc..
Because corresponding voltage is difficult to hold in predeterminated voltage when headset left channel exports voice data with R channel, therefore It more can accurately determine whether external equipment is self-shooting bar by predeterminated voltage, improve the recognition efficiency of self-shooting bar.
Further, in order to prevent the noise jamming in first voltage and second voltage measurement process, S120 can also pass through Following manner is implemented:
If S120d, the first difference and the second difference are respectively less than preset difference value, it is determined that external equipment is self-shooting bar, the One difference is first voltage and the difference of predeterminated voltage, and the second difference is second voltage and the difference of predeterminated voltage.
Calculate the first difference of first voltage and predeterminated voltage first, and the second of second voltage and predeterminated voltage is poor Value;Then, judge whether the first difference is less than preset difference value, and whether the second difference is less than preset difference value;Finally, if One difference and the second difference are respectively less than preset difference value, it is determined that external equipment is self-shooting bar.
The technical scheme that the present embodiment provides can determine external equipment according to first voltage, second voltage and predeterminated voltage Whether it is self-shooting bar, improves the accuracy of self-shooting bar identification.
Further, in S120, judge according to first voltage and second voltage whether external equipment is self-shooting bar after, also Including:
If S130, external equipment connect for self-shooting bar, start screening-mode.
If S140, front camera be present, start the front camera.
If S120 determines that mobile terminal is connected with self-shooting bar, mobile terminal is switched to screening-mode.It is specifically, mobile Terminal judges whether current state is screening-mode.If screening-mode, then further determine whether to start front camera; Mobile terminal waits user to input photographing instruction if front camera is had been turned on;If it is not actuated it is preposition stretch to head, open Dynamic front camera.If current state is non-exposal model, start application of taking pictures, and start front camera.Wherein, it is non- Exposal model can be the non-exposal model under standby mode and mode of operation.
The technical scheme that the present embodiment provides, mobile terminal changes to screening-mode when it is determined that external equipment is self-shooting bar. Mobile terminal automatic identification self-shooting bar and the mobile terminal automatic start screening-mode after self-shooting bar is recognized are realized, simplifies and uses Family operates, and improves Consumer's Experience.
Example IV
Fig. 5 is a kind of structural representation for self-shooting bar identification device that the embodiment of the present invention four provides, and the self-shooting bar is known Other device 1 is located in mobile terminal, for realizing embodiment one and the method shown in embodiment two, the self-shooting bar identification device 1 includes:
Voltage acquisition unit 11, for when the headset plug of external equipment inserts the earphone jack of mobile terminal, obtaining First voltage at the L channel port of the headset plug and the second voltage at the R channel port of the headset plug;
External equipment determining unit 12, for the first voltage that is obtained according to the voltage acquisition unit 11 and described Second voltage judges whether the external equipment is self-shooting bar.
Further, the external equipment determining unit 12 is specifically used for:
If the first voltage that the voltage acquisition unit 11 obtains is identical with the second voltage, it is determined that described External equipment is self-shooting bar;
Or if the difference for the first voltage and the second voltage that the voltage acquisition unit 11 obtains is less than Preset difference value, it is determined that the external equipment is self-shooting bar.
Further, the external equipment determining unit 12 is specifically used for:
If the first voltage and the second voltage that the voltage acquisition unit 11 obtains with predeterminated voltage phase Together, it is determined that the external equipment is self-shooting bar;
Or if the first difference and the second difference are respectively less than preset difference value, it is determined that the external equipment is self-shooting bar, First difference is the first voltage that the voltage acquisition unit 11 obtains and the difference of predeterminated voltage, and described second is poor It is worth the difference for the second voltage that the voltage acquisition unit 11 obtains and the predeterminated voltage.
Further, in addition to mode switch element 13, the mode switch element 13 are used for:
If the external equipment determining unit 12 determines that the external equipment is self-shooting bar, start application of taking pictures;
If front camera be present, start the front camera.
The self-shooting bar identification device that the present embodiment provides, can pass through the first voltage at the L channel port of earphone jack Determine whether the external equipment that earphone jack connects is self-shooting bar with the second voltage at R channel port, and then when connection self-timer Mobile terminal starts screening-mode during bar.Prior art can not be distinguished the equipment in insertion earphone jack, therefore is worked as and inserted Screening-mode can not be automatically switched to when entering self-shooting bar.The self-shooting bar identification device that the present embodiment provides can lead to when external equipment Cross after earphone is inserted into the earphone jack of mobile terminal, the first voltage at the L channel port of acquisition for mobile terminal earphone jack With the second voltage at R channel port, and according to the numerical values recited of first voltage and second voltage determine external equipment whether be Self-shooting bar, and then mobile terminal changes to screening-mode when connecting self-shooting bar.Realize mobile terminal automatic identification self-shooting bar and The mobile terminal automatic start screening-mode after self-shooting bar is recognized, simplify user's operation, improve Consumer's Experience.
Embodiment five
Fig. 6 is a kind of structural representation for mobile terminal that the embodiment of the present invention five provides, and the mobile terminal includes Fig. 5 Shown self-shooting bar identification device 1, the mobile terminal are used to implement the self-shooting bar recognition methods provided in above-described embodiment.Move Dynamic terminal 2 can include communication unit 21, include memory 22, the input block of at least one computer-readable recording medium 23rd, display unit 24, sensor 25, voicefrequency circuit 26, WIFI (Wireless Fidelity, Wireless Fidelity) module 27, bag Include the parts such as processor 28 and the power supply 29 of at least one processing core.It will be understood by those skilled in the art that show in figure The mobile terminal structure gone out does not form the restriction to mobile terminal, can include parts more more or less than diagram, or Combine some parts, or different parts arrangement.Specifically:
Communication unit 21 can be used for receive and send messages or communication process in, the reception and transmission of signal, the communication unit 21 can Think RF (Radio Frequency, radio frequency) circuit, router, modem, etc. network communication equipment.Especially, when logical Unit 21 is believed when be RF circuits, after the downlink information reception of base station, transfers to one or more than one processor 28 is handled;Separately Outside, up data will be related to and is sent to base station.Include but is not limited to antenna, at least usually as the RF circuits of communication unit One amplifier, tuner, one or more oscillators, subscriber identity module (SIM) card, transceiver, coupler, LNA (Low Noise Amplifier, low-noise amplifier), duplexer etc..In addition, communication unit 21 can also pass through radio communication Communicated with network and other equipment.The radio communication can use any communication standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), (Code Division Multiple Access, code division are more by CDMA Location), WCDMA (Wideband Code Division Multiple Access, WCDMA), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc..Memory 22 can be used for storage software program and module, and processor 28 is stored in the software program and mould of memory 22 by operation Block, so as to perform various function application and data processing.Memory 22 can mainly include storing program area and storage data field, Wherein, storing program area can storage program area, application program (such as sound-playing function, figure needed at least one function As playing function etc.) etc.;Storage data field can store according to mobile terminal use created data (such as voice data, Phone directory etc.) etc..In addition, memory 22 can include high-speed random access memory, nonvolatile memory can also be included, A for example, at least disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 22 is gone back Memory Controller can be included, to provide the access of processor 28 and input block 23 to memory 22.
Input block 23 can be used for the numeral or character information for receiving input, and generation is set with user and function control It is formed with keyboard, mouse, action bars, optics or the input of trace ball signal of pass.Preferably, input block 23 may include touch-sensitive table Face 231 and other input equipments 232.Touch sensitive surface 231, also referred to as touch display screen or Trackpad, collect user and exist On or near it touch operation (such as user using any suitable object or annex such as finger, stylus in touch sensitive surface 231 The upper or operation near touch sensitive surface 231), and corresponding attachment means are driven according to formula set in advance.Optionally, touch Sensitive surfaces 231 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detects user's Touch orientation, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch detection Touch information is received on device, and is converted into contact coordinate, then gives processor 28, and can reception processing device 28 send Order and performed.Touched furthermore, it is possible to be realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves Sensitive surfaces 231.Except touch sensitive surface 231, input block 23 can also include other input equipments 232.Preferably, other are inputted Equipment 232 can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One or more in mark, action bars etc..
Display unit 24 can be used for display by the information of user's input or be supplied to the information and mobile terminal of user Various graphical user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination. Display unit 24 may include display panel 241, optionally, can use LCD (Liquid Crystal Display, liquid crystal Show device), the form such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 241.Further, touch sensitive surface 231 can cover display panel 241, when touch sensitive surface 231 detects touching on or near it After touching operation, processor 28 is sent to determine the type of touch event, is followed by subsequent processing device 28 and is existed according to the type of touch event Corresponding visual output is provided on display panel 241.Although in figure 6, touch sensitive surface 231 and display panel 241 are as two Individual independent part realizes input and input function, but in some embodiments it is possible to by touch sensitive surface 231 and display surface Plate 241 is integrated and realizes input and output function.
Mobile terminal may also include at least one sensor 25, such as optical sensor, motion sensor and other sensings Device.Optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to the bright of ambient light Secretly adjust the brightness of display panel 241, proximity transducer can close display panel 241 when mobile terminal is moved in one's ear And/or backlight.As one kind of motion sensor, gravity accelerometer can detect in all directions (generally three axles) and add The size of speed, size and the direction of gravity are can detect that when static, application (such as the horizontal/vertical screen available for identification mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Mobile terminal is also The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Voicefrequency circuit 26, loudspeaker 261, microphone 262 can provide the COBBAIF between user and mobile terminal.Audio Electric signal after the voice data received conversion can be transferred to loudspeaker 261, sound is converted to by loudspeaker 261 by circuit 26 Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 262, after being received by voicefrequency circuit 26 Voice data is converted to, then after voice data output processor 28 is handled, through RF circuits 21 to be sent to such as another movement Terminal, or voice data is exported to memory 22 further to handle.Voicefrequency circuit 26 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and mobile terminal.
In order to realize radio communication, wireless communication unit 27 can be configured with the movement mobile terminal, the radio communication Unit 27 can be WIFI module.WIFI belongs to short range wireless transmission technology, and mobile terminal can by wireless communication unit 27 To help user to send and receive e-mail, browse webpage and access streaming video etc., it has provided the user wireless broadband interconnection Net accesses.Although showing wireless communication unit 27 in figure, but it is understood that, it is simultaneously not belonging to the necessary of mobile terminal Form, can be omitted as needed in the scope for not changing disclosed essence completely.
Processor 28 can utilize the various pieces of various interfaces and connection whole mobile phone, by running or performing storage Software program and/or module in memory 22, and the data being stored in memory 22 are called, perform mobile terminal Various functions and processing data, so as to carry out integral monitoring to mobile phone.Optionally, processor 28 may include one or more processing Core;Preferably, processor 28 can integrate application processor and modem processor, wherein, application processor is mainly handled Operating system, user interface and application program etc., modem processor mainly handles radio communication.On it is understood that Stating modem processor can not also be integrated into processor 28.
Mobile terminal also includes the power supply 29 (such as battery) to all parts power supply, it is preferred that power supply can pass through electricity Management system and processor 28 are logically contiguous, so as to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.Power supply 29 can also include one or more direct current or AC power, recharging system, power failure inspection The random component such as slowdown monitoring circuit, power supply changeover device or inverter, power supply status indicator.
It should be noted that mobile terminal can also include camera, bluetooth module etc., will not be repeated here.
In the present embodiment, processor has following function:
When the headset plug of external equipment inserts the earphone jack of mobile terminal, the L channel of the headset plug is obtained First voltage at port and the second voltage at the R channel port of the headset plug;
Judge whether the external equipment is self-shooting bar according to the first voltage and the second voltage.
Further, it is described to judge whether the external equipment is self-timer according to the first voltage and the second voltage Bar, including:
If the first voltage is identical with the second voltage, it is determined that the external equipment is self-shooting bar;
Or if the difference of the first voltage and the second voltage is less than preset difference value, it is determined that the outside Equipment is self-shooting bar.
Further, it is described to judge whether the external equipment is self-timer according to the first voltage and the second voltage Bar, including:
If the first voltage and the second voltage are identical with predeterminated voltage, it is determined that the external equipment is certainly Dabber, the predeterminated voltage are the voltage of the positive pole of default power supply;
Or if the first difference and the second difference are respectively less than preset difference value, it is determined that the external equipment is self-shooting bar, First difference is the difference of the first voltage and predeterminated voltage, second difference be the second voltage with it is described pre- If the difference of voltage.
Further, judging whether the external equipment is self-shooting bar according to the first voltage and the second voltage Afterwards, in addition to:
If the external equipment is self-shooting bar, start application of taking pictures;
If front camera be present, start the front camera.
Said apparatus can perform the method that the embodiment of the present invention two and embodiment three are provided, and possesses and performs above method phase The functional module and beneficial effect answered.Not ins and outs of detailed description in the present embodiment, reference can be made to the embodiment of the present invention two The method provided with embodiment three.
Pay attention to, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also Other more equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (7)

  1. A kind of 1. self-shooting bar recognition methods, it is characterised in that including:
    When the headset plug of external equipment inserts the earphone jack of mobile terminal, the L channel port of the headset plug is obtained Second voltage at the R channel port of the first voltage at place and the headset plug;
    If the first voltage is identical with the second voltage, it is determined that the external equipment is self-shooting bar;
    Or if the difference of the first voltage and the second voltage is less than preset difference value, it is determined that the external equipment For self-shooting bar.
  2. 2. self-shooting bar recognition methods according to claim 1, it is characterised in that the external equipment includes self-shooting bar, institute State L channel port and the R channel port short circuit of headset plug described in self-shooting bar, and the L channel port and the right sound Road port is connected by short circuit point with the positive pole of default power supply;The negative pole of the default power supply and the earth terminal of the headset plug Mouth is connected, and methods described also includes:
    If the first voltage and the second voltage are identical with predeterminated voltage, it is determined that the external equipment is self-timer Bar, the predeterminated voltage are the voltage of the positive pole of default power supply;
    Or if the first difference and the second difference are respectively less than preset difference value, it is determined that the external equipment is self-shooting bar, described First difference is the first voltage and the difference of predeterminated voltage, and second difference is the second voltage and the default electricity The difference of pressure.
  3. 3. self-shooting bar recognition methods according to claim 1 or 2, it is characterised in that according to the first voltage and institute State after second voltage judges whether the external equipment is self-shooting bar, in addition to:
    If the external equipment is self-shooting bar, start application of taking pictures;
    If front camera be present, start the front camera.
  4. A kind of 4. self-shooting bar identification device, it is characterised in that including:
    Voltage acquisition unit, for when the headset plug of external equipment inserts the earphone jack of mobile terminal, obtaining the ear First voltage at the L channel port of machine transplanting of rice head and the second voltage at the R channel port of the headset plug;
    External equipment determining unit, if the first voltage and the second voltage that are obtained for the voltage acquisition unit It is identical, it is determined that the external equipment is self-shooting bar;Or if the voltage acquisition unit obtain the first voltage with The difference of the second voltage is less than preset difference value, it is determined that the external equipment is self-shooting bar.
  5. 5. self-shooting bar identification device according to claim 4, it is characterised in that the external equipment includes self-shooting bar, institute State L channel port and the R channel port short circuit of headset plug described in self-shooting bar, and the L channel port and the right sound Road port is connected by short circuit point with the positive pole of default power supply;The negative pole of the default power supply and the earth terminal of the headset plug Mouth is connected, and the external equipment determining unit is additionally operable to:
    If the first voltage and the second voltage that the voltage acquisition unit obtains are identical with predeterminated voltage, really The fixed external equipment is self-shooting bar, and the predeterminated voltage is the voltage of the positive pole of default power supply;
    Or if the first difference and the second difference are respectively less than preset difference value, it is determined that the external equipment is self-shooting bar, described First difference is the first voltage that the voltage acquisition unit obtains and the difference of predeterminated voltage, and second difference is institute State the second voltage and the difference of the predeterminated voltage of voltage acquisition unit acquisition.
  6. 6. the self-shooting bar identification device according to claim 4 or 5, it is characterised in that described also including mode switch element Mode switch element is used for:
    If the external equipment determining unit determines that the external equipment is self-shooting bar, start application of taking pictures;
    If front camera be present, start the front camera.
  7. 7. a kind of mobile terminal, it is characterised in that the mobile terminal includes the self-timer any one of claim 4 to 6 Bar identification device.
CN201610064307.7A 2016-01-29 2016-01-29 A kind of self-shooting bar recognition methods, device and mobile terminal Active CN105611448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610064307.7A CN105611448B (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
CN201610064307.7A CN105611448B (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
CN105611448A CN105611448A (en) 2016-05-25
CN105611448B true CN105611448B (en) 2018-03-27

Family

ID=55990930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610064307.7A Active CN105611448B (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) CN105611448B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108646852A (en) * 2018-04-04 2018-10-12 厦门美图移动科技有限公司 Identify equipment, method and the mobile terminal of self-timer
CN208707745U (en) * 2018-06-29 2019-04-05 深圳市大疆创新科技有限公司 Picture shooting assembly and attachment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202695907U (en) * 2012-01-11 2013-01-23 天地融科技股份有限公司 Audio signal transferring and receiving device and audio signal transmission system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833649B (en) * 2012-08-17 2016-02-17 惠州Tcl移动通信有限公司 A kind of earphone interface circuit and mobile communication equipment
CN103905955B (en) * 2012-12-27 2017-11-17 华为终端有限公司 The method of test earphone insertion, the device and interface circuit of test earphone insertion
CN104754461B (en) * 2013-12-30 2019-03-08 联想(北京)有限公司 A kind of matching earphone recognition methods, device and electronic equipment
CN105163234B (en) * 2015-08-04 2018-02-02 广东欧珀移动通信有限公司 A kind of adaptation method of self-shooting bar, device and corresponding mobile device
CN105120388B (en) * 2015-08-12 2018-09-07 青岛海信移动通信技术股份有限公司 The recognition methods of self-shooting bar and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202695907U (en) * 2012-01-11 2013-01-23 天地融科技股份有限公司 Audio signal transferring and receiving device and audio signal transmission system

Also Published As

Publication number Publication date
CN105611448A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN103455256B (en) The method and terminal of Rotation screen display picture
CN103576578B (en) Method, device and equipment for adopting earphone wire to control terminal
CN106412249B (en) The detection method and device of drop information
CN106357897B (en) The acquisition methods and device of drop information
CN105611446B (en) Self-shooting bar recognition methods, device and mobile terminal
CN106791894A (en) A kind of method and apparatus for playing live video
CN107094294A (en) Method for connecting network and device
CN104238893B (en) A kind of method and apparatus that video preview picture is shown
CN106331359B (en) A kind of speech signal collection method, device and terminal
CN103634717B (en) A kind of method, device and the terminal device of the control of utilization earphone
CN104423822B (en) Record the method and device of automatic test script
CN106487984B (en) A kind of method and apparatus adjusting volume
CN109075704A (en) A kind of load supplying circuit and terminal
CN106371086A (en) Distance measurement method and device
CN104346368A (en) Indoor scene switch displaying method and device and mobile terminal
CN103399657B (en) The control method of mouse pointer, device and terminal unit
CN107528958B (en) Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal
CN105611445B (en) Recognition methods, device and the mobile terminal of self-shooting bar and self-shooting bar
CN108834013A (en) A kind of wearable device electric quantity balancing method and Related product
CN104301824B (en) Line traffic control equipment, controller, method and device
CN105611448B (en) A kind of self-shooting bar recognition methods, device and mobile terminal
CN108196781A (en) The display methods and mobile terminal at interface
CN104123210B (en) Test the method, apparatus and system of browser performance
CN107884619A (en) Load power consumption test system and method, mobile terminal
CN107577795A (en) A kind of methods, devices and systems for recommending song

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