CN105611446B - Self-shooting bar recognition methods, device and mobile terminal - Google Patents

Self-shooting bar recognition methods, device and mobile terminal Download PDF

Info

Publication number
CN105611446B
CN105611446B CN201610064288.8A CN201610064288A CN105611446B CN 105611446 B CN105611446 B CN 105611446B CN 201610064288 A CN201610064288 A CN 201610064288A CN 105611446 B CN105611446 B CN 105611446B
Authority
CN
China
Prior art keywords
mobile terminal
self
channel port
shooting bar
headset plug
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610064288.8A
Other languages
Chinese (zh)
Other versions
CN105611446A (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 CN201610064288.8A priority Critical patent/CN105611446B/en
Publication of CN105611446A publication Critical patent/CN105611446A/en
Application granted granted Critical
Publication of CN105611446B publication Critical patent/CN105611446B/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

Abstract

The invention discloses a kind of self-shooting bar recognition methods, device and mobile terminal.Methods described is applied to the self-shooting bar with headset plug, wherein, L channel port and the R channel port short circuit of headset plug.Methods described includes:When the earphone jack of headset plug insertion mobile terminal, the target resistance between the L channel port of headset plug and R channel port is obtained;If target resistance is less than or equal to preset resistive value, it is determined that mobile terminal is inserted into self-shooting bar;Mobile terminal judges whether current state is exposal model:If current state is non-exposal model, start application of taking pictures, and start front camera;If current state is exposal model, judge whether front camera starts, if front camera is not actuated, start front camera.Above-mentioned method can realize mobile terminal automatic identification self-shooting bar and the mobile terminal automatic start screening-mode after self-shooting bar is recognized, and simplify user's operation, improve Consumer's Experience.

Description

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 recognition methods, device and movement 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 recognition methods, device and mobile terminal, to realize terminal automatic identification 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 recognition methods, applied to headset plug from Dabber, wherein, L channel port and R channel port short circuit, the L channel port and the R channel of the headset plug Port is in short-circuit condition after powered up.The self-shooting bar recognition methods includes:
When the earphone jack of headset plug insertion mobile terminal, the L channel port of the headset plug and right sound are obtained Target resistance between road port;
If the target resistance is less than or equal to preset resistive value, it is determined that the mobile terminal is inserted into self-shooting bar;
The mobile terminal judges whether current state is exposal model:
If the current state is non-exposal model, start application of taking pictures, and start front camera;
If the current state is exposal model, judge whether front camera starts, if the front camera is not Start, then start the front camera.Second aspect, the embodiment of the present invention additionally provide a kind of self-shooting bar identification device, should For the self-shooting bar with headset plug, wherein, L channel port and the R channel port short circuit of the headset plug, the left side Sound channel port and the R channel port are in short-circuit condition after powered up.The self-shooting bar identification device includes:
Target resistance acquiring unit, for when the headset plug of external equipment inserts the earphone jack of mobile terminal, obtaining Take the target resistance between the L channel port of the headset plug and R channel port;
Device type judging unit, the target resistance for being obtained according to the target resistance acquiring unit judge institute State whether mobile terminal is inserted into self-shooting bar:If the target resistance is less than or equal to preset resistive value, the mobile terminal is confirmed It is inserted into self-shooting bar;And
Mode switch element, for judging whether the current state of the mobile terminal is exposal model:
If the current state is non-exposal model, start application of taking pictures, and start front camera;
If the current state is exposal model, judge whether front camera starts, if the front camera is not Start, then start the front camera.
The third 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 obtain the ear of insertion by the L channel port of earphone jack and R channel port in the present invention Target resistance between the L channel port and R channel port of machine transplanting of rice head, and determine that four-section type headset is inserted according to the target resistance Whether the external equipment of hole connection is self-shooting bar, and then mobile terminal starts screening-mode when connecting self-shooting bar.Prior art Equipment in insertion four-section type headset jack can not be distinguished, therefore shooting can not be automatically switched to when inserting self-shooting bar Pattern.The present invention is after external equipment is inserted into the earphone jack of mobile terminal by earphone, acquisition for mobile terminal earphone jack L channel port and R channel port between target resistance, and determine whether external equipment is self-timer according to the target resistance Bar, and then mobile terminal changes to screening-mode when connecting self-shooting bar.Realize mobile terminal automatic identification self-shooting bar and knowing Mobile terminal automatic start screening-mode after self-shooting bar is clipped to, simplifies user's operation, improves 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:It will be clapped by four-section type headset jack Mobile terminal is sent to according to the photographing instruction triggered on button.Wireless mode can be:By Bluetooth signal by shoot button The photographing instruction of triggering is sent to mobile terminal.It should be noted that when using communication, can also be inserted by earphone Hole determines whether to be connected with self-shooting bar.Wherein, mobile terminal can be the movements capable of taking pictures such as smart mobile phone, tablet personal computer (PAD) Equipment.
The self-shooting bar that the present embodiment provides, includes headset plug on the basis of above-mentioned self-shooting bar structure, as shown in Fig. 2 The L channel port of the headset plug and R channel port short circuit.
No matter four-section type headset plug or three-section earphone plug in the prior art, 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, therefore the resistance between L channel port and R channel port is larger (such as 1 kilo-ohm), and the resistance is remote More than 0.
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 target resistance between L channel port and R channel port is 0.
After the technical scheme self-shooting bar that the present embodiment provides is connected by headset plug with mobile terminal, obtained by mobile terminal The target resistance between the L channel port of headset plug and R channel port is taken, the outer of connection is then determined according to target resistance Whether portion's equipment is self-shooting bar, and then determines whether to start exposal model, simplifies user's operation, improves 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 Target resistance between road port and R channel 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, between the L channel port and R channel port of headset plug described in acquisition for mobile terminal Target resistance.
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.Resistance between L channel port and R channel port that mobile terminal passes through test earphone jack, it may be determined that insertion Target resistance between the L channel port and R channel port of four-section type headset.Mobile terminal is by with resistance measurement function After the detective pin of chip is connected respectively to the L channel port and R channel port of earphone jack, by with resistance measurement function Chip determine detection target resistance.Exemplary, the chip with resistance measurement function is AD5933 impedance measurement chips.
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 before L channel port and R channel port Target resistance be 0.
S120, according to target resistance judge whether external equipment is self-shooting bar.
Optionally, if target resistance is equal to 0, it is determined that external equipment is self-shooting bar.Otherwise, if target resistance is more than 0, it is determined that external equipment is earphone.
Mobile terminal can be obtained by the L channel port of four-section type headset jack and R channel port and inserted in the present invention Target resistance between the L channel port and R channel port of the headset plug entered, and four-part form is determined according to the target resistance Whether the external equipment of earphone jack connection is self-shooting bar, and then mobile terminal starts screening-mode when connecting self-shooting bar.It is existing There is technology can not distinguish the equipment in insertion four-section type headset jack, therefore can not automatically switch when inserting self-shooting bar To screening-mode.The present invention is after external equipment is inserted into the earphone jack of mobile terminal by four-section type headset, mobile terminal The target resistance between the L channel port and R channel port of four-section type headset jack is obtained, and is determined according to the target resistance Whether external equipment is self-shooting bar, and then mobile terminal changes to screening-mode when connecting self-shooting bar.Realize that mobile terminal is automatic Self-shooting bar and the mobile terminal automatic start screening-mode after self-shooting bar is recognized are identified, simplifies user's operation, improves user 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 the target resistance judges whether the external equipment is self-shooting bar, can be carried out by following manner Implement:
S120 ' if, target resistance be less than or equal to preset resistive value, it is determined that external equipment is self-shooting bar.
Preset resistive value can be 0 ohm.Preset resistive value is alternatively a smaller resistance more than 0, such as 10 ohm.When default When resistance is 0, short circuit between L channel and R channel, and interference resistance is not present in circuit.If interference resistance in circuit be present When, after L channel and R channel short circuit, if the chip with resistance measurement function connects with L channel port or R channel port When touching bad, it may cause interference resistance in circuit be present.Now, if the resistance between L channel port and R channel port is small In preset resistive value, you can judge that external equipment is self-shooting bar.
The technical scheme that the present embodiment provides, it is possible to increase the stability of resistance measurement, avoid the interference resistance in circuit The interference judged external equipment, improve the accuracy of self-shooting bar detection.
Further, S110, when external equipment headset plug insert mobile terminal earphone jack when, obtain the ear Target resistance between the L channel port and R channel port of machine transplanting of rice head, can be implemented by following manner:
S111, when external equipment headset plug insert mobile terminal earphone jack when, be earphone jack microphone Port powers.
If earphone is four-section type headset, after the microphone port to four-section type headset is powered, microphone port can be anti- Electric feed signal, the electric signal are non-NULL.Due to three-section earphone microphone end can earth terminal share a port, so if The earphone of insertion is three-section earphone, then after being powered to microphone port, microphone port feedback-less signal, and now mobile terminal The electric signal obtained from microphone port is sky.
If the electric signal of the headset plug feedback of S112, external equipment is non-NULL, the L channel of headset plug is obtained Target resistance between port and R channel port.
When the electric signal that the headset plug of external equipment feeds back is non-NULL, it is known that inserted in mobile terminal earphone jack Plug is four-section type headset plug.When it is determined that the headset plug of insertion is four-section type headset plug, a left side for headset plug is obtained Target resistance between sound channel port and R channel port.
The present embodiment provide technical scheme can when it is determined that the headset plug of external equipment is four-section type headset plug, The target resistance between the L channel port of headset plug and R channel port is obtained again, and then is realized to being provided with four-part form ear The self-shooting bar of machine is identified, and improves recognition efficiency.
Further, in S120, judge according to target resistance whether external equipment is self-shooting bar after, in addition to:
If S130, external equipment connect for self-shooting bar, start screening-mode.
Specifically, start application of taking pictures;If 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:
Target resistance acquiring unit 11, for when external equipment headset plug insert mobile terminal earphone jack when, Obtain the target resistance between the L channel port of the headset plug and R channel port;
Device type judging unit 12, the target resistance for being obtained according to the target resistance acquiring unit 11 are sentenced Whether the external equipment that breaks is self-shooting bar.
Further, the device type judging unit 12 is specifically used for:
If the target resistance is less than or equal to preset resistive value, it is determined that the external equipment is self-shooting bar.
Further, the target resistance acquiring unit 11 is specifically used for:
It is the microphone end of the earphone jack when the headset plug of external equipment inserts the earphone jack of mobile terminal Confession electricity;
If the electric signal of the headset plug feedback of the external equipment is non-NULL, the left sound of the headset plug is obtained Target resistance between road port and R channel port.
Further, in addition to mode switch element 13, the mode switch element 13 are used for:
Start application of taking pictures;
If front camera be present, start the front camera.
The technical scheme that the present embodiment provides can work as the ear that external equipment is inserted into mobile terminal by four-section type headset Behind machine transplanting of rice hole, the target resistance between the L channel port and R channel port of acquisition for mobile terminal four-section type headset jack, and Determine whether external equipment is self-shooting bar according to the target resistance, and then mobile terminal changes to shooting mould when connecting self-shooting bar Formula.Mobile terminal automatic identification self-shooting bar and the mobile terminal automatic start screening-mode after self-shooting bar is recognized are realized, letter Change 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) modules 27 including There are 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 shown in figure Mobile terminal structure do not form restriction to mobile terminal, can include than illustrating more or less parts, or group Close 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), CDMA (Code Division Multiple Access, CDMA), 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 detection user's is tactile Orientation is touched, and detects the signal that touch operation is brought, transmits a signal to touch controller;Touch controller fills from touch detection Reception touch information is put, and is converted into contact coordinate, then gives processor 28, and the life that energy reception processing device 28 is sent Make and performed.Furthermore, it is possible to realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves touch-sensitive Surface 231.Except touch sensitive surface 231, input block 23 can also include other input equipments 232.Preferably, other inputs are set Standby 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 Target resistance between port and R channel port;
Judge whether the external equipment is self-shooting bar according to the target resistance.
Further, it is described to judge whether the external equipment is self-shooting bar according to the target resistance, including:
If the target resistance is less than or equal to preset resistive value, it is determined that the external equipment is self-shooting bar.
Further, it is described when the headset plug of external equipment inserts the earphone jack of mobile terminal, obtain the ear Target resistance between the L channel port and R channel port of machine transplanting of rice head, including:
It is the microphone end of the earphone jack when the headset plug of external equipment inserts the earphone jack of mobile terminal Confession electricity;
If the electric signal of the headset plug feedback of the external equipment is non-NULL, the left sound of the headset plug is obtained Target resistance between road port and R channel port.
Further, after judging whether the external equipment is self-shooting bar according to the target resistance, in addition to:
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 one and embodiment two 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 three The method 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 (5)

  1. A kind of 1. self-shooting bar recognition methods, it is characterised in that applied to the self-shooting bar with headset plug, wherein, the earphone The L channel port of plug and R channel port short circuit, the L channel port and the R channel port are after powered up in short circuit State;The self-shooting bar recognition methods includes:
    When the earphone jack of headset plug insertion mobile terminal, a left side for the headset plug for inserting the mobile terminal is obtained Target resistance between sound channel port and R channel port;
    If the target resistance is less than or equal to preset resistive value, it is determined that the mobile terminal is inserted into self-shooting bar;
    The mobile terminal judges whether current state is exposal model:
    If the current state is non-exposal model, start application of taking pictures, and start front camera;
    If the current state is exposal model, judge whether front camera starts, if the front camera is not actuated, Then start the front camera.
  2. 2. self-shooting bar recognition methods according to claim 1, it is characterised in that moved when the headset plug of external equipment inserts During the earphone jack of dynamic terminal, the target resistance between the L channel port of the headset plug and R channel port is obtained, is wrapped Include:
    It is that the microphone port of the earphone jack supplies when the headset plug of external equipment inserts the earphone jack of mobile terminal Electricity;
    If the electric signal of the headset plug feedback of the external equipment is non-NULL, the L channel end of the headset plug is obtained Target resistance between mouth and R channel port.
  3. A kind of 3. self-shooting bar identification device, it is characterised in that applied to the self-shooting bar with headset plug, wherein, the earphone The L channel port of plug and R channel port short circuit, the L channel port and the R channel port are after powered up in short circuit State;The self-shooting bar identification device includes:
    Target resistance acquiring unit, for when the earphone jack of headset plug insertion mobile terminal, obtaining and inserting the movement Target resistance between the L channel port and R channel port of the headset plug of terminal;
    Device type judging unit, the target resistance for being obtained according to the target resistance acquiring unit judge the shifting Whether dynamic terminal is inserted into self-shooting bar:If the target resistance is less than or equal to preset resistive value, confirm that the mobile terminal is inserted Enter self-shooting bar;And
    Mode switch element, for judging whether the current state of the mobile terminal is exposal model:
    If the current state is non-exposal model, start application of taking pictures, and start front camera;
    If the current state is exposal model, judge whether front camera starts, if the front camera is not actuated, Then start the front camera.
  4. 4. self-shooting bar identification device according to claim 3, it is characterised in that the target resistance acquiring unit is specifically used In:
    It is that the microphone port of the earphone jack supplies when the headset plug of external equipment inserts the earphone jack of mobile terminal Electricity;
    If the electric signal of the headset plug feedback of the external equipment is non-NULL, the L channel end of the headset plug is obtained Target resistance between mouth and R channel port.
  5. 5. a kind of mobile terminal, it is characterised in that the mobile terminal includes the self-timer any one of claim 3 to 4 Bar identification device.
