CN106817495A - Mobile terminal message processing method, device and mobile terminal - Google Patents

Mobile terminal message processing method, device and mobile terminal Download PDF

Info

Publication number
CN106817495A
CN106817495A CN201710091956.0A CN201710091956A CN106817495A CN 106817495 A CN106817495 A CN 106817495A CN 201710091956 A CN201710091956 A CN 201710091956A CN 106817495 A CN106817495 A CN 106817495A
Authority
CN
China
Prior art keywords
mobile terminal
earphone
channel
type
joint
Prior art date
Application number
CN201710091956.0A
Other languages
Chinese (zh)
Other versions
CN106817495B (en
Inventor
文昭彦
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to CN201710091956.0A priority Critical patent/CN106817495B/en
Publication of CN106817495A publication Critical patent/CN106817495A/en
Application granted granted Critical
Publication of CN106817495B publication Critical patent/CN106817495B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72522With means for supporting locally a plurality of applications to increase the functionality
    • H04M1/72527With means for supporting locally a plurality of applications to increase the functionality provided by interfacing with an external accessory
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72563Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances

Abstract

The present invention relates to a kind of mobile terminal message processing method, device and mobile terminal, the above method includes:The signal that response earphone is disconnected, obtains the electrical connection of L channel and R channel in the joint of the earphone;It is connected if detecting L channel in the joint of the earphone and being gone off by parallel connection with the electrical connection of R channel, judges that earphone disconnects type and disconnects type as first;It is connected if detecting L channel in the joint of the earphone and being gone off by connecting with the electrical connection of R channel, judges that earphone disconnects type and disconnects type as second.The above method, can type that easily test earphone and mobile terminal are disconnected.

Description

Mobile terminal message processing method, device and mobile terminal

Technical field

The present invention relates to field of computer technology, more particularly to a kind of mobile terminal message processing method, device and shifting Dynamic terminal.

Background technology

With the development and the popularization of intelligent mobile terminal of the communication technology, earphone turns into during intelligent mobile terminal use Very important accessory.User can be by earphone broadcasting music or broadcasting voice, by earphone and other people chat sessions etc..Ear The appearance of machine improves intelligent mobile terminal convenience in use.

The content of the invention

The embodiment of the present invention provides a kind of mobile terminal message processing method, device and mobile terminal, can easily examine Survey the type that earphone is disconnected with mobile terminal.

A kind of mobile terminal message processing method, including:

The signal that response earphone is disconnected, obtains L channel in the joint of the earphone and is closed with the electrical connection of R channel System;

It is connected if detecting L channel in the joint of the earphone and being gone off by parallel connection with the electrical connection of R channel, Judge that earphone disconnects type and disconnects type as first;

It is connected if detecting L channel in the joint of the earphone and being gone off by connecting with the electrical connection of R channel, Judge that earphone disconnects type and disconnects type as second.

A kind of processing mobile terminal information device, including:

Respond module, for responding the signal that earphone is disconnected, obtains L channel and right sound in the joint of the earphone The electrical connection in road;

Detection module, if for L channel in the joint for detecting the earphone and R channel electrical connection by parallel Connection is gone off, judges that earphone disconnects type and disconnects type as first;If detect in the joint of the earphone L channel with The electrical connection of R channel goes off connection by connecting, and judges that earphone disconnects type and disconnects type as second.

A kind of mobile terminal, including memory, processor and the meter that store on a memory and can run on a processor Calculation machine program, following steps are realized during the computing device described program:

The signal that response earphone is disconnected, obtains L channel in the joint of the earphone and is closed with the electrical connection of R channel System;

It is connected if detecting L channel in the joint of the earphone and being gone off by parallel connection with the electrical connection of R channel, Judge that earphone disconnects type and disconnects type as first;

It is connected if detecting L channel in the joint of the earphone and being gone off by connecting with the electrical connection of R channel, Judge that earphone disconnects type and disconnects type as second.

Brief description of the drawings

Fig. 1 is the flow chart of mobile terminal message processing method in one embodiment;

Fig. 2 is the structural representation of the joint of earphone in one embodiment;

Fig. 3 is electrical connection schematic diagram in the joint of earphone in Fig. 2 in one embodiment;

Fig. 4 is the structured flowchart of processing mobile terminal information device in one embodiment;

Fig. 5 is the structured flowchart of processing mobile terminal information device in another embodiment;

Fig. 6 is the structured flowchart of processing mobile terminal information device in another embodiment;

Fig. 7 is the structured flowchart of processing mobile terminal information device in another embodiment;

Fig. 8 is the structured flowchart of processing mobile terminal information device in another embodiment;

Fig. 9 is the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.

Specific embodiment

In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.

Fig. 1 is the flow chart of mobile terminal message processing method in one embodiment.As shown in figure 1, a kind of mobile terminal Information processing method, is applied to mobile terminal, including step S102 to step S106, wherein, the earphone for connecting mobile terminal is Three-section earphone or four-section type headset.

S102, the signal that response earphone is disconnected obtains L channel in the joint of earphone and is closed with the electrical connection of R channel System.

S104, if detecting the electrical connection of L channel and R channel in the joint of earphone by the company of going off in parallel Connect, judge that earphone disconnects type and disconnects type as first.

S106, if detecting the electrical connection of L channel and R channel in the joint of earphone by the company of going off of connecting Connect, judge that earphone disconnects type and disconnects type as second.

In one embodiment, after earphone connection mobile terminal, if earphone is disconnected with mobile terminal, mobile terminal The signal that earphone can be produced to disconnect, the signal disconnected according to the earphone can determine that earphone disconnects with mobile terminal and connect Connect.After judging that earphone is disconnected with mobile terminal, mobile terminal can obtain electrical connection in the joint of earphone, according to ear Whether electrical connection judges the disconnection type of earphone as type is normally disconnected in the joint of machine.Electrical connection is closed in the joint of earphone System specifically refers to the electrical connection of L channel and R channel in the joint of earphone.Wherein, can pass through in Android system Whether isWiredHeadsetOn () test earphone disconnects with mobile terminal in AudioManager, when earphone and movement When terminal is disconnected, isWiredHeadsetOn () returns to the signal that false, i.e. mobile terminal produce earphone to disconnect, Can determine that earphone is disconnected with mobile terminal by the signal.

As shown in Fig. 2 the joint of earphone includes L channel 210, R channel 220 and ground wire 230.As shown in figure 3, when movement When terminal and earphone are connected, L channel 210 and the composition of ground wire 230 circuit communication, R channel 220 and ground wire 230 in Earphone joint Composition circuit communication, wherein, L channel 210, R channel 220 are parallel relationship.When the disconnection type of earphone is abnormal disconnect When, when such as earphone is cut, all loops simultaneously switch off in the joint of earphone, left sound in the joint of acquisition for mobile terminal to earphone The electrical connection of road 210 and R channel 220 goes off connection by parallel connection.When the disconnection type of earphone is normal disconnection, such as When user extracts earphone, the interface of ground wire 230 is first disconnected with mobile terminal in the joint of earphone, then is the interface of L channel 210 Disconnected with mobile terminal, the interface of R channel 220 and mobile terminal are disconnected.Connect when the interface of ground wire 230 of earphone disconnects When connecing, L channel 210 disconnects with the loop of ground wire 230 in Earphone joint, R channel 220 disconnects with the loop of ground wire 230, Zuo Sheng Road 210 constitutes series loop with R channel 220.When the interface of L channel 210 in earphone is disconnected, own in Earphone joint Loop disconnects again, i.e., acquisition for mobile terminal is to L channel 210 in the joint of earphone and the electrical connection of R channel 220:And Connection is changed into series connection and goes off connection again.

Can determine that earphone is disconnected with mobile terminal with the electrical connection of R channel by L channel in Earphone joint Type.Wherein, when in the joint of earphone L channel gone off by parallel connection with the electrical connection of R channel be connected when, earphone It is that the first disconnection type, i.e. earphone is connected with mobile terminal abnormal disconnect to disconnect type;When in the joint of earphone L channel with When the electrical connection of R channel goes off connection by connecting, it is the second disconnection type, i.e. earphone and shifting that earphone disconnects type Dynamic terminal is normally disconnected.

Information of mobile terminal detection method in the embodiment of the present invention, easily can disconnect company by test earphone with mobile terminal The type for connecing.

In one embodiment, above-mentioned mobile terminal message processing method also includes:Receive and open mobile terminal alarm mould The instruction of formula, the signal for whether having earphone connection according to command detection;If detecting the signal of earphone connection, mobile terminal is opened Warning mode.

Mobile terminal is provided with mobile terminal warning mode, and setting interface in mobile terminal can show unlatching mobile terminal alarm The button of pattern, if acquisition for mobile terminal is to the touch control operation to opening mobile terminal warning mode button, i.e. mobile terminal connects The instruction for opening mobile terminal warning mode is received, the signal that earphone is connected can detect whether according to the instruction for obtaining.Wherein, When earphone connects mobile terminal, the signal that earphone can be produced to connect, mobile terminal can be according to whether produce the letter of earphone connection Number judge earphone whether be connected with mobile terminal.For example, can be by AudioManager in Android system Whether isWiredHeadsetOn () test earphone is connected with mobile terminal.When earphone connects mobile terminal, IsWiredHeadsetOn () returns to true, and mobile terminal detects isWiredHeadsetOn () and returns to true, then judge ear Machine is connected with mobile terminal, opens mobile terminal warning mode.Wherein, mobile terminal warning mode refers to mobile terminal in connection After earphone, disconnection type according to earphone determines whether to send a kind of pattern of alarm.It is first disconnected when earphone disconnects type When opening type, i.e., when earphone is abnormal disconnect, mobile terminal alarm is opened, there is stolen wind for reminding customer mobile terminal Danger;When it is normal disconnection that earphone disconnect type to be the second disconnection type, i.e. earphone, turning-off mobile terminal warning mode.

Wherein, opening mobile terminal alarm includes:Default audio file is played, mobile terminal vibration is opened, is played pre- If audio file and open mobile terminal vibration.Default audio file can be the audio file of systemic presupposition, user's storage Audio file, the audio file etc. recorded of user.

Mobile terminal message processing method in the embodiment of the present invention, disconnects in mobile terminal warning mode according to earphone Different type performs different operating, it is possible to decrease the stolen risk of mobile terminal.

In one embodiment, above-mentioned mobile terminal message processing method also includes:Before mobile terminal alarm is opened, Audio frequency of mobile terminal play mode is switched into outer mode playback;Default audio broadcast sound volume maximum is obtained, by mobile terminal Audio broadcast sound volume value is adjusted to maximum.

When it is abnormal disconnect that earphone disconnect type to be the first disconnection Type Type, i.e. earphone, mobile terminal can detect Whether present video play mode is outer mode playback.If present video play mode is not outer mode playback, by mobile terminal sound Frequency play mode switches to outer mode playback, and obtains the maximum of default audio playback volume, by the present video of mobile terminal Broadcast sound volume value is adjusted to the maximum of default audio playback volume.

Mobile terminal message processing method in the embodiment of the present invention, it is possible to decrease the stolen risk of mobile terminal.

In one embodiment, above-mentioned mobile terminal message processing method also includes:If being not detected by the letter of earphone connection Number, in the prompting that the not connected prompting of interface of mobile terminal display earphone and/or mobile terminal warning mode cannot be opened.

Whether mobile terminal has the letter of earphone connection according to the command detection of the unlatching mobile terminal warning mode for receiving Number, if mobile terminal is not detected by the signal of earphone connection, i.e. earphone and is not connected with mobile terminal.Then in interface of mobile terminal bullet Go out that the not connected prompting of earphone, the prompting that mobile terminal warning mode cannot be opened, earphone be not connected and mobile terminal alarm mould The prompting that formula cannot be opened.

Mobile terminal message processing method in the embodiment of the present invention, detect earphone it is not connected when, in mobile terminal circle The not connected prompting of face display earphone, or the prompting that display mobile terminal warning mode cannot be opened, can easily point out user Into mobile terminal warning mode.

Fig. 4 is the structured flowchart of processing mobile terminal information device in one embodiment.As shown in figure 4, a kind of mobile whole Client information processing unit, including respond module 402, detection module 404.Wherein:

Respond module 402, for responding the signal that earphone is disconnected, obtains L channel and R channel in the joint of earphone Electrical connection;

Detection module 404, if for L channel in the joint for detecting earphone and R channel electrical connection by parallel Connection is gone off, judges that earphone disconnects type and disconnects type as first;If detecting L channel and right sound in the joint of earphone The electrical connection in road goes off connection by connecting, and judges that earphone disconnects type and disconnects type as second.

Fig. 5 is the structured flowchart of processing mobile terminal information device in another embodiment.As shown in figure 5, a kind of mobile End message processing unit, including respond module 502, detection module 504 and opening module 506.Wherein respond module 502 and inspection Survey the functions of modules corresponding with Fig. 4 of module 504 identical.

Opening module 506, for before the signal that response earphone is disconnected, receiving and opening mobile terminal warning mode Instruction, according to command detection whether have earphone connect signal;If detecting the signal of earphone connection, mobile terminal police is opened Report pattern.

Fig. 6 is the structured flowchart of processing mobile terminal information device in another embodiment.As shown in fig. 6, a kind of mobile End message processing unit, including respond module 602, detection module 604 and alarm modules 606.Wherein respond module 602 and inspection Survey the functions of modules corresponding with Fig. 4 of module 604 identical.

Alarm modules 606, for after judging that earphone disconnects type as the first disconnection type, opening mobile terminal police Report.Opening mobile terminal alarm includes:Play default audio file and/or open mobile terminal vibration.

Fig. 7 is the structured flowchart of processing mobile terminal information device in another embodiment.As shown in fig. 7, a kind of mobile End message processing unit, including respond module 702, detection module 704 and handover module 706.Wherein respond module 702 and inspection Survey the functions of modules corresponding with Fig. 4 of module 704 identical.

Handover module 706, for before mobile terminal alarm is opened, audio frequency of mobile terminal play mode being switched to outer Mode playback;Default audio broadcast sound volume maximum is obtained, audio frequency of mobile terminal broadcast sound volume value is adjusted to maximum.

Fig. 8 is the structured flowchart of processing mobile terminal information device in another embodiment.As shown in figure 8, a kind of mobile End message processing unit, including respond module 802, detection module 804 and reminding module 806.Wherein respond module 802 and inspection Survey the functions of modules corresponding with Fig. 4 of module 804 identical.

Reminding module 806, if the signal for being not detected by earphone connection, is not connected with interface of mobile terminal display earphone Prompting and/or the prompting that cannot open of mobile terminal warning mode.

The division of modules is only used for for example, in other embodiment in above-mentioned processing mobile terminal information device In, processing mobile terminal information device can be as required divided into different modules, to complete at above-mentioned information of mobile terminal Manage all or part of function of device.

The embodiment of the present invention additionally provides a kind of mobile terminal.As shown in figure 9, for convenience of description, illustrate only and this The related part of inventive embodiments, particular technique details is not disclosed, and refer to present invention method part.The movement end End can be to include mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), vehicle mounted electric Brain, Wearable etc. can arbitrarily connect the terminal device of earphone.So that mobile terminal is as mobile phone as an example:

Fig. 9 is the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.With reference to Fig. 9, Mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input block 930, display unit 940, biography Sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980, Yi Ji electricity The grade part of source 990.It will be understood by those skilled in the art that the handset structure shown in Fig. 9 does not constitute the restriction to mobile phone, can be with Including part more more or less than diagram, or some parts are combined, or different part arrangements.

Wherein, RF circuits 910 can be used to receiving and sending messages or communication process in, the reception and transmission of signal can be by base stations After downlink information is received, processed to processor 980;Can also be by up data is activation to base station.Generally, RF circuits include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuits 910 can also be communicated by radio communication with network and other equipment.Above-mentioned channel radio Letter can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc..

Memory 920 can be used to store software program and module, and processor 980 is by running storage in memory 920 Software program and module, so as to perform various function application and the data processing of mobile phone.Memory 920 can mainly include Program storage area and data storage area, wherein, the application journey that program storage area can be needed for storage program area, at least one function Sequence (application program of such as sound-playing function, application program of image player function etc.) etc.;Data storage area can store root Created data (such as voice data, address list etc.) etc. are used according to mobile phone.Additionally, memory 920 can be included at a high speed Random access memory, can also include nonvolatile memory, for example, at least one disk memory, flush memory device or Other volatile solid-state parts.

Input block 930 can be used to receive the numeral or character information of input, and generation is set with the user of mobile phone 900 And the relevant key signals input of function control.In one embodiment, input block 930 may include contact panel 931 and Other input equipments 932.Contact panel 931, alternatively referred to as touch-screen, can collect user thereon or neighbouring touch operation (such as user is attached on contact panel 931 or in contact panel 931 using any suitable objects such as finger, stylus or annex Near operation), and corresponding attachment means are driven according to formula set in advance.In one embodiment, contact panel 931 can Including two parts of touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detect the touch orientation of user, and examine The signal that touch operation brings is surveyed, touch controller is transmitted a signal to;Touch controller is received from touch detecting apparatus and touched Information is touched, and is converted into contact coordinate, then give processor 980, and the order sent of receiving processor 980 and can be subject to Perform.Furthermore, it is possible to realize contact panel 931 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves. Except contact panel 931, input block 930 can also include other input equipments 932.In one embodiment, other inputs Equipment 932 can include but is not limited to the one kind in physical keyboard, function key (such as volume control button, switch key etc.) etc. Or it is various.

