CN110012169A - Antenna switching method, device, storage medium and electronic equipment - Google Patents

Antenna switching method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110012169A
CN110012169A CN201910272314.XA CN201910272314A CN110012169A CN 110012169 A CN110012169 A CN 110012169A CN 201910272314 A CN201910272314 A CN 201910272314A CN 110012169 A CN110012169 A CN 110012169A
Authority
CN
China
Prior art keywords
antenna
electronic equipment
antenna group
group
sets
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910272314.XA
Other languages
Chinese (zh)
Other versions
CN110012169B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910272314.XA priority Critical patent/CN110012169B/en
Publication of CN110012169A publication Critical patent/CN110012169A/en
Application granted granted Critical
Publication of CN110012169B publication Critical patent/CN110012169B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

It includes: to obtain the communications band of the first antenna group when first antenna group transceiving radio frequency signal that the embodiment of the present application, which provides a kind of antenna switching method, device, storage medium and electronic equipment, the antenna switching method,;The interference source interfered to the first antenna group is determined according to the communications band;If the interference source is in running order, target antenna group is determined from multiple second antenna sets;The first antenna group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal.In the antenna switching method, electronic equipment is when the interference source that the communications band to first antenna group interferes is in running order, target antenna group can be determined from multiple second antenna sets, and switch to target antenna group transceiving radio frequency signal, so as to reduce interference caused by radiofrequency signal of the interference source to electronic equipment, to improve the communication stability of electronic equipment.

Description

Antenna switching method, device, storage medium and electronic equipment
Technical field
This application involves field of communication technology, in particular to a kind of antenna switching method, device, storage medium and electronics are set It is standby.
Background technique
With the development of network technology and the raising of electronic equipment intelligence degree, user can pass through such as smart phone Equal electronic equipments realize more and more functions, such as voice communication, Video chat, object for appreciation online game etc..
Wherein, during electronic equipment executes the functions such as voice communication, Video chat, electronic equipment needs and base station Or server carries out data interaction.And during data interaction, electronic equipment needs to realize wireless signal by antenna Transmission.
During antenna transmission signal, other functional modules of electronic equipment are (for example, proximity sensor, general string Row bus interface etc.) antenna may be interfered, to influence the stability of antenna transmission signal, and then influence electronics The communication stability of equipment.
Summary of the invention
The embodiment of the present application provides a kind of antenna switching method, device, storage medium and electronic equipment, and electronics can be improved The communication stability of equipment.
The embodiment of the present application provides a kind of antenna switching method, is applied to electronic equipment, and the electronic equipment includes first Antenna sets and multiple second antenna sets, the antenna switching method include:
When the first antenna group transceiving radio frequency signal, the communications band of the first antenna group is obtained;
The interference source interfered to the first antenna group is determined according to the communications band;
If the interference source is in running order, target antenna group is determined from the multiple second antenna sets;
The first antenna group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal.
The embodiment of the present application also provides a kind of antenna-switching device, is applied to electronic equipment, and the electronic equipment includes the One antenna sets and multiple second antenna sets, the antenna-switching device include:
Module is obtained, for obtaining the communication of the first antenna group when the first antenna group transceiving radio frequency signal Frequency range;
First determining module, for determining the interference interfered to the first antenna group according to the communications band Source;
Second determining module, if in running order for the interference source, from the multiple second antenna sets really Make target antenna group;
Switching module, for the first antenna group transceiving radio frequency signal to be switched to the target antenna group transceiving radio frequency Signal.
The embodiment of the present application also provides a kind of storage medium, computer program is stored in the storage medium, when described When computer program is run on computers, so that the computer executes above-mentioned antenna switching method.
The embodiment of the present application also provides a kind of electronic equipment, including processor and memory, is stored in the memory Computer program, the processor is by calling the computer program stored in the memory, for executing above-mentioned day Line switching method.
Antenna switching method provided by the embodiments of the present application, comprising: when first antenna group transceiving radio frequency signal, obtain institute State the communications band of first antenna group;The interference source interfered to the first antenna group is determined according to the communications band; If the interference source is in running order, target antenna group is determined from multiple second antenna sets;By the first antenna Group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal.In the antenna switching method, electronic equipment exists It, can be from multiple second antenna sets really when the interference source interfered to the communications band of first antenna group is in running order Target antenna group is made, and switches to target antenna group transceiving radio frequency signal, electronics is set so as to reduce the interference source Interference caused by standby radiofrequency signal, to improve the communication stability of electronic equipment.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described.It should be evident that the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the first structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 2 is the first flow diagram of antenna switching method provided by the embodiments of the present application.
Fig. 3 is second of flow diagram of antenna switching method provided by the embodiments of the present application.
Fig. 4 is the third flow diagram of antenna switching method provided by the embodiments of the present application.
Fig. 5 is the 4th kind of flow diagram of antenna switching method provided by the embodiments of the present application.
Fig. 6 is the structural schematic diagram of antenna-switching device provided by the embodiments of the present application.
Fig. 7 is second of structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Fig. 8 is the third structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those skilled in the art's every other implementation obtained under that premise of not paying creative labor Example, belongs to the protection scope of the application.
With reference to Fig. 1, Fig. 1 is the first structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Wherein, electronic equipment 100 includes shell 10, circuit board 20, battery 30, antenna sets A 41, antenna sets B 42, antenna Group C 43 and antenna sets D 44.
Shell 10 is used to form the exterior contour of electronic equipment 100, while other electronics for accommodating electronic equipment 100 Element or functional unit.For example, shell 10 can be used for accommodating the processor, camera, receiver, Mike of electronic equipment 100 A variety of electronic components such as wind, gravity sensor.
It should be understood that shell 10 may include front shell assemblies, center and the rear cover of electronic equipment 100.Wherein, front housing Component includes the cover board of display screen and setting on the display screen.Center setting the front shell assemblies and the rear cover it Between.The center be used for in electronic equipment 100 electronic component or functional unit provide a supporting role, by electronic equipment Electronic component, functional unit in 100 are mounted together.For example, camera, receiver, microphone in electronic equipment 100, The functional units such as gravity sensor, fingerprint recognition mould group, which can be installed on center, to be fixed.Rear cover can be such as golden Belong to the rear cover of the types such as rear cover, plastic rear cover, glass back cover.The rear cover can be integrally formed.In the forming process of rear cover, It can cover to form the structures such as rear camera hole, fingerprint recognition mould group mounting hole after.
Circuit board 20 is arranged inside the shell 10.Circuit board 20 can be the mainboard of electronic equipment 100.Wherein, institute It states and is provided with radio circuit on circuit board 20, the radio circuit sets for realizing electronic equipment 100 and base station or other electronics Communication between standby.In addition, microphone can also be integrated on the circuit board 20, loudspeaker, receiver, earphone interface, led to With serial bus interface (USB interface), camera, range sensor, ambient light sensor, gyroscope and processor and storage One or more of functional units such as device.
Battery 30 is arranged inside the shell 10.Meanwhile battery 30 is electrically connected to the circuit board 20, to realize battery 30 power for electronic equipment 100.Wherein, electric power management circuit can be set on the circuit board 20.The power management electricity Road is used to for the voltage that battery 30 provides being assigned to each electronic component of electronic equipment 100.
The antenna sets A 41, antenna sets B 42, antenna sets C43 and antenna sets D 44 are arranged in the shell 10 Portion.For example, the antenna sets A 41, antenna sets B 42, antenna sets C 43 and antenna sets D 44 can be set in shell 10 On the center in portion.Wherein, each antenna sets can include one or more antennas.
Wherein, the antenna sets A 41, antenna sets B 42, antenna sets C 43 and antenna sets D 44 believe for transceiving radio frequency Number, to realize the communication of electronic equipment 100 and base station or other electronic equipments.In addition, the antenna sets A 41, antenna sets B 42, antenna sets C 43 and antenna sets D 44 is electrically connected to the circuit board 20, to realize through the radio frequency electrical on circuit board 20 Road handles transmitting or received radiofrequency signal.
It should be noted that above-mentioned transceiving radio frequency signal may include transmitting radiofrequency signal, receive radiofrequency signal and same When emit and receive a variety of situations such as radiofrequency signal.
It should be understood that although electronic equipment 100 shown in Fig. 1 includes antenna sets A, antenna sets B, antenna sets C, antenna sets D Deng 4 antenna sets, but in practical application, electronic equipment 100 can also include more or less antenna sets.For example, electronics Equipment 100 can only include 3 antenna sets, also may include 5 or 6 antenna sets, etc..
In the embodiment of the present application, main collection module 21, diversity module 22 and switching switch 23 are provided on circuit board 20.Institute It states main collection module 21 to be used to generate the radiofrequency signal launched outward, and the received radiofrequency signal of antenna sets is handled.Institute Diversity module 22 is stated for handling the received radiofrequency signal of antenna sets.
Wherein, the main collection module 21, the diversity module 22 are connect with one end of the switching switch 23, described to cut The other end for changing switch 23 is connect with the antenna sets A, antenna sets B, antenna sets C and antenna sets D.For example, the switching is opened Closing 23 can be connect by RF coaxial line with the antenna sets A, antenna sets B, antenna sets C and antenna sets D.
The switching switch 23 can be realized by switching the main collection module 21 and antenna sets A, antenna sets B, Any one electrical connection in antenna sets C and antenna sets D, and realize the diversity module 22 and the antenna sets A, antenna Any one or more electrical connections in group B, antenna sets C and antenna sets D other than main collection antenna.It should be understood that with The antenna sets that the main collection module 21 is electrically connected collect antenna based on being, the antenna sets being electrically connected with the diversity module 22 are point Collect antenna.
For example, the switching switch 23 may include double-point double-throw switch.It can be real by the switching of double-point double-throw switch Now main collection module 21 is electrically connected with an antenna sets, and realizes that diversity module 22 is electrically connected with another antenna sets.That is, will Collect antenna based on a switching in the multiple switching group, another is switched to diversity antenna.For another example the switching is opened Closing 23 can also include the switching group being made of multiple single-pole single-throw switch (SPST)s.Main collection module can be realized by the switching of switching group 21 are electrically connected with an antenna sets, and realize that diversity module 22 is electrically connected with the mutiple antennas group except main collection antenna.That is, Antenna will be collected based on one in the multiple switching group switching, is switched to diversity antenna in addition multiple.
The embodiment of the present application provides a kind of antenna switching method, and the antenna switching method can be applied to above-mentioned electronics and set In standby 100.The electronic equipment 100 can for smart phone, tablet computer, game station, AR (Augmented Reality, Augmented reality) equipment, automobile, data storage device, audio playing apparatus, video play device, laptop, Desktop Computing Equipment, wearable device electronic watch, electronic glasses, electronic helmet, electronic bracelet, electronics necklace, electronic clothes etc. are set It is standby.
With reference to Fig. 2, Fig. 2 is the first flow diagram of antenna switching method provided by the embodiments of the present application.
Wherein, the antenna switching method the following steps are included:
210, when first antenna group transceiving radio frequency signal, obtain the communications band of the first antenna group.
In above-mentioned electronic equipment 100, any one in antenna sets A, antenna sets B, antenna sets C and antenna sets D can be with For first antenna group, other each antenna sets are the second antenna sets.To include a first antenna group in electronic equipment And multiple second antenna sets.Below only using antenna sets A as first antenna group, antenna sets B, antenna sets C, antenna sets D are Two antenna sets are illustrated.
In the initial state, configured with a main collection antenna and one or more diversity antennas in electronic equipment.Wherein, Main collection antenna receives simultaneously and transmitting radiofrequency signal, diversity antenna receive radiofrequency signal.
For example, when collecting antenna based on the first antenna group A, first antenna group A transceiving radio frequency signal.At this point, electronic equipment It can be by the communications band of modem (Modem) real-time monitoring first antenna group A of radiofrequency signal, to obtain described The communications band of one antenna sets A.
220, the interference source interfered to the first antenna group is determined according to the communications band.
It, can be by professional, such as research staff, in electronic equipment in the exploitation test process of electronic equipment Antenna sets A, antenna sets B, antenna sets C, antenna sets D are tested respectively, to obtain the antenna sets A, antenna sets B, day respectively Line group C, antenna sets D are disturbed situation on each communications band.For example, by the antenna A frequency range being disturbed and each frequency The corresponding interference source of section is recorded, and list A is formed;By the antenna B frequency range being disturbed and the corresponding interference source of each frequency range It records, forms list B;The antenna C frequency range being disturbed and the corresponding interference source of each frequency range are recorded, column are formed Table C;The antenna D frequency range being disturbed and the corresponding interference source of each frequency range are recorded, list D is formed.It then, will be described List A, list B, list C, list D are respectively stored in electronic equipment.
Wherein, interference source is the functional module interfered in electronic equipment to antenna sets.For example, interference source can wrap Include display screen, front camera, rear camera, Universal Serial Bus Interface (USB interface), earphone interface, proximity sensor, Gravity sensor etc..
It is after electronic equipment gets the communications band of first antenna group A, the communications band is corresponding with first antenna group A List A be compared, that is, can determine the interference source interfered to the first antenna group.For example, the interference source can be with For display screen.
230, if the interference source is in running order, target antenna group is determined from multiple second antenna sets.
Then, whether electronic equipment detects the state of the interference source, in running order with the determination interference source.Its In, working condition is the state that the interference source is working.For example, then detecting display screen when interference source is display screen Whether illuminating state is in.
If the interference source is in running order, electronic equipment determines target antenna from multiple second antenna sets Group.For example, electronic equipment determines target antenna group C from the second antenna sets B, the second antenna sets C, the second antenna sets D.Its In, the target antenna group is to need to switch to the antenna sets of transceiving radio frequency signal.
240, the first antenna group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal.
After electronic equipment determines target antenna group, the first antenna group transceiving radio frequency signal can be switched to described Target antenna group transceiving radio frequency signal.That is, main collection antenna is switched to the target antenna group by first antenna group.For example, Antenna sets A transceiving radio frequency signal is switched to antenna sets C transceiving radio frequency signal.That is, main collection antenna is switched to by antenna sets A Antenna sets C.
In antenna switching method provided by the embodiments of the present application, electronic equipment is caused in the communications band to first antenna group When the interference source of interference is in running order, target antenna group can be determined from multiple second antenna sets, and switch to mesh Antenna sets transceiving radio frequency signal is marked, so as to reduce interference caused by radiofrequency signal of the interference source to electronic equipment, To improve the communication stability of electronic equipment.
In some embodiments, with reference to second of the stream that Fig. 3, Fig. 3 are antenna switching method provided by the embodiments of the present application Journey schematic diagram.
Wherein, if step 230, the interference source are in running order, target is determined from multiple second antenna sets Antenna sets, comprising the following steps:
231, if the interference source is in running order, obtain the operating mode of electronic equipment, the operating mode packet Include vertical screen mode and transverse screen mode;
232, target antenna group is determined from the multiple second antenna sets according to the operation mode.
When electronic equipment detects that the interference source is in running order, electronic equipment obtains the operating mode of itself. Wherein, the operating mode includes vertical screen mode and transverse screen mode.Vertical screen mode is two shorter sides of electronic equipment Positioned at upper and lower ends and two longer sides are located at the mode of the left and right sides.Transverse screen mode is two of electronic equipment Longer side is located at upper and lower ends and two shorter sides are located at the mode of the left and right sides.
For example, electronic equipment is generally in vertical screen mode during user's hand-hold electronic equipments are conversed;With When family browses webpage by electronic equipment, electronic equipment is generally in vertical screen mode;Video display are watched using electronic equipment in user When acute, electronic equipment is generally in transverse screen mode;When user plays online game using electronic equipment, electronic equipment is generally in Transverse screen mode.
The display screen of electronic equipment is by processor control display, therefore the control that electronic equipment passes through query processor Parameter can get the operating mode of electronic equipment.
Then, electronic equipment determines target antenna group from the multiple second antenna sets according to the operation mode.
For example, antenna sets A, antenna sets B, antenna sets C, the antenna sets D in electronic equipment are separately positioned on electronic equipment Four corners, as shown in Figure 1.User is when holding electronic equipment, it will usually hold the lower half portion of electronic equipment, at this time electronics The antenna sets of equipment top half can be smaller by the interference that user holds.Therefore, when electronic equipment is in vertical screen mode, The antenna sets B for being located at top half directly can be determined as target antenna group by electronic equipment.When electronic equipment is in transverse screen mould When formula, the antenna sets D for being located at top half directly can be determined as target antenna group by electronic equipment.
It in some embodiments, is the third stream of antenna switching method provided by the embodiments of the present application with reference to Fig. 4, Fig. 4 Journey schematic diagram.
Wherein, step 232, determine target antenna group from the multiple second antenna sets according to the operation mode, The following steps are included:
2321, according to the operation mode and user is accustomed to determining that the electronics is set using the gripping of the electronic equipment Standby is held position;
2322, it will be held the second farthest antenna sets of position described in distance in the multiple second antenna sets and be determined as mesh Mark antenna sets.
In practical application, each user is different using the habit of electronic equipment, and the habit for holding electronic equipment can also It can be different.For example, getting used to the lower half portion for holding electronic equipment when user X holds electronic equipment;And user Y is held When electronic equipment, get used to the top half for holding electronic equipment;And when user Z gripping electronic equipment, get used to hands grasping, And the lower left corner and the upper right corner of electronic equipment are held respectively.To determine target only according to the operating mode of electronic equipment Antenna sets may be inaccuracy.
In the use process of electronic equipment, electronic equipment can hold the grip part of electronic equipment with multi collect user Position is accustomed to form gripping of the user using electronic equipment when.Wherein, the gripping habit is further divided into different fields Scape.That is, gripping habit include user in different scenes to the holding area of electronic equipment.
After electronic equipment gets the operating mode of itself, gripping of the user to the electronic equipment can be further obtained Habit, with according to the operation mode and user determines using the gripping habit of the electronic equipment quilt of the electronic equipment Holding area.
For example, with reference to Fig. 1, when electronic equipment is in vertical screen state, and the gripping habit of user is holds electronic equipment Top half when, then can determine electronic equipment be held position be antenna sets A, antenna sets B where position.Example again Such as, when electronic equipment is in transverse screen state, and the gripping habit of user is the lower half portion of gripping electronic equipment, then can Position is held as the position where antenna sets A, antenna sets C using determine electronic equipment.
Due to the position of antenna sets each in electronic equipment be it is fixed, electronic equipment is determined after being held position, i.e., It can determine that and be held the second farthest antenna sets of position described in distance.Then, electronic equipment is by the multiple second antenna sets It is held the second farthest antenna sets of position described in middle distance and is determined as target antenna group.
In some embodiments, with reference to the 4th kind of stream that Fig. 5, Fig. 5 are antenna switching method provided by the embodiments of the present application Journey schematic diagram.
Wherein, step 232, determine target antenna group from the multiple second antenna sets according to the operation mode, The following steps are included:
2323, according to the operation mode and user is accustomed to determining that the electronics is set using the gripping of the electronic equipment Standby is held position;
2324, it is held position according to described from the multiple second antenna sets and determines the third not being held by a user Antenna sets;
2325, judge the third antenna group whether all for the diversity antenna of the communications band;
2326, it, will be described if at least one of described third antenna group is not the diversity antenna of the communications band It is not that any antenna group of the diversity antenna of the communications band is determined as target antenna group in third antenna group.
In the use process of electronic equipment, electronic equipment can hold the grip part of electronic equipment with multi collect user Position is accustomed to form gripping of the user using electronic equipment when.Wherein, the gripping habit is further divided into different fields Scape.That is, gripping habit include user in different scenes to the holding area of electronic equipment.
After electronic equipment gets the operating mode of itself, gripping of the user to the electronic equipment can be further obtained Habit, with according to the operation mode and user determines using the gripping habit of the electronic equipment quilt of the electronic equipment Holding area.
Then, electronic equipment is held position according to and determines not held by user from the multiple second antenna sets The third antenna group held.
For example, with reference to Fig. 1, when electronic equipment is in vertical screen state, and the gripping habit of user is holds electronic equipment Top half when, then can determine electronic equipment be held position be antenna sets A, antenna sets B where position.This When, electronic equipment can determine that the third antenna group not being held by a user is antenna sets C, antenna from multiple second antenna sets Group D.
Then, whether electronic equipment judges the third antenna group all for the diversity antenna of the communications band.That is, sentencing Whether disconnected electronic equipment by each antenna sets in the third antenna group all receives radiofrequency signal.Wherein, electronic equipment is logical The running parameter for crossing query processor or radio circuit can determine whether the third antenna group is all the communications band Diversity antenna.
If being judged as NO namely at least one of the third antenna group not being the diversity antenna of the communications band, It will not be then that any antenna group of diversity antenna of the communications band is determined as target antenna group in the third antenna group.
For example, the third antenna group that electronic equipment is determined is antenna sets C, antenna sets D.Wherein, antenna sets C is described logical Believe the diversity antenna of frequency range, and antenna sets D is not the diversity antenna of the communications band, then electronic equipment can be by antenna sets D is determined as target antenna group.If antenna sets C, antenna sets D are not the diversity antennas of the communications band, then electronic equipment Any antenna group in antenna sets C, antenna sets D can be determined as target antenna group.
In some embodiments, with continued reference to Fig. 5, whether step 2325 judges the third antenna group all to be described logical It is further comprising the steps of after the diversity antenna for believing frequency range:
2327, if the third antenna group is all the diversity antenna of the communications band, position is held described in acquisition Corresponding second antenna sets emit the first signal attenuation when the radiofrequency signal of the communications band;
2328, the be disturbed when first signal attenuation and the first antenna group are emitted the radiofrequency signal Binary signal attenuation is compared;
2329, if first signal attenuation is less than the second signal attenuation, position pair is held by described Any antenna group in the second antenna sets answered is determined as target antenna group.
If electronic equipment is judged as YES namely the third antenna group is all the diversity antenna of the communications band, such as Third antenna group is antenna sets C, antenna sets D, and antenna sets C, antenna sets D are the diversity antennas of the communications band, this When electronic equipment obtain described in be held when corresponding second antenna sets in position emit the radiofrequency signal of the communications band the One signal attenuation.
For example, being held corresponding second antenna sets in position is antenna sets B, then electronic equipment obtains antenna sets B transmitting The first signal attenuation when the radiofrequency signal.Electronic equipment can by the running parameter of query processor or radio circuit To obtain the first signal attenuation when antenna sets B emits the radiofrequency signal.Wherein, first signal attenuation is one Signal strength indication.For example, the first signal attenuation that electronic equipment is got is 2dBm (decibel milliwatt).
The disturbed condition being subject to when first antenna group A transmitting radiofrequency signal can be monitored in real time in electronic equipment, to obtain It states first antenna group A and emits the second signal attenuation being disturbed when the radiofrequency signal.Wherein, the second signal attenuation It also is a signal strength indication.For example, the second signal attenuation is 2.5dBm.
Then, first signal attenuation is compared by electronic equipment with the second signal attenuation, with judgement Whether first signal attenuation is less than the second signal attenuation.
If first signal attenuation is less than the second signal attenuation, such as the first signal attenuation 2dBm is less than Second signal attenuation 2.5dBm, illustrate to be held the interference that corresponding second antenna sets in position are subject to be less than first antenna group by The interference arrived, namely be held corresponding second antenna sets in position radio-frequency performance it is more preferable.At this point, electronic equipment is then by the quilt Any antenna group in corresponding second antenna sets in holding area is determined as target antenna group.For example, the second antenna sets B is determined For target antenna group.
If first signal attenuation is not less than the second signal attenuation, illustrate to be held position corresponding second The radio-frequency performance that the interference that antenna sets are subject to is greater than interference namely first antenna group that first antenna group is subject to is more preferable.At this point, electric Sub- equipment can maintain first antenna group transceiving radio frequency signal constant, namely maintain main collection antenna constant.
In the description of the present application, it is to be understood that the similar terms such as " first ", " second ", " third " are only used In distinguishing similar object, it is not understood to indicate or imply relative importance or implicitly indicates indicated technical characteristic Quantity.
When it is implemented, the application is not limited by the execution sequence of described each step, conflict is not being generated In the case of, certain steps can also be carried out using other sequences or be carried out simultaneously.
From the foregoing, it will be observed that antenna switching method provided by the embodiments of the present application, comprising: when first antenna group transceiving radio frequency signal When, obtain the communications band of the first antenna group;The first antenna group is interfered according to communications band determination Interference source;If the interference source is in running order, target antenna group is determined from multiple second antenna sets;It will be described First antenna group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal.In the antenna switching method, electricity Sub- equipment, can be from multiple second days when the interference source that the communications band to first antenna group interferes is in running order Target antenna group is determined in line group, and switches to target antenna group transceiving radio frequency signal, so as to reduce the interference source Interference caused by radiofrequency signal to electronic equipment, to improve the communication stability of electronic equipment.
The embodiment of the present application also provides a kind of antenna-switching device, and the antenna-switching device can integrate in electronic equipment In.The electronic equipment can (Augmented Reality, enhancing be existing for smart phone, tablet computer, game station, AR It is real) equipment, automobile, data storage device, audio playing apparatus, video play device, laptop, Desktop computing device, The equipment such as wearable device electronic watch, electronic glasses, electronic helmet, electronic bracelet, electronics necklace, electronic clothes.
With reference to Fig. 6, Fig. 6 is the structural schematic diagram of antenna-switching device provided by the embodiments of the present application.
Wherein, the antenna-switching device 300 includes: to obtain module 301, the first determining module 302, the second determining module 303, switching module 304.
Module 301 is obtained, for when first antenna group transceiving radio frequency signal, obtaining the communication frequency of the first antenna group Section.
In above-mentioned electronic equipment 100, any one in antenna sets A, antenna sets B, antenna sets C and antenna sets D can be with For first antenna group, other each antenna sets are the second antenna sets.To include a first antenna group in electronic equipment And multiple second antenna sets.Below only using antenna sets A as first antenna group, antenna sets B, antenna sets C, antenna sets D are Two antenna sets are illustrated.
In the initial state, configured with a main collection antenna and one or more diversity antennas in electronic equipment.Wherein, Main collection antenna receives simultaneously and transmitting radiofrequency signal, diversity antenna receive radiofrequency signal.
For example, when collecting antenna based on the first antenna group A, first antenna group A transceiving radio frequency signal.At this point, obtaining module 301 can be by the communications band of modem (Modem) real-time monitoring first antenna group A of radiofrequency signal, to obtain State the communications band of first antenna group A.
First determining module 302 is done for being determined according to the communications band to what the first antenna group interfered Disturb source.
It, can be by professional, such as research staff, in electronic equipment in the exploitation test process of electronic equipment Antenna sets A, antenna sets B, antenna sets C, antenna sets D are tested respectively, to obtain the antenna sets A, antenna sets B, day respectively Line group C, antenna sets D are disturbed situation on each communications band.For example, by the antenna A frequency range being disturbed and each frequency The corresponding interference source of section is recorded, and list A is formed;By the antenna B frequency range being disturbed and the corresponding interference source of each frequency range It records, forms list B;The antenna C frequency range being disturbed and the corresponding interference source of each frequency range are recorded, column are formed Table C;The antenna D frequency range being disturbed and the corresponding interference source of each frequency range are recorded, list D is formed.It then, will be described List A, list B, list C, list D are respectively stored in electronic equipment.
Wherein, interference source is the functional module interfered in electronic equipment to antenna sets.For example, interference source can wrap Include display screen, front camera, rear camera, Universal Serial Bus Interface (USB interface), earphone interface, proximity sensor, Gravity sensor etc..
Obtain after module 301 gets the communications band of first antenna group A, the first determining module 302 by the communication frequently Section list A corresponding with first antenna group A is compared, that is, can determine the interference source interfered to the first antenna group. For example, the interference source can be display screen.
Second determining module 303 is determined from multiple second antenna sets if in running order for the interference source Target antenna group out.
Second determining module 303 can detecte the state of the interference source, whether be in work with the determination interference source State.Wherein, working condition is the state that the interference source is working.For example, then being detected when interference source is display screen Whether display screen is in illuminating state.
If the interference source is in running order, the second determining module 303 determines mesh from multiple second antenna sets Mark antenna sets.For example, the second determining module 303 determines mesh from the second antenna sets B, the second antenna sets C, the second antenna sets D Mark antenna sets C.Wherein, the target antenna group is to need to switch to the antenna sets of transceiving radio frequency signal.
Switching module 304 is received and dispatched for the first antenna group transceiving radio frequency signal to be switched to the target antenna group Radiofrequency signal.
After second determining module 303 determines target antenna group, switching module 304 can receive and dispatch the first antenna group Radiofrequency signal is switched to the target antenna group transceiving radio frequency signal.That is, main collection antenna is switched to institute by first antenna group State target antenna group.For example, antenna sets A transceiving radio frequency signal is switched to antenna sets C transceiving radio frequency signal.That is, by main collection Antenna switches to antenna sets C by antenna sets A.
The interference that antenna-switching device provided by the embodiments of the present application is interfered in the communications band to first antenna group When source is in running order, target antenna group can be determined from multiple second antenna sets, and switch to target antenna group receipts Radiofrequency signal is sent out, so as to reduce interference caused by radiofrequency signal of the interference source to electronic equipment, to improve electronics The communication stability of equipment.
In some embodiments, the second determining module 303 is for executing following steps:
If the interference source is in running order, the operating mode of electronic equipment is obtained, the operating mode includes perpendicular Screen mode and transverse screen mode;
Target antenna group is determined from the multiple second antenna sets according to the operation mode.
When detecting that the interference source is in running order, the second determining module 303 obtains the Working mould of electronic equipment Formula.Wherein, the operating mode includes vertical screen mode and transverse screen mode.Vertical screen mode is two shorter sides of electronic equipment Side is located at upper and lower ends and two longer sides are located at the mode of the left and right sides.Transverse screen mode is the two of electronic equipment A longer side is located at upper and lower ends and two shorter sides are located at the mode of the left and right sides.
For example, electronic equipment is generally in vertical screen mode during user's hand-hold electronic equipments are conversed;With When family browses webpage by electronic equipment, electronic equipment is generally in vertical screen mode;Video display are watched using electronic equipment in user When acute, electronic equipment is generally in transverse screen mode;When user plays online game using electronic equipment, electronic equipment is generally in Transverse screen mode.
The display screen of electronic equipment is to be controlled to show by processor, therefore the second determining module 303 passes through query processing The control parameter of device can get the operating mode of electronic equipment.
Then, the second determining module 303 determines target from the multiple second antenna sets according to the operation mode Antenna sets.
For example, antenna sets A, antenna sets B, antenna sets C, the antenna sets D in electronic equipment are separately positioned on electronic equipment Four corners, as shown in Figure 1.User is when holding electronic equipment, it will usually hold the lower half portion of electronic equipment, at this time electronics The antenna sets of equipment top half can be smaller by the interference that user holds.Therefore, when electronic equipment is in vertical screen mode, The antenna sets B for being located at top half directly can be determined as target antenna group by the second determining module 303.When electronic equipment is in When transverse screen mode, the antenna sets D for being located at top half directly can be determined as target antenna group by the second determining module 303.
In some embodiments, target antenna group is determined from the multiple second antenna sets according to the operation mode When, the second determining module 303 is for executing following steps:
According to the operation mode and user is accustomed to determining the electronic equipment using the gripping of the electronic equipment It is held position;
It will be held the second farthest antenna sets of position described in distance in the multiple second antenna sets and be determined as target day Line group.
In practical application, each user is different using the habit of electronic equipment, and the habit for holding electronic equipment can also It can be different.For example, getting used to the lower half portion for holding electronic equipment when user X holds electronic equipment;And user Y is held When electronic equipment, get used to the top half for holding electronic equipment;And when user Z gripping electronic equipment, get used to hands grasping, And the lower left corner and the upper right corner of electronic equipment are held respectively.To determine target only according to the operating mode of electronic equipment Antenna sets may be inaccuracy.
In the use process of electronic equipment, electronic equipment can hold the grip part of electronic equipment with multi collect user Position is accustomed to form gripping of the user using electronic equipment when.Wherein, the gripping habit is further divided into different fields Scape.That is, gripping habit include user in different scenes to the holding area of electronic equipment.
After getting the operating mode of electronic equipment, available user is to the electronic equipment for the second determining module 303 Gripping habit, with according to the operation mode and user is accustomed to determining that the electronics is set using the gripping of the electronic equipment Standby is held position.
For example, with reference to Fig. 1, when electronic equipment is in vertical screen state, and the gripping habit of user is holds electronic equipment Top half when, then can determine electronic equipment be held position be antenna sets A, antenna sets B where position.Example again Such as, when electronic equipment is in transverse screen state, and the gripping habit of user is the lower half portion of gripping electronic equipment, then can Position is held as the position where antenna sets A, antenna sets C using determine electronic equipment.
Due to the position of antenna sets each in electronic equipment be it is fixed, the second determining module 303 is determined to be held portion Behind position, that is, it can determine that and be held the second farthest antenna sets of position described in distance.Then, the second determining module 303 will be described The second farthest antenna sets of position are held in multiple second antenna sets described in distance and are determined as target antenna group.
In some embodiments, target antenna group is determined from the multiple second antenna sets according to the operation mode When, the second determining module 303 is for executing following steps:
According to the operation mode and user is accustomed to determining the electronic equipment using the gripping of the electronic equipment It is held position;
It is held position according to described from the multiple second antenna sets and determines the third antenna not being held by a user Group;
Judge the third antenna group whether all for the diversity antenna of the communications band;
If at least one of described third antenna group is not the diversity antenna of the communications band, by the third day It is not that any antenna group of the diversity antenna of the communications band is determined as target antenna group in line group.
In the use process of electronic equipment, electronic equipment can hold the grip part of electronic equipment with multi collect user Position is accustomed to form gripping of the user using electronic equipment when.Wherein, the gripping habit is further divided into different fields Scape.That is, gripping habit include user in different scenes to the holding area of electronic equipment.
After getting the operating mode of electronic equipment, available user is to the electronic equipment for the second determining module 303 Gripping habit, with according to the operation mode and user is accustomed to determining that the electronics is set using the gripping of the electronic equipment Standby is held position.
Then, the second determining module 303 is held position from the multiple second antenna sets and determines not according to described The third antenna group being held by a user.
For example, with reference to Fig. 1, when electronic equipment is in vertical screen state, and the gripping habit of user is holds electronic equipment Top half when, then can determine electronic equipment be held position be antenna sets A, antenna sets B where position.This When, electronic equipment can determine that the third antenna group not being held by a user is antenna sets C, antenna from multiple second antenna sets Group D.
Then, whether the second determining module 303 judges the third antenna group all for the diversity antenna of the communications band. That is, judging whether electronic equipment by each antenna sets in the third antenna group all receives radiofrequency signal.Wherein, second Determining module 303 by the running parameter of query processor or radio circuit can determine the third antenna group whether be all The diversity antenna of the communications band.
If being judged as NO namely at least one of the third antenna group not being the diversity antenna of the communications band, It will not be then that any antenna group of diversity antenna of the communications band is determined as target antenna group in the third antenna group.
For example, the third antenna group that the second determining module 303 is determined is antenna sets C, antenna sets D.Wherein, antenna sets C For the diversity antenna of the communications band, and antenna sets D is not the diversity antenna of the communications band, then the second determining module 303 can be determined as antenna sets D target antenna group.If antenna sets C, antenna sets D are not the diversity days of the communications band Line, then any antenna group in antenna sets C, antenna sets D can be determined as target antenna group by the second determining module 303.
In some embodiments, judge the third antenna group whether all for the diversity antenna of the communications band after, Second determining module 303 is also used to execute following steps:
It is corresponding that position is held if the third antenna group is all the diversity antenna of the communications band, described in acquisition Second antenna sets emit the first signal attenuation when the radiofrequency signal of the communications band;
The second letter being disturbed when first signal attenuation and the first antenna group are emitted the radiofrequency signal Number attenuation is compared;
If first signal attenuation is less than the second signal attenuation, position corresponding the is held by described Any antenna group in two antenna sets is determined as target antenna group.
If being judged as YES namely the third antenna group being all the diversity antenna of the communications band, such as third antenna Group is antenna sets C, antenna sets D, and antenna sets C, antenna sets D are the diversity antennas of the communications band, and second really at this time Cover half block 303 obtains first be held when corresponding second antenna sets in position emit the radiofrequency signal of the communications band Signal attenuation.
For example, being held corresponding second antenna sets in position is antenna sets B, then the second determining module 303 obtains antenna Group B emits the first signal attenuation when the radiofrequency signal.Second determining module 303 passes through query processor or radio frequency electrical The available antenna sets B of the running parameter on road emits the first signal attenuation when the radiofrequency signal.Wherein, first letter Number attenuation is a signal strength indication.For example, the first signal attenuation that the second determining module 303 is got is that 2dBm (divides Shellfish milliwatt).
The disturbed condition being subject to when first antenna group A transmitting radiofrequency signal can be monitored in real time in second determining module 303, with It obtains the first antenna group A and emits the second signal attenuation being disturbed when the radiofrequency signal.Wherein, the second signal Attenuation is also a signal strength indication.For example, the second signal attenuation is 2.5dBm.
Then, first signal attenuation is compared by the second determining module 303 with the second signal attenuation, To judge whether first signal attenuation is less than the second signal attenuation.
If first signal attenuation is less than the second signal attenuation, such as the first signal attenuation 2dBm is less than Second signal attenuation 2.5dBm, illustrate to be held the interference that corresponding second antenna sets in position are subject to be less than first antenna group by The interference arrived, namely be held corresponding second antenna sets in position radio-frequency performance it is more preferable.At this point, the second determining module 303 is then Any antenna group being held in corresponding second antenna sets in position is determined as target antenna group.For example, by second day Line group B is determined as target antenna group.
If first signal attenuation is not less than the second signal attenuation, illustrate to be held position corresponding second The radio-frequency performance that the interference that antenna sets are subject to is greater than interference namely first antenna group that first antenna group is subject to is more preferable.At this point, electric Sub- equipment can maintain first antenna group transceiving radio frequency signal constant, namely maintain main collection antenna constant.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities.
From the foregoing, it will be observed that antenna-switching device 300 provided by the embodiments of the present application, comprising: module 301 is obtained, for when the When one antenna sets transceiving radio frequency signal, the communications band of the first antenna group is obtained;First determining module 302 is used for basis The communications band determines the interference source interfered to the first antenna group;Second determining module 303, if for described dry It is in running order to disturb source, then determines target antenna group from multiple second antenna sets;Switching module 304, being used for will be described First antenna group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal.The antenna-switching device is to When the interference source that the communications band of one antenna sets interferes is in running order, it can be determined from multiple second antenna sets Target antenna group, and target antenna group transceiving radio frequency signal is switched to, so as to reduce the interference source to electronic equipment Interference caused by radiofrequency signal, to improve the communication stability of electronic equipment.
The embodiment of the present application also provides a kind of electronic equipment.The electronic equipment can be smart phone, tablet computer, trip Play equipment, AR (Augmented Reality, augmented reality) equipment, automobile, data storage device, audio playing apparatus, video Playing device, laptop, Desktop computing device, wearable device such as electronic watch, electronic glasses, electronic helmet, electricity The equipment such as sub- bangle, electronics necklace, electronic clothes.
With reference to Fig. 7, Fig. 7 is second of structural schematic diagram of electronic equipment provided by the embodiments of the present application.
Electronic equipment 400 includes processor 401 and memory 402.Wherein, processor 401 electrically connects with memory 402 It connects.
Processor 401 is the control centre of electronic equipment 400, utilizes various interfaces and the entire electronic equipment of connection Various pieces, by running or calling the computer program being stored in memory 402, and calling to be stored in memory 402 Interior data execute the various functions and processing data of electronic equipment, to carry out integral monitoring to electronic equipment.
In the present embodiment, processor 401 in electronic equipment 400 can according to following step, by one or one with On the corresponding instruction of process of computer program be loaded into memory 402, and run by processor 401 and be stored in storage Computer program in device 402, thereby executing following steps:
When first antenna group transceiving radio frequency signal, the communications band of the first antenna group is obtained;
The interference source interfered to the first antenna group is determined according to the communications band;
If the interference source is in running order, target antenna group is determined from multiple second antenna sets;
The first antenna group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal.
In some embodiments, when determining target antenna group from the multiple second antenna sets, processor 301 is executed Following steps:
The operating mode of electronic equipment is obtained, the operating mode includes vertical screen mode and transverse screen mode;
Target antenna group is determined from the multiple second antenna sets according to the operation mode.
In some embodiments, target antenna group is determined from the multiple second antenna sets according to the operation mode When, processor 301 executes following steps:
According to the operation mode and user is accustomed to determining the electronic equipment using the gripping of the electronic equipment It is held position;
It will be held the second farthest antenna sets of position described in distance in the multiple second antenna sets and be determined as target day Line group.
In some embodiments, target antenna group is determined from the multiple second antenna sets according to the operation mode When, processor 301 executes following steps:
According to the operation mode and user is accustomed to determining the electronic equipment using the gripping of the electronic equipment It is held position;
It is held position according to described from the multiple second antenna sets and determines the third antenna not being held by a user Group;
Judge the third antenna group whether all for the diversity antenna of the communications band;
If at least one of described third antenna group is not the diversity antenna of the communications band, by the third day It is not that any antenna group of the diversity antenna of the communications band is determined as target antenna group in line group.
In some embodiments, judge the third antenna group whether all for the diversity antenna of the communications band after, Processor 301 also executes following steps:
It is corresponding that position is held if the third antenna group is all the diversity antenna of the communications band, described in acquisition Second antenna sets emit the first signal attenuation when the radiofrequency signal of the communications band;
The second letter being disturbed when first signal attenuation and the first antenna group are emitted the radiofrequency signal Number attenuation is compared;
If first signal attenuation is less than the second signal attenuation, position corresponding the is held by described Any antenna group in two antenna sets is determined as target antenna group.
Memory 402 can be used for storing computer program and data.Include in the computer program that memory 402 stores The instruction that can be executed in the processor.Computer program can form various functional modules.Processor 401 is stored in by calling The computer program of memory 402, thereby executing various function application and data processing.
It in some embodiments, is that the third structure of electronic equipment provided by the embodiments of the present application is shown with reference to Fig. 8, Fig. 8 It is intended to.
Wherein, electronic equipment 400 further include: radio circuit 403, display screen 404, control circuit 405, input unit 406, Voicefrequency circuit 407, sensor 408 and power supply 409.Wherein, processor 401 respectively with radio circuit 403, display screen 404, control Circuit 405, input unit 406, voicefrequency circuit 407, sensor 408 and power supply 409 processed are electrically connected.
Radio circuit 403 is for handling radiofrequency signal, to realize that electronic equipment passes through radiofrequency signal and base station or other electricity Communication between sub- equipment progress.
Display screen 404 can be used for showing information input by user or be supplied to user information and electronic equipment it is each Kind graphical user interface, these graphical user interface can be made of image, text, icon, video and any combination thereof.
Control circuit 405 and display screen 404 are electrically connected, and show information for controlling display screen 404.
Input unit 406 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Wherein, Input unit 406 may include fingerprint recognition mould group.
Voicefrequency circuit 407 can provide the audio interface between user and electronic equipment by loudspeaker, microphone.
Sensor 408 is for acquiring external environmental information.Sensor 408 may include ambient light sensor, acceleration One of sensors such as sensor, gyroscope are a variety of.
All parts of the power supply 409 for electron equipment 400 are powered.In some embodiments, power supply 409 can pass through Power-supply management system and processor 401 are logically contiguous, to realize management charging, electric discharge, Yi Jigong by power-supply management system The functions such as consumption management.
Although being not shown in Fig. 8, electronic equipment 400 can also include camera, bluetooth module etc., and details are not described herein.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of electronic equipment, the electronic equipment executes following steps: when the When one antenna sets transceiving radio frequency signal, the communications band of the first antenna group is obtained;It is determined according to the communications band to institute State the interference source that first antenna group interferes;If the interference source is in running order, from multiple second antenna sets really Make target antenna group;The first antenna group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal. The electronic equipment, can be from multiple when the interference source that the communications band to first antenna group interferes is in running order Target antenna group is determined in second antenna sets, and switches to target antenna group transceiving radio frequency signal, it is described so as to reduce Interference caused by radiofrequency signal of the interference source to electronic equipment, to improve the communication stability of electronic equipment.
The embodiment of the present application also provides a kind of storage medium, computer program is stored in the storage medium, when described When computer program is run on computers, the computer executes antenna switching method described in any of the above-described embodiment.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are relevant hardware can be instructed to complete by computer program, and the computer program can store in meter In calculation machine readable storage medium storing program for executing, the storage medium be can include but is not limited to: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Antenna switching method, device provided by the embodiment of the present application, storage medium and electronic equipment are carried out above It is discussed in detail.Specific examples are used herein to illustrate the principle and implementation manner of the present application, above embodiments Illustrate to be merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art, according to this The thought of application, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not answered It is interpreted as the limitation to the application.

Claims (12)

1. a kind of antenna switching method, be applied to electronic equipment, which is characterized in that the electronic equipment include first antenna group with And multiple second antenna sets, the antenna switching method include:
When the first antenna group transceiving radio frequency signal, the communications band of the first antenna group is obtained;
The interference source interfered to the first antenna group is determined according to the communications band;
If the interference source is in running order, target antenna group is determined from the multiple second antenna sets;
The first antenna group transceiving radio frequency signal is switched to the target antenna group transceiving radio frequency signal.
2. antenna switching method according to claim 1, which is characterized in that described true from the multiple second antenna sets The step of making target antenna group include:
The operating mode of the electronic equipment is obtained, the operating mode includes vertical screen mode and transverse screen mode;
Target antenna group is determined from the multiple second antenna sets according to the operation mode.
3. antenna switching method according to claim 2, which is characterized in that described according to the operation mode from described more The step of determining target antenna group in a second antenna sets include:
According to the operation mode and user is accustomed to determining being held for the electronic equipment using the gripping of the electronic equipment Hold position;
It will be held the second farthest antenna sets of position described in distance in the multiple second antenna sets and be determined as target antenna group.
4. antenna switching method according to claim 2, which is characterized in that described according to the operation mode from described more The step of determining target antenna group in a second antenna sets include:
According to the operation mode and user is accustomed to determining being held for the electronic equipment using the gripping of the electronic equipment Hold position;
The third antenna group not being held by a user is determined from the multiple second antenna sets according to the position that is held;
Judge the third antenna group whether all for the diversity antenna of the communications band;
If at least one of described third antenna group is not the diversity antenna of the communications band, by the third antenna group In be not that any antenna group of diversity antenna of the communications band is determined as target antenna group.
5. antenna switching method according to claim 4, which is characterized in that described whether all to judge the third antenna group For the communications band diversity antenna the step of after, further includes:
If the third antenna group is all the diversity antenna of the communications band, position corresponding second is held described in acquisition Antenna sets emit the first signal attenuation when the radiofrequency signal of the communications band;
The second signal being disturbed when first signal attenuation is emitted the radiofrequency signal with the first antenna group declines Decrement is compared;
If first signal attenuation is less than the second signal attenuation, to be held position second day corresponding by described Any antenna group in line group is determined as target antenna group.
6. a kind of antenna-switching device, be applied to electronic equipment, which is characterized in that the electronic equipment include first antenna group with And multiple second antenna sets, the antenna-switching device include:
Module is obtained, for obtaining the communications band of the first antenna group when the first antenna group transceiving radio frequency signal;
First determining module, for determining the interference source interfered to the first antenna group according to the communications band;
Second determining module is determined from the multiple second antenna sets if in running order for the interference source Target antenna group;
Switching module is believed for the first antenna group transceiving radio frequency signal to be switched to the target antenna group transceiving radio frequency Number.
7. antenna-switching device according to claim 6, which is characterized in that second determining module is used for:
The operating mode of the electronic equipment is obtained, the operating mode includes vertical screen mode and transverse screen mode;
Target antenna group is determined from the multiple second antenna sets according to the operation mode.
8. antenna-switching device according to claim 7, which is characterized in that according to the operation mode from the multiple When determining target antenna group in two antenna sets, second determining module is used for:
According to the operation mode and user is accustomed to determining being held for the electronic equipment using the gripping of the electronic equipment Hold position;
It will be held the second farthest antenna sets of position described in distance in the multiple second antenna sets and be determined as target antenna group.
9. antenna-switching device according to claim 7, which is characterized in that according to the operation mode from the multiple When determining target antenna group in two antenna sets, second determining module is used for:
According to the operation mode and user is accustomed to determining being held for the electronic equipment using the gripping of the electronic equipment Hold position;
The third antenna group not being held by a user is determined from the multiple second antenna sets according to the position that is held;
Judge the third antenna group whether all for the diversity antenna of the communications band;
If at least one of described third antenna group is not the diversity antenna of the communications band, by the third antenna group In be not that any antenna group of diversity antenna of the communications band is determined as target antenna group.
10. antenna switching method according to claim 9, which is characterized in that judge the third antenna group whether be all After the diversity antenna of the communications band, second determining module is also used to:
If the third antenna group is all the diversity antenna of the communications band, position corresponding second is held described in acquisition Antenna sets emit the first signal attenuation when the radiofrequency signal of the communications band;
The second signal being disturbed when first signal attenuation is emitted the radiofrequency signal with the first antenna group declines Decrement is compared;
If first signal attenuation is less than the second signal attenuation, to be held position second day corresponding by described Any antenna group in line group is determined as target antenna group.
11. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer journey When sequence is run on computers, so that the computer perform claim requires 1 to 5 described in any item antenna switching methods.
12. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory Computer program is contained, the processor is used for right of execution by calling the computer program stored in the memory Benefit requires 1 to 5 described in any item antenna switching methods.
CN201910272314.XA 2019-04-04 2019-04-04 Antenna switching method and device, storage medium and electronic equipment Active CN110012169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910272314.XA CN110012169B (en) 2019-04-04 2019-04-04 Antenna switching method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910272314.XA CN110012169B (en) 2019-04-04 2019-04-04 Antenna switching method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110012169A true CN110012169A (en) 2019-07-12
CN110012169B CN110012169B (en) 2021-06-29

Family

ID=67170064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910272314.XA Active CN110012169B (en) 2019-04-04 2019-04-04 Antenna switching method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110012169B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278132A (en) * 2019-07-17 2019-09-24 深圳成谷科技有限公司 A kind of antenna and switching method, antenna system and high speed charge equipment
CN111277314A (en) * 2020-01-21 2020-06-12 Oppo广东移动通信有限公司 Antenna routing method and related device
CN112118337A (en) * 2020-09-25 2020-12-22 Oppo(重庆)智能科技有限公司 Antenna control method and electronic equipment
CN112526864A (en) * 2019-09-03 2021-03-19 RealMe重庆移动通信有限公司 Wearable electronic device and antenna switching method
CN112928471A (en) * 2021-01-21 2021-06-08 维沃移动通信有限公司 Electronic device and antenna switching method
CN114900218A (en) * 2022-04-11 2022-08-12 荣耀终端有限公司 Method for obtaining antenna combination, electronic device and computer readable storage medium
WO2023093145A1 (en) * 2021-11-23 2023-06-01 深圳市锐尔觅移动通信有限公司 Electronic device
CN116599557A (en) * 2019-09-09 2023-08-15 华为技术有限公司 Antenna switching method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138745A1 (en) * 2007-11-26 2009-05-28 John Gregory Dorsey Electronic devices with radio-frequency collision resolution capabilities
CN207926659U (en) * 2018-02-08 2018-09-28 南昌黑鲨科技有限公司 A kind of mobile terminal
CN108649335A (en) * 2018-05-15 2018-10-12 Oppo广东移动通信有限公司 Antenna module, electronic equipment and antenna switching method
US20190007852A1 (en) * 2017-06-30 2019-01-03 Fujitsu Limited Radio wave interference analysis apparatus and radio wave interference analysis method
CN109274833A (en) * 2018-11-19 2019-01-25 Oppo广东移动通信有限公司 The method of adjustment and Related product of electromagnetic interference

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090138745A1 (en) * 2007-11-26 2009-05-28 John Gregory Dorsey Electronic devices with radio-frequency collision resolution capabilities
US20190007852A1 (en) * 2017-06-30 2019-01-03 Fujitsu Limited Radio wave interference analysis apparatus and radio wave interference analysis method
CN207926659U (en) * 2018-02-08 2018-09-28 南昌黑鲨科技有限公司 A kind of mobile terminal
CN108649335A (en) * 2018-05-15 2018-10-12 Oppo广东移动通信有限公司 Antenna module, electronic equipment and antenna switching method
CN109274833A (en) * 2018-11-19 2019-01-25 Oppo广东移动通信有限公司 The method of adjustment and Related product of electromagnetic interference

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278132A (en) * 2019-07-17 2019-09-24 深圳成谷科技有限公司 A kind of antenna and switching method, antenna system and high speed charge equipment
CN112526864A (en) * 2019-09-03 2021-03-19 RealMe重庆移动通信有限公司 Wearable electronic device and antenna switching method
CN116599557A (en) * 2019-09-09 2023-08-15 华为技术有限公司 Antenna switching method and device
CN111277314A (en) * 2020-01-21 2020-06-12 Oppo广东移动通信有限公司 Antenna routing method and related device
CN111277314B (en) * 2020-01-21 2023-12-19 Oppo广东移动通信有限公司 Antenna routing method and related device
CN112118337A (en) * 2020-09-25 2020-12-22 Oppo(重庆)智能科技有限公司 Antenna control method and electronic equipment
CN112928471A (en) * 2021-01-21 2021-06-08 维沃移动通信有限公司 Electronic device and antenna switching method
CN112928471B (en) * 2021-01-21 2024-02-27 维沃移动通信有限公司 Electronic equipment and antenna switching method
WO2023093145A1 (en) * 2021-11-23 2023-06-01 深圳市锐尔觅移动通信有限公司 Electronic device
CN114900218A (en) * 2022-04-11 2022-08-12 荣耀终端有限公司 Method for obtaining antenna combination, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN110012169B (en) 2021-06-29

Similar Documents

Publication Publication Date Title
CN110012169A (en) Antenna switching method, device, storage medium and electronic equipment
CN107425860B (en) Antenna switching system and mobile terminal
CN108347759A (en) A kind of anti-interference method and mobile terminal of flexible screen
CN110035149B (en) Multi-antenna optimization method and mobile terminal
CN108712178A (en) The method, apparatus and mobile terminal of intelligent tuning antenna
CN106911848B (en) Method for outputting prompt message and terminal equipment
CN110311704A (en) Antenna switching method and Related product
CN109697010A (en) A kind of suspended window position control method, terminal and computer readable storage medium
CN108494444A (en) Method of controlling antenna, antenna module, electronic equipment and storage medium
CN108291930A (en) Electronic equipment including antenna
CN110034876A (en) PUCCH resource instruction, processing method, network side equipment, user terminal
CN107590375A (en) Unlocking method and related product
CN110311696A (en) A kind of radio circuit and terminal
CN108646973A (en) Put out screen display methods, mobile terminal and computer readable storage medium
CN106850983A (en) One kind puts out screen control method, device and terminal
CN110247692A (en) Path switching method and Related product
CN108377157A (en) A kind of control method and device of Wi-Fi antennas
CN110308837A (en) File management method and terminal
CN107949021B (en) Switch the method and terminal device of receives link in terminal device
CN108601201B (en) Flexible circuit board and electronic device
CN109739300A (en) A kind of method of controlling antenna and terminal
CN109088973A (en) A kind of method of controlling antenna, device and mobile terminal
CN108494459A (en) Antenna switching method, device, storage medium and mobile terminal
CN108989546A (en) The proximity test method and Related product of electronic device
CN108375912A (en) Intelligent home furnishing control method and Related product

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