CN201610064288.8A 2016-01-29 2016-01-29 Self-shooting bar recognition methods, device and mobile terminal Active CN105611446B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610064288.8A CN105611446B (en) 2016-01-29 2016-01-29 Self-shooting bar recognition methods, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610064288.8A CN105611446B (en) 2016-01-29 2016-01-29 Self-shooting bar recognition methods, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN105611446A CN105611446A (en) 2016-05-25
CN105611446B true CN105611446B (en) 2018-03-06

Family

ID=55990928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610064288.8A Active CN105611446B (en) 2016-01-29 2016-01-29 Self-shooting bar recognition methods, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN105611446B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450947A (en) * 2017-07-26 2017-12-08 北京疯景科技有限公司 Start the method and device of application
KR102427206B1 (en) * 2017-11-13 2022-07-29 삼성전자주식회사 An device and a method for controlling a microphone according to a connection of an external accessory
CN108646852A (en) * 2018-04-04 2018-10-12 厦门美图移动科技有限公司 Identify equipment, method and the mobile terminal of self-timer
CN208707745U (en) * 2018-06-29 2019-04-05 深圳市大疆创新科技有限公司 Picture shooting assembly and attachment

Citations (4)

* 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
CN104066028A (en) * 2014-06-19 2014-09-24 深圳市中兴移动通信有限公司 Communication method based on headset jack and terminal device
CN105120388A (en) * 2015-08-12 2015-12-02 青岛海信移动通信技术股份有限公司 Identification method and device of selfie stick
CN105163234A (en) * 2015-08-04 2015-12-16 广东欧珀移动通信有限公司 Selfie stick fitting method, device and corresponding mobile device

