CN108810260B - Antenna switching control method and related product - Google Patents
Antenna switching control method and related product Download PDFInfo
- Publication number
- CN108810260B CN108810260B CN201810523103.4A CN201810523103A CN108810260B CN 108810260 B CN108810260 B CN 108810260B CN 201810523103 A CN201810523103 A CN 201810523103A CN 108810260 B CN108810260 B CN 108810260B
- Authority
- CN
- China
- Prior art keywords
- antenna
- electronic device
- magnetic field
- strength value
- target
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B1/00—Details 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/38—Transceivers, 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/40—Circuits
- H04B1/401—Circuits for selecting or indicating operating mode
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses an antenna switching control method and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises a first antenna and a second antenna, and the method comprises the following steps: acquiring the current position of the electronic equipment; determining a first magnetic field interference strength value to which the first antenna in use corresponding to the current location is subjected; and when the first magnetic field interference strength value is larger than a first preset threshold value, switching the first antenna to the second antenna. By adopting the embodiment of the application, when the electronic equipment is interfered by an external magnetic field, the antenna switching is realized, and the user experience is improved.
Description
Technical Field
The present application relates to the field of electronic devices, and in particular, to an antenna switching control method and related products.
Background
With the widespread use of electronic devices (such as mobile phones, tablet computers, and the like), the electronic devices have more and more applications and more powerful functions, and the electronic devices are developed towards diversification and personalization, and become indispensable electronic products in the life of users. Users usually interact with the electronic device through finger touch, voice input, and other forms to control the electronic device to complete various functions.
Taking a mobile phone as an example, currently, a plurality of antennas are arranged in an electronic device so as to be switched to another antenna when a current antenna signal is not good, but the antenna switching of the electronic device is not flexible enough under the condition that the mobile phone is interfered by an external magnetic field, so that the user experience is reduced.
Disclosure of Invention
The embodiment of the application provides an antenna switching control method and a related product, which can realize antenna switching when an electronic device is interfered by an external magnetic field, and improve user experience.
In a first aspect, an embodiment of the present application provides an antenna switching control method, which is applied to an electronic device, where the electronic device includes a first antenna and a second antenna, and includes:
acquiring the current position of the electronic equipment;
determining a first magnetic field interference strength value to which the first antenna in use corresponding to the current location is subjected;
and when the first magnetic field interference strength value is larger than a first preset threshold value, switching the first antenna to the second antenna.
In a second aspect, an embodiment of the present application provides an antenna switching control method, which is applied to an electronic device, where the electronic device includes a first antenna and a second antenna, and the apparatus includes: an acquisition unit, a determination unit, and a switching unit:
the acquisition unit is used for acquiring the current position of the electronic equipment;
the determination unit is used for determining a first magnetic field interference strength value to which the first antenna which is used and corresponds to the current position is subjected;
the switching unit is configured to switch the first antenna to the second antenna when the first magnetic field interference strength value is greater than a first preset threshold.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that the antenna switching control method and the related product described in the embodiments of the present application are applied to an electronic device, where the electronic device includes a first antenna and a second antenna, obtains a current location of the electronic device, determines a first magnetic field interference strength value received by the first antenna being used corresponding to the current location, and switches the first antenna to the second antenna when the first magnetic field interference strength value is greater than a first preset threshold.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 1B is a schematic flowchart of an antenna switching control method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another antenna switching control method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4A is a block diagram illustrating functional units of an antenna switching control apparatus according to an embodiment of the present disclosure;
fig. 4B is a block diagram of functional units of another antenna switching control apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device related to the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices (smart watches, smart bracelets, wireless headsets, augmented reality/virtual reality devices, smart glasses), computing devices or other processing devices connected to wireless modems, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like, which have wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application, the electronic device 100 includes a processor 110, and an antenna 120 and a communication module 130 connected to the processor, where:
the processor 110 is configured to obtain a current location of the electronic device; and determining a first magnetic field interference strength value to which the first antenna in use is subjected corresponding to the current position;
the antenna 120 is configured to switch the first antenna to the second antenna when the first magnetic field interference strength value is greater than a first preset threshold value.
It can be seen that, in the electronic device described in this embodiment of the present application, the electronic device includes the first antenna and the second antenna, obtains the current location of the electronic device, determines the first magnetic field interference strength value received by the first antenna being used corresponding to the current location, and switches the first antenna to the second antenna when the first magnetic field interference strength value is greater than the first preset threshold value.
In this embodiment, the processor 110 may include a processor and a memory, the processor is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory and calling the data stored in the memory, thereby performing overall monitoring of the electronic device. Alternatively, the processor may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory may be used for storing software programs and modules, and the processor executes various functional applications and data processing of the electronic device by operating the software programs and modules stored in the memory. The memory 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 for at least one function, and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 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.
In one possible example, in the determining the magnetic field disturbance strength value to which the first antenna in use corresponding to the current location is subjected, the processor 110 is specifically configured to:
acquiring a base station position of a base station connected with the electronic equipment;
determining a target distance between the current location and the base station location;
determining a target signal intensity value corresponding to the target distance according to a mapping relation between a preset distance and the signal intensity value;
acquiring a current signal intensity value of the electronic equipment;
determining a first target difference between the target signal strength value and the current signal strength value;
and determining the first magnetic field interference strength value corresponding to the first target difference value according to a preset mapping relation between the difference value and the magnetic field interference strength value.
In one possible example, in terms of switching the first antenna to the second antenna, the antenna 120 is specifically configured to:
determining a second target difference between the first magnetic field disturbance strength value and the first preset threshold value;
and determining a target working parameter corresponding to the second target difference value according to a mapping relation between a preset difference value and the working parameter, switching the first antenna to the second antenna, and enabling the second antenna to work according to the target working parameter.
In one possible example, the processor 110 is further specifically configured to:
determining a target application currently running in a foreground by the electronic equipment;
determining the first preset threshold corresponding to the target application.
In one possible example, the processor 110 is specifically configured to:
acquiring a second magnetic field interference strength value suffered by the second antenna;
the communication module 130 is specifically configured to send a handover request to a base station connected to the electronic device when the second magnetic field interference strength value is greater than a second preset threshold, where the handover request is used to instruct the base station to switch a first cell in which the electronic device is located to a second cell.
The electronic device described in fig. 1A may be configured to execute the following antenna switching control method, specifically as follows:
the processor 110 obtains a current location of the electronic device; and determining a first magnetic field interference strength value to which the first antenna in use is subjected corresponding to the current position;
when the first magnetic field interference strength value is greater than a first preset threshold value, the antenna 120 switches the first antenna to the second antenna.
Referring to fig. 1B, fig. 1B is a schematic flowchart of an antenna switching control method provided in an embodiment of the present application, and as shown in the drawing, the method is applied to the electronic device shown in fig. 1A, where the electronic device includes a first antenna and a second antenna, and the antenna switching control method includes:
101. and acquiring the current position of the electronic equipment.
The electronic device may include at least a first antenna and a second antenna, and may further include more antennas, for example, a third antenna, a fourth antenna, and so on. The electronic device may determine the current location of the electronic device through Global Positioning System (GPS) or wireless fidelity (Wi-Fi) positioning technology. The magnetic field interference strength of the environment is different at different positions.
102. Determining a first magnetic field interference strength value to which the first antenna in use corresponding to the current location is subjected.
Wherein the interference of the external magnetic field may be from other signals or the earth magnetic field, etc. In the embodiment of the present application, it is considered that the interference degree of the external magnetic field to different antennas may be different. The electronic device is currently in the first antenna operating state, and therefore, a first magnetic field interference strength value received by the first antenna in use corresponding to the current position can be determined. For example, the magnetic sensor may detect an external magnetic field intensity value, and use the detected magnetic field intensity value as the first magnetic field interference intensity value, which, of course, includes other ways to determine the first magnetic field interference intensity value received by the first antenna, and is not limited herein.
Optionally, in step 102, determining a magnetic field interference strength value received by the first antenna being used corresponding to the current location may include the following steps:
21. acquiring a base station position of a base station connected with the electronic equipment;
22. determining a target distance between the current location and the base station location;
23. determining a target signal intensity value corresponding to the target distance according to a mapping relation between a preset distance and the signal intensity value;
24. acquiring a current signal intensity value of the electronic equipment;
25. determining a first target difference between the target signal strength value and the current signal strength value;
26. and determining the first magnetic field interference strength value corresponding to the first target difference value according to a preset mapping relation between the difference value and the magnetic field interference strength value.
Because the base station location is fixed and unchangeable, the electronic device may obtain the identification information of the base station, and the identification information may include but is not limited to: base station number, base station name, etc., without limitation. Further, the base station position can be determined according to the identification information, and the target distance between the current position and the base station position can be determined. The electronic device may further pre-store a mapping relationship between the distance and the signal strength value, and in general, the closer the distance to the signal source, the larger the signal strength value, and the farther the distance from the signal source, the smaller the signal strength value. The mapping relationship between the distance and the signal strength value is a mapping relationship under the condition that the distance and the signal strength value are not interfered by a magnetic field or are slightly interfered by the magnetic field, and if the distance and the signal strength value are interfered by the magnetic field, the actual signal strength value is often lower than the signal strength value under the condition that the distance and the signal strength value are not interfered by the magnetic field.
Further, the electronic device may obtain a current signal strength value of the electronic device and determine a first target difference value between the target signal strength value and the current signal strength value. The electronic device may further pre-store a mapping relationship between the difference value and the magnetic field interference intensity value, where a larger difference value indicates a larger magnetic field interference intensity, and a smaller difference value indicates a smaller magnetic field interference intensity, and the mapping relationship between the difference value and the magnetic field interference intensity value may be obtained in a large number. Therefore, the first magnetic field interference strength value corresponding to the first target difference value can be determined according to the mapping relation between the preset difference value and the magnetic field interference strength value.
103. And when the first magnetic field interference strength value is larger than a first preset threshold value, switching the first antenna to the second antenna.
The first preset threshold may be set by the user or default by the system. When the first magnetic field interference strength value is greater than the first preset threshold value, it can be understood that the external magnetic field greatly interferes with the electronic device, and at this time, the first antenna can be switched to the second antenna, so that the signal strength of the antenna is improved, and the user experience is improved.
Optionally, in step 103, switching the first antenna to the second antenna may include the following steps:
31. determining a second target difference between the first magnetic field disturbance strength value and the first preset threshold value;
32. and determining a target working parameter corresponding to the second target difference value according to a mapping relation between a preset difference value and the working parameter, switching the first antenna to the second antenna, and enabling the second antenna to work according to the target working parameter.
Wherein, the working parameters may include but are not limited to: transmit power, operating signal frequency band, operating current, operating voltage, transmit direction, and the like. The mapping relation between the difference value and the working parameter can be prestored in the electronic device, and different difference values correspond to different working parameters, that is, the stronger the external magnetic field interference is, the more the corresponding working parameter is needed to adjust the parameter, so as to be beneficial to reducing the interference of the external magnetic field.
Optionally, the following steps may be further included between the above step 102 and step 103:
a1, determining a target application currently running in the foreground of the electronic equipment;
a2, determining the first preset threshold corresponding to the target application.
Wherein, the target application may include but not limited to one of the following: video applications, gaming applications, office applications, music applications, payment applications, instant messaging applications, news applications, shopping applications, and the like. The electronic equipment can determine the target application currently running on the foreground, the foreground application is often the application operated by a user, different applications are different in signal requirements, therefore, the mapping relation between the application and the first preset threshold value can be stored in the electronic equipment in advance, and then the first preset threshold value corresponding to the target application can be determined according to the mapping relation between the application and the first preset threshold value, so that when the target application is operated, the antenna switching can be realized in time under the condition of being interfered by an external magnetic field, and the user experience is improved.
Optionally, after the step 103, the following steps may be further included:
b1, acquiring a second magnetic field interference strength value suffered by the second antenna;
and B2, when the second magnetic field interference strength value is greater than a second preset threshold, sending a handover request to a base station connected with the electronic device, where the handover request is used to instruct the base station to handover a first cell in which the electronic device is located to a second cell.
In the embodiment of the present application, it is considered that the interference degree of the external magnetic field to different antennas may also be different. The electronic device is currently in the first antenna working state, so that the second magnetic field interference strength value suffered by the second antenna which is in use and corresponds to the current position can be determined. For example, the magnetic field strength value of the outside world may be detected by the magnetic sensor, and the detected magnetic field strength value is used as the second magnetic field interference strength value, of course, the second magnetic field interference strength value received by the second antenna may be determined in other manners, and of course, the second magnetic field interference strength value received by the second antenna may also be determined through the above steps 21 to 26, which is not limited herein.
The second preset threshold may be set by a user or default by a system, and when the second magnetic field interference strength value is greater than the second preset threshold, a handover request may be sent to a base station to which the electronic device is connected, where the handover request is used to instruct the base station to switch a first cell in which the electronic device is located to a second cell.
It can be seen that the antenna switching control method described in this embodiment of the present application is applied to an electronic device, where the electronic device includes a first antenna and a second antenna, obtains a current location of the electronic device, determines a first magnetic field interference strength value received by the first antenna being used corresponding to the current location, and switches the first antenna to the second antenna when the first magnetic field interference strength value is greater than a first preset threshold value.
Referring to fig. 2, fig. 2 is a schematic flowchart of an antenna switching control method according to an embodiment of the present application, and as shown in the drawing, the antenna switching control method is applied to the electronic device shown in fig. 1A, and includes:
201. and acquiring the current position of the electronic equipment.
202. Determining a first magnetic field interference strength value to which the first antenna in use corresponding to the current location is subjected.
203. And when the first magnetic field interference strength value is larger than a first preset threshold value, switching the first antenna to the second antenna.
For the detailed description of the steps 201 to 203, reference may be made to the corresponding steps of the antenna switching control method described in the foregoing fig. 1B, and details are not repeated here.
204. And acquiring a second magnetic field interference strength value suffered by the second antenna.
In the embodiment of the present application, it is considered that the interference degree of the external magnetic field to different antennas may also be different. The electronic device is currently in the first antenna working state, so that the second magnetic field interference strength value suffered by the second antenna which is in use and corresponds to the current position can be determined. For example, the magnetic sensor may detect an external magnetic field strength value, and use the detected magnetic field strength value as the second magnetic field interference strength value, which, of course, includes other ways to determine the second magnetic field interference strength value received by the second antenna, and is not limited herein.
205. And when the second magnetic field interference strength value is greater than a second preset threshold value, sending a switching request to a base station connected with the electronic equipment, wherein the switching request is used for instructing the base station to switch a first cell where the electronic equipment is located to a second cell.
The second preset threshold may be set by a user or default by a system, and when the second magnetic field interference strength value is greater than the second preset threshold, a handover request may be sent to a base station to which the electronic device is connected, where the handover request is used to instruct the base station to switch a first cell in which the electronic device is located to a second cell.
Optionally, the following steps may be further included between step 202 and step 203:
determining a target application currently running in a foreground by the electronic equipment; determining the first preset threshold corresponding to the target application.
Wherein, the target application may include but not limited to one of the following: video applications, gaming applications, office applications, music applications, payment applications, instant messaging applications, news applications, shopping applications, and the like. The electronic equipment can determine the target application currently running on the foreground, the foreground application is often the application operated by a user, different applications are different in signal requirements, therefore, the mapping relation between the application and the first preset threshold value can be stored in the electronic equipment in advance, and then the first preset threshold value corresponding to the target application can be determined according to the mapping relation between the application and the first preset threshold value, so that when the target application is operated, the antenna switching can be realized in time under the condition of being interfered by an external magnetic field, and the user experience is improved.
It can be seen that the antenna switching control method described in this embodiment of the present application is applied to an electronic device, where the electronic device includes a first antenna and a second antenna, obtains a current location of the electronic device, determines a first magnetic field interference strength value received by the first antenna being used corresponding to the current location, switches the first antenna to the second antenna when the first magnetic field interference strength value is greater than a first preset threshold, obtains a second magnetic field interference strength value received by the second antenna, sends a switching request to a base station connected to the electronic device when the second magnetic field interference strength value is greater than a second preset threshold, where the switching request is used to instruct the base station to switch a first cell where the electronic device is located to a second cell, so that when the electronic device is interfered by an external magnetic field, antenna switching can be implemented, and when the antenna switching cannot meet a requirement, the switching request can also be sent to the base station, therefore, cell switching is realized, and user experience is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, and as shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps:
acquiring the current position of the electronic equipment;
determining a first magnetic field interference strength value to which the first antenna in use corresponding to the current location is subjected;
and when the first magnetic field interference strength value is larger than a first preset threshold value, switching the first antenna to the second antenna.
It can be seen that, in the electronic device described in this embodiment of the present application, the electronic device includes the first antenna and the second antenna, obtains the current location of the electronic device, determines the first magnetic field interference strength value received by the first antenna being used corresponding to the current location, and switches the first antenna to the second antenna when the first magnetic field interference strength value is greater than the first preset threshold value.
In one possible example, in said determining a value of a magnetic field disturbance intensity experienced by said first antenna in use corresponding to said current location, the above procedure comprises instructions for performing the steps of:
acquiring a base station position of a base station connected with the electronic equipment;
determining a target distance between the current location and the base station location;
determining a target signal intensity value corresponding to the target distance according to a mapping relation between a preset distance and the signal intensity value;
acquiring a current signal intensity value of the electronic equipment;
determining a first target difference between the target signal strength value and the current signal strength value;
and determining the first magnetic field interference strength value corresponding to the first target difference value according to a preset mapping relation between the difference value and the magnetic field interference strength value.
In one possible example, in said switching said first antenna to said second antenna, the above program comprises instructions for:
determining a second target difference between the first magnetic field disturbance strength value and the first preset threshold value;
and determining a target working parameter corresponding to the second target difference value according to a mapping relation between a preset difference value and the working parameter, switching the first antenna to the second antenna, and enabling the second antenna to work according to the target working parameter.
In one possible example, the program further includes instructions for performing the steps of:
determining a target application currently running in a foreground by the electronic equipment;
determining the first preset threshold corresponding to the target application.
In one possible example, the program further includes instructions for performing the steps of:
acquiring a second magnetic field interference strength value suffered by the second antenna;
and when the second magnetic field interference strength value is greater than a second preset threshold value, sending a switching request to a base station connected with the electronic equipment, wherein the switching request is used for instructing the base station to switch a first cell where the electronic equipment is located to a second cell.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 4A is a block diagram of functional units of the antenna switching control apparatus 400 according to the embodiment of the present application. The antenna switching control apparatus 400 is applied to an electronic device including a first antenna and a second antenna, the antenna switching control apparatus 400 includes an acquisition unit 401, a determination unit 402, and a switching unit 403, wherein,
the obtaining unit 401 is configured to obtain a current location of the electronic device;
the determining unit 402 is configured to determine a first magnetic field interference strength value to which the first antenna in use is subjected, corresponding to the current location;
the switching unit 403 is configured to switch the first antenna to the second antenna when the first magnetic field interference strength value is greater than a first preset threshold.
It can be seen that the antenna switching control apparatus described in this embodiment of the present application is applied to an electronic device, where the electronic device includes a first antenna and a second antenna, obtains a current location of the electronic device, determines a first magnetic field interference strength value received by the first antenna being used corresponding to the current location, and switches the first antenna to the second antenna when the first magnetic field interference strength value is greater than a first preset threshold value.
In one possible example, in the aspect of determining the magnetic field interference strength value to which the first antenna in use is subjected corresponding to the current position, the determining unit 402 is specifically configured to:
acquiring a base station position of a base station connected with the electronic equipment;
determining a target distance between the current location and the base station location;
determining a target signal intensity value corresponding to the target distance according to a mapping relation between a preset distance and the signal intensity value;
acquiring a current signal intensity value of the electronic equipment;
determining a first target difference between the target signal strength value and the current signal strength value;
and determining the first magnetic field interference strength value corresponding to the first target difference value according to a preset mapping relation between the difference value and the magnetic field interference strength value.
In one possible example, in terms of switching the first antenna to the second antenna, the switching unit 403 is specifically configured to:
determining a second target difference between the first magnetic field disturbance strength value and the first preset threshold value;
and determining a target working parameter corresponding to the second target difference value according to a mapping relation between a preset difference value and the working parameter, switching the first antenna to the second antenna, and enabling the second antenna to work according to the target working parameter.
In a possible example, the determining unit 402 is further specifically configured to:
determining a target application currently running in a foreground by the electronic equipment;
determining the first preset threshold corresponding to the target application.
Optionally, as shown in fig. 4B, fig. 4B is another modified structure of the antenna switching control apparatus depicted in fig. 4A, which may further include a communication unit 404, as follows:
the obtaining unit 401 is further specifically configured to: acquiring a second magnetic field interference strength value suffered by the second antenna;
the communication unit 404 is configured to send a handover request to a base station connected to the electronic device when the second magnetic field interference strength value is greater than a second preset threshold, where the handover request is used to instruct the base station to handover a first cell in which the electronic device is located to a second cell.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810523103.4A CN108810260B (en) | 2018-05-28 | 2018-05-28 | Antenna switching control method and related product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810523103.4A CN108810260B (en) | 2018-05-28 | 2018-05-28 | Antenna switching control method and related product |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN108810260A CN108810260A (en) | 2018-11-13 |
| CN108810260B true CN108810260B (en) | 2021-01-08 |
Family
ID=64090457
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810523103.4A Expired - Fee Related CN108810260B (en) | 2018-05-28 | 2018-05-28 | Antenna switching control method and related product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN108810260B (en) |
Families Citing this family (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111313950B (en) * | 2018-12-11 | 2023-06-20 | 北京小米移动软件有限公司 | Antenna control method and device |
| CN111384980B (en) * | 2018-12-29 | 2021-10-26 | 华为技术有限公司 | Mobile terminal, chip and communication method thereof for communication based on unauthorized frequency band |
| CN110278010B (en) * | 2019-06-13 | 2021-04-09 | Oppo广东移动通信有限公司 | Antenna switching method, antenna switching device, storage medium and electronic device |
| CN110798235A (en) * | 2019-10-28 | 2020-02-14 | 维沃移动通信有限公司 | A terminal control method and electronic device |
| CN111294075B (en) * | 2020-02-17 | 2022-01-28 | Oppo广东移动通信有限公司 | Antenna switching circuit, antenna switching method and device |
| CN111668606B (en) * | 2020-06-10 | 2021-12-24 | 维沃移动通信有限公司 | Antenna configuration information processing method and device and electronic equipment |
| CN112928471B (en) * | 2021-01-21 | 2024-02-27 | 维沃移动通信有限公司 | Electronic equipment and antenna switching method |
| CN113268140A (en) * | 2021-05-06 | 2021-08-17 | 青岛小鸟看看科技有限公司 | Virtual reality equipment and virtual reality system |
| CN115694690B (en) * | 2022-10-19 | 2024-06-04 | 中国移动通信集团四川有限公司 | Method and device for determining radio interference type and electronic equipment |
| CN117130834B (en) * | 2023-01-30 | 2024-06-14 | 荣耀终端有限公司 | Method for preventing magnetic field from interfering with operation of electronic equipment and electronic equipment |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104467911A (en) * | 2013-09-18 | 2015-03-25 | 联想(北京)有限公司 | Antenna mode adjustment method, antenna mode adjustment device and mobile terminal |
| CN105682240A (en) * | 2014-11-21 | 2016-06-15 | 工业和信息化部电信研究院 | Scheduling method and device for terminal equipment |
| CN106375048A (en) * | 2016-08-25 | 2017-02-01 | 维沃移动通信有限公司 | Antenna switch control method and apparatus of wireless local area network |
| CN107276686A (en) * | 2017-05-31 | 2017-10-20 | 广东欧珀移动通信有限公司 | Interference processing method, device, storage medium and electronic equipment |
| CN107465428A (en) * | 2017-08-30 | 2017-12-12 | 努比亚技术有限公司 | Antenna handover trigger control method, communication terminal and computer-readable recording medium |
| CN107920371A (en) * | 2016-10-10 | 2018-04-17 | 中国移动通信有限公司研究院 | A kind of Target cell choosing method and base station |
| CN107979387A (en) * | 2017-12-01 | 2018-05-01 | 广东欧珀移动通信有限公司 | Antenna switching method and device, storage medium and electronic equipment |
| JP6609798B2 (en) * | 2016-04-01 | 2019-11-27 | パナソニックIpマネジメント株式会社 | Train communication system |
-
2018
- 2018-05-28 CN CN201810523103.4A patent/CN108810260B/en not_active Expired - Fee Related
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104467911A (en) * | 2013-09-18 | 2015-03-25 | 联想(北京)有限公司 | Antenna mode adjustment method, antenna mode adjustment device and mobile terminal |
| CN105682240A (en) * | 2014-11-21 | 2016-06-15 | 工业和信息化部电信研究院 | Scheduling method and device for terminal equipment |
| JP6609798B2 (en) * | 2016-04-01 | 2019-11-27 | パナソニックIpマネジメント株式会社 | Train communication system |
| CN106375048A (en) * | 2016-08-25 | 2017-02-01 | 维沃移动通信有限公司 | Antenna switch control method and apparatus of wireless local area network |
| CN107920371A (en) * | 2016-10-10 | 2018-04-17 | 中国移动通信有限公司研究院 | A kind of Target cell choosing method and base station |
| CN107276686A (en) * | 2017-05-31 | 2017-10-20 | 广东欧珀移动通信有限公司 | Interference processing method, device, storage medium and electronic equipment |
| CN107465428A (en) * | 2017-08-30 | 2017-12-12 | 努比亚技术有限公司 | Antenna handover trigger control method, communication terminal and computer-readable recording medium |
| CN107979387A (en) * | 2017-12-01 | 2018-05-01 | 广东欧珀移动通信有限公司 | Antenna switching method and device, storage medium and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108810260A (en) | 2018-11-13 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108810260B (en) | Antenna switching control method and related product | |
| CN110224719B (en) | Communication control method and related products | |
| CN108111977B (en) | Network scanning method, device, storage medium and electronic device | |
| CN108777741B (en) | Antenna switching control method and related product | |
| CN108063646A (en) | Anti-interference method for electronic equipment and related products | |
| CN104333643B (en) | Add the method for contact person, system and terminal | |
| WO2019029618A1 (en) | Ims voice call network switching method, storage device and mobile terminal | |
| CN107947894A (en) | Anti-interference method of electronic equipment and related product | |
| CN110247692A (en) | Channel switching method and related product | |
| CN108124056A (en) | Anti-interference method of electronic equipment and related product | |
| CN106445457A (en) | Headphone sound channel switching method and device | |
| CN107454640A (en) | Network access switching method and related products | |
| CN106791084A (en) | Synchronization method of personalized parameters and mobile terminal | |
| CN106101776A (en) | Volume adjustment method, smart device and speaker | |
| CN107682825A (en) | Scanning frequency control method and related products | |
| CN106714279A (en) | A hotspot network switching method and terminal equipment | |
| CN104285454B (en) | Wireless connection switching method, wireless terminal and system thereof | |
| CN106454975A (en) | Hotspot network switching method and terminal equipment | |
| CN106325648A (en) | Icon setting method and mobile terminal | |
| CN110212965B (en) | Antenna switching method and related product | |
| CN104575548A (en) | File playing positioning method and device as well as terminal | |
| CN112379905B (en) | Kernel upgrading method, device, terminal and storage medium | |
| CN106792434B (en) | Hotspot establishing method and terminal equipment | |
| CN105744520B (en) | Method, device and system for issuing and verifying application services | |
| CN105787323A (en) | Security protection method and mobile terminal of WiFi hotspot |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210108 |