Display unit 940 can be used for show by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, contact panel 931 can cover display panel 941, when contact panel 931 is examined Measure thereon or after neighbouring touch operation, processor 980 is sent to determine the type of touch event, with preprocessor 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in fig .9, contact panel 931 is input and the input function that mobile phone is realized as two independent parts with display panel 941, but in some implementations In example, can by contact panel 931 and display panel 941 be integrated input that realize mobile phone and output function.

Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.In one embodiment, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can Light and shade according to ambient light adjusts the brightness of display panel 941, and proximity transducer can close when mobile phone is moved in one's ear Display panel 941 and/or backlight.Motion sensor may include acceleration transducer, and each is can detect by acceleration transducer The size of acceleration on direction, can detect that size and the direction of gravity when static, can be used to recognize the application (ratio of mobile phone attitude Such as horizontal/vertical screen switching), Vibration identification correlation function (such as pedometer, tap);Additionally, mobile phone can also configure gyroscope, gas Other sensors such as pressure meter, hygrometer, thermometer, infrared ray sensor etc..

Voicefrequency circuit 960, loudspeaker 961 and microphone 962 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data conversion that road 960 will can receive, is transferred to loudspeaker 961, and sound is converted to by loudspeaker 961 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to voice data, then after voice data output processor 980 is processed, another mobile phone can be sent to through RF circuits 910, or Person exports to memory 920 so as to subsequent treatment voice data.

WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 970 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 9 shows WiFi module 970, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 900, can omit as needed.

Processor 980 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform software program of the storage in memory 920 and/or module, and call storage in memory 920 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.In one embodiment, process Device 980 may include one or more processing units.In one embodiment, processor 980 can integrated application processor and modulation Demodulation processor, wherein, application processor mainly processes operating system, user interface and application program etc.;Modulation /demodulation is processed Device mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 980.

Mobile phone 900 also includes the power supply 690 (such as battery) powered to all parts, it is preferred that power supply can be by electricity Management system is logically contiguous with processor 980, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.

In one embodiment, mobile phone 900 can also be including camera, bluetooth module etc..

In embodiments of the present invention, following steps are realized during 980 configuration processor of processor included by mobile terminal:

(1) signal that response earphone is disconnected, obtains the electrical connection of L channel and R channel in the joint of earphone.

(2) it is connected if detecting L channel in the joint of earphone and being gone off by parallel connection with the electrical connection of R channel, Judge that earphone disconnects type and disconnects type as first.

(3) it is connected if detecting L channel in the joint of earphone and being gone off by connecting with the electrical connection of R channel, Judge that earphone disconnects type and disconnects type as second.

In one embodiment, after earphone connection mobile terminal, if earphone is disconnected with mobile terminal, mobile terminal The signal that earphone can be produced to disconnect, the signal disconnected according to the earphone can determine that earphone disconnects with mobile terminal and connect Connect.After judging that earphone is disconnected with mobile terminal, mobile terminal can obtain electrical connection in the joint of earphone, according to ear Whether electrical connection judges the disconnection type of earphone as type is normally disconnected in the joint of machine.Electrical connection is closed in the joint of earphone System specifically refers to the electrical connection of L channel and R channel in the joint of earphone.Wherein, can pass through in Android system Whether isWiredHeadsetOn () test earphone disconnects with mobile terminal in AudioManager, when earphone and movement When terminal is disconnected, isWiredHeadsetOn () returns to the signal that false, i.e. mobile terminal produce earphone to disconnect, Can determine that earphone is disconnected with mobile terminal by the signal.

As shown in Fig. 2 the joint of earphone includes L channel 210, R channel 220 and ground wire 230.As shown in figure 3, when movement When terminal and earphone are connected, L channel 210 and the composition of ground wire 230 circuit communication, R channel 220 and ground wire 230 in Earphone joint Composition circuit communication, wherein, L channel 210, R channel 220 are parallel relationship.When the disconnection type of earphone is abnormal disconnect When, when such as earphone is cut, all loops simultaneously switch off in the joint of earphone, left sound in the joint of acquisition for mobile terminal to earphone The electrical connection of road 210 and R channel 220 goes off connection by parallel connection.When the disconnection type of earphone is normal disconnection, such as When user extracts earphone, the interface of ground wire 230 is first disconnected with mobile terminal in the joint of earphone, then is the interface of L channel 210 Disconnected with mobile terminal, the interface of R channel 220 and mobile terminal are disconnected.Connect when the interface of ground wire 230 of earphone disconnects When connecing, L channel 210 disconnects with the loop of ground wire 230 in Earphone joint, R channel 220 disconnects with the loop of ground wire 230, Zuo Sheng Road 210 constitutes series loop with R channel 220.When the interface of L channel 210 in earphone is disconnected, own in Earphone joint Loop disconnects again, i.e., acquisition for mobile terminal is to L channel 210 in the joint of earphone and the electrical connection of R channel 220:And Connection is changed into series connection and goes off connection again.

Can determine that earphone is disconnected with mobile terminal with the electrical connection of R channel by L channel in Earphone joint Type.Wherein, when in the joint of earphone L channel gone off by parallel connection with the electrical connection of R channel be connected when, earphone It is that the first disconnection type, i.e. earphone is connected with mobile terminal abnormal disconnect to disconnect type;When in the joint of earphone L channel with When the electrical connection of R channel goes off connection by connecting, it is the second disconnection type, i.e. earphone and shifting that earphone disconnects type Dynamic terminal is normally disconnected.

Mobile terminal in the embodiment of the present invention, can type that easily test earphone and mobile terminal are disconnected.

In one embodiment, following steps are also realized during 980 configuration processor of processor included by above-mentioned mobile terminal: The instruction for opening mobile terminal warning mode is received, whether there is the signal of earphone connection according to command detection;If detecting earphone The signal of connection, opens mobile terminal warning mode.

Mobile terminal is provided with mobile terminal warning mode, and setting interface in mobile terminal can show unlatching mobile terminal alarm The button of pattern, if acquisition for mobile terminal is to the touch control operation to opening mobile terminal warning mode button, i.e. mobile terminal connects The instruction for opening mobile terminal warning mode is received, the signal that earphone is connected can detect whether according to the instruction for obtaining.Wherein, When earphone connects mobile terminal, the signal that earphone can be produced to connect, mobile terminal can be according to whether produce the letter of earphone connection Number judge earphone whether be connected with mobile terminal.For example, can be by AudioManager in Android system Whether isWiredHeadsetOn () test earphone is connected with mobile terminal.When earphone connects mobile terminal, IsWiredHeadsetOn () returns to true, and mobile terminal detects isWiredHeadsetOn () and returns to true, then judge ear Machine is connected with mobile terminal, opens mobile terminal warning mode.Wherein, mobile terminal warning mode refers to mobile terminal in connection After earphone, disconnection type according to earphone determines whether to send a kind of pattern of alarm.It is first disconnected when earphone disconnects type When opening type, i.e., when earphone is abnormal disconnect, mobile terminal alarm is opened, there is stolen wind for reminding customer mobile terminal Danger;When it is normal disconnection that earphone disconnect type to be the second disconnection type, i.e. earphone, turning-off mobile terminal warning mode.

Wherein, opening mobile terminal alarm includes:Default audio file is played, mobile terminal vibration is opened, is played pre- If audio file and open mobile terminal vibration.Default audio file can be the audio file of systemic presupposition, user's storage Audio file, the audio file etc. recorded of user.

Mobile terminal in the embodiment of the present invention, the different type disconnected according to earphone in mobile terminal warning mode is performed Different operating, it is possible to decrease the stolen risk of mobile terminal.

In one embodiment, following steps are also realized during 980 configuration processor of processor included by above-mentioned mobile terminal: Before mobile terminal alarm is opened, audio frequency of mobile terminal play mode is switched into outer mode playback;Default audio is obtained to broadcast Playback amount maximum, maximum is adjusted to by audio frequency of mobile terminal broadcast sound volume value.

When it is abnormal disconnect that earphone disconnect type to be the first disconnection Type Type, i.e. earphone, mobile terminal can detect Whether present video play mode is outer mode playback.If present video play mode is not outer mode playback, by mobile terminal sound Frequency play mode switches to outer mode playback, and obtains the maximum of default audio playback volume, by the present video of mobile terminal Broadcast sound volume value is adjusted to the maximum of default audio playback volume.

Mobile terminal in the embodiment of the present invention, it is possible to decrease the stolen risk of mobile terminal.

In one embodiment, following steps are also realized during 980 configuration processor of processor included by above-mentioned mobile terminal: If being not detected by the signal of earphone connection, in interface of mobile terminal display earphone not connected prompting and/or mobile terminal alarm The prompting that pattern cannot be opened.

Whether mobile terminal has the letter of earphone connection according to the command detection of the unlatching mobile terminal warning mode for receiving Number, if mobile terminal is not detected by the signal of earphone connection, i.e. earphone and is not connected with mobile terminal.Then in interface of mobile terminal bullet Go out that the not connected prompting of earphone, the prompting that mobile terminal warning mode cannot be opened, earphone be not connected and mobile terminal alarm mould The prompting that formula cannot be opened.

Mobile terminal in the embodiment of the present invention, detect earphone it is not connected when, in interface of mobile terminal display earphone not The prompting of connection, or the prompting that display mobile terminal warning mode cannot be opened, can easily point out user to enter mobile terminal Warning mode.

One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be Instruct the hardware of correlation to complete by computer program, program can be stored in a non-volatile computer and can read storage In medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) etc..

Above example only expresses several embodiments of the invention, and its description is more specific and detailed, but can not Therefore it is interpreted as the limitation to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, Without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection model of the invention Enclose.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (13)

1. a kind of mobile terminal message processing method, it is characterised in that including:
The signal that response earphone is disconnected, obtains the electrical connection of L channel and R channel in the joint of the earphone;
It is connected if detecting L channel in the joint of the earphone and being gone off by parallel connection with the electrical connection of R channel, is judged It is the first disconnection type that earphone disconnects type;
It is connected if detecting L channel in the joint of the earphone and being gone off by connecting with the electrical connection of R channel, is judged It is the second disconnection type that earphone disconnects type.
2. mobile terminal message processing method according to claim 1, it is characterised in that disconnected in the response earphone and connected Before the signal for connecing, methods described also includes:
The instruction for opening mobile terminal warning mode is received, whether there is the signal of earphone connection according to the command detection;
If detecting the signal of earphone connection, mobile terminal warning mode is opened.
3. mobile terminal message processing method according to claim 1, it is characterised in that methods described also includes:
After judging that earphone disconnects type as the first disconnection type, mobile terminal alarm is opened.
4. mobile terminal message processing method according to claim 3, it is characterised in that in the unlatching mobile terminal police Before report, methods described also includes:
Audio frequency of mobile terminal play mode is switched into outer mode playback;
Default audio broadcast sound volume maximum is obtained, audio frequency of mobile terminal broadcast sound volume value is adjusted to maximum.
5. mobile terminal message processing method according to claim 3, it is characterised in that the unlatching mobile terminal alarm Including:
Play default audio file and/or open mobile terminal vibration.
6. mobile terminal message processing method according to claim 1, it is characterised in that methods described also includes:
If being not detected by the signal of earphone connection, in the not connected prompting of interface of mobile terminal display earphone and/or mobile terminal The prompting that warning mode cannot be opened.
7. a kind of processing mobile terminal information device, it is characterised in that including:
Respond module, for responding the signal that earphone is disconnected, obtains L channel and R channel in the joint of the earphone Electrical connection;
Detection module, if being changed into from parallel with the electrical connection of R channel for L channel in the joint for detecting the earphone Disconnect, judge that earphone disconnects type and disconnects type as first;If detecting L channel and right sound in the joint of the earphone The electrical connection in road goes off connection by connecting, and judges that earphone disconnects type and disconnects type as second.
8. processing mobile terminal information device according to claim 7, it is characterised in that described device also includes:
Opening module, for before the signal that the response earphone is disconnected, receiving and opening mobile terminal warning mode Instruction, the signal for whether having earphone connection according to the command detection;If detecting the signal of earphone connection, mobile terminal is opened Warning mode.
9. processing mobile terminal information device according to claim 7, it is characterised in that described device also includes:
Alarm modules, for after judging that earphone disconnects type as the first disconnection type, opening mobile terminal alarm.
10. processing mobile terminal information device according to claim 9, it is characterised in that described device also includes:
Handover module, for before the unlatching mobile terminal alarm, audio frequency of mobile terminal play mode being switched into outer putting Pattern;Default audio broadcast sound volume maximum is obtained, audio frequency of mobile terminal broadcast sound volume value is adjusted to maximum.
11. processing mobile terminal information devices according to claim 9, it is characterised in that the unlatching mobile terminal police Report includes:
Play default audio file and/or open mobile terminal vibration.
12. processing mobile terminal information devices according to claim 7, it is characterised in that described device also includes:
Reminding module, if the signal for being not detected by earphone connection, in the not connected prompting of interface of mobile terminal display earphone And/or the prompting that mobile terminal warning mode cannot be opened.
A kind of 13. mobile terminals, including memory, processor and the calculating that store on a memory and can run on a processor Machine program, it is characterised in that realize following steps during the computing device described program:
The signal that response earphone is disconnected, obtains the electrical connection of L channel and R channel in the joint of the earphone;
It is connected if detecting L channel in the joint of the earphone and being gone off by parallel connection with the electrical connection of R channel, is judged It is the first disconnection type that earphone disconnects type;
It is connected if detecting L channel in the joint of the earphone and being gone off by connecting with the electrical connection of R channel, is judged It is the second disconnection type that earphone disconnects type.
CN201710091956.0A 2017-02-21 2017-02-21 Mobile terminal message processing method, device and mobile terminal CN106817495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710091956.0A CN106817495B (en) 2017-02-21 2017-02-21 Mobile terminal message processing method, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710091956.0A CN106817495B (en) 2017-02-21 2017-02-21 Mobile terminal message processing method, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106817495A true CN106817495A (en) 2017-06-09
CN106817495B CN106817495B (en) 2019-07-23

Family

ID=59112814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710091956.0A CN106817495B (en) 2017-02-21 2017-02-21 Mobile terminal message processing method, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106817495B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566604A (en) * 2017-07-12 2018-01-09 广东小天才科技有限公司 The control method and user terminal of a kind of prompting message

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2039865U (en) * 1988-11-14 1989-06-21 李京钢 Coin-operating stereo music appreciation machine
KR20000038731A (en) * 1998-12-09 2000-07-05 손병오 Wireless microphone system having anti-theft function
CN101052239A (en) * 2006-04-03 2007-10-10 英华达(上海)电子有限公司 High frequency circuit and its method for eliminating earphone noise
CN101783845A (en) * 2009-12-22 2010-07-21 康佳集团股份有限公司 Mobile phone antitheft method and antitheft mobile phone
CN101873367A (en) * 2010-06-24 2010-10-27 深圳桑菲消费通信有限公司 System and method for expending mobile functional keys
CN201898602U (en) * 2010-12-27 2011-07-13 浙江安迪信信息技术有限公司 Passive sound box interface of mobile phone
CN102325216A (en) * 2011-06-29 2012-01-18 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof
CN102740181A (en) * 2012-06-29 2012-10-17 深圳凯虹移动通信有限公司 Headphone interface circuit and the electronic device
CN102737459A (en) * 2012-06-13 2012-10-17 华为终端有限公司 Anti-theft device
CN102915607A (en) * 2011-08-05 2013-02-06 上海晨兴希姆通电子科技有限公司 Headset anti-theft mobile terminal
CN103327175A (en) * 2013-05-21 2013-09-25 上海斐讯数据通信技术有限公司 Mobile terminal anti-theft system and mobile terminal anti-theft method
US20150049887A1 (en) * 2012-09-06 2015-02-19 Thales Avionics, Inc. Directional Sound Systems Including Eye Tracking Capabilities and Related Methods
US20150224914A1 (en) * 2014-02-12 2015-08-13 X3, Llc Electrical and physical mounting assemblies

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2039865U (en) * 1988-11-14 1989-06-21 李京钢 Coin-operating stereo music appreciation machine
KR20000038731A (en) * 1998-12-09 2000-07-05 손병오 Wireless microphone system having anti-theft function
CN101052239A (en) * 2006-04-03 2007-10-10 英华达(上海)电子有限公司 High frequency circuit and its method for eliminating earphone noise
CN101783845A (en) * 2009-12-22 2010-07-21 康佳集团股份有限公司 Mobile phone antitheft method and antitheft mobile phone
CN101873367A (en) * 2010-06-24 2010-10-27 深圳桑菲消费通信有限公司 System and method for expending mobile functional keys
CN201898602U (en) * 2010-12-27 2011-07-13 浙江安迪信信息技术有限公司 Passive sound box interface of mobile phone
CN102325216A (en) * 2011-06-29 2012-01-18 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof
CN102915607A (en) * 2011-08-05 2013-02-06 上海晨兴希姆通电子科技有限公司 Headset anti-theft mobile terminal
CN102737459A (en) * 2012-06-13 2012-10-17 华为终端有限公司 Anti-theft device
CN102740181A (en) * 2012-06-29 2012-10-17 深圳凯虹移动通信有限公司 Headphone interface circuit and the electronic device
US20150049887A1 (en) * 2012-09-06 2015-02-19 Thales Avionics, Inc. Directional Sound Systems Including Eye Tracking Capabilities and Related Methods
CN103327175A (en) * 2013-05-21 2013-09-25 上海斐讯数据通信技术有限公司 Mobile terminal anti-theft system and mobile terminal anti-theft method
US20150224914A1 (en) * 2014-02-12 2015-08-13 X3, Llc Electrical and physical mounting assemblies

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107566604A (en) * 2017-07-12 2018-01-09 广东小天才科技有限公司 The control method and user terminal of a kind of prompting message

Also Published As

Publication number Publication date
CN106817495B (en) 2019-07-23

Similar Documents

Publication Publication Date Title
KR101616221B1 (en) Message reminding method, device and electronic device
CN105873178A (en) Method and device for recognizing pseudo base-station
CN104869468A (en) Method and apparatus for displaying screen information
CN103578474B (en) A kind of sound control method, device and equipment
CN103309673A (en) Session processing method and device based on gesture, and terminal equipment
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN103458124B (en) A kind of shutdown processing method of terminal, device and terminal equipment
CN103546740B (en) A kind of method, device and terminal equipment detecting camera
CN103473051B (en) A kind of method and apparatus for saving power consumption of terminal
CN103414982A (en) Method and device for offering voice
CN103513769B (en) Method, device and mobile terminal for setting key function
CN103365419A (en) Method and device for triggering alarm clock control command
CN104717341A (en) Message prompting method and terminal
CN104427083A (en) Volume adjusting method and device
CN104571838B (en) A kind of quick method and apparatus for starting application program
CN104871393B (en) User equipment lamp light control method, device and user terminal
CN103458277B (en) A kind of method and apparatus operating direct broadcast band program
CN104065982B (en) The method and apparatus of live streaming media
CN105549740A (en) Method and device for playing audio data
CN103634717B (en) A kind of method, device and the terminal device of the control of utilization earphone
CN103546632B (en) A kind of quarter-bell ringing method for mobile terminal, device and mobile terminal
CN104426919A (en) Page sharing method, device and system
CN104915111B (en) terminal operation control method and device
CN103489303B (en) A kind of remote control thereof and device
CN104284001B (en) The incoming information display methods and device of terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant