技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种移动终端信息处理方法、装置和移动终端。The present invention relates to the field of computer technology, and in particular, to a mobile terminal information processing method, device and mobile terminal.
背景技术Background technique
随着通信技术的发展和智能移动终端的普及,耳机成为智能移动终端使用过程中举足轻重的配件。用户可以通过耳机播放音乐或播放语音、通过耳机与他人聊天通话等。耳机的出现提高了智能移动终端在使用过程中的便利性。With the development of communication technology and the popularization of smart mobile terminals, earphones have become an important accessory in the use of smart mobile terminals. Users can play music or voice through the headset, chat with others through the headset, and more. The appearance of earphones improves the convenience of the intelligent mobile terminal during use.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种移动终端信息处理方法、装置和移动终端,可以便捷的检测耳机与移动终端断开连接的类型。Embodiments of the present invention provide a mobile terminal information processing method, device and mobile terminal, which can conveniently detect the type of disconnection between the headset and the mobile terminal.
一种移动终端信息处理方法,包括:A mobile terminal information processing method, comprising:
响应耳机断开连接的信号,获取所述耳机的接头内左声道与右声道的电连接关系;In response to a signal that the earphone is disconnected, obtain the electrical connection relationship between the left channel and the right channel in the connector of the earphone;
若检测到所述耳机的接头内左声道与右声道的电连接关系由并联变为断开连接,判定耳机断开类型为第一断开类型;If it is detected that the electrical connection relationship between the left channel and the right channel in the connector of the earphone is changed from parallel connection to disconnection, it is determined that the disconnection type of the earphone is the first disconnection type;
若检测到所述耳机的接头内左声道与右声道的电连接关系由串联变为断开连接,判定耳机断开类型为第二断开类型。If it is detected that the electrical connection between the left channel and the right channel in the connector of the earphone is changed from series connection to disconnection, it is determined that the disconnection type of the earphone is the second disconnection type.
一种移动终端信息处理装置,包括:A mobile terminal information processing device, comprising:
响应模块,用于响应耳机断开连接的信号,获取所述耳机的接头内左声道与右声道的电连接关系;a response module, used for responding to a signal that the earphone is disconnected, and obtaining the electrical connection relationship between the left channel and the right channel in the connector of the earphone;
检测模块,用于若检测到所述耳机的接头内左声道与右声道的电连接关系由并联变为断开连接,判定耳机断开类型为第一断开类型;若检测到所述耳机的接头内左声道与右声道的电连接关系由串联变为断开连接,判定耳机断开类型为第二断开类型。The detection module is used to determine that the disconnection type of the earphone is the first disconnection type if it is detected that the electrical connection relationship between the left channel and the right channel in the connector of the earphone is changed from parallel to disconnection; The electrical connection relationship between the left channel and the right channel in the connector of the earphone is changed from series connection to disconnection, and it is determined that the disconnection type of the earphone is the second disconnection type.
一种移动终端,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下步骤:A mobile terminal, comprising a memory, a processor and a computer program stored on the memory and running on the processor, the processor implements the following steps when executing the program:
响应耳机断开连接的信号,获取所述耳机的接头内左声道与右声道的电连接关系;In response to a signal that the earphone is disconnected, obtain the electrical connection relationship between the left channel and the right channel in the connector of the earphone;
若检测到所述耳机的接头内左声道与右声道的电连接关系由并联变为断开连接,判定耳机断开类型为第一断开类型;If it is detected that the electrical connection relationship between the left channel and the right channel in the connector of the earphone is changed from parallel connection to disconnection, it is determined that the disconnection type of the earphone is the first disconnection type;
若检测到所述耳机的接头内左声道与右声道的电连接关系由串联变为断开连接,判定耳机断开类型为第二断开类型。If it is detected that the electrical connection between the left channel and the right channel in the connector of the earphone is changed from series connection to disconnection, it is determined that the disconnection type of the earphone is the second disconnection type.
附图说明Description of drawings
图1为一个实施例中移动终端信息处理方法的流程图;1 is a flowchart of a method for processing information of a mobile terminal in one embodiment;
图2为一个实施例中耳机的接头的结构示意图;2 is a schematic structural diagram of a connector of an earphone in one embodiment;
图3为一个实施例中图2中耳机的接头内电连接示意图;FIG. 3 is a schematic diagram of the electrical connection in the connector of the earphone in FIG. 2 in one embodiment;
图4为一个实施例中移动终端信息处理装置的结构框图;4 is a structural block diagram of a mobile terminal information processing apparatus in one embodiment;
图5为另一个实施例中移动终端信息处理装置的结构框图;5 is a structural block diagram of a mobile terminal information processing apparatus in another embodiment;
图6为另一个实施例中移动终端信息处理装置的结构框图;6 is a structural block diagram of a mobile terminal information processing apparatus in another embodiment;
图7为另一个实施例中移动终端信息处理装置的结构框图;7 is a structural block diagram of a mobile terminal information processing apparatus in another embodiment;
图8为另一个实施例中移动终端信息处理装置的结构框图;8 is a structural block diagram of a mobile terminal information processing apparatus in another embodiment;
图9为与本发明实施例提供的移动终端相关的手机的部分结构的框图。FIG. 9 is a block diagram of a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
图1为一个实施例中移动终端信息处理方法的流程图。如图1所示,一种移动终端信息处理方法,应用于移动终端,包括步骤S102至步骤S106,其中,连接移动终端的耳机为三段式耳机或四段式耳机。FIG. 1 is a flowchart of a method for processing information of a mobile terminal in one embodiment. As shown in FIG. 1, a mobile terminal information processing method, applied to a mobile terminal, includes steps S102 to S106, wherein the earphone connected to the mobile terminal is a three-segment earphone or a four-segment earphone.
S102,响应耳机断开连接的信号,获取耳机的接头内左声道与右声道的电连接关系。S102, in response to a signal that the earphone is disconnected, obtain the electrical connection relationship between the left channel and the right channel in the connector of the earphone.
S104,若检测到耳机的接头内左声道与右声道的电连接关系由并联变为断开连接,判定耳机断开类型为第一断开类型。S104, if it is detected that the electrical connection relationship between the left channel and the right channel in the connector of the earphone is changed from parallel connection to disconnection, it is determined that the disconnection type of the earphone is the first disconnection type.
S106,若检测到耳机的接头内左声道与右声道的电连接关系由串联变为断开连接,判定耳机断开类型为第二断开类型。S106, if it is detected that the electrical connection relationship between the left channel and the right channel in the connector of the earphone is changed from series connection to disconnection, it is determined that the disconnection type of the earphone is the second disconnection type.
在一个实施例中,在耳机连接移动终端后,若耳机与移动终端断开连接,移动终端会产生耳机断开连接的信号,根据该耳机断开连接的信号可判定耳机与移动终端断开连接。在判定耳机与移动终端断开连接后,移动终端可获取耳机的接头内电连接关系,根据耳机的接头内电连接关系判定耳机的断开类型是否为正常断开类型。耳机的接头内电连接关系具体是指耳机的接头内左声道与右声道的电连接关系。其中,安卓系统中可通过AudioManager中isWiredHeadsetOn()检测耳机与移动终端是否断开连接,当耳机与移动终端断开连接时,isWiredHeadsetOn()返回false,即移动终端产生耳机断开连接的信号,通过该信号可判定耳机与移动终端断开连接。In one embodiment, after the earphone is connected to the mobile terminal, if the earphone is disconnected from the mobile terminal, the mobile terminal will generate a signal that the earphone is disconnected, and it can be determined that the earphone is disconnected from the mobile terminal according to the disconnection signal of the earphone. . After determining that the earphone is disconnected from the mobile terminal, the mobile terminal can obtain the electrical connection relationship in the connector of the earphone, and determine whether the disconnection type of the earphone is a normal disconnection type according to the electrical connection relationship in the connector of the earphone. The electrical connection relationship in the connector of the earphone specifically refers to the electrical connection relationship between the left channel and the right channel in the connector of the earphone. Among them, in the Android system, isWiredHeadsetOn() in AudioManager can detect whether the headset is disconnected from the mobile terminal. When the headset is disconnected from the mobile terminal, isWiredHeadsetOn() returns false, that is, the mobile terminal generates a signal that the headset is disconnected. The signal can determine that the headset is disconnected from the mobile terminal.
如图2所示,耳机的接头包括左声道210、右声道220和地线230。如图3所示,当移动终端和耳机连接时,耳机接头内左声道210与地线230组成回路连通、右声道220与地线230组成回路连通,其中,左声道210、右声道220为并联关系。当耳机的断开类型为非正常断开时,如耳机被剪断时,耳机的接头内所有回路同时断开,移动终端获取到耳机的接头内左声道210和右声道220的电连接关系由并联变为断开连接。当耳机的断开类型为正常断开,如用户拔出耳机时,耳机的接头内地线230接口与移动终端先断开连接,再是左声道210接口与移动终端断开连接、右声道220接口与移动终端断开连接。当耳机的地线230接口断开连接时,耳机接头内左声道210与地线230的回路断开、右声道220与地线230的回路断开,左声道210与右声道220组成串联回路。当耳机内的左声道210接口断开连接时,耳机接头内所有回路再断开,即移动终端获取到耳机的接头内左声道210与右声道220的电连接关系为:并联变为串联再变为断开连接。As shown in FIG. 2 , the headphone connector includes a left channel 210 , a right channel 220 and a ground wire 230 . As shown in FIG. 3, when the mobile terminal is connected to the earphone, the left channel 210 and the ground wire 230 in the earphone connector form a loop connection, and the right channel 220 and the ground wire 230 form a loop connection, wherein the left channel 210, the right channel Track 220 is in a parallel relationship. When the disconnection type of the earphone is abnormal disconnection, such as when the earphone is cut off, all circuits in the connector of the earphone are disconnected at the same time, and the mobile terminal obtains the electrical connection relationship between the left channel 210 and the right channel 220 in the connector of the earphone From parallel to disconnected. When the disconnection type of the earphone is normal disconnection, for example, when the user pulls out the earphone, the inner wire 230 interface of the earphone connector is disconnected from the mobile terminal first, then the left channel 210 interface is disconnected from the mobile terminal, and the right channel is disconnected from the mobile terminal. 220 interface is disconnected from the mobile terminal. When the ground wire 230 interface of the earphone is disconnected, the circuit between the left channel 210 and the ground wire 230 in the headphone connector is disconnected, the circuit between the right channel 220 and the ground wire 230 is disconnected, and the left channel 210 and the right channel 220 are disconnected. form a series circuit. When the interface of the left channel 210 in the earphone is disconnected, all circuits in the earphone connector are disconnected again, that is, the electrical connection relationship between the left channel 210 and the right channel 220 in the connector of the earphone obtained by the mobile terminal is: Connecting in series becomes disconnected.
通过耳机接头内左声道与右声道的电连接关系可判定耳机与移动终端断开连接的类型。其中,当耳机的接头内左声道与右声道的电连接关系由并联变为断开连接时,耳机断开类型为第一断开类型,即耳机与移动终端非正常断开连接;当耳机的接头内左声道与右声道的电连接关系由串联变为断开连接时,耳机断开类型为第二断开类型,即耳机与移动终端正常断开连接。The type of disconnection between the earphone and the mobile terminal can be determined by the electrical connection relationship between the left channel and the right channel in the earphone connector. Wherein, when the electrical connection between the left channel and the right channel in the connector of the earphone is changed from parallel to disconnected, the disconnection type of the earphone is the first disconnection type, that is, the earphone is abnormally disconnected from the mobile terminal; when When the electrical connection between the left channel and the right channel in the headphone connector changes from series connection to disconnection, the headphone disconnection type is the second disconnection type, that is, the headphone is normally disconnected from the mobile terminal.
本发明实施例中移动终端信息检测方法,可以便捷的检测耳机与移动终端断开连接的类型。The mobile terminal information detection method in the embodiment of the present invention can conveniently detect the type of disconnection between the earphone and the mobile terminal.
在一个实施例中,上述移动终端信息处理方法还包括:接收开启移动终端警报模式的指令,根据指令检测是否有耳机连接的信号;若检测到耳机连接的信号,开启移动终端警报模式。In one embodiment, the above-mentioned mobile terminal information processing method further includes: receiving an instruction to enable the mobile terminal alarm mode, and detecting whether there is a signal of earphone connection according to the instruction; if the earphone connection signal is detected, enabling the mobile terminal alarm mode.
移动终端设有移动终端警报模式,在移动终端设置界面可显示开启移动终端警报模式的按钮,若移动终端获取到对开启移动终端警报模式按钮的触控操作,即移动终端接收到开启移动终端警报模式的指令,根据获取的指令可检测是否有耳机连接的信号。其中,当耳机连接移动终端时,会产生耳机连接的信号,移动终端可根据是否产生耳机连接的信号判定耳机与移动终端是否连接。例如,安卓系统中可通过AudioManager中isWiredHeadsetOn()检测耳机与移动终端是否连接。当耳机连接移动终端时,isWiredHeadsetOn()返回true,移动终端检测到isWiredHeadsetOn()返回true,则判定耳机与移动终端连接,开启移动终端警报模式。其中,移动终端警报模式是指移动终端在连接耳机后,根据耳机的断开类型来判定是否发出警报的一种模式。当耳机断开类型为第一断开类型时,即耳机为非正常断开时,开启移动终端警报,用于提醒用户移动终端存在被盗风险;当耳机断开类型为第二断开类型,即耳机为正常断开时,关闭移动终端警报模式。The mobile terminal is provided with a mobile terminal alarm mode, and a button for enabling the mobile terminal alarm mode can be displayed on the mobile terminal setting interface. Mode command, according to the obtained command, it can be detected whether there is a signal of earphone connection. Wherein, when the earphone is connected to the mobile terminal, a signal of earphone connection is generated, and the mobile terminal can determine whether the earphone is connected to the mobile terminal according to whether the signal of earphone connection is generated. For example, in the Android system, whether the headset is connected to the mobile terminal can be detected through isWiredHeadsetOn() in AudioManager. When the headset is connected to the mobile terminal, isWiredHeadsetOn() returns true, and when the mobile terminal detects that isWiredHeadsetOn() returns true, it is determined that the headset is connected to the mobile terminal, and the mobile terminal alarm mode is turned on. The mobile terminal alarm mode refers to a mode in which the mobile terminal determines whether to issue an alarm according to the disconnection type of the earphone after the mobile terminal is connected to the earphone. When the earphone disconnection type is the first disconnection type, that is, when the earphone is abnormally disconnected, the mobile terminal alarm is turned on to remind the user that the mobile terminal is at risk of theft; when the earphone disconnection type is the second disconnection type, That is, when the headset is normally disconnected, the mobile terminal alarm mode is turned off.
其中,开启移动终端警报包括:播放预设的音频文件、开启移动终端振动、播放预设的音频文件且开启移动终端振动。预设的音频文件可为系统预设的音频文件、用户存储的音频文件、用户录制的音频文件等。Wherein, enabling the mobile terminal alarm includes: playing a preset audio file, enabling the mobile terminal to vibrate, playing a preset audio file, and enabling the mobile terminal to vibrate. The preset audio file may be an audio file preset by the system, an audio file stored by a user, an audio file recorded by a user, and the like.
本发明实施例中移动终端信息处理方法,在移动终端警报模式中根据耳机断开的不同类型执行不同操作,可降低移动终端被盗的风险。In the mobile terminal information processing method in the embodiment of the present invention, in the mobile terminal alarm mode, different operations are performed according to different types of disconnection of the earphone, which can reduce the risk of the mobile terminal being stolen.
在一个实施例中,上述移动终端信息处理方法还包括:在开启移动终端警报之前,将移动终端音频播放模式切换为外放模式;获取预设的音频播放音量最大值,将移动终端音频播放音量值调整为最大值。In one embodiment, the above-mentioned mobile terminal information processing method further includes: before turning on the mobile terminal alarm, switching the mobile terminal audio playback mode to the external playback mode; obtaining a preset maximum audio playback volume, and setting the mobile terminal audio playback volume The value is adjusted to the maximum value.
当耳机断开类型为第一断开类型类型,即耳机为非正常断开时,移动终端可检测当前音频播放模式是否为外放模式。若当前音频播放模式不为外放模式,则将移动终端音频播放模式切换为外放模式,并获取预设的音频播放量的最大值,将移动终端的当前音频播放音量值调整为预设的音频播放量的最大值。When the earphone disconnection type is the first disconnection type, that is, when the earphone is abnormally disconnected, the mobile terminal can detect whether the current audio playback mode is the external playback mode. If the current audio playback mode is not the external playback mode, switch the audio playback mode of the mobile terminal to the external playback mode, obtain the maximum value of the preset audio playback volume, and adjust the current audio playback volume value of the mobile terminal to the preset value. The maximum amount of audio playback.
本发明实施例中移动终端信息处理方法,可降低移动终端被盗的风险。The mobile terminal information processing method in the embodiment of the present invention can reduce the risk of the mobile terminal being stolen.
在一个实施例中,上述移动终端信息处理方法还包括:若未检测到耳机连接的信号,在移动终端界面显示耳机未连接的提示和/或移动终端警报模式无法开启的提示。In one embodiment, the above-mentioned mobile terminal information processing method further includes: if the signal of earphone connection is not detected, displaying a prompt that the earphone is not connected and/or a prompt that the alarm mode of the mobile terminal cannot be enabled on the mobile terminal interface.
移动终端根据接收到的开启移动终端警报模式的指令检测是否有耳机连接的信号,若移动终端未检测到耳机连接的信号,即耳机与移动终端未连接。则在移动终端界面弹出耳机未连接的提示、移动终端警报模式无法开启的提示、耳机未连接且移动终端警报模式无法开启的提示。The mobile terminal detects whether there is an earphone connection signal according to the received instruction to enable the mobile terminal alarm mode. If the mobile terminal does not detect the earphone connection signal, that is, the earphone and the mobile terminal are not connected. Then, a prompt that the headset is not connected, a prompt that the alarm mode of the mobile terminal cannot be turned on, and a prompt that the headset is not connected and the alarm mode of the mobile terminal cannot be turned on will pop up on the interface of the mobile terminal.
本发明实施例中移动终端信息处理方法,在检测到耳机未连接时,在移动终端界面显示耳机未连接的提示,或显示移动终端警报模式无法开启的提示,可方便的提示用户进入移动终端警报模式。In the mobile terminal information processing method in the embodiment of the present invention, when it is detected that the headset is not connected, a prompt that the headset is not connected is displayed on the interface of the mobile terminal, or a prompt that the mobile terminal alarm mode cannot be turned on is displayed, which can conveniently prompt the user to enter the mobile terminal alarm mode. .
图4为一个实施例中移动终端信息处理装置的结构框图。如图4所示,一种移动终端信息处理装置,包括响应模块402、检测模块404。其中:FIG. 4 is a structural block diagram of an information processing apparatus of a mobile terminal in an embodiment. As shown in FIG. 4 , a mobile terminal information processing apparatus includes a response module 402 and a detection module 404 . in:
响应模块402,用于响应耳机断开连接的信号,获取耳机的接头内左声道与右声道的电连接关系;The response module 402 is configured to obtain the electrical connection relationship between the left channel and the right channel in the connector of the earphone in response to a signal that the earphone is disconnected;
检测模块404,用于若检测到耳机的接头内左声道与右声道的电连接关系由并联变为断开连接,判定耳机断开类型为第一断开类型;若检测到耳机的接头内左声道与右声道的电连接关系由串联变为断开连接,判定耳机断开类型为第二断开类型。The detection module 404 is used to determine that the disconnection type of the earphone is the first disconnection type if it is detected that the electrical connection relationship between the left channel and the right channel in the connector of the earphone is changed from parallel to disconnection; if the connector of the earphone is detected The electrical connection relationship between the inner left channel and the right channel changes from series connection to disconnection, and it is determined that the disconnection type of the earphone is the second disconnection type.
图5为另一个实施例中移动终端信息处理装置的结构框图。如图5所示,一种移动终端信息处理装置,包括响应模块502、检测模块504和开启模块506。其中响应模块502和检测模块504与图4中对应的模块功能相同。FIG. 5 is a structural block diagram of an information processing apparatus of a mobile terminal in another embodiment. As shown in FIG. 5 , a mobile terminal information processing apparatus includes a response module 502 , a detection module 504 and an opening module 506 . The response module 502 and the detection module 504 have the same functions as the corresponding modules in FIG. 4 .
开启模块506,用于在响应耳机断开连接的信号之前,接收开启移动终端警报模式的指令,根据指令检测是否有耳机连接的信号;若检测到耳机连接的信号,开启移动终端警报模式。The enabling module 506 is used to receive an instruction to enable the mobile terminal alarm mode before responding to the earphone disconnection signal, and detect whether there is a earphone connection signal according to the instruction; if the earphone connection signal is detected, the mobile terminal alarm mode is enabled.
图6为另一个实施例中移动终端信息处理装置的结构框图。如图6所示,一种移动终端信息处理装置,包括响应模块602、检测模块604和警报模块606。其中响应模块602和检测模块604与图4中对应的模块功能相同。FIG. 6 is a structural block diagram of a mobile terminal information processing apparatus in another embodiment. As shown in FIG. 6 , a mobile terminal information processing apparatus includes a response module 602 , a detection module 604 and an alarm module 606 . The response module 602 and the detection module 604 have the same functions as the corresponding modules in FIG. 4 .
警报模块606,用于在判定耳机断开类型为第一断开类型之后,开启移动终端警报。开启移动终端警报包括:播放预设的音频文件和/或开启移动终端振动。The alarm module 606 is configured to activate the mobile terminal alarm after determining that the earphone disconnection type is the first disconnection type. Enabling the mobile terminal alarm includes: playing a preset audio file and/or enabling the mobile terminal to vibrate.
图7为另一个实施例中移动终端信息处理装置的结构框图。如图7所示,一种移动终端信息处理装置,包括响应模块702、检测模块704和切换模块706。其中响应模块702和检测模块704与图4中对应的模块功能相同。FIG. 7 is a structural block diagram of an information processing apparatus of a mobile terminal in another embodiment. As shown in FIG. 7 , a mobile terminal information processing apparatus includes a response module 702 , a detection module 704 and a switching module 706 . The response module 702 and the detection module 704 have the same functions as the corresponding modules in FIG. 4 .
切换模块706,用于在开启移动终端警报之前,将移动终端音频播放模式切换为外放模式;获取预设的音频播放音量最大值,将移动终端音频播放音量值调整为最大值。The switching module 706 is used to switch the audio playback mode of the mobile terminal to the external playback mode before turning on the mobile terminal alarm; obtain the preset maximum audio playback volume, and adjust the mobile terminal audio playback volume value to the maximum value.
图8为另一个实施例中移动终端信息处理装置的结构框图。如图8所示,一种移动终端信息处理装置,包括响应模块802、检测模块804和提示模块806。其中响应模块802和检测模块804与图4中对应的模块功能相同。FIG. 8 is a structural block diagram of an information processing apparatus of a mobile terminal in another embodiment. As shown in FIG. 8 , a mobile terminal information processing apparatus includes a response module 802 , a detection module 804 and a prompt module 806 . The response module 802 and the detection module 804 have the same functions as the corresponding modules in FIG. 4 .
提示模块806,用于若未检测到耳机连接的信号,在移动终端界面显示耳机未连接的提示和/或移动终端警报模式无法开启的提示。The prompt module 806 is configured to display, on the interface of the mobile terminal, a prompt that the headset is not connected and/or a prompt that the alarm mode of the mobile terminal cannot be turned on if the signal that the headset is connected is not detected.
上述移动终端信息处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将移动终端信息处理装置按照需要划分为不同的模块,以完成上述移动终端信息处理装置的全部或部分功能。The division of each module in the above-mentioned mobile terminal information processing apparatus is only used for illustration. In other embodiments, the mobile terminal information processing apparatus may be divided into different modules as required to complete all or part of the above-mentioned mobile terminal information processing apparatus. Function.
本发明实施例还提供了一种移动终端。如图9所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、车载电脑、穿戴式设备等任意可连接耳机的终端设备。以移动终端为手机为例:The embodiment of the present invention also provides a mobile terminal. As shown in FIG. 9 , for the convenience of description, only the part related to the embodiment of the present invention is shown, and the specific technical details are not disclosed, please refer to the method part of the embodiment of the present invention. The mobile terminal may be any terminal device that can be connected to an earphone, including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, personal digital assistant), a vehicle-mounted computer, a wearable device, and the like. Take the mobile terminal as a mobile phone as an example:
图9为与本发明实施例提供的移动终端相关的手机的部分结构的框图。参考图9,手机包括:射频(Radio Frequency,RF)电路910、存储器920、输入单元930、显示单元940、传感器950、音频电路960、无线保真(wireless fidelity,WiFi)模块970、处理器980、以及电源990等部件。本领域技术人员可以理解,图9所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 9 is a block diagram of a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present invention. Referring to FIG. 9 , the mobile phone includes: a radio frequency (RF) circuit 910 , a memory 920 , an input unit 930 , a display unit 940 , a sensor 950 , an audio circuit 960 , a wireless fidelity (WiFi) module 970 , and a processor 980 , and power supply 990 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 9 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.
其中,RF电路910可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器980处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 910 can be used for receiving and sending signals during sending and receiving of information or during a call. After receiving the downlink information of the base station, it can be processed by the processor 980; it can also send the uplink data to the base station. Typically, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 910 may communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access) Access, CDMA), Wideband Code Division Multiple Access (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), email, Short Messaging Service (Short Messaging Service, SMS) and the like.
存储器920可用于存储软件程序以及模块,处理器980通过运行存储在存储器920的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器920可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 920 can be used to store software programs and modules, and the processor 980 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 920 . The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.), etc.; The data storage area may store data (such as audio data, address book, etc.) created according to the usage of the mobile phone, and the like. Additionally, memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元930可用于接收输入的数字或字符信息,以及产生与手机900的用户设置以及功能控制有关的键信号输入。在一个实施例中,输入单元930可包括触控面板931以及其他输入设备932。触控面板931,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板931上或在触控面板931附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板931可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器980,并能接收处理器980发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板931。除了触控面板931,输入单元930还可以包括其他输入设备932。在一个实施例中,其他输入设备932可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 930 may be used to receive input numerical or character information, and generate key signal input related to user settings and function control of the mobile phone 900 . In one embodiment, the input unit 930 may include a touch panel 931 and other input devices 932 . The touch panel 931, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user using a finger, a stylus, etc., any suitable object or accessory on or near the touch panel 931) operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 931 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 980, and can receive the command sent by the processor 980 and execute it. In addition, the touch panel 931 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 931 , the input unit 930 may further include other input devices 932 . In one embodiment, other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示面板941。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板941。在一个实施例中,触控面板931可覆盖显示面板941,当触控面板931检测到在其上或附近的触摸操作后,传送给处理器980以确定触摸事件的类型,随后处理器980根据触摸事件的类型在显示面板941上提供相应的视觉输出。虽然在图9中,触控面板931与显示面板941是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板931与显示面板941集成而实现手机的输入和输出功能。The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 940 may include a display panel 941 . In one embodiment, the display panel 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, the touch panel 931 may cover the display panel 941, and when the touch panel 931 detects a touch operation on or near it, the touch panel 931 transmits it to the processor 980 to determine the type of the touch event, and then the processor 980 determines the type of the touch event according to the The type of touch event provides a corresponding visual output on display panel 941 . Although in FIG. 9, the touch panel 931 and the display panel 941 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 931 and the display panel 941 can be integrated to form Realize the input and output functions of the mobile phone.
手机900还可包括至少一种传感器950,比如光传感器、运动传感器以及其他传感器。在一个实施例中,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板941的亮度,接近传感器可在手机移动到耳边时,关闭显示面板941和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 900 may also include at least one sensor 950, such as light sensors, motion sensors, and other sensors. In one embodiment, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 941 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel when the mobile phone is moved to the ear 941 and/or backlight. Motion sensors can include acceleration sensors, which can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary. It can be used for applications that recognize the posture of mobile phones (such as switching between horizontal and vertical screens), and vibration recognition related functions (such as Pedometer, tapping), etc.; in addition, the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc.
音频电路960、扬声器961和传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号输出;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据输出处理器980处理后,经RF电路910可以发送给另一手机,或者将音频数据输出至存储器920以便后续处理。Audio circuit 960, speaker 961 and microphone 962 may provide an audio interface between the user and the cell phone. The audio circuit 960 can convert the received audio data into an electrical signal, and transmit it to the speaker 961, and the speaker 961 converts it into a sound signal for output; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 960 After receiving, the audio data is converted into audio data, and then the audio data is output to the processor 980 for processing, and can be sent to another mobile phone via the RF circuit 910, or the audio data can be output to the memory 920 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了WiFi模块970,但是可以理解的是,其并不属于手机900的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 970. It provides users with wireless broadband Internet access. Although FIG. 9 shows the WiFi module 970, it can be understood that it is not a necessary component of the mobile phone 900 and can be omitted as required.
处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器980可包括一个或多个处理单元。在一个实施例中,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 920, and calling the data stored in the memory 920. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. In one embodiment, the processor 980 may include one or more processing units. In one embodiment, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface and application programs, etc.; the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 980.
手机900还包括给各个部件供电的电源690(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 900 also includes a power supply 690 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 980 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
在一个实施例中,手机900还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 900 may further include a camera, a Bluetooth module, and the like.
在本发明实施例中,移动终端所包括的处理器980执行程序时实现以下步骤:In this embodiment of the present invention, the processor 980 included in the mobile terminal implements the following steps when executing the program:
(1)响应耳机断开连接的信号,获取耳机的接头内左声道与右声道的电连接关系。(1) In response to the signal that the earphone is disconnected, the electrical connection relationship between the left channel and the right channel in the connector of the earphone is obtained.
(2)若检测到耳机的接头内左声道与右声道的电连接关系由并联变为断开连接,判定耳机断开类型为第一断开类型。(2) If it is detected that the electrical connection between the left channel and the right channel in the connector of the earphone is changed from parallel to disconnected, it is determined that the disconnection type of the earphone is the first disconnection type.
(3)若检测到耳机的接头内左声道与右声道的电连接关系由串联变为断开连接,判定耳机断开类型为第二断开类型。(3) If it is detected that the electrical connection between the left channel and the right channel in the connector of the earphone is changed from series connection to disconnection, it is determined that the disconnection type of the earphone is the second disconnection type.
在一个实施例中,在耳机连接移动终端后,若耳机与移动终端断开连接,移动终端会产生耳机断开连接的信号,根据该耳机断开连接的信号可判定耳机与移动终端断开连接。在判定耳机与移动终端断开连接后,移动终端可获取耳机的接头内电连接关系,根据耳机的接头内电连接关系判定耳机的断开类型是否为正常断开类型。耳机的接头内电连接关系具体是指耳机的接头内左声道与右声道的电连接关系。其中,安卓系统中可通过AudioManager中isWiredHeadsetOn()检测耳机与移动终端是否断开连接,当耳机与移动终端断开连接时,isWiredHeadsetOn()返回false,即移动终端产生耳机断开连接的信号,通过该信号可判定耳机与移动终端断开连接。In one embodiment, after the earphone is connected to the mobile terminal, if the earphone is disconnected from the mobile terminal, the mobile terminal will generate a signal that the earphone is disconnected, and it can be determined that the earphone is disconnected from the mobile terminal according to the disconnection signal of the earphone. . After determining that the earphone is disconnected from the mobile terminal, the mobile terminal can obtain the electrical connection relationship in the connector of the earphone, and determine whether the disconnection type of the earphone is a normal disconnection type according to the electrical connection relationship in the connector of the earphone. The electrical connection relationship in the connector of the earphone specifically refers to the electrical connection relationship between the left channel and the right channel in the connector of the earphone. Among them, in the Android system, isWiredHeadsetOn() in AudioManager can detect whether the headset is disconnected from the mobile terminal. When the headset is disconnected from the mobile terminal, isWiredHeadsetOn() returns false, that is, the mobile terminal generates a signal that the headset is disconnected. The signal can determine that the headset is disconnected from the mobile terminal.
如图2所示,耳机的接头包括左声道210、右声道220和地线230。如图3所示,当移动终端和耳机连接时,耳机接头内左声道210与地线230组成回路连通、右声道220与地线230组成回路连通,其中,左声道210、右声道220为并联关系。当耳机的断开类型为非正常断开时,如耳机被剪断时,耳机的接头内所有回路同时断开,移动终端获取到耳机的接头内左声道210和右声道220的电连接关系由并联变为断开连接。当耳机的断开类型为正常断开,如用户拔出耳机时,耳机的接头内地线230接口与移动终端先断开连接,再是左声道210接口与移动终端断开连接、右声道220接口与移动终端断开连接。当耳机的地线230接口断开连接时,耳机接头内左声道210与地线230的回路断开、右声道220与地线230的回路断开,左声道210与右声道220组成串联回路。当耳机内的左声道210接口断开连接时,耳机接头内所有回路再断开,即移动终端获取到耳机的接头内左声道210与右声道220的电连接关系为:并联变为串联再变为断开连接。As shown in FIG. 2 , the headphone connector includes a left channel 210 , a right channel 220 and a ground wire 230 . As shown in FIG. 3, when the mobile terminal is connected to the earphone, the left channel 210 and the ground wire 230 in the earphone connector form a loop connection, and the right channel 220 and the ground wire 230 form a loop connection, wherein the left channel 210, the right channel Track 220 is in a parallel relationship. When the disconnection type of the earphone is abnormal disconnection, such as when the earphone is cut off, all circuits in the connector of the earphone are disconnected at the same time, and the mobile terminal obtains the electrical connection relationship between the left channel 210 and the right channel 220 in the connector of the earphone From parallel to disconnected. When the disconnection type of the earphone is normal disconnection, for example, when the user pulls out the earphone, the inner wire 230 interface of the earphone connector is disconnected from the mobile terminal first, then the left channel 210 interface is disconnected from the mobile terminal, and the right channel is disconnected from the mobile terminal. 220 interface is disconnected from the mobile terminal. When the ground wire 230 interface of the earphone is disconnected, the circuit between the left channel 210 and the ground wire 230 in the headphone connector is disconnected, the circuit between the right channel 220 and the ground wire 230 is disconnected, and the left channel 210 and the right channel 220 are disconnected. form a series circuit. When the interface of the left channel 210 in the earphone is disconnected, all circuits in the earphone connector are disconnected again, that is, the electrical connection relationship between the left channel 210 and the right channel 220 in the connector of the earphone obtained by the mobile terminal is: Connecting in series becomes disconnected.
通过耳机接头内左声道与右声道的电连接关系可判定耳机与移动终端断开连接的类型。其中,当耳机的接头内左声道与右声道的电连接关系由并联变为断开连接时,耳机断开类型为第一断开类型,即耳机与移动终端非正常断开连接;当耳机的接头内左声道与右声道的电连接关系由串联变为断开连接时,耳机断开类型为第二断开类型,即耳机与移动终端正常断开连接。The type of disconnection between the earphone and the mobile terminal can be determined by the electrical connection relationship between the left channel and the right channel in the earphone connector. Wherein, when the electrical connection between the left channel and the right channel in the connector of the earphone is changed from parallel to disconnected, the disconnection type of the earphone is the first disconnection type, that is, the earphone is abnormally disconnected from the mobile terminal; when When the electrical connection between the left channel and the right channel in the headphone connector changes from series connection to disconnection, the headphone disconnection type is the second disconnection type, that is, the headphone is normally disconnected from the mobile terminal.
本发明实施例中移动终端,可以便捷的检测耳机与移动终端断开连接的类型。The mobile terminal in the embodiment of the present invention can conveniently detect the type of disconnection between the earphone and the mobile terminal.
在一个实施例中,上述移动终端所包括的处理器980执行程序时还实现以下步骤:接收开启移动终端警报模式的指令,根据指令检测是否有耳机连接的信号;若检测到耳机连接的信号,开启移动终端警报模式。In one embodiment, the processor 980 included in the above-mentioned mobile terminal also implements the following steps when executing the program: receiving an instruction to enable the alarm mode of the mobile terminal, and detecting whether there is a signal of earphone connection according to the instruction; if detecting the signal of earphone connection, Enable mobile terminal alert mode.
移动终端设有移动终端警报模式,在移动终端设置界面可显示开启移动终端警报模式的按钮,若移动终端获取到对开启移动终端警报模式按钮的触控操作,即移动终端接收到开启移动终端警报模式的指令,根据获取的指令可检测是否有耳机连接的信号。其中,当耳机连接移动终端时,会产生耳机连接的信号,移动终端可根据是否产生耳机连接的信号判定耳机与移动终端是否连接。例如,安卓系统中可通过AudioManager中isWiredHeadsetOn()检测耳机与移动终端是否连接。当耳机连接移动终端时,isWiredHeadsetOn()返回true,移动终端检测到isWiredHeadsetOn()返回true,则判定耳机与移动终端连接,开启移动终端警报模式。其中,移动终端警报模式是指移动终端在连接耳机后,根据耳机的断开类型来判定是否发出警报的一种模式。当耳机断开类型为第一断开类型时,即耳机为非正常断开时,开启移动终端警报,用于提醒用户移动终端存在被盗风险;当耳机断开类型为第二断开类型,即耳机为正常断开时,关闭移动终端警报模式。The mobile terminal is provided with a mobile terminal alarm mode, and a button for enabling the mobile terminal alarm mode can be displayed on the mobile terminal setting interface. Mode command, according to the obtained command, it can be detected whether there is a signal of earphone connection. Wherein, when the earphone is connected to the mobile terminal, a signal of earphone connection is generated, and the mobile terminal can determine whether the earphone is connected to the mobile terminal according to whether the signal of earphone connection is generated. For example, in the Android system, whether the headset is connected to the mobile terminal can be detected through isWiredHeadsetOn() in AudioManager. When the headset is connected to the mobile terminal, isWiredHeadsetOn() returns true, and when the mobile terminal detects that isWiredHeadsetOn() returns true, it is determined that the headset is connected to the mobile terminal, and the mobile terminal alarm mode is turned on. The mobile terminal alarm mode refers to a mode in which the mobile terminal determines whether to issue an alarm according to the disconnection type of the earphone after the mobile terminal is connected to the earphone. When the earphone disconnection type is the first disconnection type, that is, when the earphone is abnormally disconnected, the mobile terminal alarm is turned on to remind the user that the mobile terminal is at risk of theft; when the earphone disconnection type is the second disconnection type, That is, when the headset is normally disconnected, the mobile terminal alarm mode is turned off.
其中,开启移动终端警报包括:播放预设的音频文件、开启移动终端振动、播放预设的音频文件且开启移动终端振动。预设的音频文件可为系统预设的音频文件、用户存储的音频文件、用户录制的音频文件等。Wherein, enabling the mobile terminal alarm includes: playing a preset audio file, enabling the mobile terminal to vibrate, playing a preset audio file, and enabling the mobile terminal to vibrate. The preset audio file may be an audio file preset by the system, an audio file stored by a user, an audio file recorded by a user, and the like.
本发明实施例中移动终端,在移动终端警报模式中根据耳机断开的不同类型执行不同操作,可降低移动终端被盗的风险。In the embodiment of the present invention, the mobile terminal performs different operations according to different types of disconnection of the earphone in the mobile terminal alarm mode, which can reduce the risk of the mobile terminal being stolen.
在一个实施例中,上述移动终端所包括的处理器980执行程序时还实现以下步骤:在开启移动终端警报之前,将移动终端音频播放模式切换为外放模式;获取预设的音频播放音量最大值,将移动终端音频播放音量值调整为最大值。In one embodiment, the processor 980 included in the above-mentioned mobile terminal also implements the following steps when executing the program: before turning on the mobile terminal alarm, switching the audio playback mode of the mobile terminal to the external playback mode; obtaining the preset maximum audio playback volume value, adjust the audio playback volume value of the mobile terminal to the maximum value.
当耳机断开类型为第一断开类型类型,即耳机为非正常断开时,移动终端可检测当前音频播放模式是否为外放模式。若当前音频播放模式不为外放模式,则将移动终端音频播放模式切换为外放模式,并获取预设的音频播放量的最大值,将移动终端的当前音频播放音量值调整为预设的音频播放量的最大值。When the earphone disconnection type is the first disconnection type, that is, when the earphone is abnormally disconnected, the mobile terminal can detect whether the current audio playback mode is the external playback mode. If the current audio playback mode is not the external playback mode, switch the audio playback mode of the mobile terminal to the external playback mode, obtain the maximum value of the preset audio playback volume, and adjust the current audio playback volume value of the mobile terminal to the preset value. The maximum amount of audio playback.
本发明实施例中移动终端,可降低移动终端被盗的风险。The mobile terminal in the embodiment of the present invention can reduce the risk of the mobile terminal being stolen.
在一个实施例中,上述移动终端所包括的处理器980执行程序时还实现以下步骤:若未检测到耳机连接的信号,在移动终端界面显示耳机未连接的提示和/或移动终端警报模式无法开启的提示。In one embodiment, the processor 980 included in the above-mentioned mobile terminal also implements the following steps when executing the program: if the signal that the earphone is connected is not detected, a prompt that the earphone is not connected is displayed on the interface of the mobile terminal and/or the alarm mode of the mobile terminal cannot be performed. Turn on the prompt.
移动终端根据接收到的开启移动终端警报模式的指令检测是否有耳机连接的信号,若移动终端未检测到耳机连接的信号,即耳机与移动终端未连接。则在移动终端界面弹出耳机未连接的提示、移动终端警报模式无法开启的提示、耳机未连接且移动终端警报模式无法开启的提示。The mobile terminal detects whether there is an earphone connection signal according to the received instruction to enable the mobile terminal alarm mode. If the mobile terminal does not detect the earphone connection signal, that is, the earphone and the mobile terminal are not connected. Then, a prompt that the headset is not connected, a prompt that the alarm mode of the mobile terminal cannot be turned on, and a prompt that the headset is not connected and the alarm mode of the mobile terminal cannot be turned on will pop up on the interface of the mobile terminal.
本发明实施例中移动终端,在检测到耳机未连接时,在移动终端界面显示耳机未连接的提示,或显示移动终端警报模式无法开启的提示,可方便的提示用户进入移动终端警报模式。In the embodiment of the present invention, when the mobile terminal detects that the headset is not connected, a prompt that the headset is not connected is displayed on the interface of the mobile terminal, or a prompt that the mobile terminal alarm mode cannot be enabled can conveniently prompt the user to enter the mobile terminal alarm mode.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, When the program is executed, it may include the flow of the embodiments of the above-mentioned methods. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), and the like.
以上实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above examples only represent several embodiments of the present invention, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can also be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710091956.0ACN106817495B (en) | 2017-02-21 | 2017-02-21 | Mobile terminal information processing method and device and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710091956.0ACN106817495B (en) | 2017-02-21 | 2017-02-21 | Mobile terminal information processing method and device and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN106817495A CN106817495A (en) | 2017-06-09 |
| CN106817495Btrue CN106817495B (en) | 2019-07-23 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710091956.0AExpired - Fee RelatedCN106817495B (en) | 2017-02-21 | 2017-02-21 | Mobile terminal information processing method and device and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN106817495B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107566604B (en)* | 2017-07-12 | 2020-04-07 | 广东小天才科技有限公司 | Message reminding control method and user terminal |
| 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 | 深圳凯虹移动通信有限公司 | Earphone interface circuit and electronic equipment |
| 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 |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9529431B2 (en)* | 2012-09-06 | 2016-12-27 | Thales Avionics, Inc. | Directional sound systems including eye tracking capabilities and related methods |
| US9393898B2 (en)* | 2014-02-12 | 2016-07-19 | Samson Sports, LLC | Electrical and physical mounting assemblies |
| 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 | 深圳凯虹移动通信有限公司 | Earphone interface circuit and electronic equipment |
| CN103327175A (en)* | 2013-05-21 | 2013-09-25 | 上海斐讯数据通信技术有限公司 | Mobile terminal anti-theft system and mobile terminal anti-theft method |
| Publication number | Publication date |
|---|---|
| CN106817495A (en) | 2017-06-09 |
| Publication | Publication Date | Title |
|---|---|---|
| US10069818B2 (en) | Method, system, device, and terminal for network initialization of multimedia playback device | |
| CN107770760B (en) | A kind of method and mobile terminal of the type identifying bluetooth equipment | |
| CN108886653B (en) | An earphone channel control method, related equipment and system | |
| CN108683798A (en) | A sound output control method and mobile terminal | |
| CN108874357A (en) | A kind of reminding method and mobile terminal | |
| CN112997471B (en) | Audio path switching method and apparatus, readable storage medium, and electronic equipment | |
| CN114077414A (en) | Audio playback control method, device, electronic device and storage medium | |
| CN103618514A (en) | Volume adjustment method, device and electronic equipment | |
| CN108848267B (en) | Audio playback method and mobile terminal | |
| CN108135033A (en) | A kind of Bluetooth connecting method and mobile terminal | |
| CN106126170B (en) | Sound effect setting method of terminal and terminal | |
| CN106445457A (en) | Headphone sound channel switching method and device | |
| CN107566604A (en) | Message reminding control method and user terminal | |
| CN108668328A (en) | A network switching method and mobile terminal | |
| CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
| CN105786439A (en) | Method and device for controlling sound in terminal | |
| CN107861786A (en) | The reminding method and mobile terminal of a kind of notice | |
| CN108307048B (en) | Message output method and device and mobile terminal | |
| CN106851806A (en) | A transmission power control method and mobile terminal | |
| CN109788114A (en) | A call processing method and terminal | |
| CN108718360A (en) | A charging method and mobile terminal | |
| CN106817495B (en) | Mobile terminal information processing method and device and mobile terminal | |
| CN109348366B (en) | A method and mobile terminal for realizing volume adjustment using electrical parameters | |
| CN111526248A (en) | Audio output mode switching method and electronic equipment | |
| CN110248264A (en) | A kind of voice transmission control method and terminal device |
| 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:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CB02 | Change of applicant information | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20190723 | |
| CF01 | Termination of patent right due to non-payment of annual fee |