Patent Citations (4)

* 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
CN104066028A (en) * 2014-06-19 2014-09-24 深圳市中兴移动通信有限公司 Communication method based on headset jack and terminal device
CN105163234A (en) * 2015-08-04 2015-12-16 广东欧珀移动通信有限公司 Selfie stick fitting method, device and corresponding mobile device
CN105120388A (en) * 2015-08-12 2015-12-02 青岛海信移动通信技术股份有限公司 Identification method and device of selfie stick

Also Published As

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

Similar Documents

Publication Publication Date Title
CN103309673B (en) A kind of conversation processing method based on gesture, device
CN103472971B (en) A kind of method, device and the terminal device of setting acquisition parameters
CN107094294A (en) Method for connecting network and device
CN103513769B (en) Method, device and mobile terminal for setting key function
CN106791894A (en) A kind of method and apparatus for playing live video
CN103634717B (en) A kind of method, device and the terminal device of the control of utilization earphone
CN104238893B (en) A kind of method and apparatus that video preview picture is shown
CN104850406B (en) A kind of method and apparatus for switching the page
CN105611446B (en) Self-shooting bar recognition methods, device and mobile terminal
CN103561400B (en) Method for initiating communication, device thereof and mobile terminal
CN108649991B (en) A kind of processing method and mobile terminal of harmonic wave interference
CN107168609A (en) status bar display method, device and terminal
CN106487984B (en) A kind of method and apparatus adjusting volume
CN110289885A (en) A kind of antenna tuning method and terminal
CN104166646B (en) A kind of method and apparatus for inputting uniform resource locator
CN106445457A (en) Headphone sound channel switching method and device
CN107678989A (en) UART and USB multiplex circuits and mobile terminal
CN107528958B (en) Method for controlling mobile terminal, device, readable storage medium storing program for executing and mobile terminal
CN103399657B (en) The control method of mouse pointer, device and terminal unit
CN109713746A (en) A kind of charging circuit and charge control method, mobile terminal
CN107565650A (en) Design of Compatibility method and circuit
CN104123210B (en) Test the method, apparatus and system of browser performance
CN107734152A (en) A kind of mobile terminal and brightness control method with illumination functions
CN107454270A (en) Mobile terminal screen brightness control method, device and terminal
CN106936516A (en) Display screen dispaly state control method, storage medium and terminal

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