CN106452550B - Antenna switching method and device - Google Patents

Antenna switching method and device Download PDF

Info

Publication number
CN106452550B
CN106452550B CN201610900325.4A CN201610900325A CN106452550B CN 106452550 B CN106452550 B CN 106452550B CN 201610900325 A CN201610900325 A CN 201610900325A CN 106452550 B CN106452550 B CN 106452550B
Authority
CN
China
Prior art keywords
antenna
electronic equipment
switching
measured value
meets
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
CN201610900325.4A
Other languages
Chinese (zh)
Other versions
CN106452550A (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201610900325.4A priority Critical patent/CN106452550B/en
Publication of CN106452550A publication Critical patent/CN106452550A/en
Application granted granted Critical
Publication of CN106452550B publication Critical patent/CN106452550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0805Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching
    • H04B7/0814Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching based on current reception conditions, e.g. switching to different antenna when signal level is below threshold
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • 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/309Measuring or estimating channel quality parameters
    • H04B17/336Signal-to-interference ratio [SIR] or carrier-to-interference ratio [CIR]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0822Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection according to predefined selection scheme

Landscapes

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

Abstract

A kind of antenna switching method is applied in electronic equipment, this method comprises: judging whether the electronic equipment meets antenna switching condition;When the electronic equipment meets antenna switching condition, the second antenna is switched to from first antenna, wherein the first antenna is current operation antenna;Within a preset time, when second antenna meets preset operating conditions, the antenna switching condition is adjusted, so that second antenna extends switching time in the preset time.The present invention also provides a kind of antenna-switching devices.The present invention can prevent the antenna frequent switching of electronic equipment.

Description

Antenna switching method and device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of antenna switching method and device.
Background technique
Currently, more and more electronic equipment configuration designs are more diversified, and more using metal shell, therefore, to electricity The antenna of sub- equipment influences also increasing.If the antenna frequent switching of electronic equipment, it will when electronic equipment being caused to communicate Stability is affected.
Summary of the invention
In consideration of it, it is necessary to provide a kind of antenna switching method and devices, it is possible to reduce the antenna of electronic equipment is frequently cut It changes.
The first aspect of the application provides a kind of antenna switching method, is applied in electronic equipment, which comprises
Judge whether the electronic equipment meets antenna switching condition;
When the electronic equipment meets antenna switching condition, the second antenna is switched to from first antenna, wherein described One antenna is current operation antenna;
Within a preset time, when second antenna meets preset operating conditions, the antenna switching condition is adjusted, with Second antenna is set to extend switching time in the preset time.
It is described to judge whether the electronic equipment meets antenna switching condition and include: in alternatively possible implementation
Obtain the default measured value of the first antenna Yu second antenna;
If the difference of the default measured value of second antenna and the default measured value of the first antenna is greater than and cuts When changing threshold value, confirm that the electronic equipment meets the antenna switching condition.
In alternatively possible implementation, the adjustment antenna switching condition, so that second antenna is in institute It states and extends switching time in preset time and include:
Increase the handoff threshold value;
If the default measured value of the first antenna and the difference of the default measured value of second antenna are not more than When the handoff threshold duration after increase, confirm that the electronic equipment is unsatisfactory for the antenna switching condition adjusted.
When the electronic equipment is unsatisfactory for the antenna switching condition adjusted, the second antenna operation is kept.
In alternatively possible implementation, the method also includes:
In the preset time, when second antenna is unsatisfactory for the preset operating conditions, if described first day When the difference that line presets the default measured value of measured value and second antenna is greater than the handoff threshold duration, switch institute State the second antenna.
In alternatively possible implementation, the method also includes:
If the value of the default operational factor of second antenna is more than or equal to preset value, confirm that second antenna meets institute State preset operating conditions.
The second aspect of the application provides a kind of antenna-switching device, and described device includes:
Judgment module, for judging whether the electronic equipment meets antenna switching condition;
Switching module, for being switched to second day from first antenna when the electronic equipment meets antenna switching condition Line, wherein the first antenna is current operation antenna;
Module is adjusted, within a preset time, when second antenna meets preset operating conditions, adjusting the day Line switching condition, so that second antenna extends switching time in the preset time.
In alternatively possible implementation, the judgment module is also used to obtain the first antenna and described second The default measured value of antenna;
The judgment module is preset if being also used to the default measured value of second antenna with the described of the first antenna When the difference of measured value is greater than handoff threshold value, confirm that the electronic equipment meets the antenna switching condition.
In alternatively possible implementation, the adjustment module is also used within a preset time, when second antenna When meeting preset operating conditions, increase the handoff threshold value;
The adjustment module, if being also used to the default survey that the first antenna presets measured value and second antenna When the difference of magnitude is not more than the handoff threshold duration after increasing, it is adjusted described to confirm that the electronic equipment is unsatisfactory for Antenna switching condition.
The adjustment module is also used to when the electronic equipment is unsatisfactory for the antenna switching condition adjusted, is protected Hold the second antenna operation.
In alternatively possible implementation, the switching module is also used in the preset time, when described second When antenna is unsatisfactory for the preset operating conditions, if the first antenna presets measured value and the described of second antenna is preset When the difference of measured value is greater than the handoff threshold duration, switch second antenna.
In alternatively possible implementation, the adjustment module is also used to, if the default operation of second antenna is joined Several values is more than or equal to preset value, confirms that second antenna meets the preset operating conditions.
The embodiment of the present invention is by judging whether the electronic equipment meets antenna switching condition;When the electronic equipment is full When sufficient antenna switching condition, the second antenna is switched to from first antenna, wherein the first antenna is current operation antenna;? In preset time, when second antenna meets preset operating conditions, the antenna switching condition is adjusted, so that described second Antenna extends switching time in the preset time.Due to when the second antenna of electronic equipment meets preset operating conditions, Antenna switching condition is adjusted, so that the switching time of the second antenna within a preset time extends, i.e. the antenna of electronic equipment exists Switching frequency in preset time reduces, to realize the purpose for preventing the antenna frequent switching of electronic equipment.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart for antenna switching method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of antenna switching method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow chart for antenna switching method that the embodiment of the present invention three provides;
Fig. 4 is the structure chart for the antenna-switching device that the embodiment of the present invention four, five provides;
Fig. 5 is the structure chart for the antenna-switching device that the embodiment of the present invention six provides;
Fig. 6 is the structural schematic diagram of the preferred embodiment for the electronic equipment that the present invention realizes antenna switching method.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, embodiments herein and embodiment In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Embodiment one
Fig. 1 is the schematic flow diagram for the antenna switching method that the embodiment of the present invention one provides.The antenna switching method is answered For in electronic equipment, the electronic equipment to be the electronic equipment comprising two antennas, such as mobile phone, router.Such as Fig. 1 institute Show, antenna switching method can comprise the following steps that
S101: judge whether the electronic equipment meets antenna switching condition.
Above-mentioned electronic equipment includes two antennas in the present embodiment, when electronic equipment operation, can be carried out between antenna Switching.Above-mentioned antenna switching condition is preset switching condition, and above-mentioned antenna switching condition is used to meet antenna when electronic equipment When switching condition, antenna switching is carried out.The antenna switching condition of every antenna is consistent.Specific antenna switching condition can basis When needing to set, such as A value can be reached for the signal-to-noise ratio of the currently running antenna of electronic equipment, switch over.
S102: when the electronic equipment meets antenna switching condition, the second antenna is switched to from first antenna, wherein The first antenna is current operation antenna.
Above-mentioned first antenna is current operation antenna in the present embodiment, i.e. current electronic device is run using first antenna. When electronic equipment meets antenna switching condition, current operation antenna switches to the second antenna from first antenna, and the second antenna can Think other any antennas in electronic equipment in addition to first antenna.After switching, the second antenna is switched to operation antenna at this time.
S103: within a preset time, when second antenna meets preset operating conditions, the antenna switching item is adjusted Part, so that second antenna extends switching time in the preset time.
It is pre- to whether the second antenna meets in the preset time after electronic equipment switches to the second antenna from first antenna If condition carries out continuing judgement.
The time span of above-mentioned preset time can be set as needed.
Above-mentioned preset operating conditions can be set as needed, and above-mentioned preset operating conditions are specifically used for judging the second antenna Whether electronic equipment can be made to be communicated under certain status condition.Such as judge whether the second antenna can be such that electronic equipment communicates When signal-to-noise ratio reach certain value, will not allow communication when generate excessive noise.When the second antenna meets preset operating conditions, mark the Two antennas can be such that electronic equipment is communicated under certain status condition, will not be to electronics not switching to first antenna Equipment communication impacts.
When the second antenna meets preset operating conditions, antenna switching condition is adjusted, so that the second antenna is in preset time Interior extension switching time.For example, primary antenna switching standards are, switch when antenna signal-to-noise ratio is less than A value in operation.Work as preset time Interior, when the second antenna reaches preset operating conditions, antenna switching standards are that the signal-to-noise ratio of antenna in operation switches when being less than B, Middle B value ratio A value is small, i.e., when signal-to-noise ratio is less than smaller value at this time, just carries out antenna switching, so that the second antenna is in default fortune Switching time in the row time extends, will not frequent switching.
The embodiment of the present invention one is by judging whether the electronic equipment meets antenna switching condition;When the electronic equipment When meeting antenna switching condition, the second antenna is switched to from first antenna, wherein the first antenna is current operation antenna; Within a preset time, when second antenna meets preset operating conditions, the antenna switching condition is adjusted, so that described Two antennas extend switching time in the preset time.Since the second antenna in electronic equipment meets preset operating conditions When, antenna switching condition is adjusted, so that the switching time of the second antenna within a preset time extends, i.e. the antenna of electronic equipment Switching frequency within a preset time reduces, to realize the purpose for preventing the antenna frequent switching of electronic equipment.
Embodiment two
Fig. 2 is the schematic flow diagram of antenna switching method provided by Embodiment 2 of the present invention.The antenna switching method is answered For in electronic equipment, the electronic equipment to be the electronic equipment comprising two antennas, such as mobile phone, router.Such as Fig. 2 institute Show, antenna switching method can comprise the following steps that
S201: the default measured value of the first antenna Yu second antenna is obtained, wherein the first antenna is to work as Preceding operation antenna.
Above-mentioned electronic equipment includes two antennas in the present embodiment, when electronic equipment operation, can be carried out between antenna Switching.Above-mentioned first antenna is current operation antenna, i.e. current electronic device is run using first antenna.Above-mentioned second antenna can Think other any antennas in electronic equipment in addition to first antenna.
Above-mentioned default measured value is measured value relevant to antenna operation, such as can be the days such as signal strength, signal-to-noise ratio The measured value of line, specifically can be set as needed.
S202: if the default measured value of second antenna and the difference of the default measured value of the first antenna are big When handoff threshold value, confirm that the electronic equipment meets the antenna switching condition.
The size of above-mentioned handoff threshold value is preset value.When the default measured value of the second antenna and the default survey of first antenna When magnitude is greater than handoff threshold value, confirmation electronic equipment meets antenna switching condition.
The size of handoff threshold value is set according to default measured value.Such as default measured value is when being signal strength, it will Handoff threshold value is set as 6db.At this point, judging whether the signal strength difference of the second antenna and first antenna is greater than 6bd, i.e., second Whether the signal strength that the signal strength of antenna subtracts first antenna is greater than 6db, if more than then confirming that electronic equipment meets antenna Switching condition.
S203: when the electronic equipment meets antenna switching condition, the second antenna is switched to from first antenna.
When first antenna is current operation antenna, and electronic equipment meets antenna switching condition, antenna is run from first Antenna switches to the second antenna.After switching, the second antenna is switched to operation antenna at this time.
For example, default measured value is signal strength, handoff threshold value is 6db, if the signal intensity ratio first of the second antenna The big 6bd of the signal strength of antenna switches to the operation of the second antenna.
S204: within a preset time, when second antenna meets preset operating conditions, increase the handoff threshold Value;
It is pre- to whether the second antenna meets in the preset time after electronic equipment switches to the second antenna from first antenna If condition carries out continuing judgement.
The time span of above-mentioned preset time can be set as needed.
Above-mentioned preset operating conditions can be set as needed, and above-mentioned preset operating conditions are specifically used for judging the second antenna Whether electronic equipment can be made to be communicated under certain status condition.Such as judge whether the second antenna can be such that electronic equipment communicates When signal-to-noise ratio reach certain value, will not allow communication when generate excessive noise.When the second antenna meets preset operating conditions, mark the Two antennas can be such that electronic equipment is communicated under certain status condition, will not be to electronics not switching to first antenna Equipment communication impacts.
Further, confirm whether the second antenna meets preset operating conditions and include:
If the value of the default operational factor of second antenna is more than or equal to preset value, confirm that second antenna meets institute State preset operating conditions.
Confirm whether the second antenna meets preset operating conditions, specifically may determine that the default operational factor of the second antenna Whether value is more than or equal to preset value.Above-mentioned default operational factor is measured value relevant to antenna operation, default operational factor with Default measured value can be with identical measured value, or different measured values.
For example, judging whether the signal strength of running second antenna is greater than -90db, if the second antenna of confirmation meets Preset operating conditions.
When the second antenna meets preset operating conditions, increase handoff threshold value.For example, handoff threshold value is increased from 6db 9db is arrived greatly.
S205: if the difference of the default measured value of the default measured value of the first antenna and second antenna is not When greater than the handoff threshold duration after increase, confirm that the electronic equipment is unsatisfactory for the antenna switching item adjusted Part.
After handoff threshold value increases, judge whether electronic equipment meets switching condition.Specifically, judge not running at this time Whether the difference of the default measured value of the second antenna of antenna is greater than the handoff threshold value after increasing in antenna first antenna and operation, If then confirming that electronic equipment meets the antenna switching condition after switching, antenna switching is carried out.
If the default measured value of first antenna and the difference of the default measured value of second antenna are not more than at this time The handoff threshold duration after increase then confirms that electronic equipment is unsatisfactory for antenna switching condition adjusted.
For example, handoff threshold value is increased into 9db, the letter for the second antenna that the signal intensity ratio of first antenna is run at this time When the big 9db of number intensity, confirmation electronic equipment meets antenna switching condition, carries out antenna switching.If the signal of first antenna at this time When intensity 6db bigger than the signal strength of the second antenna of operation, confirmation electronic equipment is unsatisfactory for antenna switching condition adjusted.
S206: when the electronic equipment is unsatisfactory for the antenna switching condition adjusted, second antenna is kept Operation.
When electronic equipment portion is unsatisfactory for antenna switching condition, the operation of the second antenna is kept.
For example, after handoff threshold value is increased to 9db, if the letter for the second antenna that the signal intensity ratio of first antenna is run When the big 6db of number intensity, confirmation electronic equipment is unsatisfactory for antenna switching condition adjusted, switches without antenna, so that second When antenna is run within a preset time, frequent switching is prevented.
Meanwhile after the second antenna of operation is switched to first antenna operation, before handoff threshold value can remain as increase Handoff threshold value, such as 6db.When need in next section of preset time, when antenna meets preset operating conditions in operation, just tune All day, line switching condition, that is, increased handoff threshold value.
It is understood that if the antenna amount of electronic equipment is greater than 2, within a preset time, if the second antenna is cut It changes, in addition to first antenna can be switched to from the second antenna, other antennas can also be switched to.When being switched to other antennas, It needs for the default measured value of other antennas to be compared with the default measured value of running second antenna.Switching over When the judgement of condition, the default measured value of running antenna and to be switched antenna is compared always.Only work as operation In antenna default measured value it is smaller than the default measured value of to be switched antenna, and the default measured value of the antenna with switching with The difference of the default measured value of running antenna is greater than current handoff threshold value, i.e. the absolute value of the difference of the two is greater than current Handoff threshold value when, just switch over.Meanwhile the handoff threshold value of increase can be definite value, it can also be according to electronic equipment Operating condition is the value of variation, such as switches threshold value in first preset time and be increased to 9db, in second preset time Handoff threshold value is increased to 8db.
After the embodiment of the present invention two is by switching to the operation of the second antenna by first antenna, when the second antenna meets default fortune When row condition, increase handoff threshold value, i.e., when the default measured value of first antenna and the default measured value of the second antenna are greater than When handoff threshold value after increase, just confirm that electronic equipment meets antenna switching condition adjusted.If first antenna is default When the default measured value of measured value and the second antenna is not more than the handoff threshold value after increasing, the operation of the second antenna is kept, thus Antenna switching time is extended, the frequent switching of antenna is avoided.
Embodiment three
Fig. 3 is the schematic flow diagram for the antenna switching method that the embodiment of the present invention three provides.The antenna switching method is answered For in electronic equipment, the electronic equipment to be the electronic equipment comprising two antennas, such as mobile phone, router.Such as Fig. 3 institute Show, antenna switching method can comprise the following steps that
S301: the default measured value of the first antenna Yu second antenna is obtained, wherein the first antenna is to work as Preceding operation antenna.
Step S301 is consistent with step S201 in embodiment two in the present embodiment, referring specifically to step in embodiment two The associated description of S201, does not repeat herein.
S302: if the default measured value of second antenna and the difference of the default measured value of the first antenna are big When handoff threshold value, confirm that the electronic equipment meets the antenna switching condition.
Step S302 is consistent with step S202 in embodiment two in the present embodiment, referring specifically to step in embodiment two The associated description of S202, does not repeat herein.
S303: when the electronic equipment meets antenna switching condition, the second antenna is switched to from first antenna.
Step S303 is consistent with step S203 in embodiment two in the present embodiment, referring specifically to step in embodiment two The associated description of S203, does not repeat herein.
S304: in the preset time, when second antenna is unsatisfactory for the preset operating conditions, if described When the difference that one antenna presets the default measured value of measured value and second antenna is greater than the handoff threshold value, switching Second antenna.
Within a preset time, when the second antenna is unsatisfactory for preset operating conditions, if first antenna presets measured value and the The difference of the default measured value of two default antennas is greater than handoff threshold value, switches the second antenna.Since the second service condition is used for Judge whether currently running second antenna can be such that electronic equipment is communicated under certain status condition, if therefore the second antenna Preset operating conditions are unsatisfactory for, then under the premise of guaranteeing electronic equipment communication, are still judged with the switching condition before adjustment, When reaching the switching condition before adjustment, antenna switching is carried out.
In the embodiment of the present invention three, when first antenna is current operation antenna, first antenna and the second antenna are obtained Default measured value.If the difference of the default measured value of the default measured value and first antenna of the second antenna is greater than handoff threshold value When, confirmation electronic equipment meets antenna switching condition, is switched to the second antenna from first antenna.In preset time, second day When line is unsatisfactory for preset operating conditions, if the difference that first antenna presets measured value and the default measured value of the second antenna is big When handoff threshold value, switch the second antenna.When so that portion meeting preset operating conditions within a preset time, electronic equipment according to Antenna switching condition before adjustment switches over, and does not influence electronic equipment normal communication.
It is the detailed description carried out to method provided by the present invention above.According to different requirements, in shown flow chart The execution sequence of square can change, and certain squares can be omitted, and the method for optimization aim application is also in above-mentioned optimization method Selectivity is applied in combination, or is applied in combination with other above-mentioned unmentioned optimization methods.
Fig. 4 is the embodiment of the present invention four and the structure chart for implementing the antenna-switching device that five provide.The antenna switching dress It sets and is applied in electronic equipment, the electronic equipment is the electronic equipment comprising two antennas, such as mobile phone, router.Such as Fig. 4 Shown, antenna-switching device may include: judgment module 410, switching module 420 and adjustment module 430.The so-called mould of the present invention Block refer to it is a kind of can equipment processed it is performed and the series of computation machine program segment of fixed function can be completed, storage In storage equipment.
Example IV
Judgment module 410, for judging whether the electronic equipment meets antenna switching condition.
Above-mentioned electronic equipment includes two antennas in the present embodiment, when electronic equipment operation, can be carried out between antenna Switching.Above-mentioned antenna switching condition is preset switching condition, and above-mentioned antenna switching condition is used to meet antenna when electronic equipment When switching condition, antenna switching is carried out.The antenna switching condition of every antenna is consistent.Specific antenna switching condition can basis When needing to set, such as A value can be reached for the signal-to-noise ratio of the currently running antenna of electronic equipment, switch over.
Switching module 420, for switching to second from first antenna when the electronic equipment meets antenna switching condition Antenna, wherein the first antenna is current operation antenna.
Above-mentioned first antenna is current operation antenna in the present embodiment, i.e. current electronic device is run using first antenna. When electronic equipment meets antenna switching condition, switching module 420 switches to current operation antenna second day from first antenna Line, the second antenna can be other any antennas in electronic equipment in addition to first antenna.After switching, the second antenna is cut at this time It is changed to operation antenna.
Module 430 is adjusted, within a preset time, when second antenna meets preset operating conditions, adjusting institute Antenna switching condition is stated, so that second antenna extends switching time in the preset time.
It is pre- to whether the second antenna meets in the preset time after electronic equipment switches to the second antenna from first antenna If condition carries out continuing judgement.
The time span of above-mentioned preset time can be set as needed.
Above-mentioned preset operating conditions can be set as needed, and above-mentioned preset operating conditions are specifically used for judging the second antenna Whether electronic equipment can be made to be communicated under certain status condition.Such as judge whether the second antenna can be such that electronic equipment communicates When signal-to-noise ratio reach certain value, will not allow communication when generate excessive noise.When the second antenna meets preset operating conditions, mark the Two antennas can be such that electronic equipment is communicated under certain status condition, will not be to electronics not switching to first antenna Equipment communication impacts.
When the second antenna meets preset operating conditions, adjustment module 430 adjusts antenna switching condition, so that the second antenna Extend switching time within a preset time.For example, primary antenna switching standards are, switch when antenna signal-to-noise ratio is less than A value in operation. In preset time, when the second antenna reaches preset operating conditions, antenna switching standards are that the signal-to-noise ratio of antenna in operation is less than B When switch, wherein B value ratio A value is small, i.e., at this time signal-to-noise ratio be less than smaller value when, just progress antenna switching so that second day Switching time of the line in default runing time extends, will not frequent switching.
The embodiment of the present invention four is by judging whether the electronic equipment meets antenna switching condition;When the electronic equipment When meeting antenna switching condition, the second antenna is switched to from first antenna, wherein the first antenna is current operation antenna; Within a preset time, when second antenna meets preset operating conditions, the antenna switching condition is adjusted, so that described Two antennas extend switching time in the preset time.Since the second antenna in electronic equipment meets preset operating conditions When, antenna switching condition is adjusted, so that the switching time of the second antenna within a preset time extends, i.e. the antenna of electronic equipment Switching frequency within a preset time reduces, to realize the purpose for preventing the antenna frequent switching of electronic equipment.
Embodiment five
Judgment module 410, for obtaining the default measured value of the first antenna Yu second antenna, wherein described First antenna is current operation antenna.
Above-mentioned electronic equipment includes two antennas in the present embodiment, when electronic equipment operation, can be carried out between antenna Switching.Above-mentioned first antenna is current operation antenna, i.e. current electronic device is run using first antenna.Above-mentioned second antenna can Think other any antennas in electronic equipment in addition to first antenna.
Above-mentioned default measured value is measured value relevant to antenna operation, such as can be the days such as signal strength, signal-to-noise ratio The measured value of line, specifically can be set as needed.
The judgment module 410, if being also used to the described of the default measured value of second antenna and the first antenna When the difference of default measured value is greater than handoff threshold value, confirm that the electronic equipment meets the antenna switching condition.
If the difference of the default measured value of second antenna and the default measured value of the first antenna is greater than and cuts When changing threshold value, judgment module 410 confirms that the electronic equipment meets the antenna switching condition.
The size of above-mentioned handoff threshold value is preset value.When the default measured value of the second antenna and the default survey of first antenna When magnitude is greater than handoff threshold value, confirmation electronic equipment meets antenna switching condition.
The size of handoff threshold value is set according to default measured value.Such as default measured value is when being signal strength, it will Handoff threshold value is set as 6db.At this point, judging whether the signal strength difference of the second antenna and first antenna is greater than 6bd, i.e., second Whether the signal strength that the signal strength of antenna subtracts first antenna is greater than 6db, if more than then confirming that electronic equipment meets antenna Switching condition.
Switching module 420, for switching to second from first antenna when the electronic equipment meets antenna switching condition Antenna.
When first antenna is current operation antenna, and electronic equipment meets antenna switching condition, switching module 420 will be transported Row antenna switches to the second antenna from first antenna.After switching, the second antenna is switched to operation antenna at this time.
For example, default measured value is signal strength, handoff threshold value is 6db, if the signal intensity ratio first of the second antenna The big 6bd of the signal strength of antenna switches to the operation of the second antenna.
Module 430 is adjusted, within a preset time, when second antenna meets preset operating conditions, increasing institute State handoff threshold value.
It is pre- to whether the second antenna meets in the preset time after electronic equipment switches to the second antenna from first antenna If condition carries out continuing judgement.
The time span of above-mentioned preset time can be set as needed.
Above-mentioned preset operating conditions can be set as needed, and above-mentioned preset operating conditions are specifically used for judging the second antenna Whether electronic equipment can be made to be communicated under certain status condition.Such as judge whether the second antenna can be such that electronic equipment communicates When signal-to-noise ratio reach certain value, will not allow communication when generate excessive noise.When the second antenna meets preset operating conditions, mark the Two antennas can be such that electronic equipment is communicated under certain status condition, will not be to electronics not switching to first antenna Equipment communication impacts.
Further, the adjustment module 430, if be also used to the default operational factor of second antenna value be greater than etc. In preset value, confirm that second antenna meets the preset operating conditions.
Confirm whether the second antenna meets preset operating conditions, specifically may determine that the default operational factor of the second antenna Whether value is more than or equal to preset value.
Above-mentioned default operational factor is measured value relevant to antenna operation, and default operational factor and default measured value can be with Identical measured value, or different measured values.
For example, judging whether the signal strength of the second antenna in operation is greater than -90db, if the second antenna of confirmation meets in advance If service condition.
When the second antenna meets preset operating conditions, increase handoff threshold value.For example, handoff threshold value is increased from 6db 9db is arrived greatly.
The adjustment module 430, if being also used to the described of the default measured value of the first antenna and second antenna When the difference of default measured value is not more than the handoff threshold duration after increasing, after confirming that the electronic equipment is unsatisfactory for adjustment The antenna switching condition.
After handoff threshold value increases, judge whether electronic equipment meets switching condition.Specifically, judge not running at this time Whether the difference of the default measured value of the second antenna of antenna is greater than the handoff threshold value after increasing in antenna first antenna and operation, If then confirming that electronic equipment meets the antenna switching condition after switching, antenna switching is carried out.
If the default measured value of first antenna and the difference of the default measured value of second antenna are not more than at this time The handoff threshold duration after increase then confirms that electronic equipment is unsatisfactory for antenna switching condition adjusted.
For example, handoff threshold value is increased into 9db, the letter for the second antenna that the signal intensity ratio of first antenna is run at this time When the big 9db of number intensity, confirmation electronic equipment meets antenna switching condition, carries out antenna switching.If the signal of first antenna at this time When intensity 6db bigger than the signal strength of the second antenna of operation, confirmation electronic equipment is unsatisfactory for antenna switching condition adjusted.
The adjustment module 430 is also used to when the electronic equipment is unsatisfactory for the antenna switching condition adjusted, Second antenna is kept to run.
When electronic equipment portion is unsatisfactory for antenna switching condition, the operation of the second antenna is kept.
For example, after handoff threshold value is increased to 9db, if the letter for the second antenna that the signal intensity ratio of first antenna is run When the big 6db of number intensity, confirmation electronic equipment is unsatisfactory for antenna switching condition adjusted, switches without antenna, so that second When antenna is run within a preset time, frequent switching is prevented.
Meanwhile after the second antenna of operation is switched to first antenna operation, before handoff threshold value can remain as increase Handoff threshold value, such as 6db.When need in next section of preset time, when antenna meets preset operating conditions in operation, just tune All day, line switching condition, that is, increased handoff threshold value.
It is understood that if the antenna amount of electronic equipment is greater than 2, within a preset time, if the second antenna is cut It changes, in addition to first antenna can be switched to from the second antenna, other antennas can also be switched to.When being switched to other antennas, It needs for the default measured value of other antennas to be compared with the default measured value of running second antenna.Switching over When the judgement of condition, the default measured value of running antenna and to be switched antenna is compared always.Only work as operation In antenna default measured value it is smaller than the default measured value of to be switched antenna, and the default measured value of the antenna with switching with The difference of the default measured value of running antenna is greater than current handoff threshold value, i.e. the absolute value of the difference of the two is greater than current Handoff threshold value when, just switch over.Meanwhile the handoff threshold value of increase can be definite value, it can also be according to electronic equipment Operating condition is the value of variation, such as switches threshold value in first preset time and be increased to 9db, in second preset time Handoff threshold value is increased to 8db.
After the ss embodiment of the present invention five is by switching to the operation of the second antenna by first antenna, preset when the second antenna meets When service condition, increase handoff threshold value, i.e., when the default measured value of the default measured value of first antenna and the second antenna is big When handoff threshold value after increase, just confirm that electronic equipment meets antenna switching condition adjusted.If first antenna is pre- If the default measured value of measured value and the second antenna is not more than the handoff threshold value after increasing, the operation of the second antenna is kept, from And antenna switching time is extended, avoid the frequent switching of antenna.
Embodiment six
Fig. 5 is referred to, Fig. 5 is the structure chart for the antenna-switching device that the embodiment of the present invention six provides.The antenna switching Device is applied in electronic equipment, and the electronic equipment is the electronic equipment comprising two antennas, such as mobile phone, router.Such as Shown in Fig. 5, antenna-switching device may include: judgment module 510 and switching module 520.The so-called module of the present invention refers to one Kind can equipment processed it is performed and the series of computation machine program segment of fixed function can be completed, be stored in storage and set In standby.
Judgment module 510, for obtaining the default measured value of the first antenna Yu second antenna, wherein described First antenna is current operation antenna.
The judgment module 510, if being also used to the described of the default measured value of second antenna and the first antenna When the difference of default measured value is greater than handoff threshold value, confirm that the electronic equipment meets the antenna switching condition.
Judgment module 510 is consistent with judgment module 410 in embodiment five in the present embodiment, referring specifically in embodiment five The associated description of judgment module 510, does not repeat herein.
Switching module 520, for switching to second from first antenna when the electronic equipment meets antenna switching condition Antenna.
Switching module 520 is consistent with switching module 520 in embodiment five in the present embodiment, referring specifically in embodiment five The associated description of switching module 520, does not repeat herein.
Switching module 520 is also used in the preset time, when second antenna is unsatisfactory for the default operation item When part, if the difference that the first antenna presets the default measured value of measured value and second antenna is greater than the switching When threshold value, switch second antenna.
Within a preset time, when the second antenna is unsatisfactory for preset operating conditions, if first antenna presets measured value and the The difference of the default measured value of two default antennas is greater than handoff threshold value, and switching module 430 switches the second antenna.Due to the second fortune Row condition is for judging whether currently running second antenna can be such that electronic equipment is communicated under certain status condition, therefore If the second antenna is unsatisfactory for preset operating conditions, under the premise of guaranteeing electronic equipment communication, still with the switching item before adjustment Part is judged, when reaching the switching condition before adjustment, carries out antenna switching.
In the embodiment of the present invention six, when first antenna is current operation antenna, first antenna and the second antenna are obtained Default measured value.If the difference of the default measured value of the default measured value and first antenna of the second antenna is greater than handoff threshold value When, confirmation electronic equipment meets antenna switching condition, is switched to the second antenna from first antenna.In preset time, second day When line is unsatisfactory for preset operating conditions, if the difference that first antenna presets measured value and the default measured value of the second antenna is big When handoff threshold value, switch the second antenna.When so that portion meeting preset operating conditions within a preset time, electronic equipment according to Antenna switching condition before adjustment switches over, and does not influence electronic equipment normal communication.
Embodiment seven
Fig. 6 is please referred to, Fig. 6 is the structural representation of the electronic equipment for the preferred embodiment that the present invention realizes antenna switching method Figure.
The electronic equipment 60 be it is a kind of can according to the instruction for being previously set or store, it is automatic carry out numerical value calculate with/ Or the equipment of information processing, hardware include but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number Word processing device (Digital Signal Processor, DSP), embedded device etc..
The electronic equipment 60, which may be, but not limited to, any one, to pass through keyboard, mouse, remote controler, touching with user The modes such as template or voice-operated device carry out the electronic product of human-computer interaction, for example, tablet computer, smart phone, individual digital help Manage (Personal Digital Assistant, PDA), intellectual wearable device etc..
Network locating for the electronic equipment 60 includes, but are not limited to internet, wide area network, Metropolitan Area Network (MAN), local area network, virtual Dedicated network (Virtual Private Network, VPN) etc..
The electronic equipment 60 includes at least one sending device 61, at least one storage equipment 62, at least one processing Equipment 63, at least one reception device 64, at least one display equipment 65 and at least one communication bus.Wherein, described logical Believe bus for realizing the connection communication between these components.
Wherein, the reception device 64 and the sending device 61 can be wired sending port, or wirelessly set It is standby, for example including antenna assembly, for carrying out data communication with other equipment.
The processing equipment 63 may include one or more microprocessor, digital processing unit.
The storage equipment 62 is used to store the program code of each program segment in antenna-switching device.The storage equipment 62 can be smart media card (smart media card), safe digital card (secure digital card), flash The storage facilities such as device card (flash card).
Preferably, antenna switching method of the invention by the antenna-switching device that is stored in the electronic equipment 60 come It realizes.
The antenna-switching device can judge whether the electronic equipment meets antenna switching condition;When the electronic equipment When meeting antenna switching condition, the second antenna is switched to from first antenna, wherein the first antenna is current operation antenna; Within a preset time, when second antenna meets preset operating conditions, the antenna switching condition is adjusted, so that described Two antennas extend switching time in the preset time.Since the second antenna in electronic equipment meets preset operating conditions When, antenna switching condition is adjusted, so that the second antenna extends switching time within a preset time, the second antenna is within a preset time Switching time extend, i.e., the antenna of electronic equipment switching frequency within a preset time reduces, and realizing prevents electronic equipment Antenna frequent switching purpose.
It is described display equipment 65 can be touch screen etc. other be used for show picture equipment.
In several embodiments provided by the present invention, it should be understood that disclosed method and apparatus can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.That states in device claim is multiple Device can also be implemented through software or hardware by the same device or system.The first, the second equal words are used to indicate name Claim, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (6)

1. a kind of antenna switching method is applied in electronic equipment, which is characterized in that the described method includes:
Judge whether the electronic equipment meets antenna switching condition;
When the electronic equipment meets antenna switching condition, the second antenna is switched to from first antenna, wherein described first day Line is current operation antenna;
Within a preset time, when second antenna meets preset operating conditions, the antenna switching condition is adjusted, so that institute It states the second antenna and extends switching time in the preset time;
Wherein, described to judge whether the electronic equipment meets antenna switching condition and include:
Obtain the default measured value of the first antenna Yu second antenna;
If the difference of the default measured value of second antenna and the default measured value of the first antenna is greater than switching door When limit value, confirm that the electronic equipment meets the antenna switching condition;
Wherein, the adjustment antenna switching condition, when so that second antenna extending switching in the preset time Between include:
Increase the handoff threshold value;
If the difference of the default measured value of the default measured value of the first antenna and second antenna is no more than increase When the rear handoff threshold duration, confirm that the electronic equipment is unsatisfactory for the antenna switching condition adjusted;
When the electronic equipment is unsatisfactory for the antenna switching condition adjusted, the second antenna operation is kept.
2. the method as described in claim 1, which is characterized in that the method also includes:
In the preset time, when second antenna is unsatisfactory for the preset operating conditions, if the first antenna is pre- If the difference of the default measured value of measured value and second antenna is greater than the handoff threshold duration, switch described the Two antennas.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
If the value of the default operational factor of second antenna is more than or equal to preset value, it is described pre- to confirm that second antenna meets If service condition.
4. a kind of antenna-switching device, which is characterized in that described device includes:
Judgment module, for judging whether electronic equipment meets antenna switching condition;
Switching module, for switching to the second antenna from first antenna when the electronic equipment meets antenna switching condition, In, the first antenna is current operation antenna;
Module is adjusted, within a preset time, when second antenna meets preset operating conditions, adjusting the antenna and cutting Condition is changed, so that second antenna extends switching time in the preset time;
Wherein, the judgment module is specifically used for: obtaining the default measured value of the first antenna Yu second antenna;If institute When stating the difference of the default measured value of the second antenna and the default measured value of the first antenna greater than handoff threshold value, really Recognize the electronic equipment and meets the antenna switching condition;
Wherein, the adjustment module is specifically used for: within a preset time, when second antenna meets preset operating conditions, Increase the handoff threshold value;If the first antenna presets the difference of the default measured value of measured value and second antenna When value is not more than the handoff threshold duration after increasing, confirm that the electronic equipment is unsatisfactory for the antenna switching adjusted Condition;When the electronic equipment is unsatisfactory for the antenna switching condition adjusted, the second antenna operation is kept.
5. device as claimed in claim 4, which is characterized in that the switching module is also used in the preset time, when When second antenna is unsatisfactory for the preset operating conditions, if the first antenna presets measured value and second antenna When the difference of the default measured value is greater than the handoff threshold duration, switch second antenna.
6. device as described in claim 4 or 5, which is characterized in that the adjustment module is also used to, if second antenna The value of default operational factor is more than or equal to preset value, confirms that second antenna meets the preset operating conditions.
CN201610900325.4A 2016-10-14 2016-10-14 Antenna switching method and device Active CN106452550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610900325.4A CN106452550B (en) 2016-10-14 2016-10-14 Antenna switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610900325.4A CN106452550B (en) 2016-10-14 2016-10-14 Antenna switching method and device

Publications (2)

Publication Number Publication Date
CN106452550A CN106452550A (en) 2017-02-22
CN106452550B true CN106452550B (en) 2019-06-04

Family

ID=58174968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610900325.4A Active CN106452550B (en) 2016-10-14 2016-10-14 Antenna switching method and device

Country Status (1)

Country Link
CN (1) CN106452550B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108574520B (en) * 2017-03-09 2022-06-07 中兴通讯股份有限公司 Method and device for adjusting antenna switching
CN107086872B (en) * 2017-04-14 2020-05-08 惠州Tcl移动通信有限公司 Frequency band switching control method and system based on mobile terminal
CN107659347B (en) * 2017-08-30 2020-11-06 努比亚技术有限公司 Antenna switching method, multi-antenna terminal and computer readable storage medium
CN107682038B (en) * 2017-08-30 2020-05-22 努比亚技术有限公司 Antenna switching method, multi-antenna terminal and computer readable storage medium
CN107483094B (en) * 2017-08-30 2021-03-30 努比亚技术有限公司 Antenna switching control method, multi-antenna terminal and computer readable storage medium
WO2019041168A1 (en) * 2017-08-30 2019-03-07 Qualcomm Incorporated Enhancement for low latency service
CN107659345B (en) * 2017-08-30 2020-11-06 努比亚技术有限公司 Antenna switching method, multi-antenna terminal and computer readable storage medium
CN111381763B (en) * 2018-12-29 2021-07-30 中兴通讯股份有限公司 Touch position adjusting method and device, storage medium and electronic device
CN109802716B (en) * 2019-01-30 2023-05-16 上海传英信息技术有限公司 Antenna switching method and device
CN110380771B (en) * 2019-07-23 2023-04-07 Oppo(重庆)智能科技有限公司 Antenna switching method, antenna switching device, storage medium and electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9002283B2 (en) * 2011-08-01 2015-04-07 Apple Inc. Antenna switching system with adaptive switching criteria
CN103179619B (en) * 2013-04-07 2015-04-15 北京邮电大学 Self-adapting switching method and device of transmission mode of LTE (Long Term Evolution) multi-antenna system
CN103414507A (en) * 2013-07-26 2013-11-27 北京小米科技有限责任公司 Mobile terminal and method and device for switching antennas of mobile terminal
CN104836028B (en) * 2015-04-02 2018-08-24 酷派软件技术(深圳)有限公司 Control method, control device and the terminal of antenna-matching circuit
CN105323816A (en) * 2015-09-29 2016-02-10 联想(北京)有限公司 Information processing method and electronic device
CN105978601A (en) * 2016-07-04 2016-09-28 华为技术有限公司 Antenna switching method, receiving device and terminal

Also Published As

Publication number Publication date
CN106452550A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106452550B (en) Antenna switching method and device
US9652073B2 (en) Antenna device and electronic device having the same
CN103677903A (en) Mobile terminal intelligent upgrade method and device, and electronic equipment
EP2759892B1 (en) Synchronization of alarms between devices
WO2015015583A1 (en) Portable terminal device
CN103559055A (en) Activity starting method and device applied to Android platform
CN104795627A (en) Flip type electronic device
US11138041B2 (en) Method for automatically releasing resource occupied by process in background of terminal, storage medium and terminal
CN104426927A (en) Intercom terminal parameter arrangement method and system
CN109963325A (en) A kind of localization method based on base station, device and equipment
CN106209608A (en) The method and device that the difference of a kind of chat message synchronizes
CN111008090A (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN106302130A (en) The method and device that the difference of a kind of chat message synchronizes
CN102868819A (en) Method and device for processing communication service of public account
CN102355659B (en) The processing method and system that Remote Radio Unit starts
CN114071516A (en) Carrier configuration method, system, processing equipment and chip of distributed antenna system
EP3344003B1 (en) Communication method and mobile terminal
CN106453571A (en) Data migration method and terminal
CN105320858B (en) Method and device for rapidly displaying application icons
CN106452644A (en) Playing control method and device, and terminal
CN113449141A (en) Voice broadcasting method and device, electronic equipment and storage medium
CN108769367A (en) Method of controlling antenna and Related product
CN106303796A (en) A kind of method controlling intelligent sound box and intelligent sound box
CN106211102A (en) The method and device that the difference of a kind of chat message synchronizes
CN106357512A (en) Chat message differentiated synchronization method and chat message differentiated synchronization device

Legal Events

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