CN113676271A - Method and device for switching antennas - Google Patents

Method and device for switching antennas Download PDF

Info

Publication number
CN113676271A
CN113676271A CN202110757407.9A CN202110757407A CN113676271A CN 113676271 A CN113676271 A CN 113676271A CN 202110757407 A CN202110757407 A CN 202110757407A CN 113676271 A CN113676271 A CN 113676271A
Authority
CN
China
Prior art keywords
antenna
target
value
threshold
imbalance threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110757407.9A
Other languages
Chinese (zh)
Other versions
CN113676271B (en
Inventor
汪昭河
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110757407.9A priority Critical patent/CN113676271B/en
Publication of CN113676271A publication Critical patent/CN113676271A/en
Application granted granted Critical
Publication of CN113676271B publication Critical patent/CN113676271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/382Monitoring; Testing of propagation channels for resource allocation, admission control or handover

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Radio Transmission System (AREA)

Abstract

The application discloses a method and a device for switching antennas, and belongs to the technical field of communication. The method mainly comprises the following steps: acquiring a first signal strength of a first antenna and a second signal strength of a second antenna; acquiring a target unbalance threshold corresponding to the current use scene according to the unbalance threshold storage table; under the condition that the first signal strength, the second signal strength and the target imbalance threshold value meet preset switching conditions, switching the first antenna into a second antenna; wherein, the first antenna is the current receiving antenna.

Description

Method and device for switching antennas
Technical Field
The present application belongs to the field of communication technologies, and in particular, to a method and an apparatus for switching antennas.
Background
The electronic equipment receives the electromagnetic wave signals through the antenna module, and then the radio frequency front-end device and the baseband module separate information carried by the electromagnetic wave signals to generate information such as voice, pictures, videos and the like. Wherein the antenna module integrates a plurality of antennas.
In a situation that the electronic device is located at a cell edge or is in a dead state, the electronic device switches an antenna of an antenna module for receiving an electromagnetic wave signal, so as to receive the electromagnetic wave signal with higher signal strength. The imbalance threshold between different antennas in an antenna module is a key parameter that affects antenna switching. That is, the accuracy of the selected imbalance threshold affects the signal strength of the electromagnetic wave signal that the switched antenna can receive.
In the related art, the electronic device sets a fixed unbalanced threshold, which results in a relatively fixed switching time for switching the antenna, and the antenna cannot be flexibly switched, resulting in failure to better receive the electromagnetic wave signal.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method and an apparatus for switching an antenna, which can solve the problem that an electronic device cannot receive an electromagnetic wave signal better due to inflexibility of antenna switching.
In a first aspect, an embodiment of the present application provides a method for switching antennas, where the method includes:
acquiring a first signal strength of a first antenna and a second signal strength of a second antenna;
acquiring a target unbalance threshold corresponding to the current use scene according to the unbalance threshold storage table;
under the condition that the first signal strength, the second signal strength and the target imbalance threshold value meet preset switching conditions, switching the first antenna into a second antenna;
wherein, the first antenna is the current receiving antenna.
In a second aspect, an embodiment of the present application provides an apparatus for switching antennas, where the apparatus includes: the device comprises an acquisition module and a switching module;
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring first signal strength of a first antenna and second signal strength of a second antenna;
the acquisition module is further used for acquiring a target unbalance threshold corresponding to the current use scene according to the unbalance threshold storage table;
the switching module is used for switching the first antenna into the second antenna under the condition that the first signal strength, the second signal strength and the target imbalance threshold value which are acquired by the acquisition module meet preset switching conditions;
wherein, the first antenna is the current receiving antenna.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, the present application provides a computer program product stored in a non-volatile storage medium, the program product being executed by at least one processor to implement the method as provided in the first aspect.
In the embodiment of the application, first signal strength of a first antenna and second signal strength of a second antenna are obtained, then a target imbalance threshold corresponding to a current use scene is obtained according to an imbalance threshold storage table, and finally the first antenna is switched to the second antenna under the condition that the first signal strength, the second signal strength and the target imbalance threshold meet preset switching conditions. Therefore, the target unbalance threshold corresponding to the current use scene is dynamically acquired, so that the switched second antenna better meets the use requirement of the current use scene on the received signal, and whether the preset switching condition is met or not is judged according to the target unbalance threshold, so that the switching time of the switched antenna better meets the actual requirement.
Drawings
Fig. 1 is a flowchart of a method for switching antennas according to an embodiment of the present disclosure;
fig. 2 is a second flowchart of a method for switching antennas according to an embodiment of the present application;
FIG. 3 is a flowchart of a method for generating an unbalanced threshold storage table according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for determining a target imbalance threshold provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for switching an antenna according to an embodiment of the present application;
fig. 6 is a second schematic structural diagram of an apparatus for switching an antenna according to an embodiment of the present application;
fig. 7 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure;
fig. 8 is a second hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The method for switching antennas according to the embodiments of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
With the development of technology, a plurality of antennas can be integrated into an electronic device (e.g., a 5G mobile phone terminal) at present, and when designing an antenna, a certain Imbalance exists between different antennas under the influence of an actual antenna architecture, a routing manner, material selection, and the like, where the Imbalance is referred to as an Imbalance Threshold (Imbalance Threshold). In practical application, different models have different unbalanced thresholds due to different requirements, and the same model has different unbalanced thresholds due to the influence of an integration process. In the scenes of cell edges, death handshake and the like, the received signal of the antenna is weakened, and the quality of the received signal is ensured by adopting a mode of switching the antenna, wherein the death handshake refers to the condition that the received signal of the electronic equipment is weakened due to the shielding of a palm when the palm touches an external antenna of the electronic equipment. In the process of switching the antennas, the imbalance threshold of the antennas is an important factor influencing the received signal strength of the antennas after switching. Since the imbalance threshold value is often set to a fixed value in the current electronic device, however, according to the fixed imbalance threshold value, the electronic device cannot ensure that the switching antenna can receive the electromagnetic wave signal with higher signal strength. To solve the above technical problem, as shown in fig. 1, an embodiment of the present application provides a method for switching antennas. The method may include steps 101 to 103 described below. The method is exemplified below by taking the implementation subject as the apparatus for switching the antenna.
Step 101: the means for switching antennas obtains a first signal strength of the first antenna and a second signal strength of the second antenna.
In the embodiment of the application, during the use of the electronic device, both the antennas can receive electromagnetic wave signals, and the signal strength can be detected through the received electromagnetic wave signals.
In the embodiment of the present application, the first antenna is a current receiving antenna. Note that the electronic device uses only the electromagnetic wave signal received by the first antenna (i.e., the current receiving antenna) as the communication signal at the same time.
Optionally, in this embodiment of the application, the apparatus for switching the antenna acquires the first signal strength and the second signal strength of the electronic device when detecting that the electronic device is in an abnormal environment such as a cell edge or a dead hand.
It can be understood that, a main receiving antenna (a first antenna) and a secondary receiving antenna (a second antenna) are provided in the electronic device, and in a normal environment, the main receiving antenna is sufficient to meet the communication requirement of the electronic device, and no switching of the antennas is needed to be considered.
Step 102: and the device for switching the antenna acquires a target unbalance threshold corresponding to the current use scene according to the unbalance threshold storage table.
In the embodiment of the present application, the target imbalance threshold corresponds to a communication requirement of a current usage scenario, for example, the current usage scenario is an online video, the communication requirement corresponding to the online video is focused on throughput, the current usage scenario is a voice call, and the communication requirement corresponding to the voice call is focused on reliability.
In the embodiment of the present application, different target imbalance thresholds are adopted, which may affect throughput, block error rate, and uplink power of an electromagnetic wave signal received after switching an antenna, so that a device for switching an antenna needs to obtain a target imbalance threshold corresponding to a current usage scenario, so that the electromagnetic wave signal received by the antenna after switching meets a requirement of the current usage scenario for communication quality.
Step 103: the apparatus for switching antennas switches the first antenna to the second antenna when the first signal strength, the second signal strength, and the target imbalance threshold satisfy a preset switching condition.
In the embodiment of the present application, the preset switching condition includes: the sum of the target imbalance threshold and the base threshold is less than the target difference; wherein the target difference is: a difference between the first signal strength and the second signal strength. It should be understood that the base threshold refers to the lowest imbalance threshold between different antennas. The sum of the base threshold and the target imbalance threshold is used as a comparison basis of the preset switching condition, so as to reduce the size of the target imbalance threshold and the data value of the corresponding imbalance threshold, and reduce the calculation amount.
In this embodiment of the application, when the first antenna cannot meet a signal receiving requirement, or when the second antenna signal meets a requirement better than the signal received by the first antenna, it needs to be determined whether a preset switching condition is met, so that the electronic device obtains an optimal received signal.
In this embodiment of the present application, when a preset switching condition is satisfied, the antenna switching apparatus sends a control signal to the antenna module, and performs an actual antenna switching operation to obtain an electrical signal output by the signal transmission interface corresponding to the second antenna.
In the embodiment of the present application, after the apparatus for switching antennas switches the first antenna to the second antenna, it is further required to detect whether the electronic device is in an abnormal environment such as a cell edge or a dead grip, so that the receiving antenna is switched to the first antenna when it is detected that the electronic device is not in the abnormal environment such as the cell edge or the dead grip.
In the method for switching antennas provided in the embodiment of the present application, first signal strength of a first antenna and second signal strength of a second antenna are obtained, then a target imbalance threshold corresponding to a current usage scenario is obtained according to an imbalance threshold storage table, and finally the first antenna is switched to the second antenna when the first signal strength, the second signal strength, and the target imbalance threshold satisfy a preset switching condition. Therefore, the target unbalance threshold corresponding to the current use scene is dynamically acquired, so that the switched second antenna better meets the use requirement of the current use scene on the received signal, and whether the preset switching condition is met or not is judged according to the target unbalance threshold, so that the switching time of the switched antenna better meets the actual requirement.
Optionally, in this embodiment of the application, as shown in fig. 2, before step 102, the method for switching antennas further includes step 201.
Step 201: and the antenna switching device generates an unbalanced threshold value storage table according to a preset training model.
In the embodiment of the application, the imbalance threshold storage table is used for storing the imbalance threshold and the parameter value of the communication attribute corresponding to the imbalance threshold; the communication attribute includes at least one of: throughput, block error rate, and uplink power.
In the embodiment of the application, under the current receiving environment of the electronic device, the parameter value of the communication attribute corresponding to the unbalanced threshold value of the second antenna is measured according to the preset training model, and the unbalanced threshold value and the parameter value of the communication attribute corresponding to the unbalanced threshold value are stored in the unbalanced threshold value storage table.
Therefore, the stored data in the imbalance threshold storage table is a real numerical value obtained according to the actual environment of the electronic device, so that the target imbalance threshold obtained according to the imbalance threshold storage table is more consistent with the actual application environment, and the second antenna can receive high-quality signals for the electronic device.
Further alternatively, in this embodiment of the present application, as shown in fig. 3, step 201 may be implemented by step 301 and step 302.
Step 301: the apparatus for switching antennas takes the second antenna as the current receiving antenna and measures the parameter value of the communication attribute corresponding to the imbalance threshold value.
Step 302: and the device for switching the antenna generates an unbalanced threshold value storage table according to the unbalanced threshold value and the parameter value of the communication attribute corresponding to the unbalanced threshold value.
In the embodiment of the present application, the imbalance threshold is at least one value, and the at least one value is increased by a preset step size from a preset initial value and does not exceed the maximum value N. It should be noted that, after each value of the imbalance threshold is maintained for a preset time, the parameter value of the communication attribute is obtained, so as to improve the stability of the parameter value of the communication attribute.
In this way, the electronic device measures the parameter values of the communication attributes corresponding to different imbalance threshold values in the current receiving environment, so that the generated imbalance threshold value storage table better conforms to the actual receiving situation of the second antenna, and the adaptation degree of the target imbalance threshold value acquired from the imbalance threshold value storage table and the current receiving environment can be improved.
Further alternatively, as shown in fig. 4, on the basis of generating the imbalance threshold storage table in step 201, the above step 102 may be implemented by steps 401 to 403.
Step 401: and the antenna switching device determines the target communication attribute according to the current use scene.
Step 402: and the antenna switching device determines the optimal parameter value of the target communication attribute according to the parameter value of the target communication attribute.
Step 403: and the device for switching the antenna determines a target imbalance threshold corresponding to the optimal parameter value of the target communication attribute according to the imbalance threshold storage table.
In the embodiment of the present application, the target communication attribute is any one of the communication attributes. The optimum parameter value is any one of: a maximum value of throughput, a minimum value of block error rate, and a minimum value of uplink power.
In the embodiment of the present application, the current usage scenarios are different, and the requirements for the signal quality of the electromagnetic wave signal are also different, so the apparatus for switching antennas determines the target communication attribute according to the current usage scenarios, and the target communication attribute may be throughput, block error rate, or uplink power.
In one example, the current usage scenario is online video viewing, the communication demand corresponding to online video viewing is focused on throughput, and the target communication attribute corresponding to online video viewing is throughput.
In another example, the current usage scenario is a voice call, the communication requirement corresponding to the voice call is focused on reliability, and the target communication attribute corresponding to the voice call scenario is a block error rate.
In another example, the current usage scenario is reading a document, the communication requirement corresponding to the reading document is focused on power saving, and the target communication attribute corresponding to the reading document scenario is uplink power.
Therefore, the most appropriate target imbalance threshold value is obtained according to the current use scene, so that the switching time of the switching antenna is more in line with the actual requirement, and the service quality of the terminal electronic equipment can be improved.
It should be noted that, in the method for switching an antenna provided in the embodiment of the present application, the execution main body may be an apparatus for switching an antenna, or a control module in the apparatus for switching an antenna, for executing the method for switching an antenna. In the embodiments of the present application, a method for performing antenna switching by an antenna switching apparatus is taken as an example, and the antenna switching apparatus provided in the embodiments of the present application is described.
As shown in fig. 5, an embodiment of the present application provides an apparatus for switching antennas. The apparatus for switching the antenna includes: an acquisition module 51 and a switching module 52;
an obtaining module 51, configured to obtain a first signal strength of a first antenna and a second signal strength of a second antenna;
the obtaining module 51 is further configured to obtain a target imbalance threshold corresponding to the current usage scenario according to the imbalance threshold storage table;
a switching module 52, configured to switch the first antenna to the second antenna when the first signal strength, the second signal strength, and the target imbalance threshold value obtained by the obtaining module 51 meet a preset switching condition;
wherein, the first antenna is the current receiving antenna.
Optionally, as shown in fig. 6, the apparatus further includes a generating module 53;
a generating module 53, configured to, before the obtaining module 51 searches for the target imbalance threshold corresponding to the current usage scenario in the imbalance threshold storage table, generate the imbalance threshold storage table according to a preset training model;
the imbalance threshold storage table is used for storing an imbalance threshold and a parameter value of a communication attribute corresponding to the imbalance threshold;
the communication attribute includes at least one of: throughput, block error rate, and uplink power.
Optionally, the generating module 53 is specifically configured to:
taking the second antenna as a current receiving antenna, and measuring a parameter value of the communication attribute corresponding to the imbalance threshold value;
generating an imbalance threshold storage table according to the imbalance threshold and the parameter value of the communication attribute corresponding to the imbalance threshold;
the unbalance threshold value is at least one numerical value, and the at least one numerical value is increased progressively according to a preset step length from a preset initial value and does not exceed a maximum value N.
Optionally, the obtaining module 51 is specifically configured to:
determining a target communication attribute according to the current use scene, wherein the target communication attribute is any one of the communication attributes;
determining an optimal parameter value of the target communication attribute according to the parameter value of the target communication attribute;
determining a target unbalance threshold corresponding to the optimal parameter value of the target communication attribute according to the unbalance threshold storage table;
wherein the optimal parameter value is any one of: a maximum value of throughput, a minimum value of block error rate, and a minimum value of uplink power.
Optionally, the preset switching condition includes: the sum of the target imbalance threshold and the base threshold is less than the target difference; wherein the target difference is: a difference between the first signal strength and the second signal strength.
In the apparatus for switching an antenna provided in the embodiment of the present application, first signal strength of a first antenna and second signal strength of a second antenna are obtained, then a target imbalance threshold corresponding to a current usage scenario is obtained according to an imbalance threshold storage table, and finally the first antenna is switched to the second antenna when the first signal strength, the second signal strength, and the target imbalance threshold satisfy a preset switching condition. Therefore, the target unbalance threshold corresponding to the current use scene is dynamically acquired, so that the switched second antenna better meets the use requirement of the current use scene on the received signal, and whether the preset switching condition is met or not is judged according to the target unbalance threshold, so that the switching time of the switched antenna better meets the actual requirement.
The device for switching the antenna in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The device for switching the antenna in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The apparatus for switching an antenna according to the embodiment of the present application can implement each process implemented by the method embodiments in fig. 1 to fig. 4, and is not described herein again to avoid repetition.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the above-mentioned method embodiment for switching an antenna, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 810 is configured to obtain a first signal strength of a first antenna and a second signal strength of a second antenna; acquiring a target unbalance threshold corresponding to the current use scene according to the unbalance threshold storage table; under the condition that the first signal strength, the second signal strength and the target imbalance threshold value meet preset switching conditions, switching the first antenna into a second antenna; wherein, the first antenna is the current receiving antenna.
Optionally, the processor 810 is further configured to generate an imbalance threshold storage table according to a preset training model before searching for a target imbalance threshold corresponding to the current usage scenario in the imbalance threshold storage table; the imbalance threshold storage table is used for storing an imbalance threshold and a parameter value of a communication attribute corresponding to the imbalance threshold; the communication attribute includes at least one of: throughput, block error rate, and uplink power.
Optionally, the processor 810 is further configured to use the second antenna as a current receiving antenna, and measure a parameter value of the communication attribute corresponding to the imbalance threshold; generating an imbalance threshold storage table according to the imbalance threshold and the parameter value of the communication attribute corresponding to the imbalance threshold; the unbalance threshold value is at least one numerical value, and the at least one numerical value is increased progressively according to a preset step length from a preset initial value and does not exceed a maximum value N.
Optionally, the processor 810 is further configured to determine a target communication attribute according to the current usage scenario, where the target communication attribute is any one of the communication attributes; determining an optimal parameter value of the target communication attribute according to the parameter value of the target communication attribute; determining a target unbalance threshold corresponding to the optimal parameter value of the target communication attribute according to the unbalance threshold storage table; wherein the optimal parameter value is any one of: a maximum value of throughput, a minimum value of block error rate, and a minimum value of uplink power.
Optionally, the preset switching condition includes: the sum of the target imbalance threshold and the base threshold is less than the target difference; wherein the target difference is: a difference between the first signal strength and the second signal strength.
In the electronic device provided in the embodiment of the present application, first signal strength of a first antenna and second signal strength of a second antenna are obtained, then a target imbalance threshold corresponding to a current usage scenario is obtained according to an imbalance threshold storage table, and finally the first antenna is switched to the second antenna when the first signal strength, the second signal strength and the target imbalance threshold satisfy a preset switching condition. Therefore, the target unbalance threshold corresponding to the current use scene is dynamically acquired, so that the switched second antenna better meets the use requirement of the current use scene on the received signal, and whether the preset switching condition is met or not is judged according to the target unbalance threshold, so that the switching time of the switched antenna better meets the actual requirement.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The process 810 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
An embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above method for switching antennas, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above method for switching antennas, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of switching antennas, the method comprising:
acquiring a first signal strength of a first antenna and a second signal strength of a second antenna;
acquiring a target unbalance threshold corresponding to the current use scene according to the unbalance threshold storage table;
switching the first antenna to the second antenna when the first signal strength, the second signal strength and the target imbalance threshold satisfy a preset switching condition;
wherein the first antenna is a current receiving antenna.
2. The method according to claim 1, wherein before looking up the target imbalance threshold corresponding to the current usage scenario in the imbalance threshold storage table, the method further comprises:
generating the unbalance threshold storage table according to a preset training model;
the imbalance threshold storage table is used for storing an imbalance threshold and parameter values of communication attributes corresponding to the imbalance threshold;
the communication attribute includes at least one of: throughput, block error rate, and uplink power.
3. The method of claim 2, wherein generating the imbalance threshold storage table according to a pre-set training model comprises:
taking the second antenna as a current receiving antenna, and measuring a parameter value of a communication attribute corresponding to the imbalance threshold;
generating the imbalance threshold value storage table according to the imbalance threshold value and the parameter value of the communication attribute corresponding to the imbalance threshold value;
the unbalance threshold value is at least one numerical value, and the at least one numerical value is increased progressively according to a preset step length from a preset initial value and does not exceed a maximum value N.
4. The method according to claim 2, wherein the obtaining the target imbalance threshold corresponding to the current usage scenario according to the imbalance threshold storage table comprises:
determining a target communication attribute according to the current use scene, wherein the target communication attribute is any one of the communication attributes;
determining an optimal parameter value of the target communication attribute according to the parameter value of the target communication attribute;
determining a target unbalance threshold corresponding to the optimal parameter value of the target communication attribute according to an unbalance threshold storage table;
wherein the optimal parameter value is any one of: the maximum value of the throughput, the minimum value of the block error rate and the minimum value of the uplink power.
5. The method according to any of claims 1 to 4, wherein the preset switching conditions comprise: the sum of the target imbalance threshold and the base threshold is less than the target difference;
wherein the target difference is: a difference between the first signal strength and the second signal strength.
6. An apparatus for switching an antenna, the apparatus comprising: the device comprises an acquisition module and a switching module;
the acquisition module is used for acquiring a first signal strength of a first antenna and a second signal strength of a second antenna;
the obtaining module is further configured to obtain a target imbalance threshold corresponding to the current usage scenario according to the imbalance threshold storage table;
the switching module is configured to switch the first antenna to the second antenna when the first signal strength, the second signal strength, and the target imbalance threshold value obtained by the obtaining module satisfy a preset switching condition;
wherein the first antenna is a current receiving antenna.
7. The apparatus of claim 6, further comprising a generation module;
the generating module is configured to generate the imbalance threshold storage table according to a preset training model before the obtaining module searches for a target imbalance threshold corresponding to a current usage scenario in the imbalance threshold storage table;
the imbalance threshold storage table is used for storing an imbalance threshold and parameter values of communication attributes corresponding to the imbalance threshold;
the communication attribute includes at least one of: throughput, block error rate, and uplink power.
8. The apparatus of claim 7, wherein the generating module is specifically configured to:
taking the second antenna as a current receiving antenna, and measuring a parameter value of a communication attribute corresponding to the imbalance threshold;
generating the imbalance threshold value storage table according to the imbalance threshold value and the parameter value of the communication attribute corresponding to the imbalance threshold value;
the unbalance threshold value is at least one numerical value, and the at least one numerical value is increased progressively according to a preset step length from a preset initial value and does not exceed a maximum value N.
9. The apparatus of claim 8, wherein the obtaining module is specifically configured to:
determining a target communication attribute according to the current use scene, wherein the target communication attribute is any one of the communication attributes;
determining an optimal parameter value of the target communication attribute according to the parameter value of the target communication attribute;
determining a target unbalance threshold corresponding to the optimal parameter value of the target communication attribute according to an unbalance threshold storage table;
wherein the optimal parameter value is any one of: the maximum value of the throughput, the minimum value of the block error rate and the minimum value of the uplink power.
10. The apparatus according to any one of claims 6 to 9, wherein the preset switching condition comprises: the sum of the target imbalance threshold and the base threshold is less than the target difference;
wherein the target difference is: a difference between the first signal strength and the second signal strength.
CN202110757407.9A 2021-07-05 2021-07-05 Method and device for switching antennas Active CN113676271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110757407.9A CN113676271B (en) 2021-07-05 2021-07-05 Method and device for switching antennas

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110757407.9A CN113676271B (en) 2021-07-05 2021-07-05 Method and device for switching antennas

Publications (2)

Publication Number Publication Date
CN113676271A true CN113676271A (en) 2021-11-19
CN113676271B CN113676271B (en) 2024-05-28

Family

ID=78538565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110757407.9A Active CN113676271B (en) 2021-07-05 2021-07-05 Method and device for switching antennas

Country Status (1)

Country Link
CN (1) CN113676271B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9742481B1 (en) * 2016-09-16 2017-08-22 Amazon Technologies, Inc. Antenna switching
CN107453766A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 Antenna switching control method, multi-antenna terminal and computer-readable recording medium
US20200412417A1 (en) * 2019-06-27 2020-12-31 Qualcomm Incorporated Dynamic thresholds for antenna switching diversity
WO2021066855A1 (en) * 2019-10-04 2021-04-08 Google Llc Antenna selection with dynamic thresholds for user devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9742481B1 (en) * 2016-09-16 2017-08-22 Amazon Technologies, Inc. Antenna switching
CN107453766A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 Antenna switching control method, multi-antenna terminal and computer-readable recording medium
US20200412417A1 (en) * 2019-06-27 2020-12-31 Qualcomm Incorporated Dynamic thresholds for antenna switching diversity
WO2021066855A1 (en) * 2019-10-04 2021-04-08 Google Llc Antenna selection with dynamic thresholds for user devices

Also Published As

Publication number Publication date
CN113676271B (en) 2024-05-28

Similar Documents

Publication Publication Date Title
CN112099684A (en) Search display method and device and electronic equipment
CN112333763A (en) Network selection method and device
CN112486444A (en) Screen projection method, device, equipment and readable storage medium
CN112749074B (en) Test case recommending method and device
CN112333734A (en) Serving cell switching method and device
CN112135355A (en) Frequency band interference processing method, frequency band interference processing device and electronic equipment
CN110958352B (en) Network signal display method, device, storage medium and mobile terminal
CN113676271B (en) Method and device for switching antennas
CN113395084B (en) Antenna switching method and device and electronic equipment
CN115348256A (en) Posting data downloading method and device, storage medium and electronic equipment
CN113807831A (en) Payment method and device
CN113268620A (en) Picture display method and device
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN112269510A (en) Information processing method and device and electronic equipment
CN114337872B (en) Network signal measurement method and device
CN111355892A (en) Picture shooting method and device, storage medium and electronic terminal
CN110716908A (en) Log information writing method, system, storage medium and mobile terminal
CN111726741B (en) Microphone state detection method and device
CN113572497B (en) Antenna structure and control method thereof
CN111026488B (en) Communication data saving method, device, terminal equipment and storage medium
CN113938966B (en) Call control method and call control device
CN113328998B (en) Image data transmission method and electronic equipment
CN111601036B (en) Camera focusing method and device, storage medium and mobile terminal
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal
CN110990606B (en) Picture storage method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant