[go: up one dir, main page]

CN108429863A - Method for switching antennas, mobile terminal, and computer-readable storage medium - Google Patents

Method for switching antennas, mobile terminal, and computer-readable storage medium Download PDF

Info

Publication number
CN108429863A
CN108429863A CN201810529168.XA CN201810529168A CN108429863A CN 108429863 A CN108429863 A CN 108429863A CN 201810529168 A CN201810529168 A CN 201810529168A CN 108429863 A CN108429863 A CN 108429863A
Authority
CN
China
Prior art keywords
mobile terminal
antenna
currently used
detection unit
call
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810529168.XA
Other languages
Chinese (zh)
Other versions
CN108429863B (en
Inventor
肖亚迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810529168.XA priority Critical patent/CN108429863B/en
Publication of CN108429863A publication Critical patent/CN108429863A/en
Application granted granted Critical
Publication of CN108429863B publication Critical patent/CN108429863B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例公开了一种切换天线的方法、移动终端以及计算机可读存储介质,该方法包括:在移动终端处于通话状态时,检测移动终端是否处于熄屏状态或者遮挡接近状态;若处于熄屏状态或者遮挡接近状态,检测移动终端的接收信号强度是否小于预设强度阈值;若移动终端的接收信号强度小于预设强度阈值,移动终端当前用于通话的天线为第一天线,将移动终端当前用于通话的天线从第一天线切换至第二天线。本申请实施例可以在通话状态下切换天线,从而提高通话质量。

The embodiment of the present application discloses a method for switching antennas, a mobile terminal, and a computer-readable storage medium. The method includes: when the mobile terminal is in a call state, detecting whether the mobile terminal is in a screen-off state or in an approaching state; Screen state or blocking approach state, detect whether the received signal strength of the mobile terminal is lower than the preset strength threshold; if the received signal strength of the mobile terminal is lower than the preset strength threshold, the antenna currently used by the mobile terminal for calls is the first antenna, and the The antenna currently used for calls is switched from the first antenna to the second antenna. In the embodiment of the present application, antennas can be switched during a call state, thereby improving call quality.

Description

切换天线的方法、移动终端以及计算机可读存储介质Method for switching antennas, mobile terminal, and computer-readable storage medium

技术领域technical field

本发明涉及移动终端技术领域,具体涉及一种切换天线的方法、移动终端以及计算机可读存储介质。The present invention relates to the technical field of mobile terminals, in particular to a method for switching antennas, a mobile terminal and a computer-readable storage medium.

背景技术Background technique

目前,手机等移动终端在通信过程中,通常是使用一套固定的天线。但是在某些场景下,天线性能会受到影响。At present, mobile terminals such as mobile phones usually use a set of fixed antennas during communication. But in some scenarios, antenna performance will be affected.

发明内容Contents of the invention

本申请实施例提供了一种切换天线的方法、移动终端以及计算机可读存储介质,可以在通话状态下切换天线,从而提高通话质量。Embodiments of the present application provide a method for switching antennas, a mobile terminal, and a computer-readable storage medium, which can switch antennas in a call state, thereby improving call quality.

本申请实施例第一方面提供一种切换天线的方法,包括:The first aspect of the embodiment of the present application provides a method for switching antennas, including:

在移动终端处于通话状态时,检测所述移动终端是否处于熄屏状态或者遮挡接近状态;When the mobile terminal is in a call state, detect whether the mobile terminal is in a screen-off state or in a blocking approach state;

若处于熄屏状态或者遮挡接近状态,检测所述移动终端的接收信号强度是否小于预设强度阈值;If it is in the state of turning off the screen or blocking the approaching state, detecting whether the received signal strength of the mobile terminal is less than a preset strength threshold;

若所述移动终端的接收信号强度小于所述预设强度阈值,所述移动终端当前用于通话的天线为第一天线,将所述移动终端当前用于通话的天线从所述第一天线切换至第二天线。If the received signal strength of the mobile terminal is less than the preset strength threshold, the antenna currently used by the mobile terminal for calls is the first antenna, and the antenna currently used by the mobile terminal for calls is switched from the first antenna to the second antenna.

本申请实施例第二方面提供一种移动终端,包括第一检测单元、第二检测单元以及切换单元,其中:The second aspect of the embodiment of the present application provides a mobile terminal, including a first detection unit, a second detection unit, and a switching unit, wherein:

所述第一检测单元,用于在移动终端处于通话状态时,检测所述移动终端是否处于熄屏状态或者遮挡接近状态;The first detection unit is configured to detect whether the mobile terminal is in a screen-off state or in an approaching state when the mobile terminal is in a call state;

所述第二检测单元,用于在所述第一检测单元检测到所述移动终端处于熄屏状态或者遮挡接近状态时,检测所述移动终端的接收信号强度是否小于预设强度阈值;The second detection unit is configured to detect whether the received signal strength of the mobile terminal is less than a preset strength threshold when the first detection unit detects that the mobile terminal is in a screen-off state or in an approaching state;

所述切换单元,用于在所述第二检测单元检测到所述移动终端的接收信号强度小于所述预设强度阈值时,若所述移动终端当前用于通话的天线为第一天线,将所述移动终端当前用于通话的天线从所述第一天线切换至第二天线。The switching unit is configured to, when the second detection unit detects that the received signal strength of the mobile terminal is lower than the preset strength threshold, if the antenna currently used by the mobile terminal for communication is the first antenna, switch An antenna currently used by the mobile terminal for talking is switched from the first antenna to the second antenna.

本申请实施例第三方面提供一种移动终端,包括处理器以及存储器,所述存储器用于存储一个或多个程序,所述一个或多个程序被配置成由所述处理器执行,所述程序包括用于执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。The third aspect of the embodiment of the present application provides a mobile terminal, including a processor and a memory, the memory is used to store one or more programs, the one or more programs are configured to be executed by the processor, the The program includes part or all of the steps described in any method of the first aspect of the embodiments of the present application.

本申请实施例第四方面提供一种计算机可读存储介质,所述计算机可读存储介质用于存储电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。The fourth aspect of the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium is used to store a computer program for electronic data exchange, wherein the computer program enables the computer to execute the first aspect of the embodiment of the present application Some or all of the steps described in any method.

本申请实施例第五方面提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本申请实施例第一方面任一方法中所描述的部分或全部步骤。The fifth aspect of the embodiment of the present application provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute In one aspect, some or all of the steps described in any method.

本申请实施例中,在移动终端处于通话状态时,检测移动终端是否处于熄屏状态或者遮挡接近状态;若处于熄屏状态或者遮挡接近状态,检测移动终端的接收信号强度是否小于预设强度阈值;若移动终端的接收信号强度小于预设强度阈值,移动终端当前用于通话的天线为第一天线,将移动终端当前用于通话的天线从第一天线切换至第二天线。本申请实施例可以在移动终端处于通话状态时,如果检测到移动终端处于熄屏状态或者遮挡接近状态,则可确认移动终端处于握持状态,如果检测到移动终端的信号较弱,将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量。In the embodiment of the present application, when the mobile terminal is in a call state, it is detected whether the mobile terminal is in the off-screen state or in the blocking approach state; if it is in the off-screen state or in the blocking approach state, it is detected whether the received signal strength of the mobile terminal is less than the preset strength threshold ; If the received signal strength of the mobile terminal is less than the preset strength threshold, the antenna currently used by the mobile terminal for calls is the first antenna, and the antenna currently used by the mobile terminal for calls is switched from the first antenna to the second antenna. In the embodiment of the present application, when the mobile terminal is in the call state, if it is detected that the mobile terminal is in the off-screen state or in the approaching state, it can be confirmed that the mobile terminal is in the holding state. If the signal of the mobile terminal is detected to be weak, the mobile terminal The antenna currently used for calls is switched from the first antenna to the second antenna, thereby improving call quality.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本申请实施例公开的一种切换天线的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for switching antennas disclosed in an embodiment of the present application;

图2是本申请实施例公开的另一种切换天线的方法的流程示意图;FIG. 2 is a schematic flowchart of another method for switching antennas disclosed in the embodiment of the present application;

图3是本申请实施例公开的另一种切换天线的方法的流程示意图;FIG. 3 is a schematic flowchart of another method for switching antennas disclosed in the embodiment of the present application;

图4是本申请实施例公开的另一种切换天线的方法的流程示意图;FIG. 4 is a schematic flowchart of another method for switching antennas disclosed in the embodiment of the present application;

图5是本申请实施例公开的另一种切换天线的方法的流程示意图;FIG. 5 is a schematic flowchart of another method for switching antennas disclosed in the embodiment of the present application;

图6是本申请实施例公开的一种目标区域与预设范围区域的示意图;FIG. 6 is a schematic diagram of a target area and a preset range area disclosed in an embodiment of the present application;

图7是本申请实施例公开的一种移动终端的结构示意图;FIG. 7 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application;

图8是本申请实施例公开的另一种移动终端的结构示意图;FIG. 8 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present application;

图9是本申请实施例公开的又一种移动终端的结构示意图。FIG. 9 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本申请实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminaldevice)等等。为方便描述,上面提到的设备统称为移动终端。The mobile terminals involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For convenience of description, the devices mentioned above are collectively referred to as mobile terminals.

下面对本申请实施例进行详细介绍。The following describes the embodiments of the present application in detail.

请参阅图1,图1是本申请实施例公开的一种切换天线的方法的流程示意图,如图1所示,该切换天线的方法包括如下步骤。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for switching antennas disclosed in an embodiment of the present application. As shown in FIG. 1 , the method for switching antennas includes the following steps.

101,在移动终端处于通话状态时,移动终端检测移动终端是否处于熄屏状态或者遮挡接近状态。若是,则执行步骤102;若否,则执行步骤104。101. When the mobile terminal is in a call state, the mobile terminal detects whether the mobile terminal is in a screen-off state or in an approaching state. If yes, execute step 102; if not, execute step 104.

本申请实施例中,通话状态,指的是移动终端处于电话接通的状态,一般而言,当移动终端接到来电时,用户会接通来电,并用手握持移动终端来接听。由于用户在握持移动终端通话的场景下,一般会将移动终端靠近用户的耳朵,此时移动终端的接近传感器可以检测到有物体接近,移动终端处于遮挡接近状态。如果移动终端不处于熄屏状态或者遮挡接近状态,移动终端可能处于免提模式,用户可能没有握持移动终端,此时天线的收发性能不会由于用户握持而变弱,不会进行天线切换。In the embodiment of the present application, the call state refers to the state that the mobile terminal is connected to the phone. Generally speaking, when the mobile terminal receives an incoming call, the user will connect the incoming call and hold the mobile terminal to answer it. Since the user generally holds the mobile terminal close to the user's ear when holding a mobile phone call, the proximity sensor of the mobile terminal can detect an object approaching, and the mobile terminal is in a blocking approach state. If the mobile terminal is not in the off-screen state or blocked approach state, the mobile terminal may be in hands-free mode, and the user may not be holding the mobile terminal. At this time, the transceiver performance of the antenna will not be weakened by the user's holding, and antenna switching will not be performed. .

由于移动终端在通话状态时,在检测到移动终端处于遮挡接近状态时,为了降低移动终端的屏幕显示的功耗,会关闭移动终端的屏幕,从而将移动终端自动设置为熄屏状态。本申请实施例仅需检测在检测到移动终端处于熄屏状态或者遮挡接近状态即可认为移动终端处于握持状态,可以在移动终端处于通话状态时快速判断移动终端是否处于握持状态。可以根据用户接听电话的习惯来快速判断移动终端是否处于握持状态。When the mobile terminal is in the call state, when it is detected that the mobile terminal is in the blocking and approaching state, in order to reduce the power consumption of the screen display of the mobile terminal, the screen of the mobile terminal will be turned off, thereby automatically setting the mobile terminal to a screen-off state. The embodiment of the present application only needs to detect that the mobile terminal is in the hold state only when it is detected that the mobile terminal is in the off-screen state or in the blocking approach state, and can quickly determine whether the mobile terminal is in the hold state when the mobile terminal is in the call state. Whether the mobile terminal is in a holding state can be quickly judged according to the user's habit of answering calls.

需要说明的是,本申请实施例中的熄屏状态,指的是移动终端自动设置的熄屏状态,并非由于用户手动设置的熄屏状态。It should be noted that the screen-off state in the embodiment of the present application refers to the screen-off state automatically set by the mobile terminal, not the screen-off state manually set by the user.

其中,接近传感器也可称为距离传感器,用于检测移动终端与被测物体之间的距离。接近传感器可以发射和发射红外光脉冲,根据接收和发射红外光脉冲之间的时间差和红外光脉冲的传播速度来计算移动终端与被测物体之间的距离。其中,被测物体可以是任何能够遮挡红外线的物体,比如,人的头部、脸部等。当接近传感器检测到移动终端与被测物体之间的距离小于预设距离阈值时,则认为移动终端有物体接近,认为移动终端处于遮挡接近状态。Wherein, the proximity sensor may also be referred to as a distance sensor, and is used to detect the distance between the mobile terminal and the measured object. The proximity sensor can emit and emit infrared light pulses, and calculate the distance between the mobile terminal and the measured object according to the time difference between receiving and emitting infrared light pulses and the propagation speed of the infrared light pulses. Wherein, the object to be measured may be any object capable of blocking infrared rays, such as a person's head, face, and the like. When the proximity sensor detects that the distance between the mobile terminal and the measured object is less than the preset distance threshold, it is considered that the mobile terminal has an object approaching, and the mobile terminal is considered to be in a blocking approach state.

预设距离阈值可以预先进行设定并存储在移动终端的非易失性存储器中。比如,预设距离阈值可以设定为5厘米。The preset distance threshold can be set in advance and stored in the non-volatile memory of the mobile terminal. For example, the preset distance threshold may be set to 5 centimeters.

102,移动终端检测移动终端的接收信号强度是否小于预设强度阈值。若是,则执行步骤103,若否,则执行步骤104。102. The mobile terminal detects whether the received signal strength of the mobile terminal is less than a preset strength threshold. If yes, execute step 103; if not, execute step 104.

本申请实施例中,移动终端的接收信号强度指的是移动终端的接收信号强度指示RSSI的大小。In the embodiment of the present application, the received signal strength of the mobile terminal refers to the magnitude of the RSSI of the mobile terminal.

其中,接收信号强度指示(Received Signal Strength Indicator,RSSI)用于衡量移动终端接收的信号强度大小,RSSI的单位可以为dBm或者asu。其中dBm表示功率绝对值,信号强度一般为负数,其绝对值数值越小,表示信号强度越强。asu是定义的特有信号单位,数值越大,表示信号强度越强。Wherein, the received signal strength indicator (Received Signal Strength Indicator, RSSI) is used to measure the signal strength received by the mobile terminal, and the unit of RSSI may be dBm or asu. Among them, dBm represents the absolute value of power, and the signal strength is generally a negative number, and the smaller the absolute value, the stronger the signal strength. asu is a unique signal unit defined, the larger the value, the stronger the signal strength.

预设强度阈值可以预先进行设定并存储在移动终端的非易失性存储器中。比如,预设强度阈值可以设置为-90dBm。The preset intensity threshold can be set in advance and stored in the non-volatile memory of the mobile terminal. For example, the preset intensity threshold can be set to -90dBm.

如果移动终端的接收信号强度小于预设强度阈值,表明移动终端当前用于通话的天线的收发性能较差,需要进行天线切换。如果移动终端的接收信号强度大于或等于预设强度阈值,表明移动终端当前用于通话的天线的收发性能较好,无需进行天线切换。If the received signal strength of the mobile terminal is lower than the preset strength threshold, it indicates that the transmitting and receiving performance of the antenna currently used by the mobile terminal for calling is poor, and antenna switching is required. If the received signal strength of the mobile terminal is greater than or equal to the preset strength threshold, it indicates that the antenna currently used by the mobile terminal for calling has a good sending and receiving performance, and there is no need to perform antenna switching.

103,若移动终端当前用于通话的天线为第一天线,移动终端将移动终端当前用于通话的天线从第一天线切换至第二天线。103. If the antenna currently used by the mobile terminal for calls is the first antenna, the mobile terminal switches the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna.

本申请实施例中,移动终端可以采用双天线,其中,第一天线位于移动终端的底部,也可以称为下天线,第二天线位于移动终端的顶部,也可以称为上天线。第一天线和第二天线都可以用于移动信号的发射和接收。一般情况下,为了降低电磁辐射对人体的影响,会优先使用下天线(即第一天线)作为信号的发射和接收。In the embodiment of the present application, the mobile terminal may adopt dual antennas, wherein the first antenna is located at the bottom of the mobile terminal and may also be called the lower antenna, and the second antenna is located at the top of the mobile terminal and may also be called the upper antenna. Both the first antenna and the second antenna can be used for transmitting and receiving mobile signals. Generally, in order to reduce the impact of electromagnetic radiation on the human body, the lower antenna (ie, the first antenna) is preferentially used for signal transmission and reception.

移动终端当前用于通话的天线为第一天线,指的是采用第一天线进行信号的发射和接收,当然,移动终端还可以采用其他天线辅助作为信号的接收,此时,第一天线为主天线,其他天线(比如,第二天线)为辅天线。The antenna currently used by the mobile terminal for calls is the first antenna, which refers to the use of the first antenna for signal transmission and reception. Of course, the mobile terminal can also use other antennas to assist in signal reception. At this time, the first antenna is the main antenna. antenna, and other antennas (for example, the second antenna) are auxiliary antennas.

若移动终端当前用于通话的天线为第一天线,在移动终端处于通话状态时,用户一般会握住移动终端的下半部,也即,用户的握持姿势会影响第一天线的性能,而握持姿势对第二天线的影响明显小于第一天线,如果移动终端的接收信号强度小于预设强度阈值,也即移动终端用于通话的第一天线的收发性能较差时,移动终端将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量。If the antenna currently used by the mobile terminal for calls is the first antenna, when the mobile terminal is in a call state, the user will generally hold the lower half of the mobile terminal, that is, the user's holding posture will affect the performance of the first antenna, However, the impact of the holding posture on the second antenna is significantly smaller than that of the first antenna. If the received signal strength of the mobile terminal is lower than the preset strength threshold, that is, when the first antenna used by the mobile terminal for calls has poor transceiver performance, the mobile terminal will An antenna currently used by the mobile terminal for calls is switched from the first antenna to the second antenna, thereby improving call quality.

移动终端当前用于通话的天线为第二天线,指的是采用第二天线进行信号的发射和接收,当然,移动终端还可以采用其他天线辅助作为信号的接收,此时,第二天线为主天线,其他天线(比如,第一天线)为辅天线。The antenna currently used by the mobile terminal for calls is the second antenna, which refers to the use of the second antenna for signal transmission and reception. Of course, the mobile terminal can also use other antennas to assist in signal reception. At this time, the second antenna is the main antenna, and other antennas (for example, the first antenna) are auxiliary antennas.

当天线从第一天线切换至第二天线之后,对应的天线配置参数也会发生相应的变化。比如,天线配置参数可以包括天线的波瓣宽度、天线的频率范围、天线的发射功率等。When the antenna is switched from the first antenna to the second antenna, corresponding antenna configuration parameters will also change accordingly. For example, the antenna configuration parameters may include the lobe width of the antenna, the frequency range of the antenna, the transmit power of the antenna, and the like.

可选的,步骤101和步骤102可以同时执行,在移动终端处于通话状态时,只需要检测到移动终端处于熄屏状态或者遮挡接近状态,并且移动终端的接收信号强度小于预设强度阈值,即可执行步骤103,从而进行天线切换。Optionally, step 101 and step 102 can be performed at the same time. When the mobile terminal is in a call state, it only needs to be detected that the mobile terminal is in a screen-off state or in an approaching state, and the received signal strength of the mobile terminal is less than a preset strength threshold, that is, Step 103 may be executed to perform antenna switching.

104,结束本流程。104. End this process.

本申请实施例中,在移动终端处于通话状态时,如果检测到移动终端处于熄屏状态或者遮挡接近状态,则可确认移动终端处于握持状态,如果检测到移动终端的信号较弱,将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量。In the embodiment of the present application, when the mobile terminal is in the call state, if it is detected that the mobile terminal is in the off-screen state or in the approaching state, it can be confirmed that the mobile terminal is in the holding state. If it is detected that the signal of the mobile terminal is weak, it will move The antenna currently used by the terminal for calls is switched from the first antenna to the second antenna, thereby improving call quality.

请参阅图2,图2是本申请实施例公开的另一种切换天线的方法的流程示意图,图2是在图1的基础上进一步优化得到的,如图2所示,该切换天线的方法包括如下步骤。Please refer to Figure 2, Figure 2 is a schematic flowchart of another method for switching antennas disclosed in the embodiment of the present application, Figure 2 is further optimized on the basis of Figure 1, as shown in Figure 2, the method for switching antennas Including the following steps.

201,在移动终端处于通话状态时,移动终端检测移动终端是否处于熄屏状态或者遮挡接近状态。若是,则执行步骤202;若否,则执行步骤205。201. When the mobile terminal is in a call state, the mobile terminal detects whether the mobile terminal is in a screen-off state or in an approaching state. If yes, go to step 202; if not, go to step 205.

202,移动终端检测移动终端的接收信号强度是否小于预设强度阈值。若是,则执行步骤203,若否,则执行步骤205。202. The mobile terminal detects whether the received signal strength of the mobile terminal is less than a preset strength threshold. If yes, execute step 203; if not, execute step 205.

203,移动终端检测移动终端是否插入有线耳机,检测移动终端是否与无线耳机连接。若移动终端未插入有线耳机并且移动终端不与无线耳机连接,执行步骤204;若移动终端插入有线耳机或者移动终端与无线耳机连接,执行步骤205。203. The mobile terminal detects whether the mobile terminal is plugged into a wired headset, and detects whether the mobile terminal is connected to the wireless headset. If the mobile terminal is not plugged into a wired headset and the mobile terminal is not connected to the wireless headset, perform step 204; if the mobile terminal is inserted into a wired headset or the mobile terminal is connected to the wireless headset, perform step 205.

本申请实施例中,无线耳机可以是蓝牙耳机。本申请可以在用户处于耳机接听电话的场景下,即使检测到移动终端处于熄屏状态或者遮挡接近状态,也不会进行天线切换。比如,用户将移动终端屏幕朝下放在桌上的情况,移动终端也没有处于握持状态。本申请实施例可以避免误触发天线切换。In this embodiment of the present application, the wireless headset may be a Bluetooth headset. In the present application, in the scene where the user is answering the phone with the earphone, even if it is detected that the mobile terminal is in the off-screen state or in the blocking approach state, the antenna switching will not be performed. For example, when the user puts the mobile terminal on the table with the screen facing down, the mobile terminal is not in a holding state. The embodiment of the present application can avoid false triggering of antenna switching.

204,若移动终端当前用于通话的天线为第一天线,移动终端将移动终端当前用于通话的天线从第一天线切换至第二天线。204. If the antenna currently used by the mobile terminal for calls is the first antenna, the mobile terminal switches the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna.

205,结束本流程。205. End this process.

本申请实施例中的步骤201至步骤202可以参见图1所示的步骤101至步骤102,步骤204-步骤205可以参见图1所示的步骤103至步骤104,此处不再赘述。Steps 201 to 202 in the embodiment of the present application may refer to steps 101 to 102 shown in FIG. 1 , and steps 204 to 205 may refer to steps 103 to 104 shown in FIG. 1 , which will not be repeated here.

本申请实施例中,在移动终端处于通话状态时,如果检测到移动终端处于熄屏状态或者遮挡接近状态,则可确认移动终端处于握持状态,如果检测到移动终端的信号较弱,移动终端未插入有线耳机并且移动终端不与无线耳机连接时,将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量,并且可以避免误触发天线切换。In the embodiment of the present application, when the mobile terminal is in the call state, if it is detected that the mobile terminal is in the off-screen state or in the blocking approach state, it can be confirmed that the mobile terminal is in the holding state; if it is detected that the signal of the mobile terminal is weak, the mobile terminal When the wired headset is not inserted and the mobile terminal is not connected to the wireless headset, the antenna currently used by the mobile terminal for calls is switched from the first antenna to the second antenna, thereby improving call quality and avoiding false triggering of antenna switching.

请参阅图3,图3是本申请实施例公开的另一种切换天线的方法的流程示意图,图3是在图1的基础上进一步优化得到的,如图3所示,该切换天线的方法包括如下步骤。Please refer to Figure 3, Figure 3 is a schematic flowchart of another method for switching antennas disclosed in the embodiment of the present application, Figure 3 is further optimized on the basis of Figure 1, as shown in Figure 3, the method for switching antennas Including the following steps.

301,在移动终端处于通话状态时,移动终端检测移动终端是否处于熄屏状态或者遮挡接近状态。若是,则执行步骤302;若否,则执行步骤305。301. When the mobile terminal is in a call state, the mobile terminal detects whether the mobile terminal is in a screen-off state or in an approaching state. If yes, go to step 302; if not, go to step 305.

302,移动终端检测移动终端的接收信号强度是否小于预设强度阈值。若是,则执行步骤303,若否,则执行步骤305。302. The mobile terminal detects whether the received signal strength of the mobile terminal is less than a preset strength threshold. If yes, execute step 303; if not, execute step 305.

303,移动终端检测移动终端的移动速度是否小于预设速度阈值。若是,执行步骤304;若否,执行步骤305。303. The mobile terminal detects whether the moving speed of the mobile terminal is less than a preset speed threshold. If yes, go to step 304; if not, go to step 305.

本申请实施例中,当移动终端检测到自身的移动速度小于预设速度阈值时,表明移动终端不处于高速模式。预设速度阈值可以预先进行设定并存储在移动终端的非易失性存储器中,例如,预设速度阈值可以设置为60千米/小时。In the embodiment of the present application, when the mobile terminal detects that its own moving speed is lower than the preset speed threshold, it indicates that the mobile terminal is not in the high-speed mode. The preset speed threshold can be set in advance and stored in the non-volatile memory of the mobile terminal, for example, the preset speed threshold can be set to 60 km/h.

例如,在汽车、高铁等高速移动的交通工具上时,由于移动终端会频繁的进行小区切换和重选,导致移动终端的信号不稳定,此时如果检测到移动终端的信号小于预设强度阈值可能是由于小区切换导致的,则没有必要进行天线切换。本申请实施例可以在移动终端处于高速移动的场景时停止进行天线切换,避免出现乒乓切换的情况。For example, when the mobile terminal is on a high-speed moving vehicle such as a car or a high-speed rail, the signal of the mobile terminal is unstable due to frequent cell switching and reselection. If it is detected that the signal of the mobile terminal is lower than the preset strength threshold It may be caused by cell switching, and there is no need to perform antenna switching. In the embodiment of the present application, antenna switching can be stopped when the mobile terminal is moving at a high speed, so as to avoid ping-pong switching.

304,若移动终端当前用于通话的天线为第一天线,移动终端将移动终端当前用于通话的天线从第一天线切换至第二天线。304. If the antenna currently used by the mobile terminal for calls is the first antenna, the mobile terminal switches the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna.

305,结束本流程。305. End this process.

本申请实施例中的步骤301至步骤302可以参见图1所示的步骤101至步骤102,步骤304-步骤305可以参见图1所示的步骤103至步骤104,此处不再赘述。Steps 301 to 302 in the embodiment of the present application may refer to steps 101 to 102 shown in FIG. 1 , and steps 304 to 305 may refer to steps 103 to 104 shown in FIG. 1 , which will not be repeated here.

本申请实施例中,在移动终端处于通话状态时,如果检测到移动终端处于熄屏状态或者遮挡接近状态,则可确认移动终端处于握持状态,如果检测到移动终端的信号较弱,且移动终端的移动速度小于预设速度阈值,则将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量。可以在移动终端处于高速移动的场景时停止进行天线切换,避免出现乒乓切换的情况。In the embodiment of the present application, when the mobile terminal is in the call state, if it is detected that the mobile terminal is in the off-screen state or in the approaching state, it can be confirmed that the mobile terminal is in the holding state; if it is detected that the signal of the mobile terminal is weak, and the mobile If the moving speed of the terminal is lower than the preset speed threshold, the antenna currently used by the mobile terminal for calls is switched from the first antenna to the second antenna, thereby improving call quality. Antenna switching can be stopped when the mobile terminal is in a scene of high-speed movement, so as to avoid ping-pong switching.

请参阅图4,图4是本申请实施例公开的另一种切换天线的方法的流程示意图,图4是在图1的基础上进一步优化得到的,如图4所示,该切换天线的方法包括如下步骤。Please refer to Fig. 4. Fig. 4 is a schematic flowchart of another method for switching antennas disclosed in the embodiment of the present application. Fig. 4 is further optimized on the basis of Fig. 1. As shown in Fig. 4, the method for switching antennas Including the following steps.

401,在移动终端处于通话状态时,移动终端检测移动终端是否处于熄屏状态或者遮挡接近状态。若是,则执行步骤402;若否,则执行步骤405。401. When the mobile terminal is in a call state, the mobile terminal detects whether the mobile terminal is in a screen-off state or in an approaching state. If yes, execute step 402; if not, execute step 405.

402,移动终端检测移动终端的接收信号强度是否小于预设强度阈值。若是,则执行步骤403,若否,则执行步骤405。402. The mobile terminal detects whether the received signal strength of the mobile terminal is less than a preset strength threshold. If yes, execute step 403 ; if not, execute step 405 .

403,若移动终端当前用于通话的天线为第一天线,移动终端将移动终端当前用于通话的天线从第一天线切换至第二天线。403. If the antenna currently used by the mobile terminal for calls is the first antenna, the mobile terminal switches the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna.

404,若移动终端不处于通话状态,移动终端将移动终端当前用于通话的天线从第二天线切换至第一天线。404. If the mobile terminal is not in the call state, the mobile terminal switches the antenna currently used by the mobile terminal for the call from the second antenna to the first antenna.

本申请实施例中,在移动终端处于通话状态时,并且移动终端处于握持状态时,如果检测到移动终端的信号较弱,将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量;移动终端当前用于通话的天线从第一天线切换至第二天线之后,如果移动终端不处于通话状态,则可以将移动终端当前用于通话的天线从第二天线切换至第一天线,可以根据移动终端是否处于通话状态来灵活进行天线切换,可以实现动态天线切换。In the embodiment of the present application, when the mobile terminal is in the state of talking and the mobile terminal is in the holding state, if the signal of the mobile terminal is detected to be weak, the antenna currently used by the mobile terminal for talking is switched from the first antenna to the second antenna. Antenna, so as to improve the quality of calls; after the antenna currently used by the mobile terminal for calls is switched from the first antenna to the second antenna, if the mobile terminal is not in a call state, the antenna currently used by the mobile terminal for calls can be switched from the second antenna For the first antenna, antenna switching can be performed flexibly according to whether the mobile terminal is in a call state, and dynamic antenna switching can be realized.

其中,步骤404在步骤403之后执行。Wherein, step 404 is executed after step 403 .

405,结束本流程。405. End this process.

本申请实施例中的步骤401至步骤403可以参见图1所示的步骤101至步骤103,步骤405可以参见图1所示的步骤104,此处不再赘述。For steps 401 to 403 in the embodiment of the present application, reference may be made to steps 101 to 103 shown in FIG. 1 , and for step 405, reference may be made to step 104 shown in FIG. 1 , which will not be repeated here.

本申请实施例中,在移动终端处于通话状态时,如果检测到移动终端处于熄屏状态或者遮挡接近状态,则可确认移动终端处于握持状态,如果检测到移动终端的信号较弱,将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量。如果移动终端不处于通话状态,则可以将移动终端当前用于通话的天线从第二天线切换至第一天线,可以根据移动终端是否处于通话状态来灵活进行天线切换,可以实现动态天线切换。In the embodiment of the present application, when the mobile terminal is in the call state, if it is detected that the mobile terminal is in the off-screen state or in the approaching state, it can be confirmed that the mobile terminal is in the holding state. If it is detected that the signal of the mobile terminal is weak, it will move The antenna currently used by the terminal for calls is switched from the first antenna to the second antenna, thereby improving call quality. If the mobile terminal is not in the talking state, the antenna currently used by the mobile terminal for talking can be switched from the second antenna to the first antenna, and the antenna can be switched flexibly according to whether the mobile terminal is in the talking state, and dynamic antenna switching can be realized.

请参阅图5,图5是本申请实施例公开的另一种切换天线的方法的流程示意图,图5是在图1的基础上进一步优化得到的,如图5所示,该切换天线的方法包括如下步骤。Please refer to FIG. 5. FIG. 5 is a schematic flowchart of another method for switching antennas disclosed in the embodiment of the present application. FIG. 5 is further optimized on the basis of FIG. 1. As shown in FIG. 5, the method for switching antennas Including the following steps.

501,在移动终端处于通话状态时,移动终端检测移动终端是否处于熄屏状态或者遮挡接近状态。若是,则执行步骤502;若否,则执行步骤505。501. When the mobile terminal is in a call state, the mobile terminal detects whether the mobile terminal is in a screen-off state or in an approaching state. If yes, execute step 502; if not, execute step 505.

502,移动终端检测移动终端的接收信号强度是否小于预设强度阈值。若是,则执行步骤503,若否,则执行步骤505。502. The mobile terminal detects whether the received signal strength of the mobile terminal is less than a preset strength threshold. If yes, execute step 503; if not, execute step 505.

503,若移动终端当前用于通话的天线为第一天线,移动终端将移动终端当前用于通话的天线从第一天线切换至第二天线。503. If the antenna currently used by the mobile terminal for calls is the first antenna, the mobile terminal switches the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna.

504,若移动终端的接收信号强度小于预设强度阈值,移动终端输出提示信息,该提示信息用于提示用户将移动终端移动至目标区域,该目标区域为移动终端当前所在位置的预设范围区域内历史统计的信号强度大于预设强度阈值的区域。504. If the received signal strength of the mobile terminal is less than the preset strength threshold, the mobile terminal outputs prompt information, the prompt information is used to prompt the user to move the mobile terminal to a target area, and the target area is a preset area within the current location of the mobile terminal The area where the signal strength of historical statistics is greater than the preset strength threshold.

本申请实施例中,当移动终端当前用于通话的天线从第一天线切换至第二天线之后,若移动终端的接收信号强度仍然小于预设强度阈值,表明移动终端的第一天线和第二天线的信号强度都较弱,此时移动终端极有可能处于基站弱覆盖的情况,移动终端可以输出提示信息以提示用户走向历史统计的信号强度较强的区域,从而提高移动终端的通信质量。In the embodiment of the present application, after the antenna currently used by the mobile terminal for calls is switched from the first antenna to the second antenna, if the received signal strength of the mobile terminal is still lower than the preset strength threshold, it indicates that the first antenna and the second antenna of the mobile terminal The signal strength of the antennas is weak. At this time, the mobile terminal is likely to be in the weak coverage of the base station. The mobile terminal can output prompt information to remind the user to go to an area with strong signal strength according to historical statistics, thereby improving the communication quality of the mobile terminal.

其中,提示信息可以是文字信息,也可以是图片信息,也可以是文字信息和图片信息的组合。比如,移动终端可以通过显示屏输出图文信息。图文信息可以包括从移动终端的当前位置到目标区域的路线规划。Wherein, the prompt information may be text information, picture information, or a combination of text information and picture information. For example, the mobile terminal can output graphic information through the display screen. The graphic information may include route planning from the current location of the mobile terminal to the target area.

举例来说,目标区域可以采用如下的方式进行确定:获取移动终端当前所在位置;以所述移动终端当前所在位置为圆形,预设距离阈值为半径,确定预设范围区域;获取所述预设范围区域内所述移动终端在历史活动过程中统计的信号强度分布;根据该信号强度分布确定信号强度大于预设强度阈值的区域为目标区域。For example, the target area can be determined in the following manner: obtain the current location of the mobile terminal; use the current location of the mobile terminal as a circle and a preset distance threshold as a radius to determine a preset range area; obtain the preset Assume that the signal strength distribution of the mobile terminal in the range area is counted during the historical activity process; according to the signal strength distribution, an area with a signal strength greater than a preset strength threshold is determined as the target area.

请参阅图6,图6是本申请实施例公开的一种目标区域与预设范围区域的示意图。从图6可以看出,目标区域内的信号强度均大于预设强度阈值(比如,-90dBm)。Please refer to FIG. 6 . FIG. 6 is a schematic diagram of a target area and a preset range area disclosed in an embodiment of the present application. It can be seen from FIG. 6 that the signal strength in the target area is greater than a preset strength threshold (for example, -90dBm).

其中,步骤504在步骤503之后执行。Wherein, step 504 is executed after step 503 .

505,结束本流程。505. End this process.

本申请实施例中的步骤501至步骤503可以参见图1所示的步骤101至步骤103,步骤505可以参见图1所示的步骤104,此处不再赘述。Steps 501 to 503 in the embodiment of the present application may refer to steps 101 to 103 shown in FIG. 1 , and step 505 may refer to step 104 shown in FIG. 1 , which will not be repeated here.

本申请实施例中,可以在移动终端处于通话状态,如果移动终端的第一天线和第二天线的信号强度都较弱,表明移动终端极有可能处于基站弱覆盖的情况,此时可以输出提示信息以提示用户走向历史统计的信号强度较强的区域(基站覆盖信号较强的区域),从而提高移动终端的通话质量。In this embodiment of the application, when the mobile terminal is in a call state, if the signal strengths of the first antenna and the second antenna of the mobile terminal are weak, it indicates that the mobile terminal is very likely to be in a situation where the base station has weak coverage, and a prompt can be output at this time The information is used to prompt the user to go to an area with a strong signal strength in historical statistics (an area with a strong signal covered by the base station), thereby improving the call quality of the mobile terminal.

上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,移动终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。The foregoing mainly introduces the solutions of the embodiments of the present application from the perspective of executing the process on the method side. It can be understood that, in order to realize the above functions, the mobile terminal includes hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that the present invention can be realized in the form of hardware or a combination of hardware and computer software in combination with the units and algorithm steps of each example described in the embodiments disclosed herein. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

本申请实施例可以根据上述方法示例对移动终端进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。The embodiments of the present application may divide the mobile terminal into functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.

请参阅图7,图7是本申请实施例公开的一种移动终端的结构示意图。如图7所示,该移动终端700包括第一检测单元701、第二检测单元702以及切换单元703,其中:Please refer to FIG. 7 . FIG. 7 is a schematic structural diagram of a mobile terminal disclosed in an embodiment of the present application. As shown in FIG. 7, the mobile terminal 700 includes a first detection unit 701, a second detection unit 702, and a switching unit 703, wherein:

第一检测单元701,用于在移动终端处于通话状态时,检测移动终端是否处于熄屏状态或者遮挡接近状态;The first detection unit 701 is configured to detect whether the mobile terminal is in a screen-off state or in an approaching state when the mobile terminal is in a call state;

第二检测单元702,用于在第一检测单元701检测到移动终端处于熄屏状态或者遮挡接近状态时,检测移动终端的接收信号强度是否小于预设强度阈值;The second detection unit 702 is configured to detect whether the received signal strength of the mobile terminal is less than a preset strength threshold when the first detection unit 701 detects that the mobile terminal is in a screen-off state or in an approaching state;

切换单元703,用于在第二检测单元702检测到移动终端的接收信号强度小于预设强度阈值时,若移动终端当前用于通话的天线为第一天线,将移动终端当前用于通话的天线从第一天线切换至第二天线。The switching unit 703 is configured to switch the antenna currently used by the mobile terminal for the call to Switch from the first antenna to the second antenna.

可选的,移动终端还包括第三检测单元704;Optionally, the mobile terminal further includes a third detection unit 704;

第三检测单元704,用于在第二检测单元702检测到移动终端的接收信号强度小于预设强度阈值时,检测移动终端是否插入有线耳机,以及用于检测移动终端是否与无线耳机连接;The third detection unit 704 is configured to detect whether the mobile terminal is plugged into a wired headset when the second detection unit 702 detects that the received signal strength of the mobile terminal is less than a preset strength threshold, and is used to detect whether the mobile terminal is connected to the wireless headset;

切换单元703,还用于在第三检测单元704检测到移动终端未插入有线耳机并且移动终端不与无线耳机连接时,将移动终端当前用于通话的天线从第一天线切换至第二天线。The switching unit 703 is further configured to switch the antenna currently used by the mobile terminal for calling from the first antenna to the second antenna when the third detection unit 704 detects that the mobile terminal is not plugged into a wired headset and the mobile terminal is not connected to the wireless headset.

可选的,移动终端还包括第四检测单元705;Optionally, the mobile terminal further includes a fourth detection unit 705;

第四检测单元705,用于在第二检测单元702检测到移动终端的接收信号强度小于预设强度阈值时,检测移动终端的移动速度;The fourth detection unit 705 is configured to detect the moving speed of the mobile terminal when the second detection unit 702 detects that the received signal strength of the mobile terminal is less than a preset strength threshold;

切换单元703,还用于在第四检测单元705检测到移动终端的移动速度小于预设速度阈值时,将移动终端当前用于通话的天线从第一天线切换至第二天线。The switching unit 703 is further configured to switch the antenna currently used by the mobile terminal for calling from the first antenna to the second antenna when the fourth detection unit 705 detects that the moving speed of the mobile terminal is lower than a preset speed threshold.

可选的,切换单元703,还用于将移动终端当前用于通话的天线从第一天线切换至第二天线之后,当第一检测单元701检测到移动终端不处于通话状态时,将移动终端当前用于通话的天线从第二天线切换至第一天线。Optionally, the switching unit 703 is also configured to switch the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna, and when the first detection unit 701 detects that the mobile terminal is not in a call state, switch the mobile terminal The antenna currently used for calls is switched from the second antenna to the first antenna.

可选的,移动终端还包括输出单元706;Optionally, the mobile terminal further includes an output unit 706;

输出单元706,用于在切换单元703将移动终端当前用于通话的天线从第一天线切换至第二天线之后,当第二检测单元702检测到移动终端的接收信号强度小于预设强度阈值时,输出提示信息,提示信息用于提示用户将移动终端移动至目标区域,目标区域为移动终端当前所在位置的预设范围区域内历史统计的信号强度大于预设强度阈值的区域。The output unit 706 is configured to switch the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna after the switching unit 703, when the second detection unit 702 detects that the received signal strength of the mobile terminal is less than a preset strength threshold , outputting prompt information, where the prompt information is used to prompt the user to move the mobile terminal to a target area, where the target area is an area within the preset range area where the mobile terminal is currently located and the signal strength of historical statistics is greater than the preset strength threshold.

实施图7所示的移动终端,在移动终端处于通话状态时,如果检测到移动终端处于熄屏状态或者遮挡接近状态,则可确认移动终端处于握持状态,如果检测到移动终端的信号较弱,将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量。Implement the mobile terminal shown in Figure 7. When the mobile terminal is in the call state, if it is detected that the mobile terminal is in the off-screen state or in the approaching state, it can be confirmed that the mobile terminal is in the holding state. If the signal of the mobile terminal is detected to be weak , switching the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna, thereby improving call quality.

请参阅图8,图8是本申请实施例公开的另一种移动终端的结构示意图。如图8所示,该移动终端800包括处理器801和存储器802,其中,移动终端800还可以包括总线803,处理器801和存储器802可以通过总线803相互连接,总线803可以是外设部件互连标准(Peripheral Component Interconnect,简称PCI)总线或扩展工业标准结构(ExtendedIndustry Standard Architecture,简称EISA)总线等。总线803可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。其中,移动终端800还可以包括输入输出设备804,输入输出设备804可以包括显示屏,例如液晶显示屏。存储器802用于存储包含指令的一个或多个程序;处理器801用于调用存储在存储器802中的指令执行上述图1至图6中的部分或全部方法步骤。Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of another mobile terminal disclosed in an embodiment of the present application. As shown in FIG. 8, the mobile terminal 800 includes a processor 801 and a memory 802, wherein the mobile terminal 800 may also include a bus 803, the processor 801 and the memory 802 may be connected to each other through the bus 803, and the bus 803 may be an A standard (Peripheral Component Interconnect, referred to as PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus, etc. The bus 803 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in FIG. 8 , but it does not mean that there is only one bus or one type of bus. Wherein, the mobile terminal 800 may further include an input and output device 804, and the input and output device 804 may include a display screen, such as a liquid crystal display screen. The memory 802 is used to store one or more programs including instructions; the processor 801 is used to call the instructions stored in the memory 802 to execute some or all of the above-mentioned method steps in FIGS. 1 to 6 .

实施图9所示的移动终端,在移动终端处于通话状态时,如果检测到移动终端处于熄屏状态或者遮挡接近状态,则可确认移动终端处于握持状态,如果检测到移动终端的信号较弱,将移动终端当前用于通话的天线从第一天线切换至第二天线,从而提高通话质量。Implement the mobile terminal shown in Figure 9. When the mobile terminal is in the call state, if it is detected that the mobile terminal is in the off-screen state or in the approaching state, it can be confirmed that the mobile terminal is in the holding state. If the signal of the mobile terminal is detected to be weak , switching the antenna currently used by the mobile terminal for calls from the first antenna to the second antenna, thereby improving call quality.

本申请实施例还提供了另一种移动终端,如图9所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑等任意终端设备,以移动终端为手机为例:The embodiment of the present application also provides another mobile terminal, as shown in Figure 9, for the sake of illustration, only the parts related to the embodiment of the present application are shown, and the specific technical details are not disclosed, please refer to the method of the embodiment of the present application part. The mobile terminal can be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, etc. Taking 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 shows a block diagram of a partial structure of a mobile phone related to the mobile terminal provided by the embodiment of the present application. 9, the mobile phone includes: a radio frequency (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 (Wireless Fidelity, WiFi) module 970, 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 to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.

下面结合图9对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 9:

RF电路910可用于信息的接收和发送。通常,RF电路910包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路910还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobilecommunication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code DivisionMultiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。RF circuitry 910 may be used for the reception and transmission of information. Generally, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 910 may also communicate with networks and other devices via wireless communications. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobilecommunication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (Short Messaging Service, SMS), etc.

存储器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 by at least one function, etc.; the data storage area may store data created according to the use of the mobile phone, etc. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

输入单元930可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元930可包括指纹识别模组931以及其他输入设备932。指纹识别模组931,可采集用户在其上的指纹数据。除了指纹识别模组931,输入单元930还可以包括其他输入设备932。具体地,其他输入设备932可以包括但不限于触控屏、物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 930 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 930 may include a fingerprint identification module 931 and other input devices 932 . The fingerprint identification module 931 can collect the fingerprint data of the user on it. In addition to the fingerprint recognition module 931 , the input unit 930 may also include other input devices 932 . Specifically, other input devices 932 may include but not limited to one or more of a touch screen, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, joystick, and the like.

显示单元940可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元940可包括显示屏941,可选的,可以采用液晶显示器(Liquid CrystalDisplay,LCD)、有机或无机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示屏941。The display unit 940 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 940 may include a display screen 941. Optionally, the display screen 941 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic or inorganic light-emitting diode (Organic Light-Emitting Diode, OLED), and the like.

手机还可包括至少一种传感器950,比如光传感器、运动传感器、压力传感器、温度传感器以及其他传感器。具体地,光传感器可包括环境光传感器(也称为光线传感器)及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节手机的背光亮度,进而调节显示屏941的亮度,接近传感器可在手机移动到耳边时,关闭显示屏941和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 950, such as a light sensor, motion sensor, pressure sensor, temperature sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor (also called a light sensor) and a proximity sensor. When the mobile phone is moved to the ear, the display screen 941 and/or the backlight are turned off. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the application of mobile phone posture (such as horizontal and vertical screen switching, magnetic force, etc.) Attitude calibration), vibration recognition related functions (such as pedometer, tap), etc. As for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. that can also be configured on the mobile phone, I will not repeat them here.

音频电路960、扬声器961,传声器962可提供用户与手机之间的音频接口。音频电路960可将接收到的音频数据转换后的电信号,传输到扬声器961,由扬声器961转换为声音信号播放;另一方面,传声器962将收集的声音信号转换为电信号,由音频电路960接收后转换为音频数据,再将音频数据播放处理器980处理后,经RF电路910以发送给比如另一手机,或者将音频数据播放至存储器920以便进一步处理。The audio circuit 960, the speaker 961, and the microphone 962 can provide an audio interface between the user and the mobile phone. The audio circuit 960 can transmit the electrical signal converted from the received audio data to the loudspeaker 961, and the loudspeaker 961 converts it into a sound signal for playback; After being received, it is converted into audio data, and after being processed by the audio data playback processor 980, the audio data is sent to, for example, another mobile phone through the RF circuit 910, or the audio data is played to the memory 920 for further processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块970可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图9示出了WiFi模块970,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users 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 a WiFi module 970, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.

处理器980是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器920内的软件程序和/或模块,以及调用存储在存储器920内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器980可包括一个或多个处理单元;优选的,处理器980可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器980中。The processor 980 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 920, and calling data stored in the memory 920, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that, the foregoing modem processor may not be integrated into the processor 980 .

手机还包括给各个部件供电的电源990(比如电池),优选的,电源可以通过电源管理系统与处理器980逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 990 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 980 through the power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.

手机还可以包括摄像头9100,摄像头9100用于拍摄图像与视频,并将拍摄的图像和视频传输到处理器980进行处理。The mobile phone may also include a camera 9100, and the camera 9100 is used to capture images and videos, and transmit the captured images and videos to the processor 980 for processing.

手机还可以蓝牙模块等,在此不再赘述。The mobile phone can also be a Bluetooth module, etc., which will not be repeated here.

前述图1~图6所示的实施例中,各步骤方法流程可以基于该手机的结构实现。In the aforementioned embodiments shown in FIG. 1 to FIG. 6 , the method flow of each step can be implemented based on the structure of the mobile phone.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种切换天线的方法的部分或全部步骤。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute any method for switching antennas as described in the above method embodiments. some or all of the steps.

本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种切换天线的方法的部分或全部步骤。The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute the method described in the above method embodiments Some or all of the steps in any method of switching antennas.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The embodiments of the present application have been described in detail above, and specific examples have been used in this paper to illustrate the principles and implementation modes of the present invention. The descriptions of the above embodiments are only used to help understand the method of the present invention and its core idea; meanwhile, for Those skilled in the art will have changes in the specific implementation and scope of application according to the idea of the present invention. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (12)

1. a kind of method of switching antenna, which is characterized in that including:
When mobile terminal is in talking state, detects the mobile terminal and whether be in and put out screen state or block close to shape State;
If in putting out screen state or blocking proximity state, whether the received signal strength of the mobile terminal is detected less than default Intensity threshold;
If the received signal strength of the mobile terminal is less than the preset strength threshold value, the mobile terminal is currently used in call Antenna be first antenna, the antenna that the mobile terminal is currently used in call switches to second day from the first antenna Line.
2. according to the method described in claim 1, it is characterized in that, the received signal strength of the detection mobile terminal is It is no less than after preset strength threshold value and described the mobile terminal being currently used in the antenna of call from the first antenna It switches to before the second antenna, the method further includes:
If the received signal strength of the mobile terminal is less than the preset strength threshold value, detect whether the mobile terminal is inserted into Wired earphone, detects whether the mobile terminal connect with wireless headset;
If the mobile terminal is not inserted into the wired earphone and the mobile terminal is not connect with the wireless headset, hold The step of row antenna that the mobile terminal is currently used in call switches to the second antenna from the first antenna.
3. according to the method described in claim 1, it is characterized in that, the received signal strength of the detection mobile terminal is It is no less than after preset strength threshold value and described the mobile terminal being currently used in the antenna of call from the first antenna It switches to before the second antenna, the method further includes:
If the received signal strength of the mobile terminal is less than the preset strength threshold value, the mobile speed of the mobile terminal is detected Degree, when the movement speed of the mobile terminal is less than pre-set velocity threshold value, execution is described to be currently used in the mobile terminal The step of antenna of call switches to the second antenna from the first antenna.
4. according to claim 1-3 any one of them methods, which is characterized in that it is described the mobile terminal is currently used in it is logical After the first antenna switches to the second antenna, the method further includes the antenna of words:
If the mobile terminal is not at the talking state, the mobile terminal is currently used in the antenna of call from described Two antennas switch to the first antenna.
5. according to claim 1-3 any one of them methods, which is characterized in that it is described the mobile terminal is currently used in it is logical After the first antenna switches to the second antenna, the method further includes the antenna of words:
If the received signal strength of the mobile terminal is less than the preset strength threshold value, prompt message, the prompt letter are exported For breath for prompting user that the mobile terminal is moved to target area, the target area is that the mobile terminal is currently located The signal strength of historical statistics is more than the region of the preset strength threshold value in the preset range region of position.
6. a kind of mobile terminal, which is characterized in that including first detection unit, second detection unit and switch unit, wherein:
Whether the first detection unit is put out for when mobile terminal is in talking state, detecting the mobile terminal and being in Screen state blocks proximity state;
The second detection unit, for the first detection unit detect the mobile terminal be in put out screen state or When blocking proximity state, whether the received signal strength for detecting the mobile terminal is less than preset strength threshold value;
The switch unit, for detecting that the received signal strength of the mobile terminal is less than institute in the second detection unit When stating preset strength threshold value, if the antenna that the mobile terminal is currently used in call is first antenna, the mobile terminal is worked as The preceding antenna for call switches to the second antenna from the first antenna.
7. mobile terminal according to claim 6, which is characterized in that the mobile terminal further includes third detection unit;
The third detection unit, for detecting that the received signal strength of the mobile terminal is small in the second detection unit When the preset strength threshold value, detect whether the mobile terminal is inserted into wired earphone, and described mobile whole for detecting Whether end connect with wireless headset;
The switch unit is additionally operable to detect that the mobile terminal is not inserted into the wired earphone in the third detection unit And when the mobile terminal is not connect with the wireless headset, the mobile terminal is currently used in the antenna of call from described First antenna switches to the second antenna.
8. mobile terminal according to claim 6, which is characterized in that the mobile terminal further includes the 4th detection unit;
4th detection unit, for detecting that the received signal strength of the mobile terminal is small in the second detection unit When the preset strength threshold value, the movement speed of the mobile terminal is detected;
The switch unit is additionally operable to detect the movement speed of the mobile terminal less than default in the 4th detection unit When threshold speed, the antenna that the mobile terminal is currently used in call switches to the second antenna from the first antenna.
9. according to claim 6-8 any one of them mobile terminals, which is characterized in that
The switch unit, the antenna for being additionally operable to the mobile terminal being currently used in call switch to from the first antenna After two antennas, when the first detection unit detects that the mobile terminal is not at the talking state, by the shifting The antenna that dynamic terminal is currently used in call switches to the first antenna from second antenna.
10. according to claim 6-8 any one of them mobile terminals, which is characterized in that the mobile terminal further includes output Unit;
The output unit, for the mobile terminal to be currently used in the antenna of call from described first in the switch unit Antenna switches to after the second antenna, when the second detection unit detects that the received signal strength of the mobile terminal is less than When the preset strength threshold value, prompt message is exported, the prompt message is for prompting user to be moved to the mobile terminal Target area, the target area are the signal of historical statistics in the preset range region of the mobile terminal present position Intensity is more than the region of the preset strength threshold value.
11. a kind of mobile terminal, which is characterized in that including processor and memory, the memory for store one or Multiple programs, one or more of programs are configured to be executed by the processor, and described program includes for executing as weighed Profit requires 1-5 any one of them methods.
12. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium is for storing electron number According to the computer program of exchange, wherein it is as described in any one in claim 1-5 that the computer program so that computer executes Method.
CN201810529168.XA 2018-05-29 2018-05-29 Method for switching antennas, mobile terminal, and computer-readable storage medium Expired - Fee Related CN108429863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810529168.XA CN108429863B (en) 2018-05-29 2018-05-29 Method for switching antennas, mobile terminal, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810529168.XA CN108429863B (en) 2018-05-29 2018-05-29 Method for switching antennas, mobile terminal, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108429863A true CN108429863A (en) 2018-08-21
CN108429863B CN108429863B (en) 2021-04-13

Family

ID=63164404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810529168.XA Expired - Fee Related CN108429863B (en) 2018-05-29 2018-05-29 Method for switching antennas, mobile terminal, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108429863B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109547084A (en) * 2019-01-03 2019-03-29 上海龙旗科技股份有限公司 The method and apparatus determined for antenna
CN109802716A (en) * 2019-01-30 2019-05-24 上海传英信息技术有限公司 The switching method and equipment of antenna
EP3618302A1 (en) * 2018-09-03 2020-03-04 Beijing Xiaomi Mobile Software Co., Ltd. Wireless communication device and method for switching antenna
CN110971742A (en) * 2018-09-28 2020-04-07 深圳市诚壹科技有限公司 Antenna switching method, device, terminal and computer readable storage medium
CN112615136A (en) * 2019-09-18 2021-04-06 华为技术有限公司 Multi-antenna system and electronic equipment
CN112649816A (en) * 2020-09-09 2021-04-13 深圳市几米物联有限公司 Positioning circuit and positioning device
CN114725674A (en) * 2020-12-22 2022-07-08 深圳市万普拉斯科技有限公司 Antenna structure and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465428A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107547704A (en) * 2017-09-28 2018-01-05 奇酷互联网络科技(深圳)有限公司 Call MIC switching method, device and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465428A (en) * 2017-08-30 2017-12-12 努比亚技术有限公司 Antenna handover trigger control method, communication terminal and computer-readable recording medium
CN107547704A (en) * 2017-09-28 2018-01-05 奇酷互联网络科技(深圳)有限公司 Call MIC switching method, device and mobile terminal

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3618302A1 (en) * 2018-09-03 2020-03-04 Beijing Xiaomi Mobile Software Co., Ltd. Wireless communication device and method for switching antenna
CN110875769A (en) * 2018-09-03 2020-03-10 北京小米移动软件有限公司 Wireless communication device and antenna switching method
CN110875769B (en) * 2018-09-03 2024-03-12 北京小米移动软件有限公司 Wireless communication device and antenna switching method
US11018741B2 (en) 2018-09-03 2021-05-25 Beijing Xiaomi Mobile Software Co., Ltd. Wireless communication device and method for switching antenna
CN110971742A (en) * 2018-09-28 2020-04-07 深圳市诚壹科技有限公司 Antenna switching method, device, terminal and computer readable storage medium
CN109547084A (en) * 2019-01-03 2019-03-29 上海龙旗科技股份有限公司 The method and apparatus determined for antenna
CN109547084B (en) * 2019-01-03 2023-12-22 上海龙旗科技股份有限公司 Method, device and storage medium for determining target antenna
CN109802716B (en) * 2019-01-30 2023-05-16 上海传英信息技术有限公司 Antenna switching method and device
CN109802716A (en) * 2019-01-30 2019-05-24 上海传英信息技术有限公司 The switching method and equipment of antenna
WO2020155445A1 (en) * 2019-01-30 2020-08-06 上海传英信息技术有限公司 Antenna switching method and device
CN112615136A (en) * 2019-09-18 2021-04-06 华为技术有限公司 Multi-antenna system and electronic equipment
CN112649816A (en) * 2020-09-09 2021-04-13 深圳市几米物联有限公司 Positioning circuit and positioning device
CN114725674A (en) * 2020-12-22 2022-07-08 深圳市万普拉斯科技有限公司 Antenna structure and terminal

Also Published As

Publication number Publication date
CN108429863B (en) 2021-04-13

Similar Documents

Publication Publication Date Title
US11303989B2 (en) Earphone-switching method and mobile terminal
CN108769432B (en) Main earphone switching method and mobile terminal
CN108429863A (en) Method for switching antennas, mobile terminal, and computer-readable storage medium
CN112004173B (en) Bluetooth headset switching method, mobile terminal and computer readable storage medium
CN107734614B (en) Wi-Fi antenna control method, mobile terminal and computer readable storage medium
CN107947825B (en) Antenna selection circuit and mobile terminal
CN108966296B (en) Signal prompting method, mobile terminal and computer-readable storage medium
CN107896119B (en) Antenna sharing circuit and mobile terminal
CN108958696A (en) Principal and subordinate's earphone method for handover control and Related product
CN106845422B (en) A fingerprint identification module, fingerprint identification method and mobile terminal
CN106792993A (en) Channel scanning method and mobile terminal
CN107197100A (en) Method for processing message of incoming call and Related product
CN108696639A (en) off-screen display method, mobile terminal and storage medium
CN107454640A (en) Network access switching method and related products
CN107566604A (en) Message reminding control method and user terminal
CN108646973A (en) Off-screen display method, mobile terminal and computer-readable storage medium
CN106792819A (en) A kind of method and device of the power consumption for reducing mobile terminal
CN107466015A (en) Network access control method and related products
CN107682825A (en) Scanning frequency control method and related products
CN106793010A (en) A network access method and device
CN106851806A (en) A transmission power control method and mobile terminal
CN109040424B (en) Antenna switching circuit, method, terminal and computer readable storage medium
CN107659328B (en) Call control method, device, terminal, call system and readable storage medium
CN112135321B (en) Channel switching method and related product
CN107424393A (en) Mobile terminal seeking method, mobile terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210413