CN113676271B - Method and device for switching antennas - Google Patents

Method and device for switching antennas Download PDF

Info

Publication number
CN113676271B
CN113676271B CN202110757407.9A CN202110757407A CN113676271B CN 113676271 B CN113676271 B CN 113676271B CN 202110757407 A CN202110757407 A CN 202110757407A CN 113676271 B CN113676271 B CN 113676271B
Authority
CN
China
Prior art keywords
antenna
value
target
threshold
communication attribute
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.)
Active
Application number
CN202110757407.9A
Other languages
Chinese (zh)
Other versions
CN113676271A (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

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 intensity of a first antenna and a second signal intensity 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 under the condition that the first signal strength, the second signal strength and the target imbalance threshold meet preset switching conditions; wherein the first antenna is the current receiving antenna.

Description

Method and device for switching antennas
Technical Field
The application belongs to the technical field of communication, and particularly relates to a method and a device for switching antennas.
Background
The electronic equipment receives the electromagnetic wave signal through the antenna module, and then the information carried by the electromagnetic wave signal is separated by the radio frequency front-end device and the baseband module to generate information such as voice, pictures, video and the like. Wherein the antenna module integrates a plurality of antennas.
In the situations that the electronic device is at the cell edge, dead, etc., the electronic device generally switches the antenna for receiving the electromagnetic wave signal in the antenna module, 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 affecting antenna switching. That is, the accuracy of the selected imbalance threshold affects the signal strength of the electromagnetic wave signal that the switched antenna is capable of receiving.
In the related art, the electronic device sets a fixed imbalance threshold, which results in relatively fixed switching timing of the switching antenna, and cannot flexibly switch the antenna, so that an electromagnetic wave signal cannot be received better.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for switching antennas, which can solve the problem that an electronic device cannot better receive electromagnetic wave signals due to inflexibility of switching antennas.
In a first aspect, an embodiment of the present application provides a method for switching antennas, where the method includes:
acquiring a first signal intensity of a first antenna and a second signal intensity 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 under the condition that the first signal strength, the second signal strength and the target imbalance threshold meet preset switching conditions;
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 acquisition module is used for acquiring the first signal intensity of the first antenna and the second signal intensity of the second antenna;
the acquisition module is also 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 intensity, the second signal intensity and the target unbalance threshold value 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, including a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform 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 where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored on a non-volatile storage medium, the program product being executable by at least one processor to implement a method as provided in the first aspect.
In the embodiment of the application, first signal intensity of a first antenna and second signal intensity 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 intensity, the second signal intensity and the target imbalance threshold meet preset switching conditions. Therefore, the target unbalanced threshold corresponding to the current use scene is dynamically obtained, so that the switched second antenna meets the use requirement of the current use scene on the received signal, whether the preset switching condition is met or not is judged according to the target unbalanced threshold, and the switching time of the switched antenna meets the actual requirement.
Drawings
Fig. 1 is a flowchart of a method for switching antennas according to an embodiment of the present application;
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 imbalance threshold store table according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for determining a target imbalance threshold according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for switching antennas according to an embodiment of the present application;
fig. 6 is a second schematic structural diagram of an apparatus for switching antennas according to an embodiment of the present application;
FIG. 7 is a schematic diagram of hardware of an electronic device according to an embodiment of the present application;
fig. 8 is a second hardware schematic of the electronic device according to the embodiment of the application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method for switching the antenna provided by the embodiment of the application is described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
With the development of technology, at present, electronic devices (such as 5G mobile phone terminals) may integrate multiple antennas, and when designing antennas, a certain imbalance exists between different antennas due to the influence of actual antenna architecture, routing mode, material selection, and the like, and this imbalance is called an imbalance threshold (Imbalance Threshold). In practical application, different machine types have different unbalanced thresholds due to different demands, and the same machine type has different unbalanced thresholds due to the influence of an integration process. In the situations of cell edge or dead holding, the receiving signal of the antenna is weakened, and the quality of the receiving signal is ensured by adopting a mode of switching the antenna, wherein the dead holding refers to the situation that the receiving signal of the electronic equipment is weakened due to shielding of the palm when the palm contacts with the external antenna of the electronic equipment. In switching antennas, the imbalance threshold of the antenna is an important factor affecting the received signal strength of the antenna after switching. Since the imbalance threshold is often set to a fixed value in the electronic device at present, however, according to the fixed imbalance threshold, the electronic device cannot ensure that the switching antenna can receive the electromagnetic wave signal with higher signal strength. In order to solve the above technical problems, 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 will be exemplarily described below taking an apparatus in which an execution body is a switching antenna as an example.
Step 101: the device for switching the 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, in the using process of the electronic equipment, both antennas can receive electromagnetic wave signals, and the signal intensity can be detected through the received electromagnetic wave signals.
In the embodiment of the present application, the first antenna is a current receiving antenna. 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 the embodiment of the present application, the device 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 grip.
It can be understood that the electronic device is provided with the main receiving antenna (first antenna) and the auxiliary receiving antenna (second antenna), and in a normal environment, the main receiving antenna is enough to meet the communication requirement of the electronic device, without considering to switch the antennas, and in an abnormal environment of a cell edge or death, the main receiving antenna may not meet the communication requirement of the electronic device due to the limitation of the communication environment, so that it is necessary to determine whether the auxiliary receiving antenna can replace the main receiving antenna to receive signals.
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 application, the target unbalance threshold corresponds to the communication requirement of the current use scene, for example, the current use scene is an online video watching mode, the communication requirement corresponding to the online video watching mode focuses on throughput, the current use scene is a voice call, and the communication requirement corresponding to the voice call focuses on reliability.
In the embodiment of the application, different target imbalance thresholds are adopted, which can influence the throughput, the block error rate and the uplink power of the electromagnetic wave signals received after the antenna is switched, so that the device for switching the antenna needs to acquire the target imbalance threshold corresponding to the current use scene, so that the electromagnetic wave signals received by the antenna after switching meet the requirements of the current use scene on the communication quality.
Step 103: the device for switching the antennas switches the first antenna 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.
In the embodiment of the application, the preset switching conditions include: the sum of the target unbalance threshold and the base threshold is smaller than the target difference; wherein, the target difference is: the 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 basic threshold and the target unbalance threshold is used as a comparison basis of preset switching conditions, so that the size of the target unbalance threshold and the data value of the corresponding unbalance threshold is reduced, and the calculated amount is reduced.
In the embodiment of the application, when the first antenna cannot meet the signal receiving requirement or the second antenna signal meets the requirement more than the signal received by the first antenna, whether the preset switching condition is met or not needs to be judged so that the electronic equipment can acquire the optimal receiving signal.
In the embodiment of the application, under the condition that the preset switching condition is met, the antenna switching device sends a control signal to the antenna module, and actual antenna switching operation is performed to obtain the electric signal output by the signal transmission interface corresponding to the second antenna.
In the embodiment of the application, after the device for switching the antennas switches the first antenna to the second antenna, it is further required to detect whether the electronic device is at the cell edge or in an abnormal environment such as dead grip, so that the receiving antenna is switched to the first antenna when detecting that the electronic device is not at the cell edge or in an abnormal environment such as dead grip.
In the method for switching antennas provided by the embodiment of the application, first, the first signal intensity of the first antenna and the second signal intensity of the second antenna are obtained, then, the target unbalanced threshold corresponding to the current use scene is obtained according to the unbalanced threshold storage table, and finally, the first antenna is switched to the second antenna under the condition that the first signal intensity, the second signal intensity and the target unbalanced threshold meet preset switching conditions. Therefore, the target unbalanced threshold corresponding to the current use scene is dynamically obtained, so that the switched second antenna meets the use requirement of the current use scene on the received signal, whether the preset switching condition is met or not is judged according to the target unbalanced threshold, and the switching time of the switched antenna meets the actual requirement.
Optionally, in an embodiment of the present application, as shown in fig. 2, before step 102, the method for switching antennas further includes step 201.
Step 201: the device for switching the antenna generates an imbalance threshold value storage table according to a preset training model.
In the embodiment of the application, the unbalanced threshold value storage table is used for storing an unbalanced threshold value and a parameter value of a communication attribute corresponding to the unbalanced threshold value; 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 equipment, according to a preset training model, measuring the parameter value of the communication attribute corresponding to the unbalanced threshold value of the second antenna, and storing the unbalanced threshold value and the parameter value of the communication attribute corresponding to the unbalanced threshold value into an unbalanced threshold value storage table.
Therefore, the stored data in the unbalanced threshold value storage table is a real numerical value obtained according to the actual environment of the electronic equipment, so that the target unbalanced threshold value obtained according to the unbalanced threshold value storage table is more in line with the actual application environment, and the second antenna can receive high-quality signals for the electronic equipment.
Further alternatively, in an embodiment of the present application, as shown in fig. 3, the step 201 may be implemented through steps 301 and 302.
Step 301: the device for switching the antennas takes the second antenna as the current receiving antenna and measures the parameter value of the communication attribute corresponding to the unbalance threshold.
Step 302: the device for switching the antenna generates an 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.
In the embodiment of the application, the unbalance threshold is at least one value, and the at least one value is increased from a preset initial value according to a preset step length and does not exceed a maximum value N. It should be noted that, after maintaining the preset time, each value of the imbalance threshold value, the parameter value of the communication attribute is obtained again, 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 unbalanced thresholds under the current receiving environment, so that the generated unbalanced threshold storage table is more in line with the actual receiving situation of the second antenna, and the adaptation degree of the target unbalanced threshold obtained from the unbalanced threshold storage table and the current receiving environment can be improved.
Further alternatively, as shown in fig. 4, the step 102 may be implemented by steps 401 to 403 on the basis of generating the unbalance threshold storage table in step 201.
Step 401: the device for switching the antenna determines the target communication attribute according to the current use scene.
Step 402: the device for switching the antenna determines an 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 application, the target communication attribute is any one of the communication attributes. The optimal parameter value is any one of the following: maximum throughput, minimum block error rate and minimum uplink power.
In the embodiment of the application, the current use scenes are different, and the requirements on the signal quality of the electromagnetic wave signals are different, so that the device for switching the antenna determines the target communication attribute according to the current use scenes, and the target communication attribute can be throughput, block error rate or uplink power.
In one example, the current usage scenario is an online viewing video, the communication requirement corresponding to the online viewing video is focused on throughput, and the target communication attribute corresponding to the online viewing video scenario 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 a reading 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, according to the current use scene, the most suitable target imbalance threshold value is obtained, so that the switching time of the switching antenna is more in line with the actual demand, and the service quality of the terminal electronic equipment can be improved.
It should be noted that, in the method for switching an antenna according to the embodiment of the present application, the execution body may be an apparatus for switching an antenna, or a control module for executing the method for switching an antenna in the apparatus for switching an antenna. In the embodiment of the present application, a method for executing antenna switching by an antenna switching device is taken as an example, and the antenna switching device provided in the embodiment of the present application is described.
As shown in fig. 5, an embodiment of the present application provides an apparatus for switching antennas. The device for switching the antenna comprises: an acquisition module 51 and a switching module 52;
an acquiring module 51, configured to acquire 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 unbalance threshold corresponding to the current usage scenario according to the unbalance threshold storage table;
A switching module 52, configured to switch the first antenna to the second antenna if the first signal strength, the second signal strength, and the target imbalance threshold value acquired by the acquiring 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;
the generating module 53 is configured to generate an imbalance threshold value storage table according to a preset training model before the obtaining module 51 searches for a target imbalance threshold value corresponding to the current usage scenario in the imbalance threshold value storage table;
the unbalanced threshold storage table is used for storing an unbalanced threshold and a parameter value of a communication attribute corresponding to the unbalanced 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 a communication attribute corresponding to the unbalanced threshold value;
generating 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;
the unbalance threshold is at least one value, and the at least one value is increased from a preset initial value according to a preset step length 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 the following: maximum throughput, minimum block error rate and minimum uplink power.
Optionally, the preset switching condition includes: the sum of the target unbalance threshold and the base threshold is smaller than the target difference; wherein, the target difference is: the difference between the first signal strength and the second signal strength.
In the device for switching antennas provided by the embodiment of the application, first signal intensity of a first antenna and second signal intensity of a second antenna are obtained, then a target unbalanced threshold corresponding to a current use scene is obtained according to an unbalanced threshold storage table, and finally the first antenna is switched to the second antenna under the condition that the first signal intensity, the second signal intensity and the target unbalanced threshold meet preset switching conditions. Therefore, the target unbalanced threshold corresponding to the current use scene is dynamically obtained, so that the switched second antenna meets the use requirement of the current use scene on the received signal, whether the preset switching condition is met or not is judged according to the target unbalanced threshold, and the switching time of the switched antenna meets the actual requirement.
The device for switching the antenna in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The device for switching antennas in the embodiments of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The device for switching antennas provided in the embodiments of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to fig. 4, and in order to avoid repetition, a detailed description is omitted here.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in the embodiment of the present application, which includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and capable of running on the processor 701, where the program or the instruction implements each process of the method embodiment of switching antennas when executed by the processor 701, and the same technical effects are achieved, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
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: radio frequency unit 801, network module 802, audio output unit 803, input unit 804, sensor 805, display unit 806, user input unit 807, interface unit 808, memory 809, and processor 810.
Those skilled in the art will appreciate that the electronic device 800 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 810 by a power management system to perform functions such as managing charge, discharge, and power consumption by 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 shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 810 is configured to obtain a first signal strength of the first antenna and a second signal strength of the 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 under the condition that the first signal strength, the second signal strength and the target imbalance threshold meet preset switching conditions; wherein the first antenna is the current receiving antenna.
Optionally, the processor 810 is further configured to generate, in the unbalanced threshold storage table, an unbalanced threshold storage table according to a preset training model before searching for a target unbalanced threshold corresponding to the current usage scenario; the unbalanced threshold storage table is used for storing an unbalanced threshold and a parameter value of a communication attribute corresponding to the unbalanced threshold; the communication attribute includes at least one of: throughput, block error rate, and uplink power.
Optionally, the processor 810 is further configured to take the second antenna as a current receiving antenna, and measure a parameter value of a communication attribute corresponding to the imbalance threshold; generating 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; the unbalance threshold is at least one value, and the at least one value is increased from a preset initial value according to a preset step length and does not exceed a maximum value N.
Optionally, the processor 810 is further configured to determine, according to the current usage scenario, a target communication attribute, 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 the following: maximum throughput, minimum block error rate and minimum uplink power.
Optionally, the preset switching condition includes: the sum of the target unbalance threshold and the base threshold is smaller than the target difference; wherein, the target difference is: the difference between the first signal strength and the second signal strength.
In the electronic device provided by the embodiment of the application, first signal intensity of the first antenna and second signal intensity of the 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 intensity, the second signal intensity and the target imbalance threshold meet preset switching conditions. Therefore, the target unbalanced threshold corresponding to the current use scene is dynamically obtained, so that the switched second antenna meets the use requirement of the current use scene on the received signal, whether the preset switching condition is met or not is judged according to the target unbalanced threshold, and the switching time of the switched antenna meets the actual requirement.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
It should be appreciated that in embodiments of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, with the graphics processor 8041 processing image data of still pictures or video obtained by an image capturing device (e.g., 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. Touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two parts, 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, a joystick, and so forth, 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 an operating system. The process 810 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 810.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the method embodiment of switching antennas, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a 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 (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the method embodiment of switching antennas can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (8)

1. A method of switching antennas, the method comprising:
acquiring a first signal intensity of a first antenna and a second signal intensity of a second antenna;
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; the imbalance threshold value storage table is used for storing an imbalance threshold value and a parameter value of a communication attribute corresponding to the imbalance threshold value, wherein the communication attribute comprises at least one of the following: throughput, block error rate, uplink power; wherein the optimal parameter value is any one of the following: the maximum value of the throughput, the minimum value of the block error rate and the minimum value of the uplink power;
Under the condition that the first signal intensity, the second signal intensity and the target unbalance threshold meet preset switching conditions, switching the first antenna into the second antenna so that electromagnetic wave signals received by the switched antennas meet the communication quality requirements of the current use scene;
wherein the first antenna is a current receiving antenna.
2. The method of claim 1, wherein prior to determining the target communication attribute based on the current usage scenario, the method further comprises:
And generating the unbalance threshold value storage table according to a preset training model.
3. The method of claim 2, wherein generating the imbalance threshold store table according to a preset training model comprises:
Taking the second antenna as a current receiving antenna, and measuring a parameter value of a communication attribute corresponding to an unbalance threshold;
Generating the unbalanced threshold storage table according to the unbalanced threshold and the parameter value of the communication attribute corresponding to the unbalanced threshold;
the unbalance threshold is at least one value, and the at least one value is increased from a preset initial value according to a preset step length and does not exceed a maximum value N.
4. A method according to any one of claims 1 to 3, wherein the preset switching conditions comprise: the sum of the target unbalance threshold value and the basic threshold value is smaller than a target difference value;
wherein the target difference is: a difference between the first signal strength and the second signal strength.
5. An apparatus for switching antennas, the apparatus comprising: the device comprises an acquisition module and a switching module;
the acquisition module is used for acquiring the first signal intensity of the first antenna and the second signal intensity of the second antenna;
The acquisition module is further used for 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 value corresponding to an optimal parameter value of the target communication attribute according to an unbalance threshold value storage table, wherein the unbalance threshold value storage table is used for storing the unbalance threshold value and the parameter value of the communication attribute corresponding to the unbalance threshold value, and the communication attribute comprises at least one of the following: throughput, block error rate, uplink power; wherein the optimal parameter value is any one of the following: the maximum value of the throughput, the minimum value of the block error rate and the minimum value of the uplink power;
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 acquired by the acquiring module meet a preset switching condition, so that an electromagnetic wave signal received by the switched antenna meets a communication quality requirement of a current use scenario;
wherein the first antenna is a current receiving antenna.
6. The apparatus of claim 5, further comprising a generation module;
the generation module is used for generating the unbalanced threshold storage table according to a preset training model before the acquisition module determines the target communication attribute according to the current use scene.
7. The apparatus of claim 6, 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 an unbalance threshold;
Generating the unbalanced threshold storage table according to the unbalanced threshold and the parameter value of the communication attribute corresponding to the unbalanced threshold;
the unbalance threshold is at least one value, and the at least one value is increased from a preset initial value according to a preset step length and does not exceed a maximum value N.
8. The apparatus according to any one of claims 5 to 7, wherein the preset switching conditions comprise: the sum of the target unbalance threshold value and the basic threshold value is smaller than a target difference value;
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 CN113676271A (en) 2021-11-19
CN113676271B true 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 (3)

* 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
WO2021066855A1 (en) * 2019-10-04 2021-04-08 Google Llc Antenna selection with dynamic thresholds for user devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11057079B2 (en) * 2019-06-27 2021-07-06 Qualcomm Incorporated Dynamic thresholds for antenna switching diversity

Patent Citations (3)

* 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
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
CN113676271A (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN108430101B (en) Antenna closing method and device, storage medium and electronic equipment
CN112333763A (en) Network selection method and device
CN112749074B (en) Test case recommending method and device
CN112162802A (en) Message reply method and device and electronic equipment
CN113992615B (en) Method and device for displaying withdrawal message, electronic equipment and storage medium
US20110239302A1 (en) Apparatus and method for performing system evaluation in portable terminal
CN113676271B (en) Method and device for switching antennas
CN113395084B (en) Antenna switching method and device and electronic equipment
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN113938966B (en) Call control method and call control device
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN112269510A (en) Information processing method and device and electronic equipment
CN111355892A (en) Picture shooting method and device, storage medium and electronic terminal
CN114337872B (en) Network signal measurement method and device
CN111726741B (en) Microphone state detection method and device
CN114025419B (en) Method and device for adjusting radio frequency power, electronic equipment and storage medium
CN113780026B (en) Graphic code identification method, graphic code identification device, electronic equipment and storage medium
CN113572497B (en) Antenna structure and control method thereof
CN113364910B (en) Signal processing method, device, equipment and storage medium
CN112492251A (en) Video call method and device
CN113328998B (en) Image data transmission method and electronic equipment
CN111601036B (en) Camera focusing method and device, storage medium and mobile terminal
CN111813741B (en) File sharing method and electronic equipment
CN117856933A (en) Error correction method, error correction device, electronic device and readable storage medium
CN118300619A (en) Antenna tuning method, antenna tuning device, electronic equipment and readable storage medium

Legal Events

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