WO2020155445A1 - Antenna switching method and device - Google Patents

Antenna switching method and device Download PDF

Info

Publication number
WO2020155445A1
WO2020155445A1 PCT/CN2019/084809 CN2019084809W WO2020155445A1 WO 2020155445 A1 WO2020155445 A1 WO 2020155445A1 CN 2019084809 W CN2019084809 W CN 2019084809W WO 2020155445 A1 WO2020155445 A1 WO 2020155445A1
Authority
WO
WIPO (PCT)
Prior art keywords
antenna
signal strength
received signal
mobile terminal
time interval
Prior art date
Application number
PCT/CN2019/084809
Other languages
French (fr)
Chinese (zh)
Inventor
孙跃华
阮勇
吴春红
Original Assignee
上海传英信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海传英信息技术有限公司 filed Critical 上海传英信息技术有限公司
Publication of WO2020155445A1 publication Critical patent/WO2020155445A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/06Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the transmitting station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the embodiment of the present invention relates to the field of communication technology, and in particular to an antenna switching method and device.
  • the inventor found that in the user communication process, due to the user's grip and other reasons, the performance of the antenna may deteriorate and the communication quality may be reduced.
  • the present invention provides an antenna switching method and equipment, which can switch the call antenna of a mobile terminal during user communication, thereby improving communication quality.
  • the present invention provides an antenna switching method, including:
  • switch the second antenna Is a call antenna, and uses the switched call antenna as the new first antenna, and re-executes the detection of the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals. step.
  • the separately detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals includes:
  • the set time interval is adjusted, and the first received signal strength of the first antenna is detected according to the adjusted set time interval. And the second received signal strength of the second antenna, and the adjusted set time interval is set as a new set time interval, wherein the adjusted set time interval is greater than the set time Interval, continue to perform the step of separately detecting the first received signal strength of the first antenna according to the set time interval;
  • the second received signal strength exceeds the first received signal strength, continue to perform the step of detecting the first received signal strength of the first antenna according to a set time interval.
  • the second possible implementation manner it further includes:
  • the adjusted set time interval is determined as the preset interval threshold.
  • first prompt information is used to prompt the user that the signal of the mobile terminal is weak.
  • first received signal strength and the second received signal strength are both less than a second preset threshold, acquiring location information of the mobile terminal;
  • the separately detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals includes:
  • the first received signal strength of the first antenna and the second received signal strength of the second antenna are respectively detected every preset time.
  • the detection time interval between the first antenna and the second antenna is less than 1 millisecond.
  • the present invention provides an antenna switching device, including:
  • the detection module is configured to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna;
  • a switching module configured to: if the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, The second antenna is switched to the call antenna, and the switched call antenna is used as the new first antenna, and the detection of the first received signal strength of the first antenna and the second antenna of the second antenna are performed again at preset time intervals. 2. Steps to receive signal strength.
  • the present invention provides an antenna switching device, including: at least one processor and a memory;
  • the memory stores computer execution instructions
  • the at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the antenna switching method according to any one of the first aspect.
  • the present invention provides a computer-readable storage medium having computer-executable instructions stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, the computer-readable Of the antenna switching method.
  • the antenna switching method provided by the embodiment of the present invention is a device.
  • the method detects the first received signal strength of the first antenna and the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna.
  • the second received signal strength if the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than the first preset threshold, then the second antenna is switched to the call antenna, Therefore, it is ensured that the call antenna during the call is an antenna with strong signal receiving and sending performance, which can ensure a higher call quality.
  • FIG. 1 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.
  • FIG. 3 is a second implementation flowchart of an antenna switching method provided by an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an antenna switching device provided by an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the hardware structure of an antenna switching device provided by an embodiment of the present invention.
  • the mobile terminals involved in the embodiments of the present invention 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 (MS), Terminal Device (Terminal Device), etc.
  • UE User Equipment
  • MS Mobile Station
  • Terminal Device Terminal Device
  • FIG. 1 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention.
  • the mobile terminal has a dual antenna structure, which is a lower antenna at the bottom of the mobile terminal and an upper antenna at the top of the mobile terminal. Both the upper antenna and the lower antenna can be used for mobile signal transmission and reception. Under normal circumstances, in order to reduce the impact of electromagnetic radiation on the human body, the lower antenna is preferentially used as signal transmission and reception.
  • the performance of the lower antenna will deteriorate, and antenna switching is required to ensure that the mobile terminal has high communication quality.
  • FIG. 2 is the first implementation flowchart of an antenna switching method provided by an embodiment of the present invention.
  • the method in this embodiment may include:
  • Step S201 When the mobile terminal is in the call state of the first antenna, detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals.
  • the call state refers to a state where the mobile terminal is in a phone connected state.
  • the lower antenna is the first antenna, which is used as the call antenna for the call
  • the upper antenna is the second antenna.
  • the mobile terminal is in the call state of the first antenna, which means that the first antenna is used to transmit and receive signals during the call.
  • the mobile terminal can also use the second antenna to assist in signal reception.
  • the antenna is the main antenna, and the second antenna is the auxiliary antenna.
  • the mobile terminal When the mobile terminal is in a call, it is necessary to separately detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals, so as to determine the antenna with the higher signal strength.
  • the preset time interval can be preset and stored in the non-volatile memory of the mobile terminal.
  • the preset time interval can be set to 10 seconds, and the first signal strength of the first antenna and the second signal strength of the second antenna are detected every 10 seconds. The second signal strength of the antenna.
  • the received signal strength (Received Signal Indicator, RSSI) is used to measure the received signal strength of the mobile terminal, and the unit of RSSI can be dBm or asu.
  • dBm represents the absolute value of the power, and the signal strength is generally a negative number. The smaller the absolute value, the stronger the signal strength.
  • ASU is a defined unique signal unit. The larger the value, the stronger the signal strength.
  • Step S202 If the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, the first The two antennas are switched to the talk antenna, and the switched talk antenna is used as the new first antenna, and the re-execution of the detection of the first received signal strength of the first antenna and the second reception of the second antenna at preset time intervals Signal strength steps.
  • the first preset threshold may be preset and stored in the non-volatile memory of the mobile terminal.
  • the first preset threshold may be set to -5dbm.
  • the second received signal strength exceeds the first received signal strength, and if the second received signal strength exceeds the first received signal strength.
  • receive signal strength continue to determine whether the difference between the second received signal strength and the first received signal strength is greater than the first preset threshold. According to the judgment result, it is determined whether antenna switching is required.
  • the strength of the second received signal exceeds the strength of the first received signal, and the difference between the strength of the second received signal and the strength of the first received signal is greater than the first preset threshold, it indicates that the performance of the first antenna to send and receive signals is poor, and the second antenna to send and receive signals The performance is better, and the second antenna needs to be switched to the call antenna.
  • the strength of the second received signal is lower than the strength of the first received signal, it indicates that the performance of the first antenna to transmit and receive signals is better, and no antenna switching is required.
  • the strength of the second received signal exceeds the strength of the first received signal, but the difference in the strength of the second received signal is less than or equal to the first preset threshold, it means that although the performance of the second antenna to transmit and receive signals is better than that of the first antenna, There is not much difference between the two, and no antenna switching is required to avoid signal interruption caused by frequent antenna switching.
  • the antenna switching is performed only when the signal receiving and sending performance of the second antenna is better than the signal receiving performance of the first antenna, and the difference between the two is relatively large.
  • Switching the second antenna to the call antenna refers to the use of the second antenna for signal transmission and reception.
  • the mobile terminal can also use the first antenna to assist in signal reception.
  • the second antenna is the main antenna
  • One antenna is an auxiliary antenna.
  • step S101 is continued to be performed until the call of the mobile terminal ends.
  • the embodiment of the present invention detects the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna. If the strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than the first preset threshold, the second antenna is switched to the call antenna, so as to ensure that the call antenna is used for transmitting and receiving signals during the call.
  • the antenna with stronger performance can guarantee higher call quality.
  • FIG. 3 is the second implementation flowchart of the antenna switching method provided by the embodiment of the present invention.
  • the first antenna of the first antenna is detected at predetermined time intervals.
  • the first received signal strength and the second received signal strength of the second antenna may include:
  • Step S301 Detect the first received signal strength of the first antenna and the second received signal strength of the second antenna respectively according to a set time interval.
  • Step S302 It is determined whether the second received signal strength exceeds the first received signal strength, if not, step S303 is executed, and if yes, step S301 is executed.
  • Step S303 Adjust the set time interval, detect the first received signal strength of the first antenna and the second received signal strength of the second antenna according to the adjusted set time interval, and compare The adjusted set time interval is set as a new set time interval, wherein the adjusted set time interval is greater than the set time interval, and step S301 is continued.
  • the set time interval is adjusted, and according to The adjusted set time interval continues to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna.
  • the second received signal strength does not exceed the first received signal strength, continue to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna respectively according to the set time interval.
  • the first antenna is used as the call antenna, and the set time interval is set to 5 seconds. After 5 seconds, the first received signal strength of the first antenna and the second antenna of the second antenna are detected for the first time. The received signal strength. If the second received signal strength does not exceed the first received signal strength, the first received signal strength of the first antenna and the second received signal strength of the second antenna will be detected for the second time after 10 seconds. If the signal strength still does not exceed the first received signal strength, the first received signal strength of the first antenna and the second received signal strength of the second antenna are detected for the third time after 20 seconds, and so on.
  • the signal strength detection time is extended interval.
  • the antenna switching method may further include:
  • the adjusted set time interval is determined as the preset interval threshold.
  • the preset interval threshold may be preset and stored in the non-volatile memory of the mobile terminal.
  • the preset interval threshold may be set to 60 seconds.
  • the set time interval needs to be adjusted according to the detection result. If the adjusted set time interval exceeds the preset interval threshold, for example, 60 seconds, it will be detected separately according to the preset interval threshold.
  • the embodiment of the present invention can avoid that the adjusted setting time interval is too long and the antenna cannot be switched in time.
  • the antenna switching method further includes:
  • first prompt information is used to prompt the user that the signal of the mobile terminal is weak.
  • the second preset threshold may be preset and stored in the nonvolatile memory of the mobile terminal.
  • the second preset threshold may be set to -30dbm.
  • the mobile terminal When the mobile terminal is in the call state of the first antenna, it detects the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals, and respectively determines the first received signal strength and the second received signal strength. Whether the received signal strength is less than the second preset threshold, if both the first received signal strength and the second received signal strength are less than the second preset threshold, it indicates that the performance of the first antenna to send and receive signals and the performance of the second antenna to send and receive signals are weak , The first prompt message is sent to prompt the user that the signal of the mobile terminal is weak.
  • the first prompt information may be text information, picture information, voice information, etc., or a combination of two or more of them.
  • FIG. 4 is the third flowchart of the antenna switching method provided by the embodiment of the present invention.
  • the method may further include:
  • Step S401 If both the first received signal strength and the second received signal strength are less than a second preset threshold, obtain location information of the mobile terminal.
  • the second preset threshold may be preset and stored in the non-volatile memory of the mobile terminal.
  • the second preset threshold may be set to -30dbm.
  • the mobile terminal When the mobile terminal is in the call state of the first antenna, it detects the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals, and respectively determines the first received signal strength and the second received signal strength. Whether the received signal strength is less than the second preset threshold, if both the first received signal strength and the second received signal strength are less than the second preset threshold, it indicates that the performance of the first antenna to send and receive signals and the performance of the second antenna to send and receive signals are weak , The location information of the location of the mobile terminal is acquired.
  • Step S402 Obtain, according to the location information of the mobile terminal, a target area with the highest historically counted signal strength within a preset range of the current location of the mobile terminal.
  • the location of the mobile terminal is used as a reference, and the area of the preset distance threshold from the mobile terminal is the preset range, and the signal strength distribution of the mobile terminal in the historical activities within the preset range is acquired to determine the signal strength The largest area is the target area.
  • Step S403 Output prompt information according to the target area, where the prompt information is used to prompt the user to move the mobile terminal to the target area.
  • the second prompt information may be text information, picture information, voice information, etc., or a combination of two or more of them.
  • the second prompt message prompts the user to move to the target area.
  • the antenna switching method may further include:
  • the mobile terminal when the mobile terminal is in a hands-free state or is connected to a headset, it is usually not necessary for the user to hold the mobile terminal, and the problem of weakening of the antenna receiving and sending signals due to the user's holding does not occur, and there is no need to perform Antenna switching.
  • the detection time interval between the first antenna and the second antenna is less than 1 millisecond. If the detection time interval between the first antenna and the second antenna is too long, it may cause changes in the performance of the received and received signals of the antennas that have been detected, and the antenna with poor performance of the received and received signals may be switched to the call antenna.
  • FIG. 5 is a schematic structural diagram of an antenna switching apparatus provided by an embodiment of the present invention.
  • the antenna switching apparatus 500 may include:
  • the detection module 501 is configured to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna;
  • the switching module 502 is configured to: if the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, The second antenna is switched to the call antenna, and the switched call antenna is used as the new first antenna, and the detection of the first received signal strength of the first antenna and the signal strength of the second antenna are performed again at preset time intervals. The second step of receiving signal strength.
  • the detection module is configured to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna respectively according to a set time interval;
  • the set time interval is adjusted, and the first received signal strength of the first antenna is detected according to the adjusted set time interval And the second received signal strength of the second antenna, and the adjusted set time interval is set as a new set time interval, wherein the adjusted set time interval is greater than the set time Interval, continue to perform the step of separately detecting the first received signal strength of the first antenna according to the set time interval;
  • the second received signal strength exceeds the first received signal strength, continue to perform the step of detecting the first received signal strength of the first antenna according to a set time interval.
  • the detection module is further configured to determine the adjusted set time interval as the preset interval threshold if the set time interval is greater than or equal to a preset interval threshold.
  • it further includes:
  • the first output module is configured to output first prompt information if both the first received signal strength and the second received signal strength are less than a second preset threshold, and the first prompt information is used to prompt the user to move The signal of the terminal is weak.
  • it further includes:
  • a second output module configured to obtain location information of the mobile terminal if both the first received signal strength and the second received signal strength are less than a second preset threshold
  • it further includes:
  • the detection module 501 is configured to detect whether the mobile terminal is in the hands-free state or whether the mobile terminal is connected to the headset; if the mobile terminal is not in the hands-free state and the mobile terminal is not connected to the headset, every The first received signal strength of the first antenna and the second received signal strength of the second antenna are respectively detected for a preset time.
  • the device of this embodiment can be used to implement the method embodiments shown in FIG. 2 to FIG. 4, and its implementation principles and technical effects are similar, and will not be repeated here.
  • FIG. 6 is a schematic diagram of the hardware structure of an antenna switching device provided by an embodiment of the present invention.
  • the antenna switching device 60 provided in this embodiment includes: at least one processor 601 and a memory 602.
  • the antenna switching device 600 also includes a communication component 603. Among them, the processor 601, the memory 602, and the communication component 603 are connected by a bus 604.
  • At least one processor 601 executes the computer-executable instructions stored in the memory 602, so that the at least one processor 601 executes the antenna switching method in any of the foregoing method embodiments.
  • the communication component 603 is used to communicate with the terminal device and/or the server.
  • the processor may be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as ASIC), etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the invention can be directly embodied as executed and completed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.
  • the bus may be an Industry Standard Architecture (ISA) bus, Peripheral Component (PCI) bus, or Extended Industry Standard Architecture (EISA) bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into address bus, data bus, control bus, etc.
  • the buses in the drawings of this application are not limited to only one bus or one type of bus.
  • the embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the antenna in any of the foregoing method embodiments is implemented. Switch method.
  • the above-mentioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EPROM erasable programmable read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory flash memory
  • flash memory magnetic disk or optical disk.
  • a readable storage medium may be any available medium that can be accessed by a general purpose or special purpose computer.
  • An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and can write information to the readable storage medium.
  • the readable storage medium may also be an integral part of the processor.
  • the processor and the readable storage medium may be located in Application Specific Integrated Circuits (ASIC for short).
  • ASIC Application Specific Integrated Circuits
  • the processor and the readable storage medium may also exist as discrete components in the device.
  • a person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware.
  • the aforementioned program can be stored in a computer readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Radio Transmission System (AREA)

Abstract

Embodiments of the present invention provide an antenna switching method and device. The method comprises: when a mobile terminal is in a call state of a first antenna, respectively detecting a first received signal strength of the first antenna and a second received signal strength of a second antenna at preset time intervals; and if the second received signal strength is greater than the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, switching the second antenna as a call antenna, using the switched call antenna as the new first antenna, and re-performing the step of detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals. According to the embodiments of the present invention, it can be ensured that the call antenna during a call is an antenna having strong signal transmitting and receiving performances, thereby ensuring a high call quality.

Description

天线的切换方法及设备Antenna switching method and equipment 技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种天线的切换方法及设备。The embodiment of the present invention relates to the field of communication technology, and in particular to an antenna switching method and device.
背景技术Background technique
随着终端技术的发展,智能手机等移动终端已成为人们日常生活中必不可少的设备。通信功能作为移动终端最基础最重要的功能,通信质量是用户关注的焦点。With the development of terminal technology, mobile terminals such as smart phones have become essential devices in people's daily lives. Communication function is the most basic and important function of mobile terminal, and communication quality is the focus of users' attention.
为提高通信质量,目前,大多移动终端均采用双天线设计方案,两根天线通常设置在移动终端的两侧边上。In order to improve communication quality, currently, most mobile terminals adopt a dual-antenna design, and the two antennas are usually arranged on both sides of the mobile terminal.
然而,发明人发现,在用户通信过程中,由于用户的握持等原因,可能会导致天线的性能恶化,降低通信质量。However, the inventor found that in the user communication process, due to the user's grip and other reasons, the performance of the antenna may deteriorate and the communication quality may be reduced.
发明内容Summary of the invention
本发明提供一种天线的切换方法及设备,能够在用户通信过程中,对移动终端的通话天线进行切换,提高通信质量。The present invention provides an antenna switching method and equipment, which can switch the call antenna of a mobile terminal during user communication, thereby improving communication quality.
第一方面,本发明提供一种天线的切换方法,包括:In the first aspect, the present invention provides an antenna switching method, including:
在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度;When the mobile terminal is in the call state of the first antenna, detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at predetermined time intervals;
若所述第二接收信号强度超过所述第一接收信号强度,且所述第二接收信号强度与所述第一接收信号强度的差大于第一预设阈值,则将所述第二天线切换为通话天线,并将切换后的通话天线作为新的第一天线,重新执行所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度的步骤。If the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, switch the second antenna Is a call antenna, and uses the switched call antenna as the new first antenna, and re-executes the detection of the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals. step.
在第一方面的第一种可能的实现方式中,所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,包括:In a first possible implementation manner of the first aspect, the separately detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals includes:
按照设定时间间隔分别检测所述第一天线的第一接收信号强度和所述第二天线的第二接收信号强度;Respectively detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna according to a set time interval;
若所述第二接收信号强度未超过所述第一接收信号强度,则对所述设定时间间隔进行调整,按照调整后的设定时间间隔分别检测所述第一天线的第一接收信号强度和所述第二天线的第二接收信号强度,并将所述调整后的设定时间间隔设定为新的设定时间间隔,其中所述调整后的设定时间间隔大于所述设定时间间隔,继续执行按照设定时间间隔分别检测所述第一天线的第一接收信号强度的步骤;If the second received signal strength does not exceed the first received signal strength, the set time interval is adjusted, and the first received signal strength of the first antenna is detected according to the adjusted set time interval. And the second received signal strength of the second antenna, and the adjusted set time interval is set as a new set time interval, wherein the adjusted set time interval is greater than the set time Interval, continue to perform the step of separately detecting the first received signal strength of the first antenna according to the set time interval;
若所述第二接收信号强度超过所述第一接收信号强度,则继续执行按照设定时间间隔分别检测所述第一天线的第一接收信号强度的步骤。If the second received signal strength exceeds the first received signal strength, continue to perform the step of detecting the first received signal strength of the first antenna according to a set time interval.
结合第一方面的第一种可能的实现方式中,在第二种可能的实现方式中,还包括:In the first possible implementation manner in combination with the first aspect, in the second possible implementation manner, it further includes:
若所述设定时间间隔大于或等于预设间隔阈值,则将所述调整后的设定时间间隔确定为所述预设间隔阈值。If the set time interval is greater than or equal to the preset interval threshold, the adjusted set time interval is determined as the preset interval threshold.
在第一方面的第三种可能的实现方式中,还包括:In the third possible implementation of the first aspect, it also includes:
若所述第一接收信号强度和所述第二接收信号强度均小于第二预设阈值,则输出第一提示信息,所述第一提示信息用于提示用户移动终端的信号弱。If both the first received signal strength and the second received signal strength are less than a second preset threshold, output first prompt information, where the first prompt information is used to prompt the user that the signal of the mobile terminal is weak.
在第一方面的第四种可能的实现方式中,还包括:In the fourth possible implementation manner of the first aspect, it further includes:
若所述第一接收信号强度和所述第二接收信号强度均小于第二预设阈值,则获取所述移动终端的位置信息;If the first received signal strength and the second received signal strength are both less than a second preset threshold, acquiring location information of the mobile terminal;
根据所述移动终端的位置信息获取所述移动终端当前所在位置的预设范围内历史统计的信号强度最大的目标区域;Acquiring, according to the location information of the mobile terminal, a target area with the highest historically counted signal strength within a preset range of the current location of the mobile terminal;
根据所述目标区域输出第二提示信息,所述第二提示信息用于提示用户将所述移动终端移动至所述目标区域。Outputting second prompt information according to the target area, where the second prompt information is used to prompt the user to move the mobile terminal to the target area.
在第一方面的第五种可能的实现方式中,还包括:In the fifth possible implementation manner of the first aspect, it further includes:
检测所述移动终端是否处于免提状态或所述移动终端是否与耳机连接;Detecting whether the mobile terminal is in a hands-free state or whether the mobile terminal is connected with a headset;
所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,包括:The separately detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals includes:
若所述移动终端未处于免提状态,且所述移动终端未与耳机连接,则每隔预设时间分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度。If the mobile terminal is not in the hands-free state, and the mobile terminal is not connected to the headset, the first received signal strength of the first antenna and the second received signal strength of the second antenna are respectively detected every preset time.
在第一方面的第六种可能的实现方式中,所述第一天线与所述第二天线的检测时间间隔小于1毫秒。In a sixth possible implementation manner of the first aspect, the detection time interval between the first antenna and the second antenna is less than 1 millisecond.
第二方面,本发明提供一种天线的切换装置,包括:In a second aspect, the present invention provides an antenna switching device, including:
检测模块,用于在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度;The detection module is configured to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna;
切换模块,用于若所述第二接收信号强度超过所述第一接收信号强度,且所述第二接收信号强度与所述第一接收信号强度的差大于第一预设阈值,则将所述第二天线切换为通话天线,并将切换后的通话天线作为新的第一天线,重新执行所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度的步骤。A switching module, configured to: if the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, The second antenna is switched to the call antenna, and the switched call antenna is used as the new first antenna, and the detection of the first received signal strength of the first antenna and the second antenna of the second antenna are performed again at preset time intervals. 2. Steps to receive signal strength.
第三方面,本发明提供一种天线的切换设备,包括:至少一个处理器和存储器;In a third aspect, the present invention provides an antenna switching device, including: at least one processor and a memory;
所述存储器存储计算机执行指令;The memory stores computer execution instructions;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如第一方面任一项所述的天线的切换方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the antenna switching method according to any one of the first aspect.
第四方面,本发明提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如第一方面任一项所述的天线的切换方法。In a fourth aspect, the present invention provides a computer-readable storage medium having computer-executable instructions stored in the computer-readable storage medium. When the processor executes the computer-executable instructions, the computer-readable Of the antenna switching method.
本发明实施例提供的天线的切换方法即设备,该方法通过在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,若第二接收信号强度超过第一接收信号强度,且第二接收信号强度与第一接收信号强度的差大于第一预设阈值,则将第二天线切换为通话天线,从而保证通话过程中的通话天线为收发信号性能较强的天线,能够保证较高的通话质量。The antenna switching method provided by the embodiment of the present invention is a device. The method detects the first received signal strength of the first antenna and the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna. The second received signal strength, if the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than the first preset threshold, then the second antenna is switched to the call antenna, Therefore, it is ensured that the call antenna during the call is an antenna with strong signal receiving and sending performance, which can ensure a higher call quality.
附图说明Description of the drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.
图1为本发明实施例提供的移动终端的结构示意图;FIG. 1 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention;
图2为本发明实施例提供的天线的切换方法的实现流程图一;2 is the first implementation flowchart of the antenna switching method provided by the embodiment of the present invention;
图3为本发明实施例提供的天线的切换方法的实现流程图二;FIG. 3 is a second implementation flowchart of an antenna switching method provided by an embodiment of the present invention;
图4为本发明实施例提供的天线的切换方法的实现流程图三;4 is the third implementation flowchart of the antenna switching method provided by the embodiment of the present invention;
图5为本发明实施例提供的天线的切换装置结构示意图;FIG. 5 is a schematic structural diagram of an antenna switching device provided by an embodiment of the present invention;
图6为本发明实施例提供的天线的切换设备的硬件结构示意图。FIG. 6 is a schematic diagram of the hardware structure of an antenna switching device provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, but not necessarily Describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described herein can be implemented in a sequence other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to the clearly listed Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
本发明实施例所涉及到的移动终端可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE)、 移动台(Mobile Station,MS)、终端设备(Terminal Device)等。为方便描述,上面提到的设备统称为移动终端。The mobile terminals involved in the embodiments of the present invention 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 (MS), Terminal Device (Terminal Device), etc. For ease of description, the devices mentioned above are collectively referred to as mobile terminals.
图1是本发明实施例提供的移动终端的结构示意图,本实施例中,移动终端为双天线结构,分别为位于移动终端底部的下天线,和位于移动终端顶部的上天线。上天线和下天线都可以用于移动信号的发射和接收。一般情况下,为了降低电磁辐射对人体的影响,会优先使用下天线作为信号的发射接收。FIG. 1 is a schematic structural diagram of a mobile terminal provided by an embodiment of the present invention. In this embodiment, the mobile terminal has a dual antenna structure, which is a lower antenna at the bottom of the mobile terminal and an upper antenna at the top of the mobile terminal. Both the upper antenna and the lower antenna can be used for mobile signal transmission and reception. Under normal circumstances, in order to reduce the impact of electromagnetic radiation on the human body, the lower antenna is preferentially used as signal transmission and reception.
移动终端在使用过程中,由于用户手掌遮挡等因素,会导致下天线的性能变差,需要进行天线切换,以保证移动终端具有较高的通信质量。During the use of the mobile terminal, due to factors such as the occlusion of the user's palm, the performance of the lower antenna will deteriorate, and antenna switching is required to ensure that the mobile terminal has high communication quality.
图2是本发明实施例提供的天线的切换方法的实现流程图一,本实施例的方法可以包括:FIG. 2 is the first implementation flowchart of an antenna switching method provided by an embodiment of the present invention. The method in this embodiment may include:
步骤S201,在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度。Step S201: When the mobile terminal is in the call state of the first antenna, detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals.
在本发明实施例中,通话状态指的是移动终端处于电话接通的状态。移动终端在电话接通的初始时刻,下天线为第一天线,作为用于通话的通话天线,上天线为第二天线。In the embodiment of the present invention, the call state refers to a state where the mobile terminal is in a phone connected state. At the initial moment when the phone is connected to the mobile terminal, the lower antenna is the first antenna, which is used as the call antenna for the call, and the upper antenna is the second antenna.
移动终端处于第一天线的通话状态,指的是在通话过程中,采用第一天线进行信号的发射和接收,当然,移动终端还可以采用第二天线辅助作为信号的接收,此时,第一天线为主天线,第二天线为辅天线。The mobile terminal is in the call state of the first antenna, which means that the first antenna is used to transmit and receive signals during the call. Of course, the mobile terminal can also use the second antenna to assist in signal reception. The antenna is the main antenna, and the second antenna is the auxiliary antenna.
在移动终端处于通话的过程中,需要每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,以便确定信号强度大的天线。When the mobile terminal is in a call, it is necessary to separately detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals, so as to determine the antenna with the higher signal strength.
预设时间间隔可以预先设定并存储在移动终端的非易失存储器中,例如,预设时间间隔可以设定为10秒,每隔10秒检测一次第一天线的第一信号强度和第二天线的第二信号强度。The preset time interval can be preset and stored in the non-volatile memory of the mobile terminal. For example, the preset time interval can be set to 10 seconds, and the first signal strength of the first antenna and the second signal strength of the second antenna are detected every 10 seconds. The second signal strength of the antenna.
接收信号强度(Received Signal Indicator,RSSI)用于衡量移动终端的接收信号强度的大小,RSSI的单位可以为dBm或者asu。其中dBm表示功率绝对值,信号强度一般为负数,其绝对值数值越小,表示信号强 度越强。asu是定义的特有信号单位,数值越大,表示信号强度越强。The received signal strength (Received Signal Indicator, RSSI) is used to measure the received signal strength of the mobile terminal, and the unit of RSSI can be dBm or asu. Among them, dBm represents the absolute value of the power, and the signal strength is generally a negative number. The smaller the absolute value, the stronger the signal strength. ASU is a defined unique signal unit. The larger the value, the stronger the signal strength.
步骤S202,若所述第二接收信号强度超过所述第一接收信号强度,且所述第二接收信号强度与所述第一接收信号强度的差大于第一预设阈值,则将所述第二天线切换为通话天线,并将切换后的通话天线作为新的第一天线,重新执行所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度的步骤。Step S202: If the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, the first The two antennas are switched to the talk antenna, and the switched talk antenna is used as the new first antenna, and the re-execution of the detection of the first received signal strength of the first antenna and the second reception of the second antenna at preset time intervals Signal strength steps.
在本发明实施例中,第一预设阈值可以预先设定并存储在移动终端的非易失存储器中,例如,第一预设阈值可以设定为-5dbm。In the embodiment of the present invention, the first preset threshold may be preset and stored in the non-volatile memory of the mobile terminal. For example, the first preset threshold may be set to -5dbm.
在本发明实施例中,检测到第一天线的第一信号强度和第二天线的第二信号强度后,判断第二接收信号强度是否超过第一接收信号强度,若第二接收信号强度超过第一接收信号强度,则继续判断第二接收信号强度与第一接收信号强度的差值是否大于第一预设阈值。根据判断结果,确定是否需要进行天线切换。In the embodiment of the present invention, after detecting the first signal strength of the first antenna and the second signal strength of the second antenna, it is determined whether the second received signal strength exceeds the first received signal strength, and if the second received signal strength exceeds the first received signal strength. When receiving signal strength, continue to determine whether the difference between the second received signal strength and the first received signal strength is greater than the first preset threshold. According to the judgment result, it is determined whether antenna switching is required.
若第二接收信号强度超过第一接收信号强度,且第二接收信号强度与第一接收信号强度的差大于第一预设阈值,说明第一天线收发信号的性能较差,第二天线收发信号的性能较好,需要将第二天线切换为通话天线。If the strength of the second received signal exceeds the strength of the first received signal, and the difference between the strength of the second received signal and the strength of the first received signal is greater than the first preset threshold, it indicates that the performance of the first antenna to send and receive signals is poor, and the second antenna to send and receive signals The performance is better, and the second antenna needs to be switched to the call antenna.
若第二接收信号强度小于第一接收信号强度,说明第一天线收发信号的性能较好,不需要进行天线切换。If the strength of the second received signal is lower than the strength of the first received signal, it indicates that the performance of the first antenna to transmit and receive signals is better, and no antenna switching is required.
若第二接收信号强度超过第一接收信号强度,但第二接收信号强度的差小于或等于第一预设阈值,说明虽然第二天线收发信号的性能好于第一天线收发信号的性能,但是二者相差不大,不需要进行天线切换,以避免频繁的天线切换导致信号中断。If the strength of the second received signal exceeds the strength of the first received signal, but the difference in the strength of the second received signal is less than or equal to the first preset threshold, it means that although the performance of the second antenna to transmit and receive signals is better than that of the first antenna, There is not much difference between the two, and no antenna switching is required to avoid signal interruption caused by frequent antenna switching.
本发明实施例只有在第二天线收发信号的性能好于第一天线收发信号的性能,且二者相差比较大时,才进行天线切换。In the embodiment of the present invention, the antenna switching is performed only when the signal receiving and sending performance of the second antenna is better than the signal receiving performance of the first antenna, and the difference between the two is relatively large.
将第二天线切换为通话天线,指的是采用第二天线进行信号的发射和接收,当然,移动终端还可以采用第一天线辅助作为信号的接收,此时,第二天线为主天线,第一天线为辅天线。Switching the second antenna to the call antenna refers to the use of the second antenna for signal transmission and reception. Of course, the mobile terminal can also use the first antenna to assist in signal reception. At this time, the second antenna is the main antenna, One antenna is an auxiliary antenna.
第二天线切换为通话天线后,将切换后的通话天线作为新的第一天线,继续执行步骤S101,直至移动终端通话结束为止。After the second antenna is switched to the call antenna, the switched call antenna is used as the new first antenna, and step S101 is continued to be performed until the call of the mobile terminal ends.
本发明实施例通过在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,若第二接收信号强度超过第一接收信号强度,且第二接收信号强度与第一接收信号强度的差大于第一预设阈值,则将第二天线切换为通话天线,从而保证通话过程中的通话天线为收发信号性能较强的天线,能够保证较高的通话质量。The embodiment of the present invention detects the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna. If the strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than the first preset threshold, the second antenna is switched to the call antenna, so as to ensure that the call antenna is used for transmitting and receiving signals during the call. The antenna with stronger performance can guarantee higher call quality.
作为本发明的一个实施例,图3是本发明实施例提供的天线的切换方法实现流程图二,在本实施例中,该方法步骤S101中每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,可能包括:As an embodiment of the present invention, FIG. 3 is the second implementation flowchart of the antenna switching method provided by the embodiment of the present invention. In this embodiment, in step S101 of the method, the first antenna of the first antenna is detected at predetermined time intervals. The first received signal strength and the second received signal strength of the second antenna may include:
步骤S301,按照设定时间间隔分别检测所述第一天线的第一接收信号强度和所述第二天线的第二接收信号强度。Step S301: Detect the first received signal strength of the first antenna and the second received signal strength of the second antenna respectively according to a set time interval.
步骤S302,判断第二接收信号强度是否超过第一接收信号强度,若否,则执行步骤S303,若是,则执行步骤S301。Step S302: It is determined whether the second received signal strength exceeds the first received signal strength, if not, step S303 is executed, and if yes, step S301 is executed.
步骤S303,对所述设定时间间隔进行调整,按照调整后的设定时间间隔分别检测所述第一天线的第一接收信号强度和所述第二天线的第二接收信号强度,并将所述调整后的设定时间间隔设定为新的设定时间间隔,其中所述调整后的设定时间间隔大于所述设定时间间隔,继续执行步骤S301。Step S303: Adjust the set time interval, detect the first received signal strength of the first antenna and the second received signal strength of the second antenna according to the adjusted set time interval, and compare The adjusted set time interval is set as a new set time interval, wherein the adjusted set time interval is greater than the set time interval, and step S301 is continued.
在本发明实施例中,若第二接收信号强度未超过第一接收信号强度,说明第一天线收发信号的性能好于第二天线收发信号的性能,则对设定时间间隔进行调整,并按照调整后的设定时间间隔继续检测第一天线的第一接收信号强度和第二天线的第二接收信号强度。In the embodiment of the present invention, if the strength of the second received signal does not exceed the strength of the first received signal, it indicates that the performance of the first antenna to transmit and receive signals is better than the performance of the second antenna to transmit and receive signals, then the set time interval is adjusted, and according to The adjusted set time interval continues to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna.
若第二接收信号强度未超过第一接收信号强度,则继续按照设定时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度。If the second received signal strength does not exceed the first received signal strength, continue to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna respectively according to the set time interval.
例如,移动终端电话接通的初始时刻,第一天线作为通话天线,设定时间间隔设为5秒,5秒后第一次检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,若第二接收信号强度未超过第一接收信号强度,则10秒后第二次检测第一天线的第一接收信号强度和第二天线 的第二接收信号强度,若第二接收信号强度依然未超过第一接收信号强度,则20秒后第三次检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,依次类推。For example, at the initial moment when the mobile terminal phone is connected, the first antenna is used as the call antenna, and the set time interval is set to 5 seconds. After 5 seconds, the first received signal strength of the first antenna and the second antenna of the second antenna are detected for the first time. The received signal strength. If the second received signal strength does not exceed the first received signal strength, the first received signal strength of the first antenna and the second received signal strength of the second antenna will be detected for the second time after 10 seconds. If the signal strength still does not exceed the first received signal strength, the first received signal strength of the first antenna and the second received signal strength of the second antenna are detected for the third time after 20 seconds, and so on.
在本实施例中,若多次连续检测第二接收信号强度均未超过第一接收信号强度,说明第一天线收发信号的性能比较稳定,不需要频繁的进行检测,则延长信号强度的检测时间间隔。In this embodiment, if the strength of the second received signal does not exceed the strength of the first received signal for multiple consecutive detections, it indicates that the performance of the first antenna to send and receive signals is relatively stable, and frequent detection is not required, so the signal strength detection time is extended interval.
作为本发明的一个实施例,天线的切换方法还可以包括:As an embodiment of the present invention, the antenna switching method may further include:
若所述设定时间间隔大于或等于预设间隔阈值,则将所述调整后的设定时间间隔确定为所述预设间隔阈值。If the set time interval is greater than or equal to the preset interval threshold, the adjusted set time interval is determined as the preset interval threshold.
在本发明实施例中,预设间隔阈值可以预先设定并存储在移动终端的非易失存储器中,例如,预设间隔阈值可以设定为60秒。In the embodiment of the present invention, the preset interval threshold may be preset and stored in the non-volatile memory of the mobile terminal. For example, the preset interval threshold may be set to 60 seconds.
在检测第一天线和第二天线的过程中,需要根据检测结果调整设定时间间隔,若调整后的设定时间间隔超过预设间隔阈值,例如,60秒,则按照预设间隔阈值分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度。本发明实施例能够避免调整后的设定时间间隔太长,不能及时切换天线。In the process of detecting the first antenna and the second antenna, the set time interval needs to be adjusted according to the detection result. If the adjusted set time interval exceeds the preset interval threshold, for example, 60 seconds, it will be detected separately according to the preset interval threshold. The first received signal strength of the first antenna and the second received signal strength of the second antenna. The embodiment of the present invention can avoid that the adjusted setting time interval is too long and the antenna cannot be switched in time.
作为本发明的一个实施例,天线的切换方法,还包括:As an embodiment of the present invention, the antenna switching method further includes:
若所述第一接收信号强度和所述第二接收信号强度均小于第二预设阈值时,则输出第一提示信息,所述第一提示信息用于提示用户移动终端的信号弱。If both the first received signal strength and the second received signal strength are less than a second preset threshold, output first prompt information, where the first prompt information is used to prompt the user that the signal of the mobile terminal is weak.
在本发明实施例中,在本发明实施例中,第二预设阈值可以预先设定并存储在移动终端的非易失存储器中,例如,第二预设阈值可以设定为-30dbm。In the embodiment of the present invention, in the embodiment of the present invention, the second preset threshold may be preset and stored in the nonvolatile memory of the mobile terminal. For example, the second preset threshold may be set to -30dbm.
在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,分别判断第一接收信号强度和第二接收信号强度是否小于第二预设阈值,若第一接收信号强度和第二接收信号强度均小于第二预设阈值,说明第一天线收发信号的性能和第二天线收发信号的性能都较弱,则发出第一提示信息,提示用户移动终端的信号弱。When the mobile terminal is in the call state of the first antenna, it detects the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals, and respectively determines the first received signal strength and the second received signal strength. Whether the received signal strength is less than the second preset threshold, if both the first received signal strength and the second received signal strength are less than the second preset threshold, it indicates that the performance of the first antenna to send and receive signals and the performance of the second antenna to send and receive signals are weak , The first prompt message is sent to prompt the user that the signal of the mobile terminal is weak.
第一提示信息可以为文字信息、图片信息、语音信息等,也可以是 其中两种以上的组合。The first prompt information may be text information, picture information, voice information, etc., or a combination of two or more of them.
作为本发明的一个实施例,图4是本发明实施例提供的天线的切换方法的流程图三,在本实施例中,该方法还可以包括:As an embodiment of the present invention, FIG. 4 is the third flowchart of the antenna switching method provided by the embodiment of the present invention. In this embodiment, the method may further include:
步骤S401,若所述第一接收信号强度和所述第二接收信号强度均小于第二预设阈值,则获取所述移动终端的位置信息。Step S401: If both the first received signal strength and the second received signal strength are less than a second preset threshold, obtain location information of the mobile terminal.
在本发明实施例中,第二预设阈值可以预先设定并存储在移动终端的非易失存储器中,例如,第二预设阈值可以设定为-30dbm。In the embodiment of the present invention, the second preset threshold may be preset and stored in the non-volatile memory of the mobile terminal. For example, the second preset threshold may be set to -30dbm.
在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,分别判断第一接收信号强度和第二接收信号强度是否小于第二预设阈值,若第一接收信号强度和第二接收信号强度均小于第二预设阈值,说明第一天线收发信号的性能和第二天线收发信号的性能都较弱,则获取移动终端所处位置的位置信息。When the mobile terminal is in the call state of the first antenna, it detects the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals, and respectively determines the first received signal strength and the second received signal strength. Whether the received signal strength is less than the second preset threshold, if both the first received signal strength and the second received signal strength are less than the second preset threshold, it indicates that the performance of the first antenna to send and receive signals and the performance of the second antenna to send and receive signals are weak , The location information of the location of the mobile terminal is acquired.
步骤S402,根据所述移动终端的位置信息获取所述移动终端当前所在位置的预设范围内历史统计的信号强度最大的目标区域。Step S402: Obtain, according to the location information of the mobile terminal, a target area with the highest historically counted signal strength within a preset range of the current location of the mobile terminal.
在本发明实施例中,以移动终端所述位置为基准,距离移动终端预设距离阈值的区域为预设范围,获取预设范围内移动终端在历史活动中统计的信号强度分布,确定信号强度最大的区域为目标区域。In the embodiment of the present invention, the location of the mobile terminal is used as a reference, and the area of the preset distance threshold from the mobile terminal is the preset range, and the signal strength distribution of the mobile terminal in the historical activities within the preset range is acquired to determine the signal strength The largest area is the target area.
步骤S403,根据所述目标区域输出提示信息,所述提示信息用于提示用户将所述移动终端移动至所述目标区域。Step S403: Output prompt information according to the target area, where the prompt information is used to prompt the user to move the mobile terminal to the target area.
在本发明实施例中,第二提示信息可以为文字信息、图片信息、语音信息等,也可以是其中两种以上的组合。第二提示信息提示用户移动至目标区域。In the embodiment of the present invention, the second prompt information may be text information, picture information, voice information, etc., or a combination of two or more of them. The second prompt message prompts the user to move to the target area.
作为本发明的一个实施例,天线的切换方法还可以包括:As an embodiment of the present invention, the antenna switching method may further include:
检测所述移动终端是否处于免提状态或所述移动终端是否与耳机连接,若所述移动终端未处于免提状态,且所述移动终端未与耳机连接,则执行每隔预设时间分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度的步骤。Detect whether the mobile terminal is in the hands-free state or whether the mobile terminal is connected to the headset, if the mobile terminal is not in the hands-free state, and the mobile terminal is not connected to the headset, perform separate detection every preset time The steps of the first received signal strength of the first antenna and the second received signal strength of the second antenna.
在本发明实施例中,在移动终端处于免提状态或与耳机连接时,通常不需要用户握持移动终端,不会发生由于用户握持导致天线收发信号 的性能变弱的问题,不需要进行天线切换。In the embodiment of the present invention, when the mobile terminal is in a hands-free state or is connected to a headset, it is usually not necessary for the user to hold the mobile terminal, and the problem of weakening of the antenna receiving and sending signals due to the user's holding does not occur, and there is no need to perform Antenna switching.
作为本发明的一个实施例,所述第一天线与所述第二天线的检测时间间隔小于1毫秒。若第一天线和第二天线的检测时间间隔太长,可能会导致已经检测的天线的收发信号的性能发生变化,从而导致收发信号性能差的天线切换为通话天线。As an embodiment of the present invention, the detection time interval between the first antenna and the second antenna is less than 1 millisecond. If the detection time interval between the first antenna and the second antenna is too long, it may cause changes in the performance of the received and received signals of the antennas that have been detected, and the antenna with poor performance of the received and received signals may be switched to the call antenna.
图5是本发明实施例提供的天线的切换装置结构示意图,在本发明实施例中,天线的切换装置500可以包括:FIG. 5 is a schematic structural diagram of an antenna switching apparatus provided by an embodiment of the present invention. In an embodiment of the present invention, the antenna switching apparatus 500 may include:
检测模块501,用于在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度;The detection module 501 is configured to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna;
切换模块502,用于若所述第二接收信号强度超过所述第一接收信号强度,且所述第二接收信号强度与所述第一接收信号强度的差大于第一预设阈值,则将所述第二天线切换为通话天线,并将切换后的通话天线作为新的第一天线,重新执行所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度的步骤。The switching module 502 is configured to: if the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, The second antenna is switched to the call antenna, and the switched call antenna is used as the new first antenna, and the detection of the first received signal strength of the first antenna and the signal strength of the second antenna are performed again at preset time intervals. The second step of receiving signal strength.
作为本发明的一个实施例,检测模块用于按照设定时间间隔分别检测所述第一天线的第一接收信号强度和所述第二天线的第二接收信号强度;As an embodiment of the present invention, the detection module is configured to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna respectively according to a set time interval;
若所述第二接收信号强度未超过所述第一接收信号强度,则对所述设定时间间隔进行调整,按照调整后的设定时间间隔分别检测所述第一天线的第一接收信号强度和所述第二天线的第二接收信号强度,并将所述调整后的设定时间间隔设定为新的设定时间间隔,其中所述调整后的设定时间间隔大于所述设定时间间隔,继续执行按照设定时间间隔分别检测所述第一天线的第一接收信号强度的步骤;If the second received signal strength does not exceed the first received signal strength, the set time interval is adjusted, and the first received signal strength of the first antenna is detected according to the adjusted set time interval And the second received signal strength of the second antenna, and the adjusted set time interval is set as a new set time interval, wherein the adjusted set time interval is greater than the set time Interval, continue to perform the step of separately detecting the first received signal strength of the first antenna according to the set time interval;
若所述第二接收信号强度超过所述第一接收信号强度,则继续执行按照设定时间间隔分别检测所述第一天线的第一接收信号强度的步骤。If the second received signal strength exceeds the first received signal strength, continue to perform the step of detecting the first received signal strength of the first antenna according to a set time interval.
作为本发明的一个实施例,检测模块还用于若所述设定时间间隔大于或等于预设间隔阈值,则将所述调整后的设定时间间隔确定为所述预设间隔阈值。As an embodiment of the present invention, the detection module is further configured to determine the adjusted set time interval as the preset interval threshold if the set time interval is greater than or equal to a preset interval threshold.
作为本发明的一个实施例,还包括:As an embodiment of the present invention, it further includes:
第一输出模块,用于若所述第一接收信号强度和所述第二接收信号强度均小于第二预设阈值时,则输出第一提示信息,所述第一提示信息用于提示用户移动终端的信号弱。The first output module is configured to output first prompt information if both the first received signal strength and the second received signal strength are less than a second preset threshold, and the first prompt information is used to prompt the user to move The signal of the terminal is weak.
作为本发明的一个实施例,还包括:As an embodiment of the present invention, it further includes:
第二输出模块,用于若所述第一接收信号强度和所述第二接收信号强度均小于第二预设阈值,则获取所述移动终端的位置信息;A second output module, configured to obtain location information of the mobile terminal if both the first received signal strength and the second received signal strength are less than a second preset threshold;
根据所述移动终端的位置信息获取所述移动终端当前所在位置的预设范围内历史统计的信号强度最大的目标区域;Acquiring, according to the location information of the mobile terminal, a target area with the highest historically counted signal strength within a preset range of the current location of the mobile terminal;
根据所述目标区域输出提示信息,所述提示信息用于提示用户将所述移动终端移动至所述目标区域。Outputting prompt information according to the target area, the prompt information being used to prompt the user to move the mobile terminal to the target area.
作为本发明的一个实施例,还包括:As an embodiment of the present invention, it further includes:
检测模块501,用于检测所述移动终端是否处于免提状态或所述移动终端是否与耳机连接;若所述移动终端未处于免提状态,且所述移动终端未与耳机连接,则每隔预设时间分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度。The detection module 501 is configured to detect whether the mobile terminal is in the hands-free state or whether the mobile terminal is connected to the headset; if the mobile terminal is not in the hands-free state and the mobile terminal is not connected to the headset, every The first received signal strength of the first antenna and the second received signal strength of the second antenna are respectively detected for a preset time.
本实施例的装置,可用于执行如图2至图4所示的方法实施例,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the method embodiments shown in FIG. 2 to FIG. 4, and its implementation principles and technical effects are similar, and will not be repeated here.
图6为本发明实施例提供的天线的切换设备的硬件结构示意图。如图6所示,本实施例提供的天线的切换设备60包括:至少一个处理器601和存储器602。该天线的切换设备600还包括通信部件603。其中,处理器601、存储器602以及通信部件603通过总线604连接。FIG. 6 is a schematic diagram of the hardware structure of an antenna switching device provided by an embodiment of the present invention. As shown in FIG. 6, the antenna switching device 60 provided in this embodiment includes: at least one processor 601 and a memory 602. The antenna switching device 600 also includes a communication component 603. Among them, the processor 601, the memory 602, and the communication component 603 are connected by a bus 604.
在具体实现过程中,至少一个处理器601执行所述存储器602存储的计算机执行指令,使得至少一个处理器601执行上述任一方法实施例中的天线的切换方法。通信部件603用于与终端设备和/或服务器进行通讯。In a specific implementation process, at least one processor 601 executes the computer-executable instructions stored in the memory 602, so that the at least one processor 601 executes the antenna switching method in any of the foregoing method embodiments. The communication component 603 is used to communicate with the terminal device and/or the server.
处理器601的具体实现过程可参见上述方法实施例,其实现原理和技术效果类似,本实施例此处不再赘述。For the specific implementation process of the processor 601, refer to the foregoing method embodiments, and the implementation principles and technical effects are similar, and will not be repeated in this embodiment.
在上述的图6所示的实施例中,应理解,处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC) 等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the embodiment shown in FIG. 6 above, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as DSP), application specific integrated circuit (English: Application Specific Integrated Circuit, referred to as ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in combination with the invention can be directly embodied as executed and completed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器。The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.
总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。The bus may be an Industry Standard Architecture (ISA) bus, Peripheral Component (PCI) bus, or Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.
本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现上述任一方法实施例中的天线的切换方法。The embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the antenna in any of the foregoing method embodiments is implemented. Switch method.
上述的计算机可读存储介质,可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。可读存储介质可以是通用或专用计算机能够存取的任何可用介质。The above-mentioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory ( EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. A readable storage medium may be any available medium that can be accessed by a general purpose or special purpose computer.
一种示例性的可读存储介质耦合至处理器,从而使处理器能够从该可读存储介质读取信息,且可向该可读存储介质写入信息。当然,可读存储介质也可以是处理器的组成部分。处理器和可读存储介质可以位于专用集成电路(Application Specific Integrated Circuits,简称:ASIC)中。当然,处理器和可读存储介质也可以作为分立组件存在于设备中。An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and can write information to the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may be located in Application Specific Integrated Circuits (ASIC for short). Of course, the processor and the readable storage medium may also exist as discrete components in the device.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the steps in the foregoing method embodiments can be implemented by a program instructing relevant hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, it executes the steps including the foregoing method embodiments; and the foregoing storage medium includes: ROM, RAM, magnetic disk, or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而 非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions recorded in the foregoing embodiments can still be modified, or some or all of the technical features can be equivalently replaced; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention range.

Claims (10)

  1. 一种天线的切换方法,其特征在于,包括:An antenna switching method, characterized in that it comprises:
    在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度;When the mobile terminal is in the call state of the first antenna, detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at predetermined time intervals;
    若所述第二接收信号强度超过所述第一接收信号强度,且所述第二接收信号强度与所述第一接收信号强度的差大于第一预设阈值,则将所述第二天线切换为通话天线,并将切换后的通话天线作为新的第一天线,重新执行所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度的步骤。If the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, switch the second antenna Is a call antenna, and uses the switched call antenna as the new first antenna, and re-executes the detection of the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals. step.
  2. 如权利要求1所述的天线的切换方法,其特征在于,所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,包括:5. The antenna switching method according to claim 1, wherein the detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at predetermined time intervals respectively comprises:
    按照设定时间间隔分别检测所述第一天线的第一接收信号强度和所述第二天线的第二接收信号强度;Respectively detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna according to a set time interval;
    若所述第二接收信号强度未超过所述第一接收信号强度,则对所述设定时间间隔进行调整,按照调整后的设定时间间隔分别检测所述第一天线的第一接收信号强度和所述第二天线的第二接收信号强度,并将所述调整后的设定时间间隔设定为新的设定时间间隔,其中所述调整后的设定时间间隔大于所述设定时间间隔,继续执行按照设定时间间隔分别检测所述第一天线的第一接收信号强度的步骤;If the second received signal strength does not exceed the first received signal strength, the set time interval is adjusted, and the first received signal strength of the first antenna is detected according to the adjusted set time interval. And the second received signal strength of the second antenna, and the adjusted set time interval is set as a new set time interval, wherein the adjusted set time interval is greater than the set time Interval, continue to perform the step of separately detecting the first received signal strength of the first antenna according to the set time interval;
    若所述第二接收信号强度超过所述第一接收信号强度,则继续执行按照设定时间间隔分别检测所述第一天线的第一接收信号强度的步骤。If the second received signal strength exceeds the first received signal strength, continue to perform the step of detecting the first received signal strength of the first antenna according to a set time interval.
  3. 如权利要求2所述的天线的切换方法,其特征在于,还包括:5. The antenna switching method according to claim 2, further comprising:
    若所述设定时间间隔大于或等于预设间隔阈值,则将所述调整后的设定时间间隔确定为所述预设间隔阈值。If the set time interval is greater than or equal to the preset interval threshold, the adjusted set time interval is determined as the preset interval threshold.
  4. 如权利要求1所述的天线的切换方法,其特征在于,还包括:The antenna switching method according to claim 1, further comprising:
    若所述第一接收信号强度和所述第二接收信号强度均小于第二预设阈值,则输出第一提示信息,所述第一提示信息用于提示用户移动终端的信号弱。If both the first received signal strength and the second received signal strength are less than a second preset threshold, output first prompt information, where the first prompt information is used to prompt the user that the signal of the mobile terminal is weak.
  5. 如权利要求1所述的天线的切换方法,其特征在于,还包括:The antenna switching method according to claim 1, further comprising:
    若所述第一接收信号强度和所述第二接收信号强度均小于第二预设阈值,则获取所述移动终端的位置信息;If the first received signal strength and the second received signal strength are both less than a second preset threshold, acquiring location information of the mobile terminal;
    根据所述移动终端的位置信息获取所述移动终端当前所在位置的预设范围内历史统计的信号强度最大的目标区域;Acquiring, according to the location information of the mobile terminal, a target area with the highest historically counted signal strength within a preset range of the current location of the mobile terminal;
    根据所述目标区域输出第二提示信息,所述第二提示信息用于提示用户将所述移动终端移动至所述目标区域。Outputting second prompt information according to the target area, where the second prompt information is used to prompt the user to move the mobile terminal to the target area.
  6. 如权利要求1所述的天线的切换方法,其特征在于,还包括:The antenna switching method according to claim 1, further comprising:
    检测所述移动终端是否处于免提状态或所述移动终端是否与耳机连接;Detecting whether the mobile terminal is in a hands-free state or whether the mobile terminal is connected with a headset;
    所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度,包括:The separately detecting the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals includes:
    若所述移动终端未处于免提状态,且所述移动终端未与耳机连接,则每隔预设时间分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度。If the mobile terminal is not in the hands-free state, and the mobile terminal is not connected to the headset, the first received signal strength of the first antenna and the second received signal strength of the second antenna are respectively detected every preset time.
  7. 如权利要求1所述的天线的切换方法,其特征在于,所述第一天线与所述第二天线的检测时间间隔小于1毫秒。The antenna switching method according to claim 1, wherein the detection time interval between the first antenna and the second antenna is less than 1 millisecond.
  8. 一种天线的切换装置,其特征在于,包括:An antenna switching device, characterized by comprising:
    检测模块,用于在移动终端处于第一天线的通话状态时,每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度;The detection module is configured to detect the first received signal strength of the first antenna and the second received signal strength of the second antenna at preset time intervals when the mobile terminal is in the call state of the first antenna;
    切换模块,用于若所述第二接收信号强度超过所述第一接收信号强度,且所述第二接收信号强度与所述第一接收信号强度的差大于第一预设阈值,则将所述第二天线切换为通话天线,并将切换后的通话天线作为新的第一天线,重新执行所述每隔预设时间间隔分别检测第一天线的第一接收信号强度和第二天线的第二接收信号强度的步骤。A switching module, configured to: if the second received signal strength exceeds the first received signal strength, and the difference between the second received signal strength and the first received signal strength is greater than a first preset threshold, The second antenna is switched to the call antenna, and the switched call antenna is used as the new first antenna, and the detection of the first received signal strength of the first antenna and the second antenna of the second antenna are performed again at preset time intervals. 2. Steps to receive signal strength.
  9. 一种天线的切换设备,其特征在于,包括:至少一个处理器和存储器;An antenna switching device, characterized by comprising: at least one processor and memory;
    所述存储器存储计算机执行指令;The memory stores computer execution instructions;
    所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如权利要求1至7任一项所述的天线的切换方 法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the antenna switching method according to any one of claims 1 to 7.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至7任一项所述的天线的切换方法。A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the computer-readable How to switch the antenna.
PCT/CN2019/084809 2019-01-30 2019-04-28 Antenna switching method and device WO2020155445A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910090832.X 2019-01-30
CN201910090832.XA CN109802716B (en) 2019-01-30 2019-01-30 Antenna switching method and device

Publications (1)

Publication Number Publication Date
WO2020155445A1 true WO2020155445A1 (en) 2020-08-06

Family

ID=66559300

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/084809 WO2020155445A1 (en) 2019-01-30 2019-04-28 Antenna switching method and device

Country Status (2)

Country Link
CN (1) CN109802716B (en)
WO (1) WO2020155445A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737715A (en) * 2020-12-31 2021-04-30 Oppo广东移动通信有限公司 Antenna deployment method and device, client front-end device and readable storage medium
CN113395084A (en) * 2021-06-11 2021-09-14 维沃移动通信有限公司 Antenna switching method and device and electronic equipment
CN114978369A (en) * 2021-02-25 2022-08-30 浙江宇视科技有限公司 Antenna position adjusting method and device, electronic equipment and computer storage medium
CN115097377A (en) * 2022-06-16 2022-09-23 Oppo广东移动通信有限公司 Angle measuring method and related device
CN116545491A (en) * 2023-06-27 2023-08-04 荣耀终端有限公司 Antenna switching method, wireless network card and antenna switching device

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278010B (en) * 2019-06-13 2021-04-09 Oppo广东移动通信有限公司 Antenna switching method, antenna switching device, storage medium and electronic equipment
CN112118335B (en) * 2019-06-20 2022-07-29 北京小米移动软件有限公司 Terminal equipment and using method thereof
CN110320538B (en) * 2019-06-25 2020-07-03 深圳市星火车联科技有限公司 Method, device and system for detecting whether carrying device carries objects or not
CN112448731B (en) * 2019-08-30 2022-05-13 Oppo广东移动通信有限公司 Wearable device, signal processing method, and computer-readable storage medium
CN114079494A (en) * 2020-08-19 2022-02-22 昆山睿翔讯通通信技术有限公司 Antenna switching method and system and mobile terminal equipment
CN112202467B (en) * 2020-09-02 2021-09-21 珠海格力电器股份有限公司 Method, device, equipment and medium for controlling main diversity change-over switch
CN112216979B (en) * 2020-09-28 2021-07-20 珠海格力电器股份有限公司 Antenna structure and feed point conversion method
CN116827404B (en) * 2023-08-30 2023-12-05 深圳市广和通无线通信软件有限公司 Physical antenna switching method and device based on general algorithm

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130051284A1 (en) * 2011-08-23 2013-02-28 Rf Micro Devices, Inc. Carrier aggregation radio system
CN105281819A (en) * 2015-10-31 2016-01-27 东莞酷派软件技术有限公司 Antenna switching method and terminal
CN107124212A (en) * 2017-04-28 2017-09-01 广东欧珀移动通信有限公司 Mobile terminal and its antenna switching method, antenna-switching device
CN107911126A (en) * 2017-12-12 2018-04-13 北京松果电子有限公司 antenna switching method, device and storage medium
CN108429863A (en) * 2018-05-29 2018-08-21 Oppo(重庆)智能科技有限公司 Switch method, mobile terminal and the computer readable storage medium of antenna
CN109150327A (en) * 2018-08-28 2019-01-04 维沃移动通信有限公司 A kind of antenna detection method, antenna detection device and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002290296A (en) * 2001-03-27 2002-10-04 Matsushita Electric Ind Co Ltd Wireless phone and diversity reception method
US9295069B2 (en) * 2014-06-05 2016-03-22 Qualcomm Incorporated Radio frequency radiation exposure mitigation using antenna switching
CN106452550B (en) * 2016-10-14 2019-06-04 珠海市魅族科技有限公司 Antenna switching method and device
CN108574520B (en) * 2017-03-09 2022-06-07 中兴通讯股份有限公司 Method and device for adjusting antenna switching

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130051284A1 (en) * 2011-08-23 2013-02-28 Rf Micro Devices, Inc. Carrier aggregation radio system
CN105281819A (en) * 2015-10-31 2016-01-27 东莞酷派软件技术有限公司 Antenna switching method and terminal
CN107124212A (en) * 2017-04-28 2017-09-01 广东欧珀移动通信有限公司 Mobile terminal and its antenna switching method, antenna-switching device
CN107911126A (en) * 2017-12-12 2018-04-13 北京松果电子有限公司 antenna switching method, device and storage medium
CN108429863A (en) * 2018-05-29 2018-08-21 Oppo(重庆)智能科技有限公司 Switch method, mobile terminal and the computer readable storage medium of antenna
CN109150327A (en) * 2018-08-28 2019-01-04 维沃移动通信有限公司 A kind of antenna detection method, antenna detection device and mobile terminal

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737715A (en) * 2020-12-31 2021-04-30 Oppo广东移动通信有限公司 Antenna deployment method and device, client front-end device and readable storage medium
CN112737715B (en) * 2020-12-31 2023-03-24 Oppo广东移动通信有限公司 Antenna deployment method and device, client front-end device and readable storage medium
CN114978369A (en) * 2021-02-25 2022-08-30 浙江宇视科技有限公司 Antenna position adjusting method and device, electronic equipment and computer storage medium
CN113395084A (en) * 2021-06-11 2021-09-14 维沃移动通信有限公司 Antenna switching method and device and electronic equipment
CN115097377A (en) * 2022-06-16 2022-09-23 Oppo广东移动通信有限公司 Angle measuring method and related device
CN115097377B (en) * 2022-06-16 2024-05-24 Oppo广东移动通信有限公司 Angle measurement method and related device
CN116545491A (en) * 2023-06-27 2023-08-04 荣耀终端有限公司 Antenna switching method, wireless network card and antenna switching device
CN116545491B (en) * 2023-06-27 2023-11-07 荣耀终端有限公司 Antenna switching method, wireless network card and antenna switching device

Also Published As

Publication number Publication date
CN109802716A (en) 2019-05-24
CN109802716B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
WO2020155445A1 (en) Antenna switching method and device
US11930455B2 (en) Method for controlling network connection, terminal and non-transitory storage medium
US11165937B2 (en) Electromagnetic interference control method and related device
WO2017032032A1 (en) Screen brightness adjusting method and user terminal
US10848193B2 (en) Method and system for reducing radiation damage from mobile terminals
EP3110116B1 (en) Method for automatically adjusting volume, volume adjustment apparatus and electronic device
KR101658908B1 (en) Apparatus and method for improving a call voice quality in portable terminal
WO2018006590A1 (en) Antenna tuning parameter processing method and mobile terminal
CN106375573B (en) Method and device for switching call mode
CN102843464A (en) System and method utilizing distance sensor to adjust call audio output mode
US10204639B2 (en) Method and device for processing sound signal for communications device
WO2020007173A1 (en) Communication connection establishing method and relevant device
US11025764B2 (en) Method and system for reducing current noise of touch terminal
WO2019042418A1 (en) Mobile terminal, memory, and method for reducing interference with gps signal of mobile terminal
JP2013029364A (en) Radio terminal device and control method
US10164701B2 (en) Antenna allocation method and terminal
US10637419B2 (en) Attenuator circuit for an electronic device having a battery and method for controlling the electronic device
CN110289919B (en) Signal guarantee processing method, device, equipment and storage medium
CN108377298B (en) Method and device for switching answering mode, mobile terminal and computer readable storage medium
US10199727B2 (en) Variable capacitor-based antenna adjustment method and related apparatus
CN110399114B (en) Method, device and terminal equipment for controlling robot to perform video monitoring
CN113271385A (en) Call forwarding method
CN112291722A (en) Call waiting state setting method, device, terminal and storage medium
CN113365257B (en) Master-slave earphone switching method and device, earphone and readable storage medium
CN108282852B (en) WiFi bridging management method and device, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19912289

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19912289

Country of ref document: EP

Kind code of ref document: A1