CN110635822B - Antenna control method and electronic equipment - Google Patents

Antenna control method and electronic equipment Download PDF

Info

Publication number
CN110635822B
CN110635822B CN201910927848.1A CN201910927848A CN110635822B CN 110635822 B CN110635822 B CN 110635822B CN 201910927848 A CN201910927848 A CN 201910927848A CN 110635822 B CN110635822 B CN 110635822B
Authority
CN
China
Prior art keywords
antenna
ground wire
connection combination
combination information
ground
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
CN201910927848.1A
Other languages
Chinese (zh)
Other versions
CN110635822A (en
Inventor
徐若宸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910927848.1A priority Critical patent/CN110635822B/en
Publication of CN110635822A publication Critical patent/CN110635822A/en
Application granted granted Critical
Publication of CN110635822B publication Critical patent/CN110635822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/06Receivers
    • H04B1/10Means associated with receiver for limiting or suppressing noise or interference
    • 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

The invention provides an antenna control method and electronic equipment. The method comprises the following steps: detecting a current working frequency band and a current working scene; identifying available antenna ground wire connection combination information matched with the current working frequency band and the current working scene according to the corresponding relation between a preset working frequency band and the antenna ground wire connection combination and the working scene; and switching the current ground wire connected with the antenna into the ground wire in the available antenna ground wire connection combination information. The invention can give consideration to the receiving of the antenna signal without interference under various working scenes.

Description

Antenna control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to an antenna control method and electronic equipment.
Background
At present, with the continuous development of electronic devices, screens of electronic devices tend to be full-screen. Therefore, the electronic device reserves less and less clearance for the antenna, and the layout environment of the antenna in the electronic device is more difficult.
The layout space of the antenna on the electronic device becomes narrower and narrower, and various conductive devices are arranged around the antenna, so that the signal receiving quality of the antenna is very susceptible to the environment where the antenna is located. The current antenna layout scheme can only ensure that the antenna has better performance in a small part of terminal working scenes; in many working scenarios, the antenna still causes large interference to the reception of antenna signals, which affects normal communication.
Disclosure of Invention
The embodiment of the invention provides an antenna control method and electronic equipment, and aims to solve the problem that the receiving of antenna signals is not interfered under the condition that an antenna layout scheme in the related technology cannot give consideration to various terminal working scenes.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an antenna control method, which is applied to an electronic device, and the method includes:
detecting a current working frequency band and a current working scene;
identifying available antenna ground wire connection combination information matched with the current working frequency band and the current working scene according to the corresponding relation between a preset working frequency band and the antenna ground wire connection combination and the working scene;
and switching the current ground wire connected with the antenna into the ground wire in the available antenna ground wire connection combination information.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
the first detection module is used for detecting the current working frequency band and the current working scene;
the first identification module is used for identifying available antenna ground wire connection combination information matched with the current working frequency band and the current working scene according to the corresponding relation between the preset working frequency band and the working scene and the antenna ground wire connection combination;
and the first switching module is used for switching the ground wire currently connected with the antenna into the ground wire in the available antenna ground wire connection combination information.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the antenna control method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the antenna control method are implemented.
In the embodiment of the present invention, through the preset corresponding relationship between the working frequency band and the working scene and the antenna ground connection combination, the current working scene of the electronic device and the available antenna ground connection combination information matching the current working frequency band of the signal requested to be received can be identified, and the ground connected to the antenna is switched to the ground in the available antenna ground connection combination information. Regardless of which working scene the electronic device is currently in and which working frequency band signal needs to be received, the method of the embodiment of the invention can flexibly adjust the grounding scheme of the antenna, thereby giving consideration to various working scenes and ensuring that the antenna signal is not interfered in receiving.
Drawings
Fig. 1 is a flowchart of an antenna control method according to an embodiment of the present invention;
fig. 2 is a flow chart of an antenna control method of one embodiment of the present invention;
FIG. 3 is a block diagram of an electronic device of one embodiment of the invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an antenna control method according to an embodiment of the present invention is shown, and is applied to an electronic device, where the method specifically includes the following steps:
step 101, detecting a current working frequency band and a current working scene;
and the current working frequency band is the working frequency band which is requested to be connected by the antenna of the electronic equipment. For example, the current operating band may include, but is not limited to, any of the following: a WiFi frequency band, a BT frequency band, a GNSS (Global Navigation Satellite System) frequency band, an LTE (Long Term Evolution of the universal Mobile telecommunications technology) frequency band, a WCDMA (Wideband Code Division Multiple Access) frequency band, a GSM (Global System for Mobile Communications ) frequency band, and a 5GNR (Global 5G standard) frequency band.
As the functions used by the user for the electronic device are different, the signals of the antenna of the electronic device in the operating frequency band requesting connection are also different. The current operating frequency band is specifically any one of the above listed or not listed, and the specific operating frequency band is not limited in the present invention, which depends on the functional module currently operated by the electronic device.
For example, if the electronic device is connected to a wireless network, the current operating frequency band is a WiFi frequency band.
In addition, the change of the antenna operating environment may cause the change of the antenna directivity, thereby causing the interference of the requested received signal. The current working scenario is any functional scenario of the electronic device that can cause a change in the working environment of the antenna. Therefore, there is a need to detect the current operating scenario of the electronic device. For example, the current working scenario may include, but is not limited to, any of: the method comprises the steps of front camera starting, WiFi function running, screen lightening, rear camera starting, CDMA (Code Division Multiple Access) working and the like.
102, identifying available antenna ground wire connection combination information matched with the current working frequency band and the current working scene according to the corresponding relation between a preset working frequency band and the working scene and the antenna ground wire connection combination;
the available antenna and ground wire connection combination is an antenna and ground wire connection combination in a normal working state, namely: under the current working scene, the signals of the current working frequency band are not interfered when being received; the different antenna and ground connection combinations represent combination schemes formed when the same antenna is connected with different grounds.
And different antenna states represent working states of the same antenna when the same antenna is grounded by adopting different grounding wire schemes. Preferably, the different antenna states represent states that the same antenna has when performing grounding based on a preset number of grounding wire points and using different grounding wire schemes.
For example, an antenna may have N variable grounding points, and when the antenna is laid out, the antenna may be selected to be connected or disconnected to each grounding point, i.e. each variable grounding point may have two typesThe state, then 2 can be generatedNAn antenna ground strategy. Each antenna ground strategy corresponds to one antenna ground scheme, and the working state of the antenna adopting one antenna ground strategy can be called as an antenna state, namely 2 can be generated hereNAnd an antenna state.
Optionally, before performing step 101, the method of the embodiment of the present invention may bring about 2 of the changes of the N variable grounding pointsNThe respective patterns of the antenna states and the antenna efficiencies were tested and the results obtained were saved, as exemplified in table 1.
Antenna state numbering Antenna directivity Efficiency of antenna
1 Degree of alpha A
2 Beta degree B
…… …… ……
2N Degree delta D
TABLE 1
In this way, it is possible to determine the directivity information and the efficiency information of the antenna in different antenna states based on one antenna with N variable grounding points. It should be noted that the antenna of the electronic device can only be in one antenna state at a time, and may not have multiple antenna states at the same time, and the directional information of the antennas in different antenna states is different.
The method of the embodiment of the invention can switch the antenna under different antenna states, so that the antenna with the changed antenna state can receive the signal required to be received with higher performance even if the working frequency band and the working scene are changed, and although the working environment of the antenna is changed after the working frequency band and the working scene of the antenna of the electronic equipment are changed, the method of the embodiment of the invention still can not interfere the received signal by the antenna with the switched antenna state through the scheme of switching the antenna state, namely the grounding wire of the antenna.
In order to achieve the technical purpose, the method according to the embodiment of the present invention may generate a corresponding relationship between the working frequency band, the working scene, and the antenna ground connection combination in advance.
In order to generate the corresponding relationship, the inventor performs development tests on each antenna state in table 1 and each operating frequency band that the electronic device described above needs to use one by one, and tests which operating scenarios cause interference to the antenna in the antenna state on signal reception of the operating frequency band when the antenna of the electronic device receives a signal of any operating frequency band in any antenna state.
Therefore, it can be determined that when a signal in a certain operating frequency band is used as an antenna for receiving a signal, and which grounding wire scheme is adopted by the antenna (i.e., which antenna state the operating state is in), there are operating scenarios that cause interference to signal reception of the antenna, and the operating scenarios are specifically which of the above-listed operating scenarios.
Table 2 shows, as an example, correspondence between operating frequency bands and operating scenes of the embodiments of the present invention and antenna states that cause interference to signal reception, where the operating frequency bands that need to be used by the electronic device include an LTE frequency band, a B3 frequency band, and a WiFi frequency band, and according to the above description, it can be determined that each antenna state corresponds to a unique antenna grounding scheme, that is, an antenna ground connection combination.
Figure BDA0002219397770000051
TABLE 2
The judgment criterion for the interference to the signal reception may be that the packet loss ratio is greater than a preset packet loss ratio threshold, or that the packet loss ratio is greater than a preset ratio threshold.
Taking the generation principle of the third record in table 2 as an example, for example, if the operating state of the antenna of the electronic device is the antenna state with the antenna state number of 3 in table 1 (i.e. the antenna ground combination with the antenna state number of 3 is used for grounding), when the antenna requests to receive the B3 signal, the electronic device is in the working scene of bright screen on the screen, when the B3 signal is received, the base station of B3 sends 100 data packets to the electronic device, but the electronic device receives only 40 data packets, the packet loss ratio is 60%, for example, the determination of signal interference is based on that the packet loss ratio is greater than the preset ratio threshold, where his preset packet loss ratio threshold is 30%, obviously, 60% is greater than 30%, so that it can be determined that the antenna of the electronic device is in the antenna state with the antenna state number of 3 in table 1 (i.e. the antenna ground combination with the antenna ground state number of 3), and when the electronic device is in a working scene with a bright screen, the reception interference of the B3 frequency band signal is caused. Thus, writing this data to Table 2 generates a third record in Table 2:
B3 screen bright screen 3
The third entry in Table 2
B3 Front camera opening 1、4、3
First entry in Table 2
And for the first record in table 2: it means that when the front camera of the electronic device is turned on, if the antenna of the electronic device wants to receive a signal in the B3 frequency band, the interference of signal reception is caused when the antenna is in the antenna state with the antenna state number 1 (i.e., grounded by using the antenna ground combination with the antenna state number 1), and the interference of signal reception is also caused when the antenna is in the antenna state with the antenna state number 4 (i.e., grounded by using the antenna ground combination with the antenna state number 4), and the interference is also caused when the antenna is in the antenna state with the antenna state number 3 (i.e., grounded by using the antenna ground combination with the antenna state number 3), so the first record in table 2 includes three antenna state numbers causing interference, which are 1, 4, and 3.
Through the above development and test process of the inventor, the corresponding relationship between the working frequency band, the working scene (i.e. the functional scene causing signal reception interference), and the antenna ground connection combination (or the antenna state) can be obtained.
Table 2 describes an example in which the antenna state in the correspondence relationship is a disabled antenna state (i.e., an antenna state that needs to be disabled) that may interfere with signal reception of the antenna. In other embodiments, the antenna state in the corresponding relationship may be an available antenna state or a disabled antenna state. For example, table 3 describes the correspondence among preset operating frequency bands, operating scenarios, and available antenna states (where each available antenna state corresponds to an antenna-ground connection combination) by taking the operating frequency bands, the operating scenarios, and the available antenna states as examples:
Figure BDA0002219397770000071
TABLE 3
Among them, "6 … … 2" in Table 2NThe ellipses of "represent 6-2NEach natural number within this interval.
It will be understood by those skilled in the art that for a set of operating bands and operating scenarios, the corresponding set of disabled antenna states and available antenna states is 2 of all of the aboveNAntenna state, also 2NAn antenna ground connection combination.
Optionally, in an embodiment, if the antenna operating state corresponding to the antenna-ground connection combination in the correspondence between the preset operating frequency band and the antenna-ground connection combination in step 102 is an available antenna state. Each antenna ground wire connection combination corresponds to one antenna working state. As shown in table 3, the available antenna ground connection combination information matched with the current working frequency band and the current working scene can be identified directly by querying the corresponding relationship.
Wherein the number of the matched available antenna ground connection combination information identified herein is one or more.
It should be noted that, when the antenna changes the grounding scheme, the directivity of the antenna will change, because the directivities of the antennas are different in different antenna states. The directivities of the antennas are different, and the directional deviation between the antennas and the signal source is different, so that the strength of the signals is different when the antennas with different directivities receive the signals.
Optionally, in another embodiment, when the antenna operating state corresponding to the antenna-ground connection combination in the corresponding relationship between the preset operating frequency band and the antenna-ground connection combination and the operating scene is the disabled antenna state, in executing step 102, it may be implemented through S201 to S203:
s201, identifying current antenna and ground wire connection combination information matched with the current working frequency band and the current working scene;
the current antenna ground connection combination information is all antenna ground connection combination information that can be generated according to the N variable grounding points of the antenna, for example, the current antenna ground connection combination information may include 2NAntenna ground connection combination information is disclosed.
S202, when the antenna working state in the corresponding relation of the preset working frequency band, the working scene and the antenna ground wire connection combination is forbidden, marking the ground wire information corresponding to the antenna in the forbidden working state as the ground wire exclusion information;
wherein, each antenna ground wire connection combination in the corresponding relation corresponds to an antenna working state.
Then, when a certain antenna-ground connection combination is used to connect the antenna and the ground, if the signal in the current operating frequency band is interfered during receiving in the current operating scenario, the antenna operating state corresponding to the antenna-ground connection combination is disabled, for example, the antenna state causing interference shown in table 2 is marked as disabled.
That is to say, when the antenna operating state corresponding to the antenna-ground connection combination in the preset corresponding relationship is disabled, the ground information connected to the antenna corresponding to the disabled operating state may be marked as excluding the ground information, that is, the antenna having the disabled operating state, and the ground point connected to the antenna is not needed to be used in this scenario.
Further, when the operating state of the antenna is disabled, the ground line in the grounding scheme adopted by the antenna needs to be marked as excluding the ground information, so that the ground information in the antenna-ground connection combination in the correspondence relationship in S202 can be marked as excluding the ground information.
S203, removing the information of excluding the ground wire from the current antenna ground wire connection combination information to obtain the available antenna ground wire connection combination information matched with the current working frequency band and the current working scene.
In this step, 2 from S201NAnd removing the antenna and ground wire connection combination connected with the excluded ground wire information from the antenna and ground wire connection combination information so as to obtain the usable antenna and ground wire connection combination information.
For example, the corresponding relationship is similar to table 2, the current working frequency band is B3, and the current working scene is that the front camera is turned on, then 3 grounding points corresponding to antenna states 1, 4, 3 respectively can be excluded, and then 2 grounding points are usedNRemoving 3 middle antenna ground wire connection combinations respectively connected with the antenna and the 3 grounding points from the antenna ground wire connection combination, and obtaining available antenna ground wire connection combination information including 2N-3 antenna ground connection combinations.
Taking the first record in table 2 of the current operating frequency band and the current operating scenario as an example, it can be known that the identified forbidden antenna states include three antenna states with antenna state numbers of 1, 4, and 3, and then the available antenna states identified in this step are antenna state numbers of 2, 5, and 6 … … 2, respectivelyNOf (2)N-3) antenna states.
B3 Front camera opening 1、4、3
First entry in Table 2
In the embodiment of the present invention, in consideration of that under most circumstances, when the electronic device is in a certain working frequency band and working scene, the number of available antenna states is large, and then by presetting the correspondence between the frequency band, the working scene, and the forbidden antenna state, the data storage amount in the correspondence can be reduced, and the memory utilization rate can be improved.
And 103, switching the ground wire currently connected with the antenna into the ground wire in the available antenna ground wire connection combination information.
Each antenna state corresponds to an antenna ground scheme (antenna ground strategy) of the antenna, so that the antenna ground scheme corresponding to the available antenna state can be adopted to adjust the antenna ground scheme, that is, the ground currently connected with the antenna is switched to the ground in the available antenna ground connection combination information, so that the antenna after the ground scheme is switched can receive signals of the current working frequency band with higher performance in the current working scene without being interfered by the current working scene.
In the embodiment of the present invention, through the preset corresponding relationship between the working frequency band and the working scene and the antenna ground connection combination, the current working scene of the electronic device and the available antenna ground connection combination information matching the current working frequency band of the signal requested to be received can be identified, and the ground connected to the antenna is switched to the ground in the available antenna ground connection combination information. Regardless of which working scene the electronic device is currently in and which working frequency band signal needs to be received, the method of the embodiment of the invention can flexibly adjust the grounding scheme of the antenna, thereby giving consideration to various working scenes and ensuring that the antenna signal is not interfered in receiving.
Optionally, after step 102 and before step 103, the method according to the embodiment of the present invention may further include:
s301, selecting a plurality of candidate antenna and ground wire connection combination information meeting preset conditions from the available antenna and ground wire connection combination information;
s302, acquiring first performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each candidate antenna;
parameters characterizing the performance data of the antenna may include, but are not limited to, signal strength; or signal strength and antenna efficiency.
As described in the foregoing embodiments, in the current operating frequency band and the current operating scenario, the number of available antenna ground connection combinations is generally multiple, and therefore, it is necessary to select target available antenna ground connection combination information from the multiple available antenna ground connection combination information based on performance data of the antenna when connected to each grounding point.
S303, identifying the plurality of first performance data (for example, identifying values thereof), and taking a maximum value as a target first performance data;
s304, identifying target available antenna ground connection combination information corresponding to the target first performance data in the plurality of candidate antenna ground connection combination information;
then, in step 103, the currently connected ground of the antenna is switched to the ground in the target available antenna ground connection combination information.
The ground wire connected with the antenna is switched to the ground wire corresponding to the highest performance data of the antenna, so that after the ground wire connected with the antenna is switched, compared with other available grounding schemes, when the antenna receives the signal of the current working frequency band in the current working scene, the antenna has higher signal strength and antenna efficiency, and the signal receiving quality is ensured.
In the embodiment of the invention, a certain amount of candidate antenna and ground wire connection combination information meeting the preset condition is selected from the plurality of available antenna and ground wire connection combination information, and then the ground wire in the target available antenna and ground wire connection combination information corresponding to the highest performance data is selected from the certain amount of candidate antenna and ground wire connection combination information and is used as the ground wire to be switched and connected to the antenna.
Alternatively, when S301 is executed, it may be implemented by the flow illustrated in fig. 2:
s401, acquiring first directivity information of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each available antenna;
in one example, as shown in table 1, in generating various antenna states, the directivity information of the antenna in each antenna state (i.e., when connecting the ground in each antenna ground connection combination) may be detected, wherein the less the directivity information of the antenna deviates from the direction of the base station transmitting the signal, the stronger the signal strength of the antenna. Therefore, in this step, the respective directivity information corresponding to each of the states of the available antennas, that is, the first directivity information of the antenna when connecting the ground in the ground connection combination information of each of the available antennas, can be obtained from table 1.
S402, selecting a plurality of first antenna ground connection combination information of which the difference of first directivity information is greater than a first threshold from the available antenna ground connection combination information;
for example, the available antenna states in the current operating frequency band and the current operating scene include 50, that is, the number of the available antenna ground connection combinations is 50, different combinations correspond to different grounding points, the serial numbers of the 50 available antenna states are nos. 1 to 50, because the directivity information of each available antenna state is different, and the antenna state corresponding to higher performance data is generally a plurality of first available antenna states having closer directivity information and being more consistent with the direction of the base station transmitting the signal of the current operating frequency band, the method of the embodiment of the present invention aims to determine the plurality of first available antenna states (that is, a plurality of first antenna ground connection combinations corresponding to the plurality of first available antenna states), and then only scan and acquire the performance data of the antenna respectively in the plurality of first available antenna states, the data processing amount can be reduced, the performance data of the plurality of first available antenna states can be better in the plurality of available antenna states, and the signal quality of a plurality of grounding schemes of the antenna respectively in the plurality of first available antenna states obtained after screening is ensured.
In order to obtain the ground connection combination information of the first antennas, a plurality of first available antenna states corresponding to different directions with a larger difference in directivity information may be selected in this step, for example, the difference between the directivity information of the antennas corresponding to any two first available antenna states is greater than 50 degrees.
For example, 5 first available antenna states with large directivity differences, which are numbered 1 to 5, are selected from the 50 available antenna states, so that 5 pieces of first antenna ground connection combination information, that is, 5 grounding schemes, corresponding to the 5 first available antenna states are acquired.
S403, acquiring second performance data of the antenna when the antenna is connected with the ground wire in each piece of first antenna ground wire connection combination information;
when the antennas are grounded respectively by adopting the grounding schemes in the above 5, 5 pieces of performance data of the antennas can be obtained.
S404, identifying the plurality of second performance data, and taking the maximum value as target second performance data;
wherein the largest performance data among the 5 performance data can be identified.
S405, identifying second antenna ground connection combination information corresponding to the target second performance data in the plurality of first antenna ground connection combination information;
the antenna ground connection combination corresponding to the maximum performance data in S404, for example, the antenna ground connection combination corresponding to the antenna state No. 1, may be identified from the 5 first antenna ground connection combinations, which is named as the second antenna ground connection combination information.
Therefore, the embodiment of the present invention may select the antenna grounding scheme corresponding to the available antenna state (here, antenna state No. 1) having the best direction with the highest performance from the plurality of first available antenna states in different antenna directions.
S406, acquiring second directivity information of the antenna when the antenna is connected with the ground wire in the second antenna ground wire connection combination information;
s407, selecting, from the available antenna ground connection combination information, a plurality of third antenna ground connection combination information whose difference between the directivity information and the second directivity information is smaller than a second threshold;
this step may select a plurality of available antenna states located near the optimal direction among the above-mentioned 50 available antenna states. The vicinity of the optimal direction, i.e., the angular difference (i.e., the above-mentioned difference) between the directivity information and the directivity information of the antenna state No. 1, is smaller than an angular threshold, e.g., 10 degrees.
For example, the directivity information selected here is 5 antenna ground combinations of the antenna located near the direction of the antenna in the antenna state No. 1 in the antenna states numbered 6 to 10, respectively, that is, the plurality of third antenna ground connection combination information in S407.
It should be noted that, since the directivity difference between the antenna states of No. 1 to No. 5 is large, in step S407, a plurality of pieces of third antenna ground connection combination information having directivity information near the directivity information of the antenna state of No. 1 may be selected from the antenna ground connection combinations corresponding to the remaining antenna states of No. 6 to No. 50, thereby improving the data filtering efficiency.
S408, acquiring third performance data of the antenna when the antenna is connected with the ground wire in each third antenna ground wire connection combination information;
the performance data of the antenna in the state of 6-10 # antenna can be obtained.
S409, determining whether a difference between the target second performance data and the plurality of third performance data is less than a third threshold;
and judging whether the difference value between the performance data corresponding to the No. 1 antenna state and the performance data corresponding to the 6 antenna states of the No. 6-10 antenna states is smaller than the third threshold value.
The inventor considers that the antennas with the first available antenna states with better performance should be opposite to the direction of the base station transmitting the signal, so that not only the directivity information of the antennas is closer, but also the performance is closer, that is, the difference of the performance data is smaller, therefore, the step determines whether the performance data of the antennas corresponding to the six antenna states is smaller, that is, the difference of any two sets of performance data in the 6 sets of performance data is smaller than the third threshold.
In one example, the performance data may be characterized in terms of signal strength, e.g., the third threshold is 3 db.
If yes, S410, selecting the multiple pieces of third antenna ground connection combination information and the second antenna ground connection combination information as multiple pieces of candidate antenna ground connection combination information;
if the difference between the 6 sets of performance data of the antennas in the 6 antenna states is smaller than the third threshold, the antenna ground connection combinations corresponding to the antenna state No. 1 and the antenna states No. 6 to 10 may be determined as the multiple candidate antenna ground connection combination information.
If not, the process goes to S403, and the antenna-ground connection combinations corresponding to the antenna states No. 6 to No. 10 are used as the first antenna-ground connection combination in S403 to perform a new round of circulation until S410 is executed to select a plurality of candidate antenna-ground connection combination information from the 50 available antenna-ground connection combinations corresponding to the 50 available antenna states in the above example.
In the embodiment of the present invention, a group of first antenna-ground connection combination information with a large difference in antenna direction is selected from a plurality of available antenna-ground connection combination information, then second directivity information of second antenna-ground connection combination information with the largest performance data value is determined from the group of first antenna-ground connection combination information, where the second directivity information is understood as the directivity of an antenna ground connection mode with the best signal performance among a plurality of antenna ground connection modes corresponding to the plurality of available antenna-ground connection combination information, and then a plurality of third antenna-ground connection combination information with the directivity information of an antenna near the second directivity information are selected from the plurality of available antenna-ground connection combination information, if the performance data of an antenna corresponding to each of the plurality of third antenna-ground connection combination information is different from the performance data corresponding to an antenna corresponding to the second antenna-ground connection combination with the best directivity information If the difference is small, the multiple pieces of third antenna ground connection combination information and the multiple pieces of second antenna ground connection combination information can be selected as multiple pieces of candidate antenna ground connection combination information meeting preset conditions, so that the performance of selecting the multiple pieces of available antenna ground connection combination information is high, the directivity information is basically the multiple pieces of candidate antenna ground connection combination information opposite to the signal transmitting direction of the base station transmitting the signal of the current working frequency band, and the screening efficiency and the screening quality of the multiple pieces of candidate antenna ground connection combination information obtained through initial screening are improved.
Alternatively, when S302 is executed, the following steps may be performed:
respectively switching the ground wires connected with the antennas into the ground wires in the ground wire connection combination information of each candidate antenna;
as described in the foregoing embodiment, each candidate antenna ground connection combination information corresponds to a ground point, and the ground points of different candidate antenna ground connection combination information are different, so that the ground lines connected to the antenna can be respectively switched to the ground lines in each candidate antenna ground connection combination information, thereby achieving the purpose of adjusting the grounding scheme of the antenna.
Acquiring intensity information of the antenna when receiving the signal of the current working frequency band after the antenna switches the ground wire every time;
after the ground wire connected with the antenna is switched to the ground wire in each candidate antenna ground wire connection combination, the strength information of the antenna when receiving the signal of the current working frequency can be obtained.
For example, if the antenna state corresponding to a certain candidate antenna ground connection combination is the antenna state No. 1, the directivity information of the antenna changes, that is, the antenna has the directivity information of α degrees corresponding to the antenna state No. 1 in table 1. After the directivity of the antenna is changed, the direction deviation between the antenna and the base station transmitting the current working frequency band is changed, so that the signal strength information of the antenna 1 when the antenna has the directivity information of alpha degrees and when the antenna receives the signal of the current working frequency band can be obtained.
For this signal strength information, it can be characterized by the negative of the amount of signal attenuation. For example, if the energy of the signal transmitted by the base station in the current operating frequency band is 100, and the energy of the signal received by the antenna of the electronic device in the antenna state No. 1 is 80, the energy of the signal is attenuated by 20, and the signal strength corresponding to the antenna state No. 1 is-20; if the energy of the signal transmitted by the base station in the current working frequency band is 100 and the energy of the signal received by the antenna of the electronic device in the antenna state No. 2 is 70, the energy of the signal is attenuated by 30, and the signal strength corresponding to the antenna state No. 2 is-30; therefore, the signal strength of the antenna in the antenna state No. 1 is higher than that in the antenna state No. 2.
And acquiring first performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each candidate antenna according to the strength information.
The signal strength information of the antenna can be used as performance data of the antenna when the antenna is connected with the ground wire in the corresponding candidate antenna ground wire connection combination; alternatively, the signal strength information corresponding to the antenna state and the antenna efficiency corresponding to the antenna state may be subjected to weighted summation, and the result of the weighted summation may be used as performance data corresponding to the antenna state.
The antenna efficiency in each antenna state is calculated in advance in table 1, and can be directly obtained for use.
In the embodiment of the invention, the antenna grounding scheme of the antenna is gradually adjusted to the ground wire in the ground wire connection combination information of each candidate antenna, so that the adjustment of the directivity information of the antenna is realized, and the performance data of the antenna when each grounding scheme is adopted is obtained by utilizing the signal intensity information of the antenna after the directivity information is adjusted when the antenna receives the signal of the current working frequency band, so that the performance data obtained by the method of the embodiment of the invention is more accurate, and the finally switched ground wire is also the antenna grounding scheme with the optimal actual signal quality.
It should be noted that, not only the step of obtaining the performance data of the antenna in S302 may be implemented by using the method in the embodiments of the present invention, but also the step of obtaining the performance data of a certain antenna related to any one of the embodiments of the present invention may be implemented by using the method in the embodiments of the present invention, and the implementation principles are similar, so that the present invention is not described in detail and only needs to refer to each other.
Optionally, after the currently connected ground of the antenna is switched to the ground in the target available antenna ground connection combination information, for example, the antenna state of the antenna is switched to the antenna state No. 5 corresponding to the highest performance data (e.g., M1) in the 50 available antenna states, the method according to the embodiment of the present invention may further include:
if the current working frequency band and the current working scene are not changed, and the reduction amount of the performance data of the antenna when the antenna is connected with the ground wires in the target available antenna ground wire connection combination information is larger than a fourth threshold value compared with the first performance data, selecting the next target available antenna ground wire connection combination information from the multiple candidate antenna ground wire connection combination information according to the sequence from high to low of the first performance data;
however, when the antenna receives a signal in the current operating frequency band, the performance data M2 of the antenna in the antenna state No. 5 is much lower than the previous highest performance data M1, for example, the absolute value of M1-M2 is greater than the fourth threshold, which indicates that there is external interference on the signal reception in the current operating frequency band around the electronic device, and the signal quality is degraded due to the change of the operating frequency band and the operating scene inside the non-electronic device. Here, according to the sequence from high to low of the first performance data obtained in S302 when the antenna is connected to the ground in each candidate antenna ground connection combination information, the antenna ground connection combination corresponding to the next antenna state (for example, the antenna state No. 8) with the next highest performance data after the antenna state No. 5 may be selected as the ground in the target available antenna ground connection combination information to which the ground connected to the antenna is to be switched.
And switching the ground wire connected with the antenna into the ground wire in the next target available antenna ground wire connection combination information.
The ground wire connected with the antenna can be switched to the ground wire in the antenna ground wire connection combination corresponding to the No. 8 antenna state.
In the embodiment of the present invention, when the electronic device receives a signal in a current operating frequency band, if external interference other than the electronic device causes that an antenna of the electronic device is connected to a ground in the target available antenna ground connection combination information, and performance data of the antenna in the current operating frequency band is greatly reduced when the antenna receives the signal in the current operating frequency band compared with that before, the ground in the target available antenna ground connection combination with higher performance data can be selected as a ground to which the ground connected by the antenna needs to be switched according to the sequence of performance data from high to low obtained when the antenna is connected to grounds in a plurality of candidate antenna ground connection combinations, so as to counter external interference of the signal and ensure that the signal can be received with higher performance under the external interference.
Optionally, in the above embodiment, after switching the antenna-connected ground to the ground in the next target available antenna-ground connection combination information, the method according to the embodiment of the present invention may further include:
detecting fourth performance data of the antenna when the antenna is connected with the ground wire in the next target available antenna ground wire connection combination information;
performance data of the antenna when the antenna is connected to the ground in the antenna-ground connection combination corresponding to the antenna state No. 8 may be detected, where the performance data is the performance data obtained by reacquiring the detection, and is not the first performance data extracted from the performance data obtained in S302. In this way, it can be ensured that the pre-stored performance data acquired in S302 due to various external factors is not the latest performance data of the antenna when the antenna is connected to each ground, and the accuracy of the acquired performance data is ensured.
Of course, in order to save time, the performance data of the antenna corresponding to the antenna state No. 8 may be acquired from the first performance data obtained in S302.
Acquiring a preset performance data interval corresponding to the target first performance data;
the embodiment of the invention presets a preset strategy of a performance data interval, wherein the preset strategy can be [ x-a, x + a ], and a is a preset constant forming the preset performance data interval, for example, 3; and x is the value of the target first performance data. In this step, the target first performance data may be obtained according to a preset policy, that is, the preset performance data interval of the highest performance data M1 is [ M1-3, M1+3 ].
If the fourth performance data does not belong to the preset performance data interval, selecting next target available antenna ground connection combination information from the multiple candidate antenna ground connection combination information again according to the sequence of the first performance data from high to low until the switching frequency of the ground connected with the antenna reaches a fifth threshold;
if the M2 is not within the range of the preset performance data interval [ M1-3, M1+3], selecting next target available antenna and ground connection combination information from the multiple candidate antenna and ground connection combination information again according to the sequence of the first performance data from high to low until the switching frequency of the ground connected with the antenna reaches a fifth threshold.
The principle of selecting the next target available antenna and ground connection combination information in this step is similar to the step of selecting the next target available antenna and ground connection combination information from the multiple candidate antenna and ground connection combination information according to the sequence of the first performance data from high to low in the above embodiments, and details are not repeated here, and it is enough to refer to the above.
Optionally, if the performance data of the antenna belongs to the preset performance data interval when the antenna is connected to the ground wire in the next target available antenna ground wire connection combination information obtained above, the process is ended.
And if the switching times of the ground wire connected with the antenna reach a fifth threshold value and the current performance data of the antenna does not belong to the preset performance data interval, skipping to the step 101 for execution.
That is to say, the method of the embodiment of the present invention preferentially selects the ground lines in the multiple candidate antenna ground line connection combination information acquired in advance. The ground wires connected with the antenna are selected according to the sequence from high to low of the first performance data, however, if the performance data of the antenna does not return to a certain range of the previous target first performance data after the ground wires connected with the antenna are switched, and the number of times that the next target available antenna ground wire connection combination information is selected according to the sequence from high to low of the first performance data reaches the upper limit, the step 101 may be executed again to execute the method of each embodiment of the present invention again.
In the embodiment of the invention, when the working frequency band and the working scene of the electronic equipment are not changed, but when the signal of the current working frequency band is received in the target antenna state, the performance data is suddenly weakened and is greatly attenuated, and then the electronic equipment can be judged to be interfered by the external signal; under the condition that the external signal interference is determined, the ground wire in the next target available antenna ground wire connection combination information with higher performance is selected from a plurality of first performance data of a plurality of candidate antenna ground wire connection combination information obtained in step S302 according to the sequence of the performance data from high to low for switching, however, if the performance data of the antenna after switching cannot be improved back to within a certain range of the previous target first performance data after several times of switching, the working scene and the working frequency can be re-detected to re-acquire the available antenna state, so as to solve the external interference of the signal.
Optionally, after step 103, the method according to the embodiment of the present invention may further include:
when the current working frequency band changes, identifying available antenna ground wire connection combination information matched with the changed current working frequency band and the current working scene according to the corresponding relation between the preset working frequency band and the working scene and the antenna ground wire connection combination; and/or when the current working scene changes, identifying available antenna ground connection combination information matched with the current working frequency band and the changed current working scene according to a preset working frequency band and a corresponding relation between the working scene and the antenna ground connection combination;
in this embodiment, the step 101 may be executed in real time or according to a certain period, and as long as it is detected that the current operating frequency band changes from the last detected current operating frequency band and/or that the current operating scene of the electronic device changes from the last detected current operating scene, the method of the embodiment of the present invention may re-query the corresponding relationship to identify the available antenna ground connection combination information corresponding to the latest current operating scene and the latest current operating frequency band.
The latest current working scene and the latest current working frequency band comprise the following conditions:
the first condition is as follows: the latest current working scene is not changed, and is still the current working scene detected when the step 101 is executed last time, the latest current working frequency band is changed, and is not the working frequency detected when the step 101 is executed last time;
case two: the latest current working scene changes, is not the working scene detected when the step 101 was executed last time, and the latest current working frequency band does not change and is still the working frequency detected when the step 101 was executed last time;
case three: the latest current working scene changes, and is not the current working scene detected when the step 101 was executed last time, and the latest current working frequency band also changes, and is not the current working frequency detected when the step 101 was executed last time;
in any of the first to third cases, the matching available antenna-ground connection combination information needs to be searched again from the preset corresponding relationship according to the latest current working scene and the latest current working frequency band.
And switching the ground wire currently connected with the antenna to the ground wire in the re-identified available antenna ground wire connection combination information.
The re-identified available antenna ground connection combination information may be one of the available antenna ground connection combination information re-found in the above steps.
In the embodiment of the present invention, when there is internal interference of the electronic device, for example, a working scene of the electronic device changes, and/or a frequency band of a signal to be received by an antenna of the electronic device changes, the method of the embodiment of the present invention may re-query a preset corresponding relationship based on the changed working scene and working frequency band to obtain an available antenna frequency band suitable for a working environment formed by the changed working scene and the changed working frequency band, and switch an antenna state of the antenna to a re-queried available antenna state, so that the method of the embodiment of the present invention may be used in both cases, so that a grounding scheme of the antenna can be flexibly adjusted, and the antenna after the grounding scheme is adjusted can receive a signal of a current working frequency band in a latest working environment with higher quality, the interference of the internal working environment of the antenna is avoided, the interference caused by the antenna directivity change due to the change of various antenna environments can be effectively avoided, the communication stability is improved, and the method has a strong improvement effect on the signal instability caused by the increasingly popular scheme of the extension type camera of the full-screen mobile phone.
Referring to FIG. 3, a block diagram of an electronic device of one embodiment of the invention is shown. The electronic device of the embodiment of the invention can realize the details of the antenna control method in the embodiment and achieve the same effect. The electronic device shown in fig. 3 includes:
a first detection module 51, configured to detect a current working frequency band and a current working scene;
a first identification module 52, configured to identify available antenna and ground connection combination information matched with the current working frequency band and the current working scene according to a preset corresponding relationship between the working frequency band and the working scene and an antenna and ground connection combination;
and the first switching module 53 is configured to switch the ground wire currently connected to the antenna to the ground wire in the available antenna and ground wire connection combination information.
Optionally, the first identification module 52 includes:
the first identification submodule is used for identifying current antenna ground wire connection combination information matched with the current working frequency band and the current working scene;
the marking submodule is used for marking the ground wire information corresponding to the antenna in the forbidden working state as the ground wire information when the working state of the antenna in the corresponding relation of the preset working frequency band, the working scene and the antenna ground wire connection combination is forbidden;
and the removing submodule is used for removing the grounding wire removing information from the current antenna grounding wire connecting combination information to obtain the available antenna grounding wire connecting combination information matched with the current working frequency band and the current working scene.
Optionally, the electronic device further comprises:
the first selection module is used for selecting a plurality of candidate antenna ground wire connection combination information meeting preset conditions from the available antenna ground wire connection combination information;
the first acquisition module is used for acquiring first performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each candidate antenna;
the second identification module is used for identifying a plurality of first performance data and taking the maximum value as target first performance data;
a third identification module, configured to identify target available antenna ground connection combination information corresponding to the target first performance data in the multiple candidate antenna ground connection combination information;
the first switching module 53 includes:
and the first switching submodule is used for switching the ground wire currently connected with the antenna into the ground wire in the target available antenna ground wire connection combination information.
Optionally, the first selecting module includes:
the first obtaining submodule is used for obtaining first directivity information when the antenna is connected with the ground wire in the ground wire connection combination information of each available antenna;
the first selection submodule is used for selecting a plurality of pieces of first antenna ground wire connection combination information of which the difference of first directivity information is larger than a first threshold from the available antenna ground wire connection combination information;
the second obtaining submodule is used for obtaining second performance data when the antenna is connected with the ground wire in the ground wire connection combination information of each first antenna;
the second identification submodule is used for identifying the plurality of second performance data and taking the maximum value as target second performance data;
the third identification submodule is used for identifying second antenna and ground wire connection combination information corresponding to the target second performance data in the plurality of first antenna and ground wire connection combination information;
the second obtaining submodule is used for obtaining second directivity information of the antenna when the antenna is connected with the ground wire in the second antenna ground wire connection combination information;
a second selection submodule, configured to select, from the available antenna ground connection combination information, a plurality of third antenna ground connection combination information pieces, where a difference between directivity information and the second directivity information is smaller than a second threshold value;
the third obtaining submodule is used for obtaining third performance data when the antenna is connected with the ground wire in the ground wire connection combination information of each third antenna;
a judgment sub-module, configured to judge whether a difference between the target second performance data and the plurality of third performance data is smaller than a third threshold;
and the third selection submodule is used for selecting the plurality of third antenna ground wire connection combination information and the second antenna ground wire connection combination information as a plurality of candidate antenna ground wire connection combination information if the third selection submodule is used for selecting the plurality of third antenna ground wire connection combination information and the second antenna ground wire connection combination information as the plurality of candidate antenna ground wire connection combination information.
Optionally, the first obtaining module includes:
the second switching submodule is used for respectively switching the ground wires connected with the antennas into the ground wires in the ground wire connection combination information of each candidate antenna;
the fourth obtaining submodule is used for obtaining the intensity information of the antenna when receiving the signal of the current working frequency band after the antenna switches the ground wire every time;
and the fifth obtaining submodule is used for obtaining first performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each candidate antenna according to the strength information.
Optionally, the electronic device further comprises:
a second selecting module, configured to select, if the current operating frequency band and the current operating scenario do not change, and a decrease amount of performance data of the antenna when connected to a ground line in the target available antenna ground line connection combination information is greater than a fourth threshold compared with the first performance data, next target available antenna ground line connection combination information from the multiple candidate antenna ground line connection combination information according to a sequence from high to low of the first performance data;
and the second switching module is used for switching the ground wire connected with the antenna into the ground wire in the next target available antenna ground wire connection combination information.
Optionally, the electronic device further comprises:
the second detection module is used for detecting fourth performance data when the antenna is connected with the ground wire in the next target available antenna ground wire connection combination information;
the second acquisition module is used for acquiring a preset performance data interval corresponding to the target first performance data;
a third selecting module, configured to, if the fourth performance data does not belong to the preset performance data interval, select, again, next target available antenna ground connection combination information from the multiple candidate antenna ground connection combination information according to a sequence from high to low of the first performance data, until the number of times of switching the ground lines connected to the antennas reaches a fifth threshold;
the first detecting module 51 is further configured to detect a current working frequency band and a current working scene if the switching frequency of the ground wire connected to the antenna reaches a fifth threshold and the current performance data of the antenna does not belong to the preset performance data interval.
Optionally, the electronic device further comprises:
a fourth identification module, configured to identify, when the current working frequency band changes, available antenna-ground connection combination information that matches the changed current working frequency band and the current working scene according to a preset correspondence between the working frequency band and the working scene and an antenna-ground connection combination; and/or when the current working scene changes, identifying available antenna ground connection combination information matched with the current working frequency band and the changed current working scene according to a preset working frequency band and a corresponding relation between the working scene and the antenna ground connection combination;
and the third switching module is used for switching the ground wire currently connected with the antenna to the ground wire in the re-identified available antenna ground wire connection combination information.
In the embodiment of the present invention, through the preset corresponding relationship between the working frequency band and the working scene and the antenna ground connection combination, the current working scene of the electronic device and the available antenna ground connection combination information matching the current working frequency band of the signal requested to be received can be identified, and the ground connected to the antenna is switched to the ground in the available antenna ground connection combination information. Regardless of which working scene the electronic device is currently in and which working frequency band signal needs to be received, the method of the embodiment of the invention can flexibly adjust the grounding scheme of the antenna, thereby giving consideration to various working scenes and ensuring that the antenna signal is not interfered in receiving.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
Figure 4 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 410, configured to detect a current operating frequency band and a current operating scenario; identifying available antenna ground wire connection combination information matched with the current working frequency band and the current working scene according to the corresponding relation between a preset working frequency band and the antenna ground wire connection combination and the working scene; and switching the current ground wire connected with the antenna into the ground wire in the available antenna ground wire connection combination information.
In the embodiment of the present invention, through the preset corresponding relationship between the working frequency band and the working scene and the antenna ground connection combination, the current working scene of the electronic device and the available antenna ground connection combination information matching the current working frequency band of the signal requested to be received can be identified, and the ground connected to the antenna is switched to the ground in the available antenna ground connection combination information. Regardless of which working scene the electronic device is currently in and which working frequency band signal needs to be received, the method of the embodiment of the invention can flexibly adjust the grounding scheme of the antenna, thereby giving consideration to various working scenes and ensuring that the antenna signal is not interfered in receiving.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-mentioned antenna control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned antenna control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (18)

1. An antenna control method applied to an electronic device, the method comprising:
detecting a current working frequency band and a current working scene;
identifying available antenna ground wire connection combination information matched with the current working frequency band and the current working scene according to the corresponding relation between a preset working frequency band and the antenna ground wire connection combination and the working scene;
switching the ground wire currently connected with the antenna into the ground wire in the available antenna ground wire connection combination information;
when different ground wire connection schemes are adopted for grounding wires, the directional information of the antenna is different.
2. The method of claim 1, wherein identifying available antenna ground connection combination information that matches the current operating frequency band and the current operating scenario comprises:
identifying current antenna ground wire connection combination information matched with the current working frequency band and the current working scene;
when the antenna working state in the corresponding relation of the preset working frequency band, the working scene and the antenna ground connection combination is forbidden, marking the ground information corresponding to the antenna in the forbidden working state as the excluded ground information;
and removing the grounding wire exclusion information from the current antenna grounding wire connection combination information to obtain the available antenna grounding wire connection combination information matched with the current working frequency band and the current working scene.
3. The method of claim 1,
before the switching the currently connected ground of the antenna to the ground in the available antenna ground connection combination information, the method further includes:
selecting a plurality of candidate antenna and ground wire connection combination information meeting preset conditions from the available antenna and ground wire connection combination information;
acquiring first performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each candidate antenna;
identifying a plurality of first performance data, and taking the maximum value as target first performance data;
identifying target available antenna ground connection combination information corresponding to the target first performance data in the plurality of candidate antenna ground connection combination information;
the switching the current antenna connection ground wire to the ground wire in the available antenna ground wire connection combination information includes:
and switching the current ground wire connected with the antenna into the ground wire in the target available antenna ground wire connection combination information.
4. The method according to claim 3, wherein the selecting a plurality of candidate antenna ground connection combination information meeting a preset condition from the available antenna ground connection combination information comprises:
acquiring first directivity information of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each available antenna;
selecting a plurality of first antenna ground wire connection combination information of which the difference of first directivity information is greater than a first threshold from the available antenna ground wire connection combination information;
acquiring second performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each first antenna;
identifying the plurality of second performance data and taking the maximum value as target second performance data;
identifying second antenna ground wire connection combination information corresponding to the target second performance data in the plurality of first antenna ground wire connection combination information;
acquiring second directivity information of the antenna when the antenna is connected with the ground wire in the second antenna ground wire connection combination information;
selecting a plurality of third antenna ground connection combination information of which the difference between the directivity information and the second directivity information is smaller than a second threshold value from the available antenna ground connection combination information;
acquiring third performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each third antenna;
determining whether a difference between the target second performance data and a plurality of the third performance data is less than a third threshold;
and if so, selecting the third antenna ground connection combination information and the second antenna ground connection combination information as candidate antenna ground connection combination information.
5. The method of claim 3, wherein the obtaining the first performance data of the antenna in connecting the ground wires in the ground wire connection combination information of each candidate antenna comprises:
respectively switching the ground wires connected with the antennas into the ground wires in the ground wire connection combination information of each candidate antenna;
acquiring intensity information of the antenna when receiving the signal of the current working frequency band after the antenna switches the ground wire every time;
and acquiring first performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each candidate antenna according to the strength information.
6. The method of claim 3,
after the current ground wire connected to the antenna is switched to the ground wire in the target available antenna ground wire connection combination information, the method further includes:
if the current working frequency band and the current working scene are not changed, and the reduction amount of the performance data of the antenna when the antenna is connected with the ground wires in the target available antenna ground wire connection combination information is larger than a fourth threshold value compared with the first performance data, selecting the next target available antenna ground wire connection combination information from the multiple candidate antenna ground wire connection combination information according to the sequence from high to low of the first performance data;
and switching the ground wire connected with the antenna into the ground wire in the next target available antenna ground wire connection combination information.
7. The method of claim 6, wherein after switching the antenna connection ground to the ground in the next target available antenna ground connection combination information, the method further comprises:
detecting fourth performance data of the antenna when the antenna is connected with the ground wire in the next target available antenna ground wire connection combination information;
acquiring a preset performance data interval corresponding to the target first performance data;
if the fourth performance data does not belong to the preset performance data interval, selecting next target available antenna ground connection combination information from the multiple candidate antenna ground connection combination information again according to the sequence of the first performance data from high to low until the switching frequency of the ground connected with the antenna reaches a fifth threshold;
and if the switching times of the ground wire connected with the antenna reach a fifth threshold value and the current performance data of the antenna do not belong to the preset performance data interval, re-executing the step of detecting the current working frequency band and the current working scene.
8. The method of claim 1, wherein after switching the currently connected ground of the antenna to the ground in the available antenna ground connection combination information, the method further comprises:
when the current working frequency band changes, identifying available antenna ground wire connection combination information matched with the changed current working frequency band and the current working scene according to the corresponding relation between the preset working frequency band and the working scene and the antenna ground wire connection combination; and/or when the current working scene changes, identifying available antenna ground connection combination information matched with the current working frequency band and the changed current working scene according to a preset working frequency band and a corresponding relation between the working scene and the antenna ground connection combination;
and switching the ground wire currently connected with the antenna to the ground wire in the re-identified available antenna ground wire connection combination information.
9. An electronic device, characterized in that the electronic device comprises:
the first detection module is used for detecting the current working frequency band and the current working scene;
the first identification module is used for identifying available antenna ground wire connection combination information matched with the current working frequency band and the current working scene according to the corresponding relation between the preset working frequency band and the working scene and the antenna ground wire connection combination;
the first switching module is used for switching the ground wire currently connected with the antenna into the ground wire in the available antenna ground wire connection combination information;
when different ground wire connection schemes are adopted for grounding wires, the directional information of the antenna is different.
10. The electronic device of claim 9, wherein the first identification module comprises:
the first identification submodule is used for identifying current antenna ground wire connection combination information matched with the current working frequency band and the current working scene;
the marking submodule is used for marking the ground wire information corresponding to the antenna in the forbidden working state as the ground wire information when the working state of the antenna in the corresponding relation of the preset working frequency band, the working scene and the antenna ground wire connection combination is forbidden;
and the removing submodule is used for removing the grounding wire removing information from the current antenna grounding wire connecting combination information to obtain the available antenna grounding wire connecting combination information matched with the current working frequency band and the current working scene.
11. The electronic device of claim 9,
the electronic device further includes:
the first selection module is used for selecting a plurality of candidate antenna ground wire connection combination information meeting preset conditions from the available antenna ground wire connection combination information;
the first acquisition module is used for acquiring first performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each candidate antenna;
the second identification module is used for identifying a plurality of first performance data and taking the maximum value as target first performance data;
a third identification module, configured to identify target available antenna ground connection combination information corresponding to the target first performance data in the multiple candidate antenna ground connection combination information;
the first switching module includes:
and the first switching submodule is used for switching the ground wire currently connected with the antenna into the ground wire in the target available antenna ground wire connection combination information.
12. The electronic device of claim 11, wherein the first selection module comprises:
the first obtaining submodule is used for obtaining first directivity information when the antenna is connected with the ground wire in the ground wire connection combination information of each available antenna;
the first selection submodule is used for selecting a plurality of pieces of first antenna ground wire connection combination information of which the difference of first directivity information is larger than a first threshold from the available antenna ground wire connection combination information;
the second obtaining submodule is used for obtaining second performance data when the antenna is connected with the ground wire in the ground wire connection combination information of each first antenna;
the second identification submodule is used for identifying the plurality of second performance data and taking the maximum value as target second performance data;
the third identification submodule is used for identifying second antenna and ground wire connection combination information corresponding to the target second performance data in the plurality of first antenna and ground wire connection combination information;
the second obtaining submodule is used for obtaining second directivity information of the antenna when the antenna is connected with the ground wire in the second antenna ground wire connection combination information;
a second selection submodule, configured to select, from the available antenna ground connection combination information, a plurality of third antenna ground connection combination information pieces, where a difference between directivity information and the second directivity information is smaller than a second threshold value;
the third obtaining submodule is used for obtaining third performance data when the antenna is connected with the ground wire in the ground wire connection combination information of each third antenna;
a judgment sub-module, configured to judge whether a difference between the target second performance data and the plurality of third performance data is smaller than a third threshold;
and the third selection submodule is used for selecting the plurality of third antenna ground wire connection combination information and the second antenna ground wire connection combination information as a plurality of candidate antenna ground wire connection combination information if the third selection submodule is used for selecting the plurality of third antenna ground wire connection combination information and the second antenna ground wire connection combination information as the plurality of candidate antenna ground wire connection combination information.
13. The electronic device of claim 11, wherein the first obtaining module comprises:
the second switching submodule is used for respectively switching the ground wires connected with the antennas into the ground wires in the ground wire connection combination information of each candidate antenna;
the fourth obtaining submodule is used for obtaining the intensity information of the antenna when receiving the signal of the current working frequency band after the antenna switches the ground wire every time;
and the fifth obtaining submodule is used for obtaining first performance data of the antenna when the antenna is connected with the ground wire in the ground wire connection combination information of each candidate antenna according to the strength information.
14. The electronic device of claim 11, further comprising:
a second selecting module, configured to select, if the current operating frequency band and the current operating scenario do not change, and a decrease amount of performance data of the antenna when connected to a ground line in the target available antenna ground line connection combination information is greater than a fourth threshold compared with the first performance data, next target available antenna ground line connection combination information from the multiple candidate antenna ground line connection combination information according to a sequence from high to low of the first performance data;
and the second switching module is used for switching the ground wire connected with the antenna into the ground wire in the next target available antenna ground wire connection combination information.
15. The electronic device of claim 14, further comprising:
the second detection module is used for detecting fourth performance data when the antenna is connected with the ground wire in the next target available antenna ground wire connection combination information;
the second acquisition module is used for acquiring a preset performance data interval corresponding to the target first performance data;
a third selecting module, configured to, if the fourth performance data does not belong to the preset performance data interval, select, again, next target available antenna ground connection combination information from the multiple candidate antenna ground connection combination information according to a sequence from high to low of the first performance data, until the number of times of switching the ground lines connected to the antennas reaches a fifth threshold;
the first detection module is further configured to detect a current working frequency band and a current working scene if the switching frequency of the ground wire connected to the antenna reaches a fifth threshold and the current performance data of the antenna does not belong to the preset performance data interval.
16. The electronic device of claim 9, further comprising:
a fourth identification module, configured to identify, when the current working frequency band changes, available antenna-ground connection combination information that matches the changed current working frequency band and the current working scene according to a preset correspondence between the working frequency band and the working scene and an antenna-ground connection combination; and/or when the current working scene changes, identifying available antenna ground connection combination information matched with the current working frequency band and the changed current working scene according to a preset working frequency band and a corresponding relation between the working scene and the antenna ground connection combination;
and the third switching module is used for switching the ground wire currently connected with the antenna to the ground wire in the re-identified available antenna ground wire connection combination information.
17. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the antenna control method according to any one of claims 1 to 8.
18. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the antenna control method according to any one of claims 1 to 8.
CN201910927848.1A 2019-09-27 2019-09-27 Antenna control method and electronic equipment Active CN110635822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910927848.1A CN110635822B (en) 2019-09-27 2019-09-27 Antenna control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910927848.1A CN110635822B (en) 2019-09-27 2019-09-27 Antenna control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110635822A CN110635822A (en) 2019-12-31
CN110635822B true CN110635822B (en) 2021-06-04

Family

ID=68973421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910927848.1A Active CN110635822B (en) 2019-09-27 2019-09-27 Antenna control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110635822B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113067609B (en) * 2021-03-31 2022-09-23 联想(北京)有限公司 Communication control method, device and communication equipment
CN114598371B (en) * 2022-05-10 2022-09-09 荣耀终端有限公司 Method for acquiring antenna combination, electronic device and computer readable storage medium
CN116053779B (en) * 2022-07-13 2023-10-20 荣耀终端有限公司 Electronic device and antenna control method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102005640A (en) * 2009-08-28 2011-04-06 深圳富泰宏精密工业有限公司 Wireless communication device
CN205583147U (en) * 2016-04-18 2016-09-14 深圳市锦鸿无线科技有限公司 Cell -phone antenna of multifrequency section is realized to tuning switch
CN206480773U (en) * 2016-12-29 2017-09-08 歌尔股份有限公司 A kind of intelligent watch and its array signal processing circuit
CN206481297U (en) * 2016-12-29 2017-09-08 歌尔股份有限公司 A kind of intelligent watch and its array signal processing circuit
CN107959103A (en) * 2017-12-28 2018-04-24 上海传英信息技术有限公司 A kind of antenna of mobile terminal and the mobile terminal with the antenna
CN109474302A (en) * 2018-10-31 2019-03-15 维沃移动通信有限公司 A kind of configuration method of antenna, device and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102005640A (en) * 2009-08-28 2011-04-06 深圳富泰宏精密工业有限公司 Wireless communication device
CN205583147U (en) * 2016-04-18 2016-09-14 深圳市锦鸿无线科技有限公司 Cell -phone antenna of multifrequency section is realized to tuning switch
CN206480773U (en) * 2016-12-29 2017-09-08 歌尔股份有限公司 A kind of intelligent watch and its array signal processing circuit
CN206481297U (en) * 2016-12-29 2017-09-08 歌尔股份有限公司 A kind of intelligent watch and its array signal processing circuit
CN107959103A (en) * 2017-12-28 2018-04-24 上海传英信息技术有限公司 A kind of antenna of mobile terminal and the mobile terminal with the antenna
CN109474302A (en) * 2018-10-31 2019-03-15 维沃移动通信有限公司 A kind of configuration method of antenna, device and terminal

Also Published As

Publication number Publication date
CN110635822A (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN110149132B (en) Transmitting antenna switching method and terminal equipment
CN111835488B (en) Method for determining mapping of antenna port and terminal
CN109905907B (en) Network searching method and mobile terminal
CN110891305B (en) Power control device and method and electronic equipment
CN111565078B (en) Channel detection method in frequency division duplex mode, radio frequency circuit and electronic equipment
CN111029772B (en) Antenna circuit, electronic device and method for adjusting antenna performance
CN110635822B (en) Antenna control method and electronic equipment
CN110035149B (en) Multi-antenna optimization method and mobile terminal
CN110289885B (en) Antenna tuning method and terminal
CN109739300B (en) Antenna control method and terminal
CN109088973B (en) Antenna control method and device and mobile terminal
CN111417185A (en) Transmission power control method and related equipment
CN110798235A (en) Terminal control method and electronic equipment
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
CN109743141B (en) Data transmission adjusting method and terminal equipment
CN111050410A (en) Antenna control method and electronic equipment
CN108879856B (en) Charging method and terminal
CN109343811B (en) Display adjustment method and terminal equipment
CN108540659B (en) Method, terminal and computer readable storage medium for reducing TDD noise influence
CN108512616B (en) Signal intensity display method, mobile terminal and computer readable storage medium
CN110730013B (en) Method for improving transmission stray and mobile terminal
CN111328132B (en) Method for adjusting transmitting power and electronic equipment
CN110740265B (en) Image processing method and terminal equipment
CN111061407B (en) Video program operation control method, electronic device, and storage medium
CN110636530B (en) Method for processing adjacent channel interference and terminal equipment

Legal Events

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