CN112448749B - Antenna radiator switching method and device, storage medium and electronic device - Google Patents

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

Info

Publication number
CN112448749B
CN112448749B CN201910878359.1A CN201910878359A CN112448749B CN 112448749 B CN112448749 B CN 112448749B CN 201910878359 A CN201910878359 A CN 201910878359A CN 112448749 B CN112448749 B CN 112448749B
Authority
CN
China
Prior art keywords
antenna radiator
candidate
side edge
electronic device
signal strength
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
CN201910878359.1A
Other languages
Chinese (zh)
Other versions
CN112448749A (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.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications 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 Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201910878359.1A priority Critical patent/CN112448749B/en
Publication of CN112448749A publication Critical patent/CN112448749A/en
Application granted granted Critical
Publication of CN112448749B publication Critical patent/CN112448749B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0805Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/23Testing, monitoring, correcting or calibrating of receiver elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/0404Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas the mobile station comprising multiple antennas, e.g. to provide uplink diversity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0805Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching
    • H04B7/0808Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching comparing all antennas before reception
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/04Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas
    • H04B7/08Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station
    • H04B7/0802Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection
    • H04B7/0805Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching
    • H04B7/0814Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas using two or more spaced independent antennas at the receiving station using antenna selection with single receiver and antenna switching based on current reception conditions, e.g. switching to different antenna when signal level is below threshold

Abstract

The embodiment of the application provides an antenna radiator switching method and device, a storage medium and electronic equipment. The switching method comprises the following steps: determining three candidate antenna radiators from at least four antenna radiators according to the current posture of the electronic equipment; acquiring the signal strength of at least one candidate antenna radiator; and determining a target antenna radiator according to the signal strength, and receiving a GPS signal through the target antenna radiator. According to the electronic device and the switching method, the target antenna radiator is determined from the three candidate antenna radiators, the electronic device does not need to detect the signal strength of at least four GPS antenna radiators in turn, and the antenna switching efficiency is improved. And, switch between at least four antenna radiators, can adapt to the different gestures of electronic equipment, and electronic equipment can all realize accurate location under arbitrary gesture.

Description

Antenna radiator switching method and device, storage medium and electronic device
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to an antenna radiator switching method and apparatus, a storage medium, and an electronic device.
Background
The application of Global Positioning System (GPS) in electronic devices is becoming more and more widespread, and a GPS signal receiving antenna has become a standard configuration of a mobile terminal.
Because all the GPS satellites are located at high altitudes, when the positions of the GPS signal receiving antennas are designed, directional patterns of the GPS signal receiving antennas are usually intentionally directed upward in the related art, so that the upward gain of the GPS signal receiving antennas is better, and signals of the GPS satellites can be better received.
However, when a user uses the electronic device, the posture of the electronic device is often changed, which causes the directional diagram of the GPS signal receiving antenna not to correspond to the GPS satellite, the GPS signal received by the GPS signal receiving antenna becomes poor, and the GPS positioning system cannot normally operate, thereby affecting the use of the electronic device. Therefore, how to improve the receiving capability of the GPS satellite signals of the electronic device in different postures is a technical problem that needs to be solved at present.
Disclosure of Invention
The embodiment of the application provides an antenna radiator switching method and device, a storage medium and an electronic device, which can enable the electronic device to receive GPS satellite signals under different postures, and ensure the normal use of a positioning system of the electronic device.
The antenna radiator switching method provided by the embodiment of the application is applied to electronic equipment, wherein the electronic equipment comprises at least four antenna radiators, and each antenna radiator is used for receiving a GPS signal; the electronic equipment further comprises a first side edge, a second side edge, a third side edge and a fourth side edge, wherein the first side edge and the second side edge are arranged oppositely, the third side edge and the fourth side edge are arranged oppositely, the first side edge, the third side edge, the second side edge and the fourth side edge are sequentially connected, at least one antenna radiator is arranged on each side edge, and each antenna radiator is arranged on one side edge; the antenna radiator switching method comprises the following steps:
detecting a current posture of the electronic device;
determining a reference side edge of the electronic equipment according to the current posture of the electronic equipment, wherein the reference side edge is the side edge with the highest horizontal height in the first side edge, the second side edge, the third side edge and the fourth side edge;
determining the reference side and two sides adjacent to the reference side as three candidate sides;
determining three candidate antenna radiators from the antenna radiators on the three candidate sides, wherein each candidate side is provided with one candidate antenna radiator;
acquiring the signal intensity of at least one candidate antenna radiator;
and determining a target antenna radiator according to the signal strength, and receiving a GPS signal through the target antenna radiator.
The antenna radiator switching device provided by the embodiment of the application is applied to electronic equipment, wherein the electronic equipment comprises at least four antenna radiators, and each antenna radiator is used for receiving a GPS signal; the electronic equipment further comprises a first side edge, a second side edge, a third side edge and a fourth side edge, wherein the first side edge and the second side edge are arranged oppositely, the third side edge and the fourth side edge are arranged oppositely, the first side edge, the third side edge, the second side edge and the fourth side edge are sequentially connected, at least one antenna radiator is arranged on each side edge, and each antenna radiator is arranged on one side edge; the antenna radiator switching device includes:
the gesture detection module is used for detecting the current gesture of the electronic equipment;
the candidate antenna radiator determining module is configured to determine a reference side of the electronic device according to the current posture of the electronic device, where the reference side is a side with a highest horizontal height among the first side, the second side, the third side, and the fourth side; determining the reference side and two sides adjacent to the reference side as three candidate sides; determining three candidate antenna radiators from the antenna radiators on the three candidate sides, wherein each candidate side is provided with one candidate antenna radiator;
the signal intensity acquisition module is used for acquiring the signal intensity of at least one candidate antenna radiator;
and the target antenna radiator determining module is used for determining a target antenna radiator according to the signal strength and receiving the GPS signal through the target antenna radiator.
The storage medium provided in the embodiments of the present application stores a computer program thereon, and when the computer program is executed on a computer, the computer is caused to execute the above antenna radiator switching method.
The electronic device provided by the embodiment of the application comprises a processor and a memory, wherein a computer program is stored in the memory, and the processor is used for executing the antenna radiator switching method by calling the computer program stored in the memory.
The electronic device provided by the embodiment of the application comprises at least four antenna radiators, and each antenna radiator can be used for receiving GPS signals; then, obtaining the signal intensity of at least one candidate antenna radiator; and finally, determining a target antenna radiator according to the signal strength, and receiving the GPS signal through the target antenna radiator. According to the electronic device and the switching method, the target antenna radiator is determined from the three candidate antenna radiators, the electronic device does not need to detect the signal strength of at least four GPS antenna radiators in turn, and the antenna switching efficiency is improved. And, switch between at least four antenna radiators, can adapt to the different gestures of electronic equipment, and electronic equipment can all realize accurate location under arbitrary gesture.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic diagram illustrating distribution and circuit connection of antenna radiators according to an embodiment of the present disclosure.
Fig. 3 is a first flowchart of a method for switching an antenna radiator according to an embodiment of the present disclosure.
Fig. 4 is a second flowchart of an antenna radiator switching method according to an embodiment of the present disclosure.
Fig. 5 is a third flowchart illustrating an antenna radiator switching method according to an embodiment of the present application.
Fig. 6 is a fourth flowchart illustrating an antenna radiator switching method according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an antenna radiator switching device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
Fig. 9 is a third schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
The embodiment of the application provides an electronic device 100. The electronic device 100 may be a smart phone, a tablet computer, or other devices, and may also be a game device, an AR (Augmented Reality) device, an automobile device, a data storage device, an audio playing device, a video playing device, a notebook computer, a desktop computing device, or other devices.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 100 includes a display screen 10, a cover plate 20, a middle frame 30, a circuit board 40, a battery 50, and a rear cover 60.
The display screen 10 may be used to display information such as images, text, etc. The Display screen 10 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED) Display screen.
The display screen 10 may be mounted on the middle frame 30 and connected to the rear cover 60 through the middle frame 30 to form a display surface of the electronic device 100. The display screen 10 serves as a front case of the electronic apparatus 100, and forms a housing of the electronic apparatus 100 together with the rear cover 60 for accommodating other electronic devices or functional components of the electronic apparatus 100. For example, the housing may be used to house electronic devices or functional components of the electronic device 100 such as a processor, memory, one or more sensors, a camera module, and the like.
The display screen 10 may include a display area as well as a non-display area. Wherein the display area performs the display function of the display screen 10 for displaying information such as images, text, etc. The non-display area does not display information. The non-display area can be used for setting functional components such as a camera module and a display screen touch electrode.
The display screen 10 may be a full-face screen. At this time, the display screen 10 may display information in a full screen, so that the electronic apparatus 100 has a large screen occupation ratio. The display screen 10 includes only a display region and does not include a non-display region, or the non-display region has a small area for the user. At this time, functional components such as a camera module and a proximity sensor in the electronic apparatus 100 may be hidden under the display screen 10, and a fingerprint recognition module of the electronic apparatus 100 may be disposed on the rear cover 60 of the electronic apparatus 100.
The cover plate 20 may be mounted on the middle frame 30, and the cover plate 20 covers the display screen 10 to protect the display screen 10 from being scratched or damaged by water. The cover 20 may be a transparent glass cover, so that a user can see the contents displayed on the display screen 10 through the cover 20. In some embodiments, the cover plate 20 may be a glass cover plate of sapphire material.
The middle frame 30 may have a thin plate-like or sheet-like structure, or may have a hollow frame structure. The middle frame 30 is used for providing a supporting function for the electronic devices or functional components in the electronic device 100, so as to mount the electronic devices or functional components in the electronic device 100 together. For example, functional components such as a camera module, a receiver module, a circuit board 40, and a battery 50 in the electronic apparatus 100 may be mounted on the middle frame 30 for fixing. In some embodiments, the material of the middle frame 30 may include metal or plastic.
The circuit board 40 may be mounted on the middle frame 30. The circuit board 40 may be a motherboard of the electronic device 100. The circuit board 40 is provided with a ground point to ground the circuit board 40. One, two or more of the functional components such as a microphone, a speaker, a receiver, an earphone interface, a universal serial bus interface (USB interface), the camera assembly 70, a distance sensor, an ambient light sensor, a gyroscope, and a processor may be integrated on the circuit board 40. Meanwhile, the display screen 10 may be electrically connected to the circuit board 40.
The circuit board 40 is provided with a display control circuit. The display control circuit outputs an electrical signal to the display screen 10 to control the display screen 10 to display information.
The battery 50 may be mounted on the middle frame 30. Meanwhile, the battery 50 is electrically connected to the circuit board 40 to enable the battery 50 to power the electronic device 100. The circuit board 40 may be provided thereon with a power management circuit. The power management circuit is used to distribute the voltage provided by the battery 50 to the various electronic devices in the electronic apparatus 100.
The battery 50 may be a rechargeable battery. For example, the battery 50 may be a lithium ion battery.
The rear cover 60 is used to form the outer contour of the electronic device 100. The rear cover 60 may be integrally formed. In the forming process of the rear cover 60, structures such as a rear camera module hole, a fingerprint identification module mounting hole and the like can be formed on the rear cover 60.
The rear cover 60 may be made of metal, such as magnesium alloy, stainless steel, etc. Note that the material of the rear cover 60 according to the embodiment of the present application is not limited to this, and other methods may be employed. For example, the rear cover 60 may be made of plastic. For another example, the rear cover 60 may be made of ceramic or glass. For another example, the rear cover 60 may include a plastic part and a metal part, and the rear cover 60 may be a housing structure in which the metal and the plastic are matched with each other. Specifically, the metal part may be formed first, for example, a magnesium alloy substrate is formed by injection molding, and then plastic is injected on the magnesium alloy substrate to form a plastic substrate, so as to form a complete housing structure.
The electronic device 100 according to the embodiment of the present application further includes at least four antenna radiators, and referring to fig. 2, fig. 2 is a schematic diagram illustrating distribution and circuit connection of the antenna radiators according to the embodiment of the present application. The electronic device 100 at least includes a first GPS antenna radiator 71, a second GPS antenna radiator 72, a third GPS antenna radiator 73, and a fourth GPS antenna radiator 74. The first GPS antenna radiator 71 is located on a first side 101 of the electronic device 100, the second GPS antenna radiator 72 is located on a second side 102 of the electronic device 100, the third GPS antenna radiator 73 is located on a third side 103 of the electronic device 100, and the fourth GPS antenna radiator 74 is located on a fourth side 104 of the electronic device 100.
Wherein, first side 101 with second side 102 sets up relatively, third side 103 with fourth side 104 sets up relatively, first side 101, third side 103, second side 102 and fourth side 104 connect gradually. That is, the third side 103 and the fourth side 104 are located at two adjacent sides of the first side 101 and the second side 102.
The first side 101, the second side 102, the third side 103 and the fourth side 104 are viewed from the overall direction of the electronic device 100, and may be four sides on the middle frame 30, or four sides on the housing, or four sides on the circuit board 40. That is, one or more of the first GPS antenna radiator 71, the second GPS antenna radiator 72, the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 may be an antenna radiator located on the middle frame 30, an antenna located on the casing, or an antenna radiator located on the circuit board 40 or other parts of the electronic device 100.
It is understood that at least one antenna radiator is disposed on the first side 101, the second side 102, the third side 103 and the fourth side 104, and when the number of the antenna radiators is greater than four, two antenna radiators may be disposed on at least one of the four sides.
It can be understood that the electronic device 100 may further include other cellular antennas, Wireless Fidelity (WIFI) antennas, Near Field Communication (NFC) antennas, and the like, in addition to the first GPS antenna radiator 71, the second GPS antenna radiator 72, the third GPS antenna radiator 73, and the fourth GPS antenna radiator 74.
The embodiment of the present application will be described below by taking an example in which the electronic device 100 includes four GPS antenna radiators. The four GPS antenna radiators may be electrically connected to the circuit board 40. With reference to fig. 2, the circuit board 40 may be provided with a radio frequency switch 75 and a GPS chip 76, and the GPS antenna radiator is electrically connected to the GPS chip 76 through the radio frequency switch 75 to receive a GPS signal, so as to implement a navigation function of the electronic device 100.
The radio frequency switch 75 may be a single-pole single-throw radio frequency switch, and each GPS antenna radiator is electrically connected to the GPS chip 76 through one single-pole single-throw switch. The radio frequency switch 75 may also be a single-pole four-throw switch, the stationary end of the single-pole four-throw switch is electrically connected to the GPS chip 76, the four moving ends of the single-pole four-throw switch are respectively connected to the four GPS antenna radiators, and when the moving ends of different single-pole four-throw switches are electrically connected to the stationary end, the corresponding GPS antenna radiators are electrically connected to the GPS antenna chip 76.
It is understood that the structure of the rf switch 75 is not limited to the above example, and other structures of the rf switch 75 that can electrically connect four GPS antenna radiators to the GPS chip 76 are within the scope of the present application.
In order to ensure the positioning accuracy of the GPS positioning system, only one group of the first GPS antenna radiator 71, the second GPS antenna radiator 72, the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 can be electrically connected to the GPS chip 76 at the same time. Therefore, an embodiment of the present application provides a method for switching antenna radiators, where the method is applied to the electronic device 100.
As shown in fig. 3, fig. 3 is a first flowchart of a method for switching an antenna radiator according to an embodiment of the present application, where the method for switching an antenna radiator includes:
110. detecting a current pose of the electronic device.
According to the usage habit of the user, the electronic device 100 can assume multiple postures during the usage, such as a vertical forward posture, a vertical reverse posture, a horizontal forward posture, and a horizontal reverse posture.
Taking the electronic device 100 shown in fig. 2 as an example, the horizontal height of the third side 103 is greater than the horizontal heights of the other three sides, and at this time, the posture of the electronic device 100 can be defined as the horizontal forward-direction placement posture. Based on the horizontal forward-oriented posture, the electronic device 100 shown in fig. 2 is rotated by 180 degrees, so that the horizontal height of the fourth side 104 is greater than the horizontal heights of the other three sides, and at this time, the posture of the electronic device 100 may be defined as the horizontal reverse-oriented posture. When the electronic device 100 shown in fig. 2 is rotated clockwise by 90 degrees, so that the horizontal height of the first side 101 is greater than the horizontal heights of the other three sides, at this time, the posture of the electronic device 100 may be defined as a vertical forward placement posture. With the vertical and forward placement posture as a reference, the electronic device 100 shown in fig. 2 is rotated 90 degrees counterclockwise, so that the horizontal height of the second side 102 is greater than the horizontal heights of the other three sides, and at this time, the posture of the electronic device 100 can be defined as a vertical and reverse placement posture.
The posture of the electronic apparatus 100 may be detected by a sensor such as a gravity sensor, an acceleration sensor, a gyroscope, or a magnetic sensor. For example, the gravity sensor or the acceleration sensor may measure acceleration due to gravity to calculate an inclination angle of the electronic device 100 with respect to a horizontal plane, so that the current posture of the electronic device 100 may be measured. The gyroscope may measure motions, such as rotation and deflection, of the electronic device 100, so as to accurately analyze an actual motion of a user, and further detect a current posture of the electronic device 100. The magnetic sensor may measure an azimuth, measure the azimuth of the electronic device 100 by using a geomagnetic field, and measure the current attitude of the electronic device 100 in cooperation with the gyroscope, the acceleration sensor, and the like.
It should be noted that the manner of measuring the current posture of the electronic device 100 in the present application is not limited to the above one or more sensing devices, and may also be a combination of a sensing device and related measurement software, and other methods that can measure the current posture of the electronic device 100 are all within the scope of the embodiments of the present application.
120. And determining three candidate antenna radiators from the at least four antenna radiators according to the current posture of the electronic equipment.
The attitude of the electronic device 100 is different, and the four GPS satellites have different capabilities of receiving GPS satellite signals. In the use process of the GPS satellite positioning system, in order to make GPS positioning more accurate, it is often necessary to select a GPS antenna radiator with a stronger ability to receive GPS satellite signals as a receiver of the GPS signals.
When the posture of the electronic device 100 is fixed, one GPS antenna radiator always exists among at least four GPS antenna radiators, and the GPS antenna radiator has the weakest ability to receive GPS satellite signals. In order to select an antenna radiator with a stronger satellite signal receiving capability, the electronic device 100 may select three candidate antenna radiators with a stronger satellite signal receiving capability from at least four GPS antenna radiators, and exclude the GPS antenna radiator with the weakest satellite signal receiving capability, where the satellite signal receiving capability of the three candidate antenna radiators is better than that of the remaining fourth antenna radiator in the current attitude.
130. Acquiring the signal intensity of at least one candidate antenna radiator;
140. and determining a target antenna radiator according to the signal strength, and receiving a GPS signal through the target antenna radiator.
When the electronic device 100 determines three candidate antenna radiators, the electronic device 100 may directly obtain the signal strength of one candidate antenna radiator from the three candidate antenna radiators, and when the signal strength satisfies the communication requirement, the electronic device 100 may directly use the candidate antenna radiator as a target antenna radiator, thereby greatly improving the antenna switching efficiency.
For the purpose of more accurate GPS positioning, when the electronic device 100 may further determine two or three candidate antenna radiators, the electronic device 100 controls the radio frequency switch 75 to alternately connect the candidate antenna radiators with the GPS chip 76 to form a plurality of GPS communication links, and by comparing level values on different communication links, the signal strength of the candidate antenna radiators may be compared, and then the candidate antenna radiator with the largest signal strength may be selected as a target antenna radiator, so that the positioning of the electronic device 100 is more accurate.
The electronic device 100 provided by the embodiment of the application includes at least four antenna radiators, each of which can be used to receive a GPS signal, and the antenna radiator switching method provided by the embodiment of the application first detects the current posture of the electronic device 100, and then determines three candidate antenna radiators from among the at least four antenna radiators according to the current posture of the electronic device 100; then, obtaining the signal intensity of at least one candidate antenna radiator; and finally, determining a target antenna radiator according to the signal strength, and receiving the GPS signal through the target antenna radiator. According to the electronic device and the switching method, the target antenna radiator is determined from the three candidate antenna radiators, the electronic device 100 does not need to detect the signal strength of at least four GPS antenna radiators in turn, and the antenna switching efficiency is improved. Moreover, switching among at least four antenna radiators can adapt to different postures of the electronic device 100, and the electronic device 100 can be accurately positioned in any posture.
Referring to fig. 4, fig. 4 is a second flowchart illustrating an antenna radiator switching method according to an embodiment of the present disclosure. Determining three candidate antenna radiators from the at least four antenna radiators according to the current attitude of the electronic device, including:
121. determining a reference side edge of the electronic equipment according to the current posture of the electronic equipment, wherein the reference side edge is the side edge with the highest horizontal height in the first side edge, the second side edge, the third side edge and the fourth side edge;
122. determining two side edges positioned on the reference side edge and adjacent to the reference side edge as three candidate side edges;
123. determining three candidate antenna radiators from all antenna radiators on the three candidate sides, wherein one candidate antenna radiator is arranged on each candidate side.
It is understood that the horizontal height of the first side 101, the second side 102, the third side 103 and the fourth side 104 may refer to the distance between the center point of the first side 101, the second side 102, the third side 103 and the fourth side 104 and the horizontal plane in the above-mentioned specific position of the electronic device 100. When the posture of the electronic device 100 changes, the horizontal height of the same side edge changes accordingly.
For example, when the electronic device 100 is in the vertical and forward posture, the horizontal height of the first side 101 is higher than the horizontal heights of the other three sides, and the first side 101 may be selected as the reference side. And, the third side 103 and the fourth side 104 located at two adjacent sides of the first side 101 may be selected as three candidate sides together with the first side 101. At this time, the patterns of the first, third, and fourth GPS antenna radiators 71, 73, and 74 on the three candidate sides may be matched with the GPS satellites, and the electronic device 100 may determine the first, third, and fourth GPS antenna radiators 71, 73, and 74 as the three candidate antenna radiators. Since the level of the second side 102 is less than the levels of the other three sides, and the directional pattern of the second GPS antenna radiator on the second side 102 does not match the GPS satellite, the electronic device 100 may consider only using the three candidate antenna radiators and not the second GPS antenna radiator 72 for receiving GPS satellite signals.
When the electronic device 100 is in the vertical reverse posture, the horizontal height of the second side 102 is higher than the horizontal heights of the other three sides, and the second side 102 may be selected as a reference side. And, a third side 103 and a fourth side 104 located at two adjacent sides of the second side 102 may be selected as three candidate sides together with the second side 102. At this time, the patterns of the second, third and fourth GPS antenna radiators 72, 73 and 74 on the three candidate sides may be matched with the GPS satellites, and the electronic device 100 may determine the second, third and fourth GPS antenna radiators 72, 73 and 74 as the three candidate antenna radiators. Since the level of the first side 101 is less than the levels of the other three sides, the directional pattern of the first GPS antenna radiator 71 on the first side 101 does not match the GPS satellite, and the electronic device 100 may consider only using the three candidate antenna radiators and not considering using the first GPS antenna radiator 71 to receive GPS satellite signals.
When the electronic device 100 is in the horizontal forward posture, the level of the third side 103 is higher than the levels of the other three sides, and the third side 103 may be selected as the reference side. And, the first side 101 and the second side 102 located at two adjacent sides of the third side 103 may be selected as three candidate sides together with the third side 103. At this time, the patterns of the third GPS antenna radiator 73, the first GPS antenna radiator 71, and the second GPS antenna radiator 72 on the three candidate sides may be matched with the GPS satellites, and the electronic device 100 may determine the third GPS antenna radiator 73, the first GPS antenna radiator 71, and the second GPS antenna radiator 72 as the three candidate antenna radiators. Since the level of the fourth side 104 is less than the levels of the other three sides, the directional pattern of the fourth GPS antenna radiator 74 on the fourth side 104 does not match the GPS satellite, and the electronic device 100 may consider only using the three candidate antenna radiators and not considering using the fourth GPS antenna radiator 74 to receive GPS satellite signals.
When the electronic device 100 is in the landscape orientation, the level of the fourth side 104 is higher than the levels of the other three sides, and the fourth side 104 may be selected as the reference side. Furthermore, the first side 101 and the second side 102 located at two adjacent sides of the fourth side 104 may be selected as three candidate sides together with the fourth side 104. At this time, the patterns of the fourth GPS antenna radiator 74, the first GPS antenna radiator 71, and the second GPS antenna radiator 72 located on the sides of the four candidates 104 may be matched with the GPS satellites, and the electronic device 100 may determine the fourth GPS antenna radiator 74, the first GPS antenna radiator 71, and the second GPS antenna radiator 72 as the three candidate antenna radiators. Since the third side 103 has a smaller horizontal height than the other three sides, the directional pattern of the third GPS antenna radiator 73 on the third side 103 does not match the GPS satellite, and the electronic device 100 may consider only using the three candidate antenna radiators and not the fourth GPS antenna radiator 74 for receiving GPS satellite signals.
It should be noted that the method for determining three candidate antenna radiators is not limited to the above example, and other methods may also be used, for example, a sensing device such as a gravity sensor, an acceleration sensor, a gyroscope, or the like inside the electronic device 100 is used to measure a motion parameter of each antenna radiator, and then three candidate antenna radiators are determined according to the relevant motion parameters.
It is understood that when the number of antenna radiators on the three candidate sides is greater than three, the electronic device 100 may select three radiators from the three candidate antenna radiators as three candidate antenna radiators. Specifically, the electronic device 100 may determine, according to the spatial parameter of each antenna radiator, the capability of the antenna radiator to receive the GPS signal, and select three antenna radiators with stronger capability as candidate antenna radiators. Of course, the electronic device 100 may also select the candidate antenna radiator with reference to the surrounding environment of each antenna radiator.
After determining that the antenna is located on the reference side of the electronic device 100 and the three GPS antenna radiators on the side adjacent to the reference side, the electronic device 100 may directly use the three GPS antenna radiators as candidate antenna radiators, and the electronic device 100 may directly control the radio frequency switch 75 to switch to the corresponding candidate antenna radiators in turn, and select the candidate antenna radiator with stronger signal strength as a target antenna radiator by comparing the level values of the three candidate antenna radiators, and utilize the target antenna radiator to receive GPS satellite signals.
Of course, the electronic device 100 may also gradually obtain the signal strength of the candidate antenna radiator. As shown in fig. 5, fig. 5 is a third flowchart illustrating an antenna radiator switching method according to an embodiment of the present application.
131. The electronic device may directly obtain a first signal strength of the candidate antenna radiator located on the reference side;
for example, the electronic device 100 may directly control the radio frequency switch 75 to electrically connect the candidate antenna radiator located on the reference side with the GPS chip 76 and form a communication link, obtain a first level value on the communication link, and reflect the first signal strength value by using the first level value.
It is to be understood that the method for measuring the first signal strength is not limited to the above example, and other methods, such as signal strength measurement software, signal strength measurement instrument, etc., may also be used to measure the magnitude of the first signal strength.
132. Judging whether the first signal intensity is larger than a preset signal intensity threshold value or not;
the preset signal strength threshold may be consistent with the measurement method of the first signal strength, for example, when the first signal strength is reflected by the first level value, the preset signal strength threshold may also be reflected by a level value of a communication link.
If so, stopping acquiring the signal strength of the candidate antenna radiator positioned on the adjacent side;
if the result of the determination is yes, it indicates that the candidate antenna radiator located on the reference side may meet the requirement of GPS positioning, and at this time, step 141 may be directly performed to determine the candidate antenna radiator located on the reference side as a target antenna radiator without acquiring signal strength of other candidate antenna radiators.
And if the judgment result is negative, continuously acquiring the signal strength of the candidate antenna radiator on at least one adjacent side.
If the determination result is negative, it indicates that the candidate antenna radiator located on the reference side cannot meet the requirement of GPS positioning, and in order to ensure accuracy of GPS positioning, the electronic device 100 needs to continuously obtain signal strength of other candidate antenna radiators, and needs to execute step 142 to determine the candidate antenna radiator with stronger signal strength as a target antenna radiator.
For example, when the posture of the electronic device 100 is a vertical forward posture, the horizontal height of the first side 101 is higher than the horizontal heights of the other three sides, and the electronic device 100 may control the radio frequency switch 75 to directly electrically connect the first GPS antenna radiator 71 located on the first side 101 and the GPS chip 76, so as to obtain the first signal strength of the first GPS antenna radiator 71. Then, judging whether the first signal intensity is greater than a preset signal intensity threshold value; if the determination result is yes, stopping acquiring the signal strength of the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 on the third side 103 and the fourth side 104; and directly using the first GPS antenna radiator 71 as a target antenna radiator, and receiving GPS satellite signals using the target antenna radiator. If the determination result is negative, the signal strength of at least one of the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 is continuously obtained.
When the posture of the electronic device 100 is a vertical reverse posture, the horizontal height of the second side 102 is higher than the horizontal heights of the other three sides, and the electronic device 100 may control the radio frequency switch 75 to directly electrically connect the second GPS antenna radiator 72 located on the second side 102 with the GPS chip 76, so as to obtain the signal strength of the second GPS antenna radiator 72. Then, judging whether the first signal intensity is greater than a preset signal intensity threshold value; if the determination result is yes, stopping acquiring the signal strength of the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 on the third side 103 and the fourth side 104; and directly uses the second GPS antenna radiator 72 as a target antenna radiator and receives GPS satellite signals using the target antenna radiator. If the determination result is negative, the signal strength of at least one of the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 is continuously obtained.
When the posture of the electronic device 100 is a horizontal forward posture, the horizontal height of the third side 103 is higher than the horizontal heights of the other three sides, and the electronic device 100 may control the radio frequency switch 75 to directly electrically connect the third GPS antenna radiator 73 located on the third side 103 and the GPS chip 76, so as to obtain the signal strength of the third GPS antenna radiator 73. Then, judging whether the first signal intensity is greater than a preset signal intensity threshold value; if the determination result is yes, stopping acquiring the signal strength of the first GPS antenna radiator 71 and the second GPS antenna radiator 72 on the first side 101 and the second side 102; and directly using the third GPS antenna radiator 73 as a target antenna radiator, and receiving a GPS satellite signal using the target antenna radiator. If the determination result is negative, the signal strength of at least one of the first GPS antenna radiator 71 and the second GPS antenna radiator 72 is continuously obtained.
When the electronic device 100 is in the horizontal reverse posture, the horizontal height of the fourth side 104 is higher than the horizontal heights of the other three sides, and the electronic device 100 may control the radio frequency switch 75 to directly electrically connect the fourth GPS antenna radiator 74 located on the fourth side 104 to the GPS chip 76, so as to obtain the signal strength of the fourth GPS antenna radiator 74. Then, judging whether the first signal intensity is greater than a preset signal intensity threshold value; if the determination result is yes, stopping acquiring the signal strength of the first GPS antenna radiator 71 and the second GPS antenna radiator 72 on the first side 101 and the second side 102; and directly uses the fourth GPS antenna radiator 74 as a target antenna radiator and receives GPS satellite signals using the target antenna radiator. If the determination result is negative, the signal strength of at least one of the first GPS antenna radiator 71 and the second GPS antenna radiator 72 is continuously obtained.
The antenna radiator switching method of the embodiment of the application directly obtains the signal strength of one antenna radiator, and when the candidate antenna radiator meets the communication requirement, the antenna radiator is directly used as a target antenna radiator, and the electronic device 100 does not need to detect the signal strength of three GPS antenna radiators in turn, thereby improving the antenna switching efficiency.
When the determination result is negative, in the step of continuously acquiring the signal strength of the candidate antenna radiators on at least one adjacent side, the electronic device 100 may further determine whether to acquire the signal strength of one or two of the candidate antenna radiators by detecting with a proximity sensor.
Specifically, the electronic device 100 may include a first proximity sensor, and the first proximity sensor may be configured to detect whether an obstacle is present near the electronic device 100. For example, the first proximity sensor may be a light sensor, and the light sensor may emit a detection light, and detect whether an obstacle exists by detecting an intensity of the reflected light; the first proximity sensor may also be an acoustic wave sensor, and the acoustic wave sensor emits a detection acoustic wave to detect whether an obstacle exists by detecting the intensity of the reflected acoustic wave. It is understood that the first proximity sensor is not limited to the above example, and other sensors capable of detecting whether an obstacle exists are within the scope of the present application.
The first proximity sensor may be mounted on the middle frame 30 or on the circuit board 40, and the first proximity sensor is electrically connected to the circuit board 40 to perform proximity detection. The first proximity sensor may be located on any one side of the electronic device 100 from the overall orientation of the electronic device 100, that is, the first proximity sensor may be located on the middle frame 30 or the circuit board 40 corresponding to the first side 101, the second side 102, the third side 103 and the fourth side 104.
With continued reference to fig. 5, the step of the electronic device 100 continuing to obtain the signal strength of the candidate antenna radiator on at least one adjacent side includes:
133. acquiring first position information of the first proximity sensor;
134. controlling the first proximity sensor to detect, and acquiring a first detection result of the proximity sensor;
135. and according to the first position information and the first detection result, continuously acquiring the signal strength of the candidate antenna radiator on one or two adjacent sides.
The first position information may be classified into first positive position information and first negative position information according to whether the side on which the first proximity sensor is located belongs to one of two adjacent sides. The first positive location information indicates that: the side where the first proximity sensor is located belongs to one of two adjacent sides; the first negative location information indicates: the side on which the first proximity sensor is located does not belong to one of the two adjacent sides.
The first detection result may be divided into a first positive result and a first negative result according to whether an obstacle is detected. The first positive result represents: the first proximity sensor detects an obstacle; the first negative result represents: the first proximity sensor does not detect an obstacle.
The first position information and the first detection result are different, and the number of the candidate antenna radiator signal strengths subsequently obtained by the electronic device 100 is also different.
Specifically, when the first location information is negative location information, it indicates that the side where the first proximity sensor is located is not located in two adjacent sides, that is, the antenna radiator located on the side where the first proximity sensor is located does not belong to a candidate antenna radiator, and at this time, the electronic device 100 may select an antenna radiator with a higher signal strength from among the three candidate antenna radiators as a target antenna radiator.
When the first location information is the first positive location information and the first detection result is the first positive result, the first location information and the first positive location information together may indicate that an obstacle exists on the side where the first proximity sensor is located, and the obstacle may greatly affect the capability of the GPS antenna radiator located on the side to receive GPS satellite signals, so that the electronic device 100 may directly obtain the second signal strength of the candidate antenna radiator on the remaining one adjacent side without considering the candidate antenna radiator on the adjacent side where the first proximity sensor is located. And the second signal strength may be compared with the first signal strength of the candidate antenna radiator located on the reference side, and the candidate antenna radiator having a greater signal strength may be selected as the target antenna radiator.
When the first location information is first positive location information and the first detection result is a first negative result, the first location information and the first negative result together may indicate that no obstacle exists on the side where the first proximity sensor is located, and further, the candidate antenna radiator located on the side where the first proximity sensor is located is not blocked by an obstacle, and the surrounding environment is good, at this time, the electronic device 100 needs to continue to acquire the signal strengths of two candidate antenna radiators on two adjacent sides, and then, the electronic device 100 compares the strengths of the three candidate antenna radiators and selects the candidate antenna radiator with a greater signal strength as the target antenna radiator.
According to the antenna radiator switching method, the number of the antenna radiators which are continuously acquired is judged by the first proximity sensor of the electronic device 100, on one hand, the proximity sensor does not need to be additionally arranged, the size of the electronic device 100 is not additionally occupied, on the other hand, the frequency that the electronic device 100 needs to acquire three candidate antenna radiators in turn can be reduced, and the antenna radiator switching efficiency can be improved.
In addition to the above method, the electronic device 100 may further adopt the following method to obtain the signal strength of at least one candidate antenna radiator, as shown in fig. 6, where fig. 6 is a fourth flowchart of the antenna radiator switching method provided in this embodiment of the present application.
The electronic device 100 may further include a second proximity sensor, which may also be used to detect whether an obstacle is present near the electronic device 100. For example, the second proximity sensor may be a light sensor, and the light sensor may emit a detection light to detect whether an obstacle exists by detecting the intensity of the reflected light; the second proximity sensor may also be an acoustic wave sensor, and the acoustic wave sensor emits a detection acoustic wave to detect whether an obstacle exists by detecting the intensity of the reflected acoustic wave. It is understood that the second proximity sensor is not limited to the above example, and other sensors capable of detecting whether an obstacle exists are within the scope of the present application.
The second proximity sensor may be mounted on the middle frame 30 or the circuit board 40, and the second proximity sensor is electrically connected to the circuit board 40 to perform proximity detection. The second proximity sensor may be located on any one side of the electronic device 100 from the overall orientation of the electronic device 100, that is, the second proximity sensor may be located on the middle frame 30 or the circuit board 40 corresponding to the first side 101, the second side 102, the third side 103 and the fourth side 104.
It is also understood that the second proximity sensor may be the same proximity sensor as the first proximity sensor, or the second proximity sensor may be a different proximity sensor from the first proximity sensor; the second proximity sensor may be located on the same side as the first proximity sensor, or the second proximity sensor may be located on a different side than the first proximity sensor.
Wherein the step of obtaining the signal strength in at least one of the candidate antenna radiators further comprises:
136. acquiring second position information of the second proximity sensor;
137. controlling the second proximity sensor to perform proximity detection and outputting a second detection result of the proximity sensor;
138. and acquiring the signal intensity in two or three candidate antenna radiators according to the second position information and the second detection result.
The second position information may be classified into second positive position information and second negative position information according to whether or not the side on which the second proximity sensor is located belongs to one of the three candidate sides. The second affirmative position information indicates: the side where the second proximity sensor is located belongs to the three candidate sides; the second negative position information indicates: the side where the second proximity sensor is located does not belong to the three candidate sides.
The second detection result may be divided into a second positive result and a second negative result according to whether an obstacle is detected. The second positive result represents: the second proximity sensor detects an obstacle; the second negative result represents: the first proximity sensor does not detect an obstacle.
The second position information is different from the second detection result, and the number of the candidate antenna radiator signal strengths subsequently obtained by the electronic device 100 is also different.
After the electronic device 100 obtains the signal strength of the two or three candidate antenna radiators, step 143 may be further performed to determine the candidate antenna radiator with the strongest signal strength of the two or three candidate antenna radiators as the target antenna radiator.
Specifically, when the second location information is negative location information, it indicates that the side where the second proximity sensor is located is not located in the three candidate sides, that is, the antenna radiator located on the side where the second proximity sensor is located does not belong to a candidate antenna radiator, and at this time, the electronic device 100 may select an antenna radiator with a higher signal strength from among the three candidate antenna radiators as a target antenna radiator.
When the second location information is the second positive location information and the second detection result is the second positive result, the two together may indicate that there is an obstacle on the side where the second proximity sensor is located, and the obstacle may greatly affect the capability of the GPS antenna radiator located on the side to receive GPS satellite signals, so that the electronic device 100 may directly obtain the signal strength of the candidate antenna radiators on the remaining two candidate sides without considering the candidate antenna radiators on the adjacent sides where the second proximity sensor is located. Then, the electronic device 100 may compare the signal strengths of the candidate antenna radiators on the remaining two candidate sides and select the candidate antenna radiator with the greater signal strength as the target antenna radiator.
When the second location information is second positive location information and the second detection result is a second negative result, the two may indicate that no obstacle exists on the side where the second proximity sensor is located, and further, the candidate antenna radiator located on the side where the second proximity sensor is located is not blocked by an obstacle, and the surrounding environment is good, at this time, the electronic device 100 needs to continue to obtain the signal strengths of the three candidate antenna radiators on the three candidate sides, and then, the electronic device 100 compares the strengths of the three candidate antenna radiators and selects the candidate antenna radiator with a greater signal strength as the target antenna radiator.
According to the antenna radiator switching method, the number of the antenna radiator signal strength which is continuously acquired is judged by the second proximity sensor of the electronic device 100, on one hand, the proximity sensor does not need to be additionally arranged, the size of the electronic device 100 is not additionally occupied, on the other hand, the frequency of the electronic device 100 which needs to acquire three candidate antenna radiator signal strengths in turn can be reduced, and the antenna radiator switching efficiency can be improved.
The embodiment of the present application further provides an antenna radiator switching device 200, which is applied to the electronic device 100. Referring to fig. 7, fig. 7 is a schematic structural diagram of an antenna radiator switching device according to an embodiment of the present application. The antenna radiator switching device 200 includes an attitude detection module 210, a candidate antenna radiator determination module 220, a signal strength acquisition module 230, and a target antenna radiator determination module 240.
Wherein the gesture detection module 210 is configured to detect a current gesture of the electronic device 100.
According to the usage habit of the user, the electronic device 100 can assume multiple postures during the usage, such as a vertical forward posture, a vertical reverse posture, a horizontal forward posture, and a horizontal reverse posture.
Taking the electronic device shown in fig. 2 as an example, the horizontal height of the third side 103 is greater than the horizontal heights of the other three sides, and in this case, the posture of the electronic device 100 can be defined as the horizontal forward-oriented posture. Taking the horizontal forward-oriented posture as an example, the electronic device 100 shown in fig. 2 is rotated by 180 degrees, so that the horizontal height of the fourth side 104 is greater than the horizontal heights of the other three sides, and at this time, the posture of the electronic device 100 may be defined as the horizontal reverse-oriented posture. The electronic device 100 shown in fig. 2 is rotated clockwise by 90 degrees, so that the horizontal height of the first side 101 is greater than the horizontal heights of the other three sides, and at this time, the posture of the electronic device 100 may be defined as a vertical forward placing posture. With the vertical and forward placement posture as a reference, the electronic device 100 shown in fig. 2 is rotated 90 degrees counterclockwise, so that the horizontal height of the second side 102 is greater than the horizontal heights of the other three sides, and at this time, the posture of the electronic device 100 can be defined as a vertical and reverse placement posture.
The gesture detection module 210 may detect the gesture of the electronic device 100 through a sensor such as a gravity sensor, an acceleration sensor, a gyroscope, or a magnetic sensor. For example, the gravity sensor or the acceleration sensor may measure acceleration due to gravity, and the posture detection module 210 may calculate an inclination angle of the electronic device 100 with respect to a horizontal plane according to the measured data, so as to measure a current posture of the electronic device 100. The gyroscope may measure motions, such as rotation and deflection, of the electronic device 100 to accurately analyze an actual motion of a user, and the gesture detection module 210 may detect a current gesture of the electronic device 100. The magnetic sensor may measure an azimuth, measure the azimuth of the electronic device 100 by using a geomagnetic field, and cooperate with the gyroscope, the acceleration sensor, and the like, the attitude detection module 210 may also measure the current attitude of the electronic device 100.
It should be noted that the manner of measuring the current posture of the electronic device 100 in the present application is not limited to the above one or more sensing devices, and may also be a combination of a sensing device and related measurement software, and other methods that can measure the current posture of the electronic device 100 are all within the scope of the embodiments of the present application.
The candidate antenna radiator determining module 220 is configured to determine three candidate antenna radiators from the at least four antenna radiators according to the current posture of the electronic device.
The attitude of the electronic device 100 is different, and at least four of the GPS satellites have different capabilities for receiving GPS satellite signals. In the use process of the GPS satellite positioning system, in order to make GPS positioning more accurate, it is often necessary to select a GPS antenna radiator with a stronger ability to receive GPS satellite signals as a receiver of the GPS signals. When the posture of the electronic device 100 is fixed, one of the four GPS antenna radiators always exists, and the GPS antenna radiator has the weakest ability to receive GPS satellite signals. In order to select an antenna radiator with a stronger capability of receiving a GPS satellite signal, the candidate antenna radiator determination module 220 may select three candidate antenna radiators with a stronger capability of receiving a satellite signal from among the four GPS antenna radiators, and exclude the GPS antenna radiator with the weakest capability of receiving a satellite signal.
A signal strength obtaining module 230, configured to obtain a signal strength of at least one candidate antenna radiator;
and a target antenna radiator determining module 240, configured to determine a target antenna radiator according to the signal strength, where the target antenna radiator is used to receive a GPS satellite signal.
When the candidate antenna radiator determining module 220 determines three candidate antenna radiators, the signal strength obtaining module 230 may directly obtain the signal strength of one candidate antenna radiator from the three candidate antenna radiators, and when the signal strength meets the communication requirement, the target antenna radiator determining module 240 may directly use the candidate antenna radiator as a target antenna radiator, thereby greatly improving the antenna switching efficiency.
For the purpose of more accurate GPS positioning, the signal strength obtaining module 230 may further determine two or three when the candidate antenna radiators are determined, the signal strength obtaining module 230 controls the radio frequency switch 75 to alternately connect the candidate antenna radiators with the GPS chip 76 to form a plurality of GPS communication links, and by comparing the level values of different communication links, the signal strength of the candidate antenna radiators may be compared, and then the target antenna radiator determining module 240 may select the candidate antenna radiator with the largest signal strength as the target antenna radiator, so that the positioning of the electronic device 100 is more accurate.
The antenna radiator switching device 200 according to the embodiment of the present invention includes at least four antenna radiators, and each antenna radiator may be configured to receive a GPS signal. The antenna radiator switching device 200 provided in the embodiment of the present application first detects the current posture of the electronic device 100, and then determines three candidate antenna radiators from among at least four antenna radiators according to the current posture of the electronic device 100; then, obtaining the signal intensity of at least one candidate antenna radiator; and finally, determining a target antenna radiator according to the signal strength, and receiving the GPS signal through the target antenna radiator. According to the electronic device and the switching device, the target antenna radiator is determined from the three candidate antenna radiators, the electronic device 100 does not need to detect the signal strength of at least four GPS antenna radiators in turn, and the antenna switching efficiency is improved. Moreover, switching among at least four antenna radiators can adapt to different postures of the electronic device, and the electronic device 100 can be accurately positioned in any posture.
The candidate antenna radiator determining module 220 may be configured to perform the following steps:
determining a reference side edge of the electronic equipment according to the current posture of the electronic equipment, wherein the reference side edge is the side edge with the highest horizontal height in the first side edge, the second side edge, the third side edge and the fourth side edge;
determining two side edges positioned on the reference side edge and adjacent to the reference side edge as three candidate side edges;
and determining three candidate antenna radiators from the antenna radiators on the three candidate sides, wherein one candidate antenna radiator is arranged on each candidate side.
It is understood that the horizontal height of the first side 101, the second side 102, the third side 103 and the fourth side 104 may refer to the distance between the center point of the first side 101, the second side 102, the third side 103 and the fourth side 104 and the horizontal plane in the above-mentioned specific position of the electronic device 100. When the posture of the electronic device 100 changes, the horizontal height of the same side edge changes accordingly.
For example, when the electronic device 100 is in the vertical and forward posture, the horizontal height of the first side 101 is higher than the horizontal heights of the other three sides, and the first side 101 may be selected as the reference side. And, the third side 103 and the fourth side 104 located at two adjacent sides of the first side 101 may be selected as three candidate sides together with the first side 101. At this time, the patterns of the first, third and fourth GPS antenna radiators 71, 73 and 74 on the three candidate sides may be matched with the GPS satellites, and the candidate antenna radiator determining module 220 may determine the first, third and fourth GPS antenna radiators 71, 73 and 74 as the three candidate antenna radiators. Since the level of the second side 102 is less than the levels of the other three sides, the directional pattern of the second GPS antenna radiator 72 on the second side 102 does not match the GPS satellite, and the candidate antenna radiator determination module 220 may consider only using the three candidate antenna radiators and not the second GPS antenna radiator 72 for receiving GPS satellite signals.
When the electronic device 100 is in the vertical reverse posture, the horizontal height of the second side 102 is higher than the horizontal heights of the other three sides, and the second side 102 may be selected as a reference side. And, the third side 103 and the fourth side 104 located at two adjacent sides of the second side 102 may be selected as three candidate sides together with the second side 102. At this time, the patterns of the second, third and fourth GPS antenna radiators 72, 73 and 74 on the three candidate sides may be matched with the GPS satellites, and the candidate antenna radiator determining module 220 may determine the second, third and fourth GPS antenna radiators 72, 73 and 74 as the three candidate antenna radiators. Since the level of the first side 101 is less than the levels of the other three sides, the directional pattern of the first GPS antenna radiator 71 on the first side 101 does not match the GPS satellite, and the candidate antenna radiator determining module 220 may consider only using the three candidate antenna radiators and not considering using the first GPS antenna radiator 71 to receive GPS satellite signals.
When the posture of the electronic device 100 is a horizontal forward posture, the horizontal height of the third side 103 is higher than the horizontal heights of the other three sides, and the third side 103 may be selected as a reference side. And, the first side 101 and the second side 102 located at two adjacent sides of the third side 103 may be selected as three candidate sides together with the third side 103. At this time, the patterns of the third GPS antenna radiator 73, the first GPS antenna radiator 71 and the second GPS antenna radiator 72 on the three candidate sides 103 may be matched with the GPS satellites, and the candidate antenna radiator determining module 220 may determine the third GPS antenna radiator 73, the first GPS antenna radiator 71 and the second GPS antenna radiator 72 as the three candidate antenna radiators. Since the level of the fourth side 104 is less than the levels of the other three sides, the directional pattern of the fourth GPS antenna radiator 74 on the fourth side 104 does not match the GPS satellite, and the candidate antenna radiator determining module 220 may consider only using the three candidate antenna radiators and not using the fourth GPS antenna radiator 74 to receive GPS satellite signals.
When the electronic device 100 is in the landscape orientation, the level of the fourth side 104 is higher than the levels of the other three sides, and the fourth side 104 may be selected as the reference side. And, the first side 101 and the second side 102 located at two adjacent sides of the fourth side 104 may be selected as three candidate sides together with the fourth side 104. At this time, the patterns of the fourth GPS antenna radiator 74, the first GPS antenna radiator 71 and the second GPS antenna radiator 72 on the four candidate sides may be matched with the GPS satellites, and the candidate antenna radiator determining module 220 may determine the fourth GPS antenna radiator 74, the first GPS antenna radiator 71 and the second GPS antenna radiator 72 as the three candidate antenna radiators. Since the third side 103 has a lower level than the other three sides, the directional pattern of the third GPS antenna radiator 73 on the third side 103 does not match the GPS satellite, and the candidate antenna radiator determining module 220 may consider only using the three candidate antenna radiators and not the fourth GPS antenna radiator 74 for receiving GPS satellite signals.
It should be noted that the method for determining three candidate antenna radiators is not limited to the above example, and other methods may also be used, for example, a sensing device such as a gravity sensor, an acceleration sensor, a gyroscope, or the like inside the electronic device 100 is used to measure a motion parameter of each antenna radiator, and then three candidate antenna radiators are determined according to the relevant motion parameters.
It is to be understood that, when the number of antenna radiators on the three candidate sides is greater than three, the electronic device may select three radiators from the three candidate antenna radiators as the three candidate antenna radiators. Specifically, the electronic device may determine, according to the spatial parameter of each antenna radiator, the capability of the antenna radiator to receive the GPS signal, and select three antenna radiators with higher capability as candidate antenna radiators. Of course, the electronic device 100 may also select the candidate antenna radiator with reference to the surrounding environment of each antenna radiator.
After determining that the three GPS antenna radiators are located on the reference side of the electronic device 100 and the side adjacent to the reference side, the signal strength obtaining module 230 may directly use the three GPS antenna radiators as candidate antenna radiators, and the candidate antenna radiator determining module 220 may directly control the radio frequency switch 75 to switch to the corresponding candidate antenna radiators in turn, select the candidate antenna radiator with stronger signal strength as a target antenna radiator by comparing the level values of the three candidate antenna radiators, and use the target antenna radiator to receive GPS satellite signals.
The signal strength obtaining module 230 may directly obtain a first signal strength of the candidate antenna radiator located on the reference side;
for example, the signal strength obtaining module 230 may directly control the radio frequency switch 75 to electrically connect the candidate antenna radiator located on the reference side with the GPS chip 76 and form a communication link, obtain a first level value on the communication link, and reflect the first signal strength value by using the first level value.
It is to be understood that the method for measuring the first signal strength is not limited to the above example, and other methods, such as signal strength measurement software, signal strength measurement instrument, etc., may also be used to measure the magnitude of the first signal strength.
Of course, the electronic device 100 may also gradually obtain the signal strength of the candidate antenna radiator. The signal strength acquisition module 230 may be further configured to perform the following steps:
judging whether the first signal intensity is greater than a preset signal intensity threshold value or not;
the preset signal strength threshold may be consistent with the measurement method of the first signal strength, for example, when the first signal strength is reflected by the first level value, the preset signal strength threshold may also be reflected by a level value of a communication link.
If the determination result is yes, the signal strength obtaining module 230 stops obtaining the signal strength of the candidate antenna radiator located on the adjacent side;
when the determination result is yes, it indicates that the candidate antenna radiator located on the reference side may meet the requirement of GPS positioning, and at this time, the candidate antenna radiator located on the reference side may be directly determined as the target antenna radiator without acquiring the signal strength of other candidate antenna radiators.
If the determination result is negative, the signal strength obtaining module 230 continues to obtain the signal strength of the candidate antenna radiator on at least one adjacent side.
If the result of the determination is negative, it indicates that the candidate antenna radiator located on the reference side cannot meet the requirement of GPS positioning, and in order to ensure accuracy of GPS positioning, the electronic device 100 needs to continuously obtain signal strengths of other candidate antenna radiators, and select an antenna radiator with a higher signal strength as a target antenna radiator.
For example, when the posture of the electronic device 100 is a vertical forward posture, the level of the first side 101 is higher than the levels of the other three sides, and the signal strength obtaining module 230 may control the radio frequency switch 75 to directly electrically connect the first GPS antenna radiator 71 located on the first side 101 and the GPS chip 76, so as to obtain the first signal strength of the first GPS antenna radiator 71. Then, judging whether the first signal intensity is greater than a preset signal intensity threshold value; if the determination result is yes, stopping acquiring the signal strength of the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 on the third side 103 and the fourth side 104; and directly using the first GPS antenna radiator 71 as a target antenna radiator, and receiving GPS satellite signals using the target antenna radiator. If the determination result is negative, the signal strength of at least one of the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 is continuously obtained.
When the posture of the electronic device 100 is a vertical reverse posture, the horizontal height of the second side 102 is higher than the horizontal heights of the other three sides, and the signal strength obtaining module 230 may control the radio frequency switch 75 to directly electrically connect the second GPS antenna radiator 72 located on the second side 102 with the GPS chip 76, so as to obtain the signal strength of the second GPS antenna radiator 72. Then, judging whether the first signal intensity is greater than a preset signal intensity threshold value; if the determination result is yes, stopping acquiring the signal strength of the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 on the third side 103 and the fourth side 104; and directly uses the second GPS antenna radiator 72 as a target antenna radiator and receives GPS satellite signals using the target antenna radiator. If the determination result is negative, the signal strength of at least one of the third GPS antenna radiator 73 and the fourth GPS antenna radiator 74 is continuously obtained.
When the posture of the signal strength acquiring module 230 is a horizontal forward posture, the horizontal height of the third side 103 is higher than the horizontal heights of the other three sides, and the electronic device 100 may control the radio frequency switch 75 to directly electrically connect the third GPS antenna radiator 73 located on the third side 103 with the GPS chip 76, so as to acquire the signal strength of the third GPS antenna radiator 73. Then, judging whether the first signal intensity is greater than a preset signal intensity threshold value; if the determination result is yes, stopping acquiring the signal strength of the first GPS antenna radiator 71 and the second GPS antenna radiator 72 on the first side 101 and the second side 102; and directly using the third GPS antenna radiator 73 as a target antenna radiator, and receiving a GPS satellite signal using the target antenna radiator. If the determination result is negative, the signal strength of at least one of the first GPS antenna radiator 71 and the second GPS antenna radiator 72 is continuously obtained.
When the posture of the signal strength acquiring module 230 is a horizontal reverse posture, the horizontal height of the fourth side 104 is higher than the horizontal heights of the other three sides, and the electronic device 100 may control the radio frequency switch 75 to directly electrically connect the fourth GPS antenna radiator 74 located on the fourth side 104 with the GPS chip 76, so as to acquire the signal strength of the fourth GPS antenna radiator 74. Then, judging whether the first signal intensity is greater than a preset signal intensity threshold value; if the determination result is yes, stopping acquiring the signal strength of the first GPS antenna radiator 71 and the second GPS antenna radiator 72 on the first side 101 and the second side 102; and directly uses the fourth GPS antenna radiator 74 as a target antenna radiator and receives GPS satellite signals using the target antenna radiator. If the determination result is negative, the signal strength of at least one of the first GPS antenna radiator 71 and the second GPS antenna radiator 72 is continuously obtained.
The antenna radiator switching device of the embodiment of the application directly obtains one signal strength of the antenna radiator, and when the candidate antenna radiator meets the communication requirement, the antenna radiator is directly taken as a target antenna radiator, and the signal strength obtaining module 230 does not need to detect the signal strength of three GPS antenna radiators in turn, so that the antenna switching efficiency is improved.
When the determination result is negative, in the step of continuously obtaining the signal strength of the candidate antenna radiators on at least one adjacent side, the signal strength obtaining module 230 may further determine whether to obtain the signal strength of one or two candidate antenna radiators through detection of a proximity sensor.
Specifically, the electronic device 100 may include a first proximity sensor, and the first proximity sensor may be configured to detect whether an obstacle is present near the electronic device 100. For example, the first proximity sensor may be a light sensor, and the light sensor may emit a detection light, and detect whether an obstacle exists by detecting an intensity of the reflected light; the first proximity sensor may also be an acoustic wave sensor, and the acoustic wave sensor emits a detection acoustic wave to detect whether an obstacle exists by detecting the intensity of the reflected acoustic wave. It is understood that the first proximity sensor is not limited to the above example, and other sensors capable of detecting whether an obstacle exists are within the scope of the present application.
The first proximity sensor may be mounted on the middle frame 30 or on the circuit board 40, and the first proximity sensor is electrically connected to the circuit board 40 to perform proximity detection. The first proximity sensor may be located on any one side of the electronic device 100 from the overall orientation of the electronic device 100, that is, the first proximity sensor may be located on the middle frame 30 or the circuit board 40 corresponding to the first side 101, the second side 102, the third side 103 and the fourth side 104.
The step of the signal strength obtaining module 230 continuing to obtain the signal strength of the candidate antenna radiator on at least one adjacent side includes:
acquiring first position information of the first proximity sensor;
controlling the first proximity sensor to detect, and acquiring a first detection result of the proximity sensor;
and according to the first position information and the first detection result, continuously acquiring the signal strength of the candidate antenna radiator on one or two adjacent sides.
The first position information may be classified into first positive position information and first negative position information according to whether the side on which the first proximity sensor is located belongs to one of two adjacent sides. The first positive location information indicates that: the side where the first proximity sensor is located belongs to one of two adjacent sides; the first negative location information indicates: the side on which the first proximity sensor is located does not belong to one of the two adjacent sides.
The first detection result may be divided into a first positive result and a first negative result according to whether an obstacle is detected. The first positive result represents: the first proximity sensor detects an obstacle; the first negative result represents: the first proximity sensor does not detect an obstacle.
The first position information and the first detection result are different, and the number of the candidate antenna radiator signal strengths subsequently obtained by the electronic device 100 is also different.
Specifically, when the first location information is negative location information, it indicates that the side where the first proximity sensor is located is not located in two adjacent sides, that is, the antenna radiator located on the side where the first proximity sensor is located does not belong to a candidate antenna radiator, and at this time, the electronic device 100 may select an antenna radiator with a higher signal strength from among the three candidate antenna radiators as a target antenna radiator.
When the first location information is first positive location information and the first detection result is a first positive result, the first location information and the first positive location information together may indicate that an obstacle exists on the side where the first proximity sensor is located, and the obstacle may greatly affect the capability of the GPS antenna radiator located on the side to receive GPS satellite signals, so that the signal strength acquisition module 230 may directly acquire the second signal strength of the candidate antenna radiator on the remaining one adjacent side without considering the candidate antenna radiator on the adjacent side where the first proximity sensor is located. Also, the target antenna radiator determining module 240 may compare the second signal strength with the first signal strength of the candidate antenna radiator located on the reference side, and select the candidate antenna radiator with a higher signal strength as the target antenna radiator.
When the first location information is first positive location information and the first detection result is a first negative result, the first location information and the first negative location information together may indicate that no obstacle exists on the side where the first proximity sensor is located, and further, the candidate antenna radiator located on the side where the first proximity sensor is located is not blocked by an obstacle, and its surrounding environment is good, at this time, the signal strength obtaining module 230 needs to continue to obtain the signal strengths of the two candidate antenna radiators on two adjacent sides, and then, the target antenna radiator determining module 240 compares the strengths of the three candidate antenna radiators and selects the candidate antenna radiator with a greater signal strength as the target antenna radiator.
The antenna radiator switching device 200 according to the embodiment of the application determines the number of continuously acquiring the signal strength of the antenna radiator by using the first proximity sensor of the electronic device 100 itself, on one hand, the proximity sensor does not need to be additionally arranged, and the volume of the electronic device 100 is not additionally occupied, on the other hand, the frequency that the electronic device 100 needs to acquire three candidate antenna radiators in turn can be reduced, and the antenna radiator switching efficiency can be improved.
In addition to the above method, the signal strength obtaining module 230 may obtain the signal strength of at least one candidate antenna radiator by the following method.
The electronic device 100 may further include a second proximity sensor, which may also be used to detect whether an obstacle is present near the electronic device 100. For example, the second proximity sensor may be a light sensor, and the light sensor may emit a detection light to detect whether an obstacle exists by detecting the intensity of the reflected light; the second proximity sensor may also be an acoustic wave sensor, and the acoustic wave sensor emits a detection acoustic wave to detect whether an obstacle exists by detecting the intensity of the reflected acoustic wave. It is understood that the second proximity sensor is not limited to the above example, and other sensors capable of detecting whether an obstacle exists are within the scope of the present application.
The second proximity sensor may be mounted on the middle frame 30 or the circuit board 40, and the second proximity sensor is electrically connected to the circuit board 40 to perform proximity detection. The second proximity sensor may be located on any one side of the electronic device 100 from the overall orientation of the electronic device 100, that is, the second proximity sensor may be located on the middle frame 30 or the circuit board 40 corresponding to the first side 101, the second side 102, the third side 103 and the fourth side 104.
It is also understood that the second proximity sensor may be the same proximity sensor as the first proximity sensor, or the second proximity sensor may be a different proximity sensor from the first proximity sensor; the second proximity sensor may be located on the same side as the first proximity sensor, or the second proximity sensor may be located on a different side than the first proximity sensor.
The signal strength obtaining module 230 may be further configured to perform the following steps:
acquiring second position information of the second proximity sensor;
controlling the second proximity sensor to perform proximity detection and outputting a second detection result of the proximity sensor;
and acquiring the signal intensity of two or three candidate antenna radiators according to the second position information and the second detection result.
The second position information may be classified into second positive position information and second negative position information according to whether or not the side on which the second proximity sensor is located belongs to one of the three candidate sides. The second affirmative position information indicates: the side where the second proximity sensor is located belongs to the three candidate sides; the second negative position information indicates: the side where the second proximity sensor is located does not belong to the three candidate sides.
The second detection result may be divided into a second positive result and a second negative result according to whether an obstacle is detected. The second positive result represents: the second proximity sensor detects an obstacle; the second negative result represents: the first proximity sensor does not detect an obstacle.
The second position information is different from the second detection result, and the number of the candidate antenna radiator signal strengths subsequently obtained by the electronic device 100 is also different.
Specifically, when the second location information is negative location information, it indicates that the side where the second proximity sensor is located is not located in the three candidate sides, that is, the antenna radiator located on the side where the second proximity sensor is located does not belong to a candidate antenna radiator, and at this time, the electronic device 100 may select an antenna radiator with a higher signal strength from among the three candidate antenna radiators as a target antenna radiator.
When the second location information is the second positive location information and the second detection result is the second positive result, the two together may indicate that there is an obstacle on the side where the second proximity sensor is located, and the obstacle may greatly affect the capability of the GPS antenna radiator located on the side to receive GPS satellite signals, so that the signal strength obtaining module 230 may directly obtain the signal strengths of the candidate antenna radiators on the remaining two candidate sides without considering the candidate antenna radiators on the adjacent side where the second proximity sensor is located. Then, the target antenna radiator determining module 240 may compare the signal strengths of the candidate antenna radiators on the remaining two candidate sides and select the candidate antenna radiator with the greater signal strength as the target antenna radiator.
When the second location information is second positive location information and the second detection result is a second negative result, the two may indicate that no obstacle exists on the side where the second proximity sensor is located, and further, the candidate antenna radiator located on the side where the second proximity sensor is located is not blocked by an obstacle, and its surrounding environment is good, at this time, the signal strength obtaining module 230 needs to continue to obtain the signal strengths of the three candidate antenna radiators on the three candidate sides, and then, the target antenna radiator determining module 240 compares the strengths of the three candidate antenna radiators and selects the candidate antenna radiator with a greater signal strength as the target antenna radiator.
The antenna radiator switching device according to the embodiment of the application determines the number of continuously acquired antenna radiator signal strength by using the second proximity sensor of the electronic device 100 itself, on one hand, the proximity sensor does not need to be additionally arranged, the volume of the electronic device 100 is not additionally occupied, on the other hand, the frequency of the electronic device 100 needing to acquire three candidate antenna radiator signal strengths in turn can be reduced, and the antenna radiator switching efficiency can be improved.
An electronic device 300 is further provided in the embodiment of the present application, as shown in fig. 8, fig. 8 is a second schematic structural diagram of the electronic device provided in the embodiment of the present application. The electronic device 300 further comprises a processor 301 and a memory 302, wherein the processor 301 is electrically connected with the memory 302.
The processor 301 is a control center of the electronic device 300, connects various parts of the entire electronic device 300 by using various interfaces and lines, performs various functions of the electronic device 300 and processes data by running or calling a computer program stored in the memory 302, and calling data stored in the memory 302, thereby performing overall monitoring of the electronic device 300.
In this embodiment, the processor 301 in the electronic device 300 loads instructions corresponding to one or more processes of the computer program into the memory 302 according to the following steps, and the processor 301 runs the computer program stored in the memory 302, so as to implement various functions:
detecting a current posture of the electronic device;
determining three candidate antenna radiators from the at least four antenna radiators according to the current posture of the electronic equipment;
acquiring the signal intensity of at least one candidate antenna radiator;
and determining a target antenna radiator according to the signal strength, and receiving a GPS signal through the target antenna radiator.
Determining three candidate antenna radiators from the at least four antenna radiators according to the current posture of the electronic equipment;
determining a reference side edge of the electronic equipment according to the current posture of the electronic equipment, wherein the reference side edge is the side edge with the highest horizontal height in the first side edge, the second side edge, the third side edge and the fourth side edge;
determining the reference side and two sides adjacent to the reference side as three candidate sides;
and determining three candidate antenna radiators from the antenna radiators on the three candidate sides, wherein one candidate antenna radiator is arranged on each candidate side.
Wherein the step of obtaining the signal strength in at least one of the candidate antenna radiators comprises:
obtaining a first signal strength of the candidate antenna radiator on the reference side;
judging whether the first signal intensity is greater than a preset signal intensity threshold value or not;
if the judgment result is yes, stopping obtaining the signal strength of the candidate antenna radiator positioned on two adjacent sides;
and if the judgment result is negative, continuously acquiring the signal strength of the candidate antenna radiator on at least one adjacent side.
The electronic device 300 further includes a first proximity sensor, wherein if the determination result is negative, the step of continuously obtaining the signal strength of the candidate antenna radiator on at least one adjacent side includes:
acquiring first position information of the first proximity sensor;
controlling the first proximity sensor to perform proximity detection, and acquiring a first detection result of the proximity sensor;
and according to the first position information and the first detection result, continuously acquiring the signal strength of the candidate antenna radiator on one or two adjacent sides.
The step of determining the target antenna radiator according to the signal strength comprises the following steps:
if the judgment result is yes, determining the candidate antenna radiator positioned on the reference side edge as the target antenna radiator;
and if the judgment result is negative, determining the candidate antenna radiator with stronger signal strength as the target antenna radiator.
Wherein the electronic device further comprises a second proximity sensor, and the step of obtaining the signal strength in at least one of the candidate antenna radiators comprises:
acquiring second position information of the second proximity sensor;
controlling the second proximity sensor to perform proximity detection and outputting a second detection result of the proximity sensor;
and acquiring the signal intensity of two or three candidate antenna radiators according to the second position information and the second detection result.
Wherein the step of determining a target antenna radiator according to the signal strength comprises:
and determining the candidate antenna radiator with the strongest signal strength in the two or three candidate antenna radiators as the target antenna radiator.
Memory 302 may be used to store computer programs and data. The memory 302 stores computer programs containing instructions executable in the processor 301. The computer program may constitute various functional modules. The processor 301 executes various functional applications and data processing by calling a computer program stored in the memory 302.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a third electronic device according to an embodiment of the present application.
A display 303, a display control circuit 304, a sensor 305, and a power source 306. The processor 301 is electrically connected to the display 303, the display control circuit 304, the sensor 305, and the power source 306.
The display screen 303 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device 300, which may be comprised of images, text, icons, video, and any combination thereof.
The display control circuit 304 is electrically connected to the display 303, and is configured to control the display 303 to display information.
The sensor 305 is used to collect external environmental information. The sensor 305 may include one or more of an ultrasonic sensor, an ambient light sensor, an acceleration sensor, a gyroscope, and the like.
The power supply 306 is used to power the various components of the electronic device 300. In some embodiments, the power supply 306 may be logically connected to the processor 301 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
Although not shown in fig. 9, the electronic device 300 may further include a radio frequency module, a camera, a bluetooth module, and the like, which are not described in detail herein.
As can be seen from the above, an embodiment of the present application provides an electronic device 300, where the electronic device 300 executes the following steps: detecting a current posture of the electronic device; determining three candidate antenna radiators from the at least four antenna radiators according to the current posture of the electronic equipment; acquiring the signal intensity of at least one candidate antenna radiator; and determining a target antenna radiator according to the signal strength, and receiving a GPS signal through the target antenna radiator.
The electronic device provided by the embodiment of the application comprises at least four antenna radiators, wherein each antenna radiator can be used for receiving GPS signals, the current attitude of the electronic device is preferably detected, and then three candidate antenna radiators are determined from the at least four antenna radiators according to the current attitude of the electronic device; then, obtaining the signal intensity of at least one candidate antenna radiator; and finally, determining a target antenna radiator according to the signal strength, and receiving the GPS signal through the target antenna radiator. According to the electronic equipment, the target antenna radiating body is determined from the three candidate antenna radiating bodies, the electronic equipment does not need to detect the signal strength of at least four GPS antenna radiating bodies in turn, and the antenna switching efficiency is improved. And, switch between at least four antenna radiators, can adapt to the different gestures of electronic equipment, and electronic equipment can all realize accurate location under arbitrary gesture.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
It should be noted that in the description of the present application, terms such as "first", "second", and the like are used only for distinguishing similar objects, and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
The method, the apparatus, the storage medium, and the electronic device for switching the antenna radiator provided in the embodiments of the present application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those 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 (9)

1. An antenna radiator switching method is applied to electronic equipment and is characterized in that the electronic equipment comprises at least four antenna radiators, and each antenna radiator is used for receiving a GPS signal; the electronic equipment further comprises a first side edge, a second side edge, a third side edge and a fourth side edge, wherein the first side edge and the second side edge are arranged oppositely, the third side edge and the fourth side edge are arranged oppositely, the first side edge, the third side edge, the second side edge and the fourth side edge are sequentially connected, at least one antenna radiator is arranged on each side edge, and each antenna radiator is arranged on one side edge; the antenna radiator switching method comprises the following steps:
detecting a current posture of the electronic device;
determining a reference side edge of the electronic equipment according to the current posture of the electronic equipment, wherein the reference side edge is the side edge with the highest horizontal height in the first side edge, the second side edge, the third side edge and the fourth side edge;
determining the reference side and two sides adjacent to the reference side as three candidate sides;
determining three candidate antenna radiators from the antenna radiators on the three candidate sides, wherein each candidate side is provided with one candidate antenna radiator;
acquiring the signal intensity of at least one candidate antenna radiator;
and determining a target antenna radiator according to the signal strength, and receiving a GPS signal through the target antenna radiator.
2. The method of claim 1, wherein the step of obtaining the signal strength in at least one of the candidate antenna radiators comprises:
obtaining a first signal strength of the candidate antenna radiator on the reference side;
judging whether the first signal intensity is greater than a preset signal intensity threshold value or not;
if the judgment result is yes, stopping obtaining the signal strength of the candidate antenna radiator positioned on two adjacent sides;
and if the judgment result is negative, continuously acquiring the signal strength of the candidate antenna radiator on at least one adjacent side.
3. The antenna radiator switching method of claim 2, wherein the electronic device further comprises a first proximity sensor; if the judgment result is negative, the step of continuously obtaining the signal strength of the candidate antenna radiator on at least one adjacent side edge comprises the following steps:
acquiring first position information of the first proximity sensor;
controlling the first proximity sensor to perform proximity detection, and acquiring a first detection result of the proximity sensor;
and according to the first position information and the first detection result, continuously acquiring the signal strength of the candidate antenna radiator on one or two adjacent sides.
4. The method according to claim 2 or 3, wherein the step of determining the target antenna radiator according to the signal strength comprises:
if the judgment result is yes, determining the candidate antenna radiator positioned on the reference side edge as the target antenna radiator;
and if the judgment result is negative, determining the candidate antenna radiator with stronger signal strength as the target antenna radiator.
5. The antenna radiator switching method of claim 1, wherein the electronic device further comprises a second proximity sensor, and the step of obtaining the signal strength in at least one of the candidate antenna radiators comprises:
acquiring second position information of the second proximity sensor;
controlling the second proximity sensor to perform proximity detection and outputting a second detection result of the proximity sensor;
and acquiring the signal intensity of two or three candidate antenna radiators according to the second position information and the second detection result.
6. The method of claim 5, wherein the step of determining the target antenna radiator according to the signal strength comprises:
and determining the candidate antenna radiator with the strongest signal strength in the two or three candidate antenna radiators as the target antenna radiator.
7. An antenna radiator switching device is applied to electronic equipment, and is characterized in that the electronic equipment comprises at least four antenna radiators, and each antenna radiator is used for receiving a GPS signal; the electronic equipment further comprises a first side edge, a second side edge, a third side edge and a fourth side edge, wherein the first side edge and the second side edge are arranged oppositely, the third side edge and the fourth side edge are arranged oppositely, the first side edge, the third side edge, the second side edge and the fourth side edge are sequentially connected, at least one antenna radiator is arranged on each side edge, and each antenna radiator is arranged on one side edge; the antenna radiator switching device includes:
the gesture detection module is used for detecting the current gesture of the electronic equipment;
the candidate antenna radiator determining module is configured to determine a reference side of the electronic device according to the current posture of the electronic device, where the reference side is a side with a highest horizontal height among the first side, the second side, the third side, and the fourth side; determining the reference side and two sides adjacent to the reference side as three candidate sides; determining three candidate antenna radiators from the antenna radiators on the three candidate sides, wherein each candidate side is provided with one candidate antenna radiator;
the signal intensity acquisition module is used for acquiring the signal intensity of at least one candidate antenna radiator;
and the target antenna radiator determining module is used for determining a target antenna radiator according to the signal strength and receiving the GPS signal through the target antenna radiator.
8. A storage medium having stored thereon a computer program, characterized in that when the computer program is executed on a computer, it causes the computer to execute the antenna radiator switching method according to any one of claims 1 to 6.
9. An electronic device, characterized in that the electronic device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the antenna radiator switching method according to any one of claims 1 to 6 by calling the computer program stored in the memory.
CN201910878359.1A 2019-09-03 2019-09-03 Antenna radiator switching method and device, storage medium and electronic device Active CN112448749B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910878359.1A CN112448749B (en) 2019-09-03 2019-09-03 Antenna radiator switching method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910878359.1A CN112448749B (en) 2019-09-03 2019-09-03 Antenna radiator switching method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112448749A CN112448749A (en) 2021-03-05
CN112448749B true CN112448749B (en) 2022-08-05

Family

ID=74733295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910878359.1A Active CN112448749B (en) 2019-09-03 2019-09-03 Antenna radiator switching method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112448749B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113363711A (en) * 2021-06-01 2021-09-07 Oppo广东移动通信有限公司 Antenna device, communication system, and method for controlling antenna device
CN113905116B (en) * 2021-09-30 2023-09-19 青岛海信移动通信技术有限公司 Antenna switching method based on double positioning chips and multi-antenna terminal equipment
CN114050404A (en) * 2021-11-23 2022-02-15 深圳市锐尔觅移动通信有限公司 Electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6005525A (en) * 1997-04-11 1999-12-21 Nokia Mobile Phones Limited Antenna arrangement for small-sized radio communication devices
KR20100022374A (en) * 2008-08-19 2010-03-02 삼성전자주식회사 An antenna apparatus
CN106058470A (en) * 2016-06-07 2016-10-26 北京小米移动软件有限公司 GPS (Global Positioning System) antenna device and control method
CN106129641A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of changing method of antenna structure, mobile terminal and antenna mode
CN206059672U (en) * 2016-09-28 2017-03-29 深圳市保千里电子有限公司 A kind of many gps antenna device for intelligently switching
CN108649335A (en) * 2018-05-15 2018-10-12 Oppo广东移动通信有限公司 Antenna module, electronic equipment and antenna switching method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8217843B2 (en) * 2009-03-13 2012-07-10 Ruckus Wireless, Inc. Adjustment of radiation patterns utilizing a position sensor
US10863457B2 (en) * 2018-02-06 2020-12-08 Samsung Electronics Co., Ltd. Apparatus and method for controlling antennas in wireless communication system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6005525A (en) * 1997-04-11 1999-12-21 Nokia Mobile Phones Limited Antenna arrangement for small-sized radio communication devices
KR20100022374A (en) * 2008-08-19 2010-03-02 삼성전자주식회사 An antenna apparatus
CN106058470A (en) * 2016-06-07 2016-10-26 北京小米移动软件有限公司 GPS (Global Positioning System) antenna device and control method
CN106129641A (en) * 2016-06-30 2016-11-16 维沃移动通信有限公司 A kind of changing method of antenna structure, mobile terminal and antenna mode
CN206059672U (en) * 2016-09-28 2017-03-29 深圳市保千里电子有限公司 A kind of many gps antenna device for intelligently switching
CN108649335A (en) * 2018-05-15 2018-10-12 Oppo广东移动通信有限公司 Antenna module, electronic equipment and antenna switching method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
具有内外置天线切换功能的新型双射频低噪放大电路的研究;林智凯;《中国优秀博硕士学位论文全文数据库》;20131015;全文 *

Also Published As

Publication number Publication date
CN112448749A (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN112448749B (en) Antenna radiator switching method and device, storage medium and electronic device
CN110967011B (en) Positioning method, device, equipment and storage medium
CN107818288B (en) Sign board information acquisition method and device
US9774362B1 (en) Adaptive antenna tuning based on a sensed characteristic
CN111256676B (en) Mobile robot positioning method, device and computer readable storage medium
US9244154B2 (en) System and method for positioning device under test
CN112738886B (en) Positioning method, positioning device, storage medium and electronic equipment
US20220335869A1 (en) Electronic device including display and method for measuring movement distance of display
CN106465327B (en) Control method, device and system of mobile terminal
US11656658B2 (en) Electronic device and method for controlling electronic device
CN110738185B (en) Form object identification method, form object identification device and storage medium
CN110954114B (en) Method and device for generating electronic map, terminal and storage medium
CN108614263B (en) Mobile terminal, position detection method and related product
WO2023155560A1 (en) Positioning method and apparatus, terminal accessory, mobile terminal, and electronic device
KR20210087181A (en) An electronic device detecting a location and a method thereof
CN114521015B (en) Positioning method, positioning device, storage medium and electronic equipment
CN113471700A (en) Antenna control method, antenna control device, storage medium and electronic equipment
CN109388732B (en) Music map generating and displaying method, device and storage medium
CN111859549A (en) Method for determining weight and gravity center information of single-configuration whole vehicle and related equipment
JP2010232994A (en) Information processing device, gps antenna reception method, and gps antenna reception program
CN111664860A (en) Positioning method and device, intelligent equipment and storage medium
US20230260437A1 (en) Electronic device with flexible display
CN112525554B (en) Method and device for determining collision angle of automobile and computer storage medium
CN111650637B (en) Seismic horizon interpretation method and device
CN114967843A (en) Terminal accessory, electronic equipment and positioning method

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