Positioning method and electronic device

By setting up vertical and horizontal antennas in electronic devices and selecting the best antenna for merging based on the quality of the received satellite signals, the problem of decreased positioning accuracy in landscape orientation is solved, achieving high-precision positioning and power consumption optimization in landscape orientation.

CN113740893BActive Publication Date: 2026-01-06HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010480900.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-30
Publication Date
2026-01-06
Estimated Expiration
2040-05-30

AI Technical Summary

Technical Problem

The positioning accuracy of electronic devices decreases when the screen is in landscape orientation, and existing technologies have not been able to effectively improve this.

Method used

By setting up vertical and horizontal antennas in electronic devices, the optimal antenna is selected for positioning based on the number of satellites received and the signal quality of each. Satellite signals are combined to improve positioning accuracy, and interference is reduced through filtering and amplification.

Benefits of technology

In landscape mode, the positioning accuracy of electronic devices is improved, and power consumption is saved when necessary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113740893B_ABST
    Figure CN113740893B_ABST
Patent Text Reader

Abstract

This application discloses a positioning method and an electronic device. The positioning method includes: when the electronic device is in landscape orientation, the electronic device can select to receive satellite signals using either a vertical or horizontal antenna based on factors such as the number of satellites received by the vertical and horizontal antennas respectively, and the quality of the satellite signals received by the vertical and horizontal antennas respectively. The electronic device then performs positioning based on the satellite signals received by either the vertical or horizontal antenna. This improves the positioning accuracy of the electronic device when in landscape orientation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic technology, and more particularly to a positioning method and an electronic device. Background Technology

[0002] Currently, most electronic devices are equipped with satellite positioning antennas (such as Global Positioning System (GPS) antennas, BeiDou positioning antennas, GLONASS positioning antennas, etc.). Electronic devices utilize these antennas to receive satellite signals. The strength of the satellite signal received by the antenna directly affects the accuracy of the device's positioning. The stronger the satellite signal received, the more accurate the positioning. When the antenna is pointed towards the sky, it can better receive satellite signals, resulting in more accurate positioning. Generally, the GPS antenna in an electronic device is installed in the upper left corner (near the camera) when the device is in portrait mode. Figure 1A and Figure 1B Satellite positioning antenna 10a in the electronic device 100 shown. Figure 1A The electronic device may include a Wi-Fi antenna 10g and a mobile communication main antenna 10c. Figure 1B The electronic device may also include a diversity antenna 10e for cellular data transmission, a cellular antenna 10b for receiving low, medium, and high frequency cellular mobile signals, and a chip 10f for processing satellite signals or Wi-Fi signals. Figure 1A and Figure 1B In the illustrated electronic device, the satellite positioning antenna 10a is located at the upper left corner of the electronic device 100. This allows the satellite positioning antenna to face the sky when the electronic device 100 is in portrait orientation, resulting in better reception of satellite signals. However, when the electronic device is in landscape orientation, the orientation of the satellite positioning antenna changes, thus affecting the positioning accuracy of the electronic device.

[0003] Therefore, improving the positioning accuracy of electronic devices in landscape mode is an urgent problem to be solved. Summary of the Invention

[0004] This application provides a positioning method and an electronic device that, when the electronic device is in landscape orientation, allows it to select either a vertical or horizontal antenna to receive satellite signals based on factors such as the number of satellites received by each antenna and the quality of the received satellite signals. The electronic device then performs positioning based on the satellite signals received by either the vertical or horizontal antenna. This improves the positioning accuracy of the electronic device when in landscape orientation.

[0005] Firstly, this application provides a positioning method applied to an electronic device, which includes a first antenna and a second antenna. The method includes: when the electronic device is in portrait mode, it receives a first satellite signal via the second antenna; when the electronic device is in landscape mode, it receives a second satellite signal via the second antenna; if the signal quality of the first satellite signal is lower than that of the second satellite signal, the electronic device uses the second antenna for positioning; if the signal quality of the first satellite signal is higher than that of the second satellite signal, the electronic device uses the second antenna for positioning.

[0006] The first satellite signal includes satellite signals from multiple satellites received by the first antenna; the second satellite signal includes satellite signals from multiple satellites received by the second antenna.

[0007] The direction of the main lobe in the antenna pattern of the first antenna is different from that in the antenna pattern of the second antenna.

[0008] According to the positioning method provided in this application, when an electronic device is in landscape mode, it can select the antenna with the best satellite signal quality in landscape mode based on the signal quality of the satellite signals received by the first antenna and the second antenna, respectively, for positioning. This improves the positioning accuracy of the electronic device in landscape mode.

[0009] In one possible implementation, the signal quality of the first satellite signal is lower than that of the second satellite signal, and the electronic device uses both the first and second antennas for positioning. That is, in landscape mode, the electronic device can use two antennas for positioning. This improves the positioning accuracy of the electronic device in landscape mode.

[0010] In one possible implementation, the signal quality of the first satellite signal is equal to that of the second satellite signal, and the electronic device uses the second antenna for positioning. Since the electronic device has switched to receiving signals via the second antenna, it can directly perform positioning through the second antenna. This avoids the electronic device switching back to the first antenna, saving power consumption.

[0011] In one possible implementation, the electronic device performs positioning via a first antenna and a second antenna, including: the electronic device determining location information based on the first satellite signal and the second satellite signal.

[0012] In one possible implementation, the electronic device determines the location information based on the first satellite signal and the second satellite signal, specifically by combining the first satellite signal and the second satellite signal to obtain a third satellite signal.

[0013] In one possible implementation, the electronic device combines the first satellite signal and the second satellite signal to obtain a third satellite signal, including: the electronic device extracts the satellite signal with the highest signal quality from the first satellite signal and the second satellite signal to obtain the third signal.

[0014] In one possible implementation, the electronic device combines the first satellite signal and the second satellite signal to obtain the third satellite signal. Specifically, the electronic device determines the satellite signals corresponding to L different satellites from the first satellite signal and the second satellite signal, and determines the satellite signals corresponding to the L different satellites as the third satellite signal. Specifically, when the first satellite among the L different satellites corresponds to one satellite signal, the electronic device adds the satellite signal corresponding to the first satellite to the third satellite signal; when the second satellite among the L different satellites corresponds to two satellite signals, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase, adds the two satellite signals with the same phase to combine them into one satellite signal, and adds it to the third satellite signal.

[0015] In one possible implementation, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase, and adds the two satellite signals with the same phase to form a single satellite signal which is then placed into the third satellite signal. Specifically, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase; the electronic device obtains the weights corresponding to the two satellite signals; the electronic device multiplies the two satellite signals with the same phase by their respective weights and then adds them together to form a single satellite signal which is then placed into the third satellite signal.

[0016] In one possible implementation, before the electronic device combines the first and second satellite signals to obtain the third satellite signal, it performs signal processing on the first and second satellite signals. This reduces interference from other interfering signals on the first and second satellite signals.

[0017] In one possible implementation, the electronic device performs signal processing on the first satellite signal and the second satellite signal, specifically including: the electronic device filtering the first satellite signal and the second satellite signal respectively through a surface acoustic wave filter; and the electronic device amplifying the first satellite signal and the second satellite signal respectively through a low-noise amplifier.

[0018] In one possible implementation, after the electronic device combines the first satellite signal and the second satellite signal to obtain the third satellite signal, it includes: the electronic device performing signal processing on the third satellite signal.

[0019] In one possible implementation, the electronic device performs signal processing on the third satellite signal, specifically by filtering the third satellite signal using a surface acoustic wave filter.

[0020] Secondly, this application provides a positioning method applied to an electronic device, which includes a first antenna and a second antenna. The method includes: the electronic device performing positioning using the first antenna and the second antenna; and the electronic device performing positioning using the first antenna when the signal quality of a first satellite signal received by the first antenna is higher than a first threshold.

[0021] The direction of the main lobe in the antenna pattern of the first antenna is different from that in the antenna pattern of the second antenna.

[0022] The positioning method provided in this application allows the electronic device to perform positioning via a first antenna and a second antenna by default, in order to ensure positioning accuracy. When positioning via the first antenna also meets the required accuracy, the electronic device will use the first antenna for positioning, thus saving power consumption.

[0023] In one possible implementation, the electronic device locates itself using a first antenna and a second antenna, including: the electronic device determining its location information based on a first satellite signal and a second satellite signal, wherein the second satellite signal is a satellite signal received by the second antenna.

[0024] In one possible implementation, the electronic device determines the location information based on the first satellite signal and the second satellite signal, specifically by combining the first satellite signal and the second satellite signal to obtain a third satellite signal.

[0025] In one possible implementation, the electronic device combines the first satellite signal and the second satellite signal to obtain a third satellite signal, including: the electronic device extracts the satellite signal with the highest signal quality from the first satellite signal and the second satellite signal to obtain the third signal.

[0026] In one possible implementation, the electronic device combines the first satellite signal and the second satellite signal to obtain the third satellite signal. Specifically, the electronic device determines the satellite signals corresponding to L different satellites from the first satellite signal and the second satellite signal, and determines the satellite signals corresponding to the L different satellites as the third satellite signal. Specifically, when the first satellite among the L different satellites corresponds to one satellite signal, the electronic device adds the satellite signal corresponding to the first satellite to the third satellite signal; when the second satellite among the L different satellites corresponds to two satellite signals, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase, adds the two satellite signals with the same phase to combine them into one satellite signal, and adds it to the third satellite signal.

[0027] In one possible implementation, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase, and adds the two satellite signals with the same phase to form a single satellite signal which is then placed into the third satellite signal. Specifically, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase; the electronic device obtains the weights corresponding to the two satellite signals; the electronic device multiplies the two satellite signals with the same phase by their respective weights and then adds them together to form a single satellite signal which is then placed into the third satellite signal.

[0028] In one possible implementation, before the electronic device combines the first and second satellite signals to obtain the third satellite signal, it performs signal processing on the first and second satellite signals. This reduces interference from other interfering signals on the first and second satellite signals.

[0029] In one possible implementation, the electronic device performs signal processing on the first satellite signal and the second satellite signal, specifically including: the electronic device filtering the first satellite signal and the second satellite signal respectively through a surface acoustic wave filter; and the electronic device amplifying the first satellite signal and the second satellite signal respectively through a low-noise amplifier.

[0030] In one possible implementation, after the electronic device combines the first satellite signal and the second satellite signal to obtain the third satellite signal, it includes: the electronic device performing signal processing on the third satellite signal.

[0031] In one possible implementation, the electronic device performs signal processing on the third satellite signal, specifically by filtering the third satellite signal using a surface acoustic wave filter.

[0032] Thirdly, this application provides a positioning method applied to an electronic device, which includes a first antenna and a second antenna. The method includes: the electronic device performing positioning via the first antenna; and when the signal quality of a first satellite signal received by the first antenna is lower than a second threshold, the electronic device performing positioning via the first antenna and the second antenna.

[0033] The direction of the main lobe in the antenna pattern of the first antenna is different from that in the antenna pattern of the second antenna.

[0034] The positioning method provided in this application allows electronic devices to perform positioning via a first antenna by default, thus saving power consumption. When the signal quality of the first satellite signal received by the first antenna is insufficient to meet the positioning accuracy requirements of the electronic device, the device will then use both the first and second antennas for positioning. This improves the positioning accuracy of the electronic device.

[0035] In one possible implementation, the electronic device locates itself using a first antenna and a second antenna, including: the electronic device determining its location information based on a first satellite signal and a second satellite signal, wherein the second satellite signal is a satellite signal received by the second antenna.

[0036] In one possible implementation, the electronic device determines the location information based on the first satellite signal and the second satellite signal, specifically by combining the first satellite signal and the second satellite signal to obtain a third satellite signal.

[0037] In one possible implementation, the electronic device combines the first satellite signal and the second satellite signal to obtain a third satellite signal, including: the electronic device extracts the satellite signal with the highest signal quality from the first satellite signal and the second satellite signal to obtain the third signal.

[0038] In one possible implementation, the electronic device combines the first satellite signal and the second satellite signal to obtain the third satellite signal. Specifically, the electronic device determines the satellite signals corresponding to L different satellites from the first satellite signal and the second satellite signal, and determines the satellite signals corresponding to the L different satellites as the third satellite signal. Specifically, when the first satellite among the L different satellites corresponds to one satellite signal, the electronic device adds the satellite signal corresponding to the first satellite to the third satellite signal; when the second satellite among the L different satellites corresponds to two satellite signals, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase, adds the two satellite signals with the same phase to combine them into one satellite signal, and adds it to the third satellite signal.

[0039] In one possible implementation, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase, and adds the two satellite signals with the same phase to form a single satellite signal which is then placed into the third satellite signal. Specifically, the electronic device adjusts the two satellite signals corresponding to the second satellite to be in phase; the electronic device obtains the weights corresponding to the two satellite signals; the electronic device multiplies the two satellite signals with the same phase by their respective weights and then adds them together to form a single satellite signal which is then placed into the third satellite signal.

[0040] In one possible implementation, before the electronic device combines the first and second satellite signals to obtain the third satellite signal, it performs signal processing on the first and second satellite signals. This reduces interference from other interfering signals on the first and second satellite signals.

[0041] In one possible implementation, the electronic device performs signal processing on the first satellite signal and the second satellite signal, specifically including: the electronic device filtering the first satellite signal and the second satellite signal respectively through a surface acoustic wave filter; and the electronic device amplifying the first satellite signal and the second satellite signal respectively through a low-noise amplifier.

[0042] In one possible implementation, after the electronic device combines the first satellite signal and the second satellite signal to obtain the third satellite signal, it includes: the electronic device performing signal processing on the third satellite signal.

[0043] In one possible implementation, the electronic device performs signal processing on the third satellite signal, specifically by filtering the third satellite signal using a surface acoustic wave filter.

[0044] Fourthly, an electronic device is provided, comprising: a baseband processor, a first antenna, a second antenna, and a path selection module, wherein the first antenna and the second antenna are respectively coupled to the path selection module, and the path selection module is coupled to the baseband processor, wherein:

[0045] The first antenna is used to receive signals from the first satellite.

[0046] The second antenna is used to receive signals from the second satellite.

[0047] The path selection module is used to select either the first antenna or the second antenna to receive satellite signals;

[0048] The baseband processor is used to locate the satellite using the second antenna when the signal quality of the first satellite signal is lower than that of the second satellite signal, or to locate the satellite using the first antenna when the signal quality of the first satellite signal is higher than that of the second satellite signal.

[0049] In one possible implementation, the main lobe direction in the antenna pattern of the first antenna is different from that in the antenna pattern of the second antenna.

[0050] In one possible implementation, the electronic device further includes: a first radio frequency module, a second radio frequency module, a first antenna, and a second antenna, each coupled to a path selection module; specifically, the first antenna is coupled to the path selection module via the first radio frequency module; and the second antenna is coupled to the path selection module via the second radio frequency module.

[0051] The first radio frequency module is used to transmit the first satellite signal;

[0052] The second radio frequency module is used to transmit the second satellite signal.

[0053] In one possible implementation, the first radio frequency module includes: a first surface acoustic wave filter and a first low-noise amplifier, wherein:

[0054] The first surface acoustic wave filter is used to filter the first satellite signal;

[0055] The first low-noise amplifier is used to amplify the first satellite signal.

[0056] In one possible implementation, the second radio frequency module includes: a second surface acoustic wave filter and a second low-noise amplifier, wherein:

[0057] The second surface acoustic wave filter is used to filter the first satellite signal;

[0058] The second low-noise amplifier is used to amplify the first satellite signal.

[0059] In one possible implementation, the baseband processor is also used when the signal quality of the first satellite signal is lower than that of the second satellite signal, and the electronic device is positioned using the first antenna and the second antenna.

[0060] In one possible implementation, the baseband processor is specifically used to determine location information based on the first satellite signal and the second satellite signal.

[0061] In one possible implementation, the baseband processor is specifically used to: combine the first satellite signal and the second satellite signal to obtain a third satellite signal.

[0062] In one possible implementation, the baseband processor is specifically used to: extract the satellite signal with the highest signal quality from the first satellite signal and the second satellite signal to obtain the third signal.

[0063] In one possible implementation, the baseband processor is specifically used to: determine the satellite signals corresponding to L different satellites from the first satellite signal and the second satellite signal, and determine the satellite signals corresponding to the L different satellites as the third satellite signal; wherein, when the first satellite among the L different satellites corresponds to one satellite signal, the satellite signal corresponding to the first satellite is added to the third satellite signal; when the second satellite among the L different satellites corresponds to two satellite signals, the two satellite signals corresponding to the second satellite are adjusted to have the same phase, and the two satellite signals with the same phase are added together to form a single satellite signal which is then added to the third satellite signal.

[0064] In one possible implementation, the baseband processor is specifically used to: adjust the two satellite signals corresponding to the second satellite to be in phase; obtain the weights corresponding to the two satellite signals respectively; multiply the two satellite signals with the same phase by their respective weights and then add them together to form a satellite signal which is then fed into the third satellite signal.

[0065] Fifthly, this application provides an electronic device, including: a first antenna and a second antenna, one or more processors, and one or more memories; the main lobe direction in the antenna pattern of the first antenna is different from the main lobe direction in the antenna pattern of the second antenna; the first antenna, the second antenna, and the one or more memories are respectively coupled to one or more processors; the one or more memories are used to store computer program code, the computer program code including computer instructions; when the computer instructions are executed on the processor, the electronic device causes the electronic device to execute the positioning method in any possible implementation of the first, second, and third aspects described above.

[0066] Sixthly, this application provides a positioning chip, which is applied in a positioning device including a first antenna and a second antenna. The positioning chip is used to: perform positioning via the second antenna when the signal quality of the first satellite signal is lower than that of the second satellite signal; the first satellite signal is a satellite signal received by the first antenna; the second satellite signal is a satellite signal received by the second antenna; or perform positioning via the first antenna when the signal quality of the first satellite signal is higher than that of the second satellite signal.

[0067] In one possible implementation, the positioning chip is also used when the signal quality of the first satellite signal is lower than that of the second satellite signal, and the electronic device performs positioning through the first antenna and the second antenna.

[0068] In one possible implementation, the positioning chip is specifically used to determine location information based on a first satellite signal and a second satellite signal.

[0069] In one possible implementation, the positioning chip is specifically used to: combine the first satellite signal and the second satellite signal to obtain the third satellite signal.

[0070] In one possible implementation, the positioning chip is specifically used to: extract the satellite signal with the highest signal quality from the first satellite signal and the second satellite signal to obtain the third signal.

[0071] In one possible implementation, the positioning chip is specifically used to: determine the satellite signals corresponding to L different satellites from the first satellite signal and the second satellite signal, and determine the satellite signals corresponding to the L different satellites as the third satellite signal; wherein, when the first satellite among the L different satellites corresponds to one satellite signal, the satellite signal corresponding to the first satellite is added to the third satellite signal; when the second satellite among the L different satellites corresponds to two satellite signals, the two satellite signals corresponding to the second satellite are adjusted to have the same phase, and the two satellite signals with the same phase are added together to form a single satellite signal which is then added to the third satellite signal.

[0072] In one possible implementation, the positioning chip is specifically used to: adjust the two satellite signals corresponding to the second satellite to be in phase; obtain the weights corresponding to the two satellite signals respectively; multiply the two satellite signals with the same phase by their respective weights and then add them together to form a satellite signal which is then fed into the third satellite signal.

[0073] In a seventh aspect, this application provides a computer storage medium including computer instructions that, when executed on an electronic device, cause a communication device to perform the positioning method in any of the possible implementations of the first, second, and third aspects described above.

[0074] Eighthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to execute the positioning method in any of the possible implementations of the first, second, and third aspects described above. Attached Figure Description

[0075] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments of this application will be described below.

[0076] Figure 1A-Figure 1B This is a schematic diagram of an antenna for an electronic device.

[0077] Figure 2 Antenna radiation pattern provided for embodiments of this application;

[0078] Figure 3 This is a schematic diagram of the vertical screen orientation of an electronic device in the XYZ coordinate system provided in an embodiment of this application;

[0079] Figure 4 A schematic diagram of the landscape orientation of an electronic device in the XYZ coordinate system provided in an embodiment of this application;

[0080] Figures 5A-5B A schematic diagram of the user interface of an electronic device in landscape orientation, as provided in an embodiment of this application;

[0081] Figure 6 This is a schematic diagram of an antenna in an electronic device provided in an embodiment of this application;

[0082] Figure 7 A circuit diagram for receiving satellite signals is provided as an embodiment of this application;

[0083] Figure 8A This is a schematic flowchart of a positioning method provided in an embodiment of this application;

[0084] Figure 8B A timing diagram of a first antenna and a second antenna receiving satellite signals is provided for embodiments of this application;

[0085] Figure 9 This is a schematic diagram of a map application interface provided in an embodiment of this application;

[0086] Figure 10 A circuit diagram for receiving satellite signals is provided as an embodiment of this application;

[0087] Figure 11 A flowchart illustrating a positioning method provided in an embodiment of this application;

[0088] Figure 12 A circuit diagram for receiving satellite signals is provided as an embodiment of this application;

[0089] Figure 13 A flowchart illustrating a positioning method provided in an embodiment of this application;

[0090] Figure 14 A schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application;

[0091] Figure 15 This is a schematic diagram of a chip system provided in an embodiment of this application. Detailed Implementation

[0092] The technical solutions in the embodiments of this application will now be described clearly and in detail with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0093] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying relative importance or implicitly indicating the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more. Furthermore, the terms "comprising" and "having," and any variations thereof, mentioned in the description of this application, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or devices. It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. To be precise, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific way.

[0094] The following explains some concepts involved in the embodiments of this application, such as antenna pointing towards the sky, vertical screen orientation, and horizontal screen orientation.

[0095] (1) Antenna facing the sky

[0096] An antenna pointing towards the sky means that the antenna's maximum radiated beam is perpendicular to the ground, or that the angle between the antenna and the ground is within a certain range. That is, the main lobe in the antenna pattern is perpendicular to the ground, or that the angle between the antenna and the ground is within a certain range. The first range can be configured by the electronic equipment; for example, the first range could be [60°, 120°], and is not limited here. The main lobe is the maximum radiated beam located in the antenna pattern. Figure 2 As shown, Figure 2 An exemplary localization antenna pattern provided in an embodiment of this application is shown. Figure 2 In the antenna pattern, 'ab' represents the main lobe. When the main lobe 'ab' is perpendicular to the ground, the antenna is pointing towards the sky. The direction of the main lobe 'ab' is... Figure 1AIn the electronic device 100, the left and right borders are parallel. In the main lobe ab, lobe 'a' faces either the top or bottom border.

[0097] (2) Vertical screen posture

[0098] In this embodiment of the application, the upper or lower edge of the electronic device is parallel to the ground (i.e., Figure 3 When the first included angle (in the XYZ spatial coordinate system shown in the diagram, specifically the XOY plane) is less than a first threshold, the electronic device is in portrait orientation. The electronic device can obtain the first included angle using a gyroscope sensor. The first threshold is configured by the electronic device system. The first threshold can be 10°, 20°, 30°, etc., and is not limited here. Figure 3 This diagram illustrates an electronic device in a spatial coordinate system XYZ. The electronic device 100 may include a front-facing camera 301 and a speaker 302. Figure 3 In this embodiment, the electronic device 100 is in portrait orientation. The electronic device 100 is in portrait orientation when its top and bottom borders are parallel to the XOY plane, and its left and right borders are perpendicular to the XOY plane. In this embodiment, the portrait orientation can also be referred to as the portrait state.

[0099] (3) Landscape mode

[0100] In some cases, the electronic device is in landscape orientation when the second angle between the top or bottom edge of the electronic device and the XOY plane in the XYZ spatial coordinate system is greater than a second threshold or is parallel to the display direction of the user interface. The electronic device can obtain the second angle using a gyroscope sensor. The second threshold is configured by the electronic device system. The second threshold can be 45°, 60°, 70°, etc., and is not limited here.

[0101] In some embodiments, when the electronic device 100 receives an operation from a user to open a preset application, such as a game application or a video application, the electronic device 100 may display a landscape interface; in some embodiments, when some applications are displayed in landscape mode, they are usually displayed in full screen.

[0102] In some embodiments, the electronic device 100 can display in landscape or portrait mode based on sensor data, for example, by using a gyroscope or an accelerometer.

[0103] like Figure 4 A schematic diagram of an electronic device in the XYZ spatial coordinate system is shown. Figure 4 The electronic device 100 is in landscape orientation. The electronic device 100 is in landscape orientation when its top and bottom borders are perpendicular to the XOY plane, and its left and right borders are parallel to the XOY plane.

[0104] In other examples, an electronic device can determine its landscape orientation based on user actions detected in the user interface. For instance, a user can tap... Figure 5A The control 506 in the video playback interface 501 shown is used to switch the display mode of the video playback interface 501. For example... Figure 5A As shown, the video playback interface may include a playback control 502, a progress bar 503, a current playback time 504, a video duration 504, and a control 506. The playback control 502 is used to control the playback or stop of the video. The progress bar 503 is used to display the current playback progress of the video. The current playback time 504 is used to display how many minutes the video has been playing (e.g., the current video has played for 9 minutes and 21 seconds). The video duration 504 is used to display the total duration of the video (e.g., 45 minutes and 34 seconds). When the user clicks the control 506, the electronic device can display... Figure 5B User interface 50B. User interface 50B is a full-screen video playback interface.

[0105] exist Figure 5B In the middle, electronic device 100 is in landscape orientation. Figure 5B The electronic device 100 displays a user interface 501B. The display direction of the user interface 501B is parallel to the side AB where the front-facing camera 301 and the speaker 302 are located.

[0106] In the embodiments of this application, the landscape orientation can also be referred to as the landscape state.

[0107] Figure 6 This illustration shows a schematic diagram of the placement of a satellite positioning antenna for an electronic device provided in an embodiment of this application.

[0108] To improve the positioning accuracy of electronic devices in landscape orientation, this application provides an electronic device, such as... Figure 6 As shown, the electronic device may include two satellite positioning antennas, namely satellite positioning antenna 10a and satellite positioning antenna 10d. Satellite positioning antenna 10a is the vertical antenna of this embodiment, also referred to as the first antenna. Satellite positioning antenna 10d is the horizontal antenna of this embodiment, also referred to as the second antenna. The main lobe of the antenna pattern of satellite positioning antenna 10a may be aligned with the direction from the top edge to the bottom edge of the electronic device. The main lobe of the antenna pattern of satellite positioning antenna 10d may be aligned with the direction from the left edge to the right edge of the electronic device.

[0109] Based on the electronic device provided in this application embodiment, this application embodiment provides a positioning method. Before positioning, the electronic device can determine the antenna with the best positioning effect based on one or more factors, such as the number of satellites received by the vertical antenna (which may be called the first antenna) and the horizontal antenna (which may be called the second antenna), and the quality of the satellite signals received by the vertical antenna and the horizontal antenna, respectively. This can improve the positioning accuracy of the electronic device when in landscape orientation.

[0110] In this embodiment, satellite positioning antenna 10a and satellite positioning antenna 10d are dual-band antennas supporting L1 and L5. That is, satellite positioning antenna 10a and satellite positioning antenna 10d can receive L1 carrier signals and L2 carrier signals.

[0111] The following describes a positioning method provided by an embodiment of this application.

[0112] In some applications, when an electronic device is in landscape orientation, it can choose to use either the vertical or horizontal antenna to receive satellite signals, based on factors such as the number of satellites received by the vertical antenna (the first antenna) and the quality of the satellite signals received by each antenna. The electronic device then uses the satellite signals received by either the vertical or horizontal antenna for positioning.

[0113] Figure 7 An exemplary circuit diagram of receiving satellite signals in an electronic device provided in an embodiment of this application is illustrated. Figure 7 As shown in the circuit diagram, the circuit for receiving satellite signals may include antenna 1, antenna 2, RF channels 70A and 70B, a switch 705, which may include connection points L1, L2, and L3, a surface acoustic wave filter 706, and a modem 707.

[0114] Antenna 1 is used to receive satellite signal M1 when connection points L1 and L3 in switch 705 are connected. Antenna 1 here corresponds to satellite positioning antenna 10a mentioned above, and is also called a vertical antenna.

[0115] Antenna 2 is used to receive satellite signal N1 when connection points L1 and L2 in switch 705 are connected. Antenna 2 here corresponds to satellite positioning antenna 10d mentioned above, and is also called a horizontal antenna.

[0116] Radio frequency channel 70A is used to transmit satellite signals received by antenna 1.

[0117] In one possible implementation, the radio frequency channel 70A may include a surface acoustic wave (SAW) filter 703 and a low noise amplifier (LNA) 704; wherein:

[0118] The surface acoustic wave filter 703 is used to filter out the higher harmonics in the satellite signal M1 received by the antenna 1 to obtain the satellite signal M2.

[0119] The low-noise amplifier 704 is used to amplify the satellite signal N2 to obtain the satellite signal N3.

[0120] Radio frequency channel 70B is used to transmit satellite signals received by antenna 2. Radio frequency channel 70B may include a surface acoustic wave filter 701 and a low-noise amplifier 702; wherein:

[0121] The surface acoustic wave filter 701 is used to filter out the higher harmonics in the satellite signal N1 received by the antenna 2 to obtain the satellite signal N2.

[0122] The low-noise amplifier 702 is used to amplify the satellite signal M2 to obtain the satellite signal M3.

[0123] The switch 705 is used to select either antenna 1 or antenna 2 to receive satellite signals.

[0124] In one possible implementation, the switch 705 can receive a control command sent by the wireless communication module in the electronic device. This control command can be used to control the connection point L1 of the switch 705 to connect with connection point L2, or to connection point L3. This allows selection of antenna 1 or antenna 2 to receive satellite signals.

[0125] In one possible implementation, the switch 705 can receive control commands sent by an application processor in the electronic device. These control commands can be used to control the connection of connection point L1 to connection point L2, or to connection point L3, of the switch 705, thereby selecting either antenna 1 or antenna 2 to receive satellite signals.

[0126] The surface acoustic wave (SAW) filter 706 is used to filter out noise signals in the satellite signal. When connection points L1 and L3 in the switch 705 are connected, the SAW filter 706 filters out noise signals in the satellite signal M3, resulting in the satellite signal M4. When connection points L1 and L2 in the switch 705 are connected, the SAW filter 706 filters out noise signals in the satellite signal N3, resulting in the satellite signal N4.

[0127] The modem707 modem is used to demodulate satellite signals. In some cases, the modem707 can also be used to modulate Wi-Fi and Bluetooth signals.

[0128] In some examples, the circuitry for receiving satellite signals in an electronic device may not include the surface acoustic wave filter 706. It is understood that the number of devices in the satellite signal receiving circuitry of the electronic device in the embodiments of this application may be more or less than [the number of devices mentioned earlier]. Figure 7 The device shown is not limited in this application.

[0129] In this embodiment, the switching switch 705 can be referred to as a path selection module.

[0130] In this embodiment, satellite signal M1 can be referred to as the first satellite signal. Satellite signal N1 can be referred to as the second satellite signal. Satellite signal W can be referred to as the third satellite signal. The first satellite signal can be processed to obtain satellite signal M4. The second satellite signal can be processed to obtain satellite signal N4.

[0131] Based on the circuit diagram above, this application provides a positioning method.

[0132] The following is combined Figure 8A This application provides a positioning method according to an embodiment. Please refer to [link to relevant documentation]. Figure 8A , Figure 8A This is a schematic flowchart of a positioning method provided in an embodiment of this application. Figure 8A As shown, a positioning method provided in this application embodiment may include:

[0133] S100, in response to the first operation, the electronic device initiates the positioning function.

[0134] The first operation in this application embodiment can be of many kinds. For example, the user turns on GPS positioning on the electronic device, or the user opens a map application and searches for a destination location in the map application interface, or the user clicks the GPS switch in the status bar. No limitation is made here. For example... Figure 9 The map application interface 900 is shown. This interface may include a destination search box 901, a search control 902, a voice input control 903, a map 904, and location markers 905. The destination search box 901 can receive a destination name input by the user. The search control 902 triggers the display of the location corresponding to the destination name in the destination search box 901 on the map 904. The voice input control 903 triggers the reception of the destination name input by the user's voice. The location markers 905 can indicate the location of the electronic device 100 on the map 904. Figure 9The electronic device 100 is in landscape orientation.

[0135] In response to the first operation, the electronic device can activate its positioning function. That is, after receiving the first operation, the electronic device can activate the various modules involved in positioning, such as the antenna, satellite positioning chip, etc.

[0136] Users can use electronic devices for location tracking, as these devices possess location tracking capabilities. Electronic devices can determine their location using satellite positioning technology. Specific details regarding satellite positioning for electronic devices can be found in existing technologies and will not be elaborated here. Electronic devices can also determine their location using base station positioning technology and Wi-Fi technology. Descriptions of how electronic devices use base station positioning technology and Wi-Fi positioning technology for location tracking can be found in existing technologies and will not be elaborated here. Electronic devices can also utilize base station-assisted satellite positioning technology to determine their location. Descriptions of how electronic devices use base station-assisted satellite positioning technology for location tracking can be found in existing technologies and will not be elaborated here. The embodiments of this application will be illustrated below using the example of an electronic device using satellite positioning technology for location tracking.

[0137] Generally, when indoors, electronic devices can use positioning technologies such as Wi-Fi, Bluetooth, or ultra-wideband (UWB) (narrowband) for location. When outdoors, electronic devices can use satellite positioning technology for location.

[0138] S101. The electronic device receives satellite signal M1 through the first antenna and obtains the first signal quality of satellite signal M1.

[0139] The electronic device receives satellite signals via a first antenna. In this embodiment, the first antenna is... Figure 1A , Figure 1B and Figure 6 Antenna 10a shown in the figure and Figure 7 Antenna 1 shown can also be called a vertical antenna. It is understood that when... Figure 7When connection points L1 and L3 of the switch 705 shown are connected, the electronic device can receive satellite signals through the first antenna. The first antenna can receive satellite signals from multiple satellites. The number of satellites the first antenna can receive signals from can vary at different times and locations. The quality of the satellite signals received by the first antenna can also vary. It is understood that the more satellites the electronic device can detect, the higher the quality of the received satellite signals, and the higher the positioning accuracy of the electronic device. Here, various parameters can be used to measure satellite signal quality, such as carrier-to-noise ratio (C / N), signal-to-noise ratio (SNR), received signal strength indication (RSSI), reference signal receiving power (RSRP), and reference signal receiving quality (RSRQ), etc., which are not limited here. A higher C / N value indicates higher satellite signal quality. A higher SNR value also indicates higher satellite signal quality. In a receiver (e.g., electronic device 100), the RSSI is typically a negative value. The smaller the RSSI value, the higher the signal quality received by the receiver. The following explanation uses the SNR value to measure the signal quality of satellite signals.

[0140] It is understandable that satellite signal M1 can contain satellite signals transmitted by multiple satellites. That is, M1 can be a set of multiple satellite signals, for example, M1 is (M11, M12, M13, ..., M1m). Here, m is the number of satellites that the first antenna can detect. The first signal quality of satellite signal M1 corresponds to the signal quality of the satellite signals received by the first antenna from multiple satellites.

[0141] Table 1 exemplarily shows satellite IDs that the first antenna can detect, namely "6", "16", "21", "23", "31", "73", "76", "78", "83", "84", and "86". The first antenna can receive satellite signals transmitted by the satellites corresponding to the above satellite IDs. The signal-to-noise ratio (SNR) in Table 1 can be used to measure the signal quality of the satellite signals received by the first antenna. The higher the SNR value, the better the signal quality of the satellite signals received by the first antenna. It is understood that different electronic devices, or electronic devices at different times or locations, may detect different numbers of satellites than those shown in Table 1. The SNR of the satellite signals may also differ from those shown in Table 1. Table 1 is only an example of the satellites detected by the first antenna and the SNR of the satellite signals, and is not intended to be limiting.

[0142] Table 1

[0143] Satellite ID SNR 6 38.0 16 38.1 21 38.1 23 15.6 31 36.2 73 35.8 76 35.6 78 26.2 83 34.9 84 21.9 86 34.3

[0144] For example, the electronic device can perform signal processing on the satellite signals received by the first antenna. The electronic device can utilize a first surface acoustic wave (SAW) filter (e.g., Figure 7 A surface acoustic wave filter (SAW) 703 filters out high-order harmonics in the satellite signal M1 received by the first antenna to obtain the satellite signal M2. Then, electronic equipment can utilize a low-noise amplifier (LNA) (e.g., Figure 7 The low-noise amplifier 704 amplifies the satellite signal M2 to obtain the satellite signal M3. Electronic devices can process the satellite signal using various methods, such as high-pass filters or other algorithms. This application does not limit the specific signal processing method. This improves the signal quality of the satellite signal M1, allowing the electronic device to locate the target more accurately.

[0145] Here, in portrait orientation, the electronic device receives satellite signals through the first antenna, while the second antenna does not. That is, in portrait orientation, the first antenna outputs a signal, while the second antenna does not.

[0146] S102. Is the electronic device in landscape mode? If yes, proceed to step S103; otherwise, proceed to step S101.

[0147] Electronic devices can be in portrait or landscape orientation. During satellite positioning, users can switch the device to landscape mode. For example, a user can... Figure 4The electronic device shown in the image switches from portrait mode to... Figure 5B The image shows a landscape orientation. When a user changes the way they hold the electronic device, the device can detect this orientation using a gyroscope and / or a gravity sensor. The device can also detect its orientation using a posture sensor. Alternatively, the device can determine its orientation based on detected user actions. For example... Figure 9 The electronic device shown is in landscape orientation.

[0148] When the electronic device determines that it is in landscape orientation, the electronic device can... Figure 7 When the switch 705 shown in the figure is switched to connect point L1 to point L2, the second antenna can receive satellite signals.

[0149] When the electronic device is determined to be in landscape mode, the electronic device executes step S104. If the electronic device is in portrait mode, the electronic device executes step S101.

[0150] It is understood that steps S101 and S102 may not have a sequential relationship; that is, the electronic device may execute steps S101 and S102 simultaneously.

[0151] S103. The electronic device receives satellite signal N1 through the second antenna and obtains the second signal quality of satellite signal N1.

[0152] when Figure 7 The electronic device receives satellite signals via the second antenna only when connection points L1 and L2 in the switch 705 shown are connected. The second antenna can be... Figure 6 The satellite positioning antenna 10d in the middle, Figure 7 Antenna 2 shown in the figure can also be called a horizontal antenna. It can be understood that before step S104 is executed, the electronic device can already connect connection points L1 and L2 in the switch 705 shown in the figure.

[0153] It is understandable that satellite signal N1 can contain satellite signals transmitted by multiple satellites. That is, N1 can be a set of multiple satellite signals, such as (N11, N12, N13, ..., N1n). Here, n is the number of satellites that the second antenna can detect. The second signal quality refers to the signal quality corresponding to the second antenna receiving satellite signals from multiple satellites.

[0154] Table 2 exemplifies the satellite IDs that the second antenna can detect, namely "6", "16", "21", "23", "31", "73", "76", "78", "83", "84", and "86". The second antenna can receive satellite signals transmitted by the satellites corresponding to these satellite IDs. The signal-to-noise ratio (SNR) in Table 2 can be used to measure the signal quality of the satellite signals received by the second antenna. The higher the SNR value, the better the signal quality of the satellite signals received by the second antenna. It is understood that different electronic devices, or electronic devices at different times or locations, may detect different numbers of satellites than those shown in Table 2. The SNR of the satellite signals may also differ from those shown in Table 2. Table 2 is merely an example of the satellites detected by the second antenna and the SNR of the satellite signals, and is not intended to be limiting.

[0155] Table 2

[0156] Satellite ID SNR 6 40.0 16 37.1 21 39.1 23 23.6 31 36.2 73 37.8 76 38.6 78 31.2 83 34.9 84 29.9 86 36.3

[0157] like Figure 8B The timing diagram shown is for the first and second antennas receiving satellite signals. Figure 8B In the diagram, at time T1, the electronic device is in landscape orientation. Before time TI, the electronic device receives satellite signals via the first antenna. At time T1, the electronic device receives satellite signals via the second antenna.

[0158] S104. The electronic device determines whether the first signal quality of satellite signal M1 is lower than the second signal quality of satellite signal N1. If yes, then proceed to step S105; otherwise, proceed to step S106.

[0159] In one possible implementation, the electronic device can determine whether the number of satellites with an SNR greater than a first threshold in satellite signal M1 is less than the number of satellites with an SNR greater than the first threshold in satellite signal N1. For example, as shown in Table 1, the first antenna detects 11 satellites, of which 8 have an SNR greater than 30. The second antenna detects 11 satellites, of which 9 have an SNR greater than 30. Therefore, the electronic device can determine that the signal quality of satellite signal M1 is lower than that of satellite signal N1.

[0160] Furthermore, if the number of satellites whose signal SNR received by the first antenna is greater than the first threshold is equal to the number of satellites whose signal SNR received by the second antenna is greater than the first threshold, the electronic device can compare the signal SNR of the same satellite received by the first and second antennas. For example, if the first antenna detects 11 satellites (satellite IDs 1-11), and 8 of them have a signal SNR > 30, and the second antenna detects 11 satellites, and 8 of them have a signal SNR > 30, then the electronic device can compare the signal SNR of satellite 1 received by the first and second antennas, and the signal SNR of satellite 2 received by the second and second antennas, etc., comparing the signal SNR of all 11 satellites received by the first and second antennas at once. If the number of satellites whose signal SNR received by the first antenna is less than the number of satellites whose signal SNR received by the second antenna exceeds the number of satellites whose signal SNR received by the first antenna is greater than the number of satellites whose signal SNR received by the second antenna, then the electronic device determines that the signal quality of the satellite signal received by the first antenna is lower than the signal quality of the satellite signal received by the second antenna.

[0161] In one possible implementation, when the first signal quality equals the second signal quality, the electronic device can use a second antenna to receive satellite signals. This avoids... Figure 7 The switch 705 is switched to the state where the first antenna can receive satellite signals. This avoids switching the connection point L1 of the switch 705 from connection point L2 to connection point L3. This saves power consumption of the electronic equipment.

[0162] S105. Electronic equipment uses satellite signal N1 for positioning.

[0163] When the signal quality of the satellite signal received by the second antenna is higher than that received by the first antenna, the electronic device uses the satellite signal N1 received by the second antenna for positioning. The electronic device can determine its specific location based on the distances between itself and multiple satellites with known positions. The positions of the satellites are known; the electronic device receives the satellite signal transmitted by the first satellite and can find the position of the first satellite from the navigation message within the satellite signal. The electronic device can calculate the distance to the first satellite based on the time it takes for the satellite signal from the first satellite to reach it. For details on how the electronic device determines its location based on satellite signals, please refer to the existing technology describing the positioning of electronic devices using GPS signals; these details will not be repeated here.

[0164] Furthermore, in one possible implementation, when the signal quality of satellite signal N1 is higher than that of satellite signal M1, if the electronic device determines that the signal quality of satellite signal N1 is greater than a preset threshold, the electronic device performs positioning based on satellite signal N1; otherwise, the electronic device performs positioning based on satellite signal M1. That is, the second antenna is used to receive satellite signal N1 and perform positioning based on satellite signal N1 only when the signal quality of the satellite signal received by the second antenna is relatively good.

[0165] In one possible implementation, if the difference between the signal quality of satellite signal N1 and the signal quality of satellite signal M1 is less than a first difference threshold, the electronic device uses satellite signal M1 for positioning. That is, although the satellite signal quality received by the second antenna is higher than that received by the first antenna, the difference is not significant. In this case, the first antenna can still be used to receive the satellite signal.

[0166] In one possible implementation, if the difference between the signal quality of satellite signal N1 and the signal quality of satellite signal M1 is greater than a second difference threshold, the electronic device uses satellite signal M1 for positioning. If the satellite signal quality received by the second antenna is significantly higher than that received by the first antenna, the electronic device considers the second antenna abnormal. The electronic device then uses the first antenna to receive the satellite signal or indicates an abnormality.

[0167] In one possible implementation, the electronic device performs signal processing on the satellite signal N1 before positioning itself based on the satellite signal N1.

[0168] For example, the electronic device can perform signal processing on satellite signals received by the second antenna. The electronic device can utilize a second SAW filter (e.g., Figure 7 The surface acoustic wave filter 701 in the image filters out higher harmonics in the satellite signal N1 received by the second antenna, obtaining the satellite signal N2. Electronic devices can then utilize an LNA (e.g., Figure 7 The low-noise amplifier 702 amplifies the satellite signal N2 to obtain the satellite signal N3. Here, the electronic device can perform signal processing on the satellite signal using various methods, such as using a high-pass filter or other algorithms. This application does not limit the specific signal processing method. This improves the signal quality of the satellite signal N1, allowing the electronic device to locate the target more accurately.

[0169] S106. Electronic equipment uses satellite signal M1 for positioning.

[0170] When the quality of the first signal is higher than that of the second signal, the electronic device uses the satellite signal received by the first antenna for positioning. Figure 7The connection point L1 of the switch 705 shown in the figure is switched from connection point L2 to connection point L3. Step S105 can be referred to here, and will not be repeated here.

[0171] It's understandable that electronic devices have two antennas. If the satellite signal received by the first antenna is of good quality, the electronic device can perform positioning based solely on the satellite signal from the first antenna. This way, the electronic device doesn't need to process the satellite signals received by both antennas, saving power.

[0172] Electronic devices can display location results. For example... Figure 9 As shown, the electronic device can display the location results in the map application interface 900. The location located by the electronic device can be found at location marker 905.

[0173] In some possible implementations, if the electronic device switches from landscape to portrait mode while using satellite signals acquired by the second antenna for positioning, it will again compare the signal quality of the satellite signals received by the first antenna and the second antenna. If the signal quality of the satellite signals received by the first antenna is higher, then the device will switch to receiving satellite signals through the first antenna.

[0174] In one possible implementation, if the electronic device switches from landscape to portrait orientation when using satellite signals acquired by the second antenna for positioning, it then uses satellite signals acquired by the first antenna for positioning. In other words, the electronic device can be configured to default to using satellite signals acquired by the first antenna for positioning when in portrait orientation.

[0175] In one possible implementation, when the electronic device is using satellite signals acquired via the second antenna for positioning, it switches from landscape to portrait mode. The electronic device then checks the quality of the satellite signals received by the second antenna. If the satellite signal quality is higher than a quality threshold, the electronic device uses the satellite signals received by the second antenna for positioning. This way, the electronic device does not need to switch from the second antenna to the first antenna, saving power.

[0176] In a positioning method provided in this application embodiment, the first antenna faces the sky in portrait orientation, and the second antenna faces the sky in landscape orientation. When the electronic device is in landscape orientation, it can choose to locate itself using the antenna that receives the satellite signal with a better number of satellites and higher signal quality. This allows the electronic device to locate itself more accurately in landscape orientation.

[0177] In other application scenarios, when the electronic device is in landscape orientation, it can choose to use either the vertical antenna (or both antennas) to receive satellite signals, based on factors such as the number of satellites received by the vertical antenna (the first antenna) and the horizontal antenna (the second antenna), and the quality of the satellite signals received by each antenna. The electronic device then uses the satellite signals received by either the vertical antenna or both antennas for positioning.

[0178] like Figure 10 As shown, Figure 10 An exemplary circuit diagram of receiving satellite signals in an electronic device according to an embodiment of this application is shown. In this circuit diagram, the circuit for receiving satellite signals may include antenna 1, antenna 2, radio frequency channel 1000A, radio frequency channel 1000B, and combiner 1005. Combiner 1005 may include connection points L1, L2, L3, and L4, surface acoustic wave filter 1006, and modem 1007, wherein:

[0179] Antenna 1 is used to receive satellite signal M1 when connection points L2 and L4 in combiner 1005 are connected. Antenna 1 can be... Figure 6 The satellite positioning antenna 10a in the image can be referred to as a vertical antenna.

[0180] Antenna 2 is used to receive satellite signal N1 when connection points L2 and L3 in combiner 1005 are connected. Antenna 2 can be... Figure 6 The satellite positioning antenna 10d in the image can be called a horizontal antenna.

[0181] Radio frequency channel 1000A is used to transmit satellite signals received by antenna 1. Radio frequency channel 1000A may include a surface acoustic wave filter 1003 and a low-noise amplifier 1004, wherein:

[0182] The surface acoustic wave filter 1003 is used to filter out the high-order harmonics in the satellite signal M1 received by the antenna 1 to obtain the satellite signal M2.

[0183] The low-noise amplifier 1004 is used to amplify the satellite signal N2 to obtain the satellite signal N3.

[0184] Radio frequency channel 1000B is used to transmit satellite signals received by antenna 2. Radio frequency channel 1000B may include a surface acoustic wave filter 1001 and a low-noise amplifier 1002, wherein:

[0185] The surface acoustic wave filter 1001 is used to filter out the higher harmonics in the satellite signal N1 received by the antenna 2 to obtain the satellite signal N2.

[0186] The low-noise amplifier 1002 is used to amplify the satellite signal M2 to obtain the satellite signal M3.

[0187] Combiner 1005 is used to select antenna 1, or antenna 1 and antenna 2, to receive satellite signals. In combiner 1005, connection point L1 is connected to connection point L2. Connection point L2 is always connected to connection point L3. Connection point L2 and connection point L4 can be connected or disconnected. In this embodiment, combiner 1005 can also be referred to as a path selection module.

[0188] When connection point L2 is connected to connection point L4, both antenna 1 and antenna 2 can receive satellite signals. Combiner 1005 can select the satellite signal with stronger signal quality from the same satellite signals received by antennas 1 and 2 respectively. For example, if antenna 1 receives a satellite signal with an SNR of 38 from satellite 1 and an SNR of 28 from satellite 2, and antenna 2 receives a satellite signal with an SNR of 30 from satellite 1 and an SNR of 31 from satellite 2, then the satellite signal of satellite 1 output from connection point L1 in combiner 1005 is the satellite signal received by antenna 1, and the satellite signal of satellite 2 is the satellite signal received by antenna 2.

[0189] When connection point L2 is disconnected from connection point L4, antenna 1 can receive satellite signals, while antenna 2 cannot receive satellite signals.

[0190] The surface acoustic wave (SAW) filter 1006 is used to filter out noise signals in the satellite signal. When connection points L2 and L4 in the combiner 1005 are disconnected, the SAW filter 1006 filters out noise signals in the satellite signal M3, resulting in satellite signal M4. When connection points L1 and L2 in the combiner 1005 are connected, the SAW filter 1006 filters out noise signals from satellite signals N3 and M3 that have a higher SNR, resulting in satellite signal W.

[0191] The modem707 is used to demodulate satellite signals. The modem1007 may include a position calculation module, which is used to determine position information based on satellite signals.

[0192] In some examples, the circuitry for receiving satellite signals in an electronic device may not include the surface acoustic wave filter 1006. It is understood that the number of components in the satellite signal receiving circuitry of the electronic device in the embodiments of this application may be more or less than [the number of components needed]. Figure 10 The device shown is not limited in this application.

[0193] Based on the circuit diagram above, this application provides a positioning method.

[0194] The following is combined Figure 11This application provides a positioning method according to an embodiment. Please refer to [link to relevant documentation]. Figure 11 , Figure 11 This is a schematic flowchart of a positioning method provided in an embodiment of this application. Figure 11 As shown, a method provided in this application embodiment may include:

[0195] S200, in response to the first operation, the electronic device initiates the positioning function.

[0196] Step S200 can be referred to step S100, and will not be repeated here.

[0197] S201. The electronic device receives satellite signal M1 through the first antenna and obtains the first signal quality of satellite signal M1.

[0198] when Figure 10 When connection points L2 and L4 of the combiner 1005 shown are disconnected, the electronic equipment receives satellite signals through the first antenna. Here, the first antenna is... Figure 10 Antenna 1 is shown in the figure. Step S201 can be referred to step S101, and will not be repeated here.

[0199] S202. Is the electronic device in landscape mode? If yes, proceed to step S203; otherwise, proceed to step 201.

[0200] Step S202 can be referred to step S102, and will not be repeated here.

[0201] S203. The electronic device receives satellite signal M1 through the first antenna and satellite signal N1 through the second antenna, and obtains the combined satellite signal W and the third signal quality of satellite signal W.

[0202] When the electronic device is in landscape mode Figure 10The combiner 1005 shown is connected at connection points L2 and L4. Electronic devices can receive satellite signals via a first antenna and a second antenna. The satellite signal received by the first antenna is M1. Assume satellite signal M1 includes satellite signals M11 from satellite 1, M12 from satellite 2, M13 from satellite 3, M14 from satellite 4, and M15 from satellite 5. The satellite signal received by the second antenna is N1. Assume satellite signal N1 includes satellite signals N11 from satellite 1, N12 from satellite 2, N13 from satellite 3, N14 from satellite 4, and N15 from satellite 5. If the signal quality of satellite signal M11 is higher than that of satellite signal N11, the signal quality of satellite signal M12 is higher than that of satellite signal N12, the signal quality of satellite signal M13 is lower than that of satellite signal N13, and the signal quality of satellite signal M14 is lower than that of satellite signal N14. The signal quality of satellite signal M15 is higher than that of satellite signal N15. Therefore, after being combined by combiner 1005, the satellite signal W is obtained, which includes satellite signals M11, M12, N13, N14, and M15. For example, Table 3 shows the satellite signal M1 received by the first antenna, the satellite signal N1 received by the second antenna, and the satellite signal W.

[0203] Table 3

[0204]

[0205] It is understood that Table 3 is for illustrative purposes only. The first and second antennas can detect multiple satellites, not limited to the number of satellites and satellite IDs listed in the table.

[0206] The electronic device can also perform signal processing on the satellite signals received by the first and second antennas. For details, please refer to step S101 where the electronic device describes the satellite signals received by the first antenna; further explanation is omitted here.

[0207] S204. The electronic device determines whether the quality of the first signal is lower than that of the third signal. If yes, it proceeds to step S205; otherwise, it proceeds to step S206.

[0208] Step S204 can be referred to step S104, and will not be repeated here. It is understood that, generally, the signal quality of satellite signal W is higher than that of satellite signal M1. If the second antenna is damaged, the signal quality of satellite signal W may be lower than that of satellite signal M1.

[0209] S205. Electronic devices use satellite signals W for positioning.

[0210] When the signal quality of satellite signal M1 is lower than that of satellite signal W, the electronic device uses the satellite signals received by the first and second antennas for positioning. Figure 10 The combiner 1005 shown in the figure has connection points L2 and L4 connected. Step S205 can be referred to step S105, and will not be repeated here.

[0211] S206. Electronic devices are positioned based on satellite signal M1.

[0212] When the signal quality of satellite signal M1 is higher than that of satellite signal W, the electronic device uses the satellite signal received by the first antenna for positioning. Figure 10 In the combiner 1005 shown, connection points L2 and L4 are disconnected.

[0213] In a positioning method provided in this application embodiment, the electronic device has two antennas. The first antenna faces the sky in portrait mode, and the second antenna faces the sky in landscape mode. When the electronic device is in landscape mode, it can determine whether the signal quality of the satellite signal received by the first antenna is higher than the signal quality of the combined satellite signal received by the first antenna and the second antenna. If so, the electronic device performs positioning based on the satellite signal received by the first antenna. If not, the electronic device performs positioning based on the combined satellite signal received by the first antenna and the second antenna. In this way, the electronic device can achieve more accurate positioning when in landscape mode.

[0214] In one possible implementation, if the electronic device switches from landscape to portrait orientation when using satellite signals acquired by the first and second antennas for positioning, it will then use the satellite signals acquired by the first antenna for positioning. In other words, the electronic device can be configured to default to using satellite signals acquired by the first antenna for positioning in portrait orientation.

[0215] In one possible implementation, if the electronic device switches from a landscape orientation to a portrait orientation while using satellite signals acquired by the first and second antennas for positioning, the electronic device can continue to use satellite signals received by the first and second antennas for positioning.

[0216] In one scenario, when an electronic device is positioned in either landscape or portrait orientation for positioning, it can decide whether to receive satellite signals using either the vertical antenna (referred to as the first antenna) or a combination of both (referred to as the second antenna), based on the signal quality of the satellite signals received by the vertical antenna. When the electronic device receives satellite signals using both antennas, it combines the signals from the vertical and horizontal antennas according to the maximum signal-to-weight ratio of each satellite. Then, the electronic device uses the combined satellite signal for positioning.

[0217] like Figure 12 As shown, Figure 12 An exemplary circuit diagram of an electronic device receiving satellite signals according to an embodiment of this application is shown. In this circuit diagram, the circuit for receiving satellite signals may include antenna 1, antenna 2, radio frequency channel 110A, radio frequency channel 110B, and modem 1107, wherein:

[0218] Antenna 1 and antenna 2 are used to receive satellite signals. Antenna 1 can be... Figure 6 The satellite positioning antenna 10a can be a vertical antenna. Antenna 2 can be... Figure 6 The satellite positioning antenna 10d in the image can be called a horizontal antenna.

[0219] Radio frequency channel 110A is used to transmit satellite signals received by antenna 1. Radio frequency channel 110A may include: surface acoustic wave filter 1103, low-noise amplifier 1104, and surface acoustic wave filter 1106, wherein:

[0220] The surface acoustic wave filter 1103 is used to filter out the high-order harmonics in the satellite signal M1 received by the antenna 1 to obtain the satellite signal M2.

[0221] The low-noise amplifier 1104 is used to amplify the satellite signal M2 to obtain the satellite signal M3.

[0222] The surface acoustic wave filter 1106 is used to filter out noise signals in satellite signal M3 to obtain satellite signal M4.

[0223] Radio frequency channel 110B is used to transmit satellite signals received by antenna 2. Radio frequency channel 110B may include: surface acoustic wave filter 1101, low-noise amplifier 1102, and surface acoustic wave filter 1105, wherein:

[0224] The surface acoustic wave filter 1101 is used to filter out the higher harmonics in the satellite signal N1 received by the antenna 2 to obtain the satellite signal N2.

[0225] The low-noise amplifier 1102 is used to amplify the satellite signal N2 to obtain the satellite signal N3.

[0226] The surface acoustic wave filter 1105 is used to filter out noise signals in the satellite signal N3 to obtain the satellite signal N4.

[0227] The modem1107 is used to demodulate the satellite signals received by antenna 1 and antenna 2. It also combines the satellite signals received by antenna 1 and antenna 2 according to the signal strength of each satellite to obtain the satellite signal W.

[0228] In one possible implementation, modem1107 is used to extract the satellite signal with the highest signal quality from multiple satellites from satellite signal M1 and satellite signal N1 to obtain satellite signal W.

[0229] In one possible implementation, modem 1107 is used to: determine the satellite signals corresponding to L different satellites from satellite signal M1 and satellite signal N1, and define the satellite signals corresponding to the L different satellites as satellite signal W; wherein, when the first satellite among the L different satellites corresponds to one satellite signal, the satellite signal corresponding to the first satellite is included in satellite signal W; when the second satellite among the L different satellites corresponds to two satellite signals, the two satellite signals corresponding to the second satellite are adjusted to be in phase, and the two satellite signals with the same phase are added together to form a single satellite signal, which is then included in satellite signal W. For example, if antenna 1 receives satellite signal M11 from satellite 1, and antenna 2 receives satellite signal N11 from satellite 1, modem 1107 can adjust the phase of N11, and then add M11 and the phase-adjusted N11 in phase.

[0230] In one possible implementation, modem1107 is used to: adjust the two satellite signals corresponding to the second satellite to be in phase; obtain the weights corresponding to the two satellite signals respectively; multiply the two satellite signals with the same phase by their respective weights and then add them together to form a single satellite signal and put it into satellite signal W.

[0231] In this embodiment, satellite signal M1 can be referred to as the first satellite signal. Satellite signal N1 can be referred to as the second satellite signal. Satellite signal W can be referred to as the third satellite signal. The first satellite signal can be processed to obtain satellite signal M4. The second satellite signal can be processed to obtain satellite signal N4. Satellite signal W can be obtained by combining satellite signal M4 and satellite signal N4.

[0232] Based on the circuit diagram above, this application proposes a positioning method.

[0233] The following is combined Figure 13 This application provides a positioning method according to an embodiment. Please refer to [link to relevant documentation]. Figure 13 , Figure 13This is a schematic flowchart of a positioning method provided in an embodiment of this application. Figure 13 As shown, a positioning method provided in this application embodiment may include:

[0234] S300, in response to the first operation, the electronic device initiates the positioning function.

[0235] Step S300 can be referred to as step S100 or step S200, and will not be repeated here.

[0236] S301. The electronic device is positioned based on the satellite signals received by the first antenna and the second antenna.

[0237] Electronic devices, by default, rely on satellite signals received by the first and second antennas for positioning. The first antenna can... Figure 2 The antenna 10a is shown in the diagram. The second antenna can be... Figure 2 Antenna 10d is shown in the diagram. This ensures that the antenna faces the sky regardless of whether the electronic device is in portrait or landscape orientation. Therefore, the electronic device can acquire satellite signals from more satellites, allowing for more accurate positioning.

[0238] The specific process of electronic devices locating themselves based on satellite signals can be found in existing descriptions of electronic devices locating themselves based on GPS satellite signals, and will not be repeated here.

[0239] In one possible implementation, the electronic device can process the satellite signals received by the first and second antennas. Here, the electronic device can perform signal processing on the satellite signals using various methods, such as filtering, amplifying, etc. This application does not limit the specific signal processing method. This allows the positioning results obtained by the electronic device based on the satellite signals to be more accurate.

[0240] In a feasible example, the electronic device's processing of the satellite signals received by the first and second antennas can be as follows: Figure 12As shown, the electronic device can use SAW filter 1103 to filter out high-order harmonics in the satellite signal M1 received by the first antenna to obtain satellite signal M2. Then, the electronic device can use low-noise amplifier 1104 (LNA) to amplify satellite signal M2 to obtain satellite signal M3. Next, the electronic device can use SAW filter 1106 to remove noise signals from satellite signal M3 to obtain satellite signal M4. Similarly, the electronic device can use SAW filter 1101 to filter out high-order harmonics in the satellite signal N1 received by the first antenna to obtain satellite signal N2. Then, the electronic device can use LNA 1102 to amplify satellite signal N2 to obtain satellite signal N3. Next, the electronic device can use SAW filter 1105 to remove noise signals from satellite signal N3 to obtain satellite signal N4. Then, an RF chip (e.g., a GNSS-RF chip) in the electronic device transmits satellite signal M4 and satellite signal N4 to a modem. Finally, the electronic device performs positioning based on the modulated and demodulated satellite signals M4 and N4.

[0241] Understandably, satellite signal M1 can contain satellite signals transmitted by multiple satellites. That is, M1 can be a set of multiple satellite signals, for example, M1 = (M11, M12, M13, ..., M1m). Here, m is the number of satellites that the first antenna can detect. Similarly, satellite signal N1 can contain satellite signals transmitted by multiple satellites. That is, N1 can be a set of multiple satellite signals, for example, N1 = (N11, N12, N13, ..., N1n). Here, n is the number of satellites that the second antenna can detect.

[0242] Furthermore, the electronic device can use modem 1107 to compare and combine the satellite signals of each satellite in satellite signal M4 (e.g., satellite signal M41) with the satellite signals of the same satellite in satellite signal N4 (e.g., satellite signal N41) in satellite signal N4 (e.g., satellite signal N4n) to obtain satellite signal W. The electronic device uses satellite signal W for positioning.

[0243] In one possible implementation, the electronic device can use modem 1107 to determine the satellite signals corresponding to L different satellites from satellite signals M1 and N1, and define the satellite signals corresponding to L different satellites as satellite signal W. Specifically, when the first satellite among the L different satellites corresponds to one satellite signal, the electronic device can use modem 1107 to put the satellite signal corresponding to the first satellite into satellite signal W. When the second satellite among the L different satellites corresponds to two satellite signals, the electronic device can use modem 1107 to adjust the two satellite signals corresponding to the second satellite to be in phase, and add the two satellite signals with the same phase to combine them into one satellite signal and put it into satellite signal W.

[0244] Here, we assume that satellite signals N41 and M41 are transmitted from the same satellite. Satellite signals N42 and M42 are transmitted from the same satellite. Satellite signals N43 and M43 are transmitted from the same satellite. Satellite signals N4n and M4m are transmitted from the same satellite. Then, modem 1107 can adjust the phase of satellite signal N41 so that it can be added in phase with satellite signal M41. Similarly, modem 1107 can adjust the phase of satellite signal N42 so that it can be added in phase with satellite signal M41. Modem 1107 can adjust the phase of satellite signal N43 so that it can be added in phase with satellite signal M43. Modem 1107 can adjust the phase of satellite signal N4n so that it can be added in phase with satellite signal M4m.

[0245] In one possible implementation, the electronic device can use modem 1107 to determine the satellite signals corresponding to L different satellites from satellite signals M1 and N1, and define the satellite signals corresponding to L different satellites as satellite signal W. Specifically, when the first satellite among the L different satellites corresponds to one satellite signal, the electronic device can use modem 1107 to input the satellite signal corresponding to the first satellite into satellite signal W. When the second satellite among the L different satellites corresponds to two satellite signals, the electronic device can use modem 1107 to adjust the two satellite signals corresponding to the second satellite to be in phase. The electronic device can use modem 1107 to obtain the weights corresponding to the two satellite signals. The electronic device can use modem 1107 to multiply the two satellite signals with the same phase by their respective weights and then add them together to form a single satellite signal, which is then input into satellite signal W.

[0246] S302. The electronic device determines whether the signal quality of the satellite signal received by the first antenna is greater than the first threshold. If yes, it executes step S301; otherwise, it executes step S303.

[0247] The electronic device can be configured with a first threshold. The first threshold can be that the number of satellites with an SNR greater than 30 is 8. The first threshold can also be that the average SNR is 30. For example, if the first antenna can detect satellite signals from 20 satellites, then if the number of satellite signals with an SNR greater than 30 from these 20 satellites is greater than or equal to 8, then step S303 is executed; if it is less than 8, then step S301 is executed.

[0248] S303. The electronic equipment is positioned based on the satellite signals received by the first antenna.

[0249] If the satellite signal received by the first antenna meets the positioning requirements, meaning the signal quality of the satellite signal is greater than a first threshold, then the electronic device can receive the satellite signal solely through the first antenna. The electronic device then performs positioning based on the satellite signal received by the first antenna. Step S303 can be referred to step S101, and will not be repeated here.

[0250] S304. The electronic device determines whether the signal quality of the satellite signal received by the first antenna is lower than the second threshold. If yes, it executes step S301; otherwise, it executes step S303.

[0251] The electronic device may be configured with a second threshold. The second threshold is lower than the first threshold. When the electronic device performs positioning using satellite signals received by the first antenna, if the electronic device detects that the signal quality of the satellite signals received by the first antenna is lower than the second threshold, the electronic device executes step S301. That is, the electronic device simultaneously receives satellite signals through the first antenna and the second antenna. The electronic device obtains the signal for positioning by calculating the maximum signal-to-weight ratio of the satellite signals received by the first antenna and the second antenna.

[0252] It is understandable that the electronic device can also execute step S303 after completing step S300. That is, the electronic device initially receives satellite signals through one antenna (e.g., the first antenna). When the signal quality of the satellite signal received by the first antenna is lower than a second threshold, the electronic device then receives satellite signals simultaneously through both the first and second antennas.

[0253] In a positioning method provided in this application embodiment, the electronic device can default to positioning using satellite signals received by two antennas. This improves the positioning accuracy of the electronic device. When the electronic device determines that the positioning accuracy based on satellite signals received by a single antenna is also sufficient, it performs positioning based on the satellite signals received by that single antenna. This saves power consumption. The electronic device can also default to positioning using satellite signals received by a single antenna. This also saves power consumption. When the positioning accuracy and positioning time based on satellite signals received by a single antenna do not meet the requirements of the electronic device, it begins positioning based on satellite signals received by both antennas. This improves positioning accuracy and reduces positioning time.

[0254] The exemplary electronic device 100 provided in the embodiments of this application is described below.

[0255] Figure 14 A schematic diagram of the structure of the electronic device 100 is shown.

[0256] The following detailed description uses electronic device 100 as an example. It should be understood that electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have different component configurations. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0257] Electronic device 100 may include processor 110, memory 120, antenna 1, antenna 2, antenna 3, wireless communication module 130, mobile communication module 140, display screen 150, sensor 160, etc.

[0258] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0259] The processor 110 can be used to interpret satellite ephemeris signals received by electronic devices from antennas 1 and 2. When four satellites are locked simultaneously, the coordinates of the measured point (e.g., the location of the electronic device or the destination input by the user) can be calculated.

[0260] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0261] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0262] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0263] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0264] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).

[0265] The I2S interface can be used for audio communication.

[0266] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals.

[0267] The UART interface is a general-purpose serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication.

[0268] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 150. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). The processor 110 and the display screen 150 communicate through the DSI interface to realize the display function of the electronic device 100.

[0269] The GPIO interface can be configured via software. The GPIO interface can be configured as either control signals or data signals.

[0270] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0271] The wireless communication function of the electronic device 100 can be implemented through antenna 1, antenna 2, antenna 3, wireless communication module 130, mobile communication module 140, modem processor, and baseband processor.

[0272] Antennas 1, 2, and 3 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0273] Specifically, antenna 1 and antenna 2 are used to receive electromagnetic wave signals transmitted by the satellite. Antenna 1 faces the sky when the electronic device is in portrait orientation. Antenna 2 faces the sky when the electronic device is in landscape orientation.

[0274] In this embodiment, the RF preamplifier circuits containing antennas 1 and 2 may further include a surface acoustic wave (SAW) filter and a low-noise amplifier, respectively. The SAW filter in the RF preamplifier circuit containing antenna 1 is used to filter out high-order harmonics in the satellite signal received by antenna 1. The low-noise amplifier in the RF preamplifier circuit containing antenna 1 is used to amplify the satellite signal received by antenna 1. The SAW filter in the RF preamplifier circuit containing antenna 2 is used to filter out high-order harmonics in the satellite signal received by antenna 2. The low-noise amplifier in the RF preamplifier circuit containing antenna 2 is used to amplify the satellite signal received by antenna 2.

[0275] In some embodiments, antenna 1 and antenna 2 may be connected to a switch for selecting whether to use antenna 1 or antenna 2 to receive satellite signals. For details on how antennas 1 and 2 are specifically connected to the switch, and how the switch selects between antenna 1 and antenna 2, please refer to the above description. Figure 7 The circuit diagram shown is described in detail here.

[0276] In some embodiments, antennas 1 and 2 can be connected to a combiner. The combiner can selectively use antenna 1, or both antennas 1 and 2, to receive satellite signals. When the combiner selects antennas 1 and 2 to receive satellite signals, it combines the satellite signals received by antenna 1 with those received by antenna 2. For details, please refer to the above description. Figure 10 The circuit diagram shown is described in detail here.

[0277] In some embodiments, antenna 3 of electronic device 100 is coupled to mobile communication module 140, and antennas 1 and 2 are coupled to wireless communication module 130, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0278] The wireless communication module 130 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 130 can be one or more devices integrating at least one communication processing module. The wireless communication module 130 receives electromagnetic waves via antenna 1 and / or antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signals to processor 110. When antenna 1 and antenna 2 simultaneously receive electromagnetic waves emitted by satellites (which may be referred to as satellite signals in this application), the wireless communication module 130 can combine the satellite signals received by antenna 1 and antenna 2 according to the maximum signal-to-weight ratio for each satellite. For details, please refer to the above description. Figure 12 The circuit diagram shown is described in detail here.

[0279] The mobile communication module 140 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 140 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 140 can receive electromagnetic waves via the antenna 3, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to the modem processor for demodulation. The mobile communication module 140 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna 3. In some embodiments, at least some functional modules of the mobile communication module 140 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 140 and at least some modules of the processor 110 may be housed in the same device.

[0280] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device or displays an image or video through the display screen 150. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 140 or other functional modules.

[0281] In some embodiments, the processor 110 can perform positioning by combining the base station location information obtained by the mobile communication module 140 with the satellite signals received by antenna 1 and antenna 2.

[0282] Electronic device 100 implements display functions through a GPU, a display screen 150, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 150 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0283] The display screen 150 is used to display images, videos, etc. The display screen 150 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 150, where N is a positive integer greater than 1.

[0284] The memory 120 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the memory 120. The memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, phonebook, etc.). Furthermore, the memory 120 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0285] In this embodiment of the application, the memory 120 is also used to store satellite ephemeris, satellite almanac, etc.

[0286] Sensor 160 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, touch sensors, and bone conduction sensors, etc. Among them:

[0287] A pressure sensor is used to sense pressure signals and convert them into electrical signals. In some embodiments, the pressure sensor may be located on the display screen 150. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to the pressure sensor, the capacitance between the electrodes changes. The electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to the display screen 150, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor. The electronic device 100 may also calculate the touch position based on the detection signal from the pressure sensor. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities may correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS message is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS message is executed.

[0288] A gyroscope sensor can be used to determine the motion attitude of an electronic device 100. In some embodiments, the gyroscope sensor can determine the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes). The gyroscope sensor can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor detects the angle of the electronic device 100's movement, calculates the distance the lens module needs to compensate based on the angle, and allows the lens to counteract the movement of the electronic device 100 through reverse motion, thus achieving image stabilization. The gyroscope sensor can also be used in navigation and motion-sensing game scenarios. The electronic device can determine its attitude, i.e., whether it is currently in portrait or landscape orientation, using the gyroscope sensor.

[0289] In some embodiments, the electronic device 100 may further include an attitude sensor. The attitude sensor is used to detect the attitude of the electronic device.

[0290] A barometric pressure sensor is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor to assist in positioning and navigation.

[0291] The magnetic sensor includes a Hall effect sensor. The electronic device 100 can use the magnetic sensor to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 100 is a flip phone, it can detect the opening and closing of the flip cover using the magnetic sensor. Then, based on the detected opening and closing state of the cover or the flip cover, it can set features such as automatic flip unlocking.

[0292] An accelerometer can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device and applied to applications such as landscape / portrait switching and pedometers. In this application, the electronic device 100 can switch between landscape and portrait modes, as well as switch between single-screen and large-screen displays on a foldable screen, based on changes in the magnitude of acceleration and gravity detected by the accelerometer.

[0293] A distance sensor is used to measure distance. Electronic device 100 can measure distance using infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor to measure distance for rapid focusing.

[0294] A touch sensor, also known as a "touch panel," is used. Touch sensor 180K can be located on display screen 150, and the touch sensor 180K and display screen 150 together form a touchscreen, also known as a "touch screen." The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 150. In other embodiments, the touch sensor may also be located on the surface of electronic device 100, in a different position than display screen 150.

[0295] Bone conduction sensors can acquire vibration signals.

[0296] Figure 15 An embodiment of this application provides a chip system 200. For example... Figure 15 As shown, the chip system 200 may include: antenna 1, antenna 2 and positioning chip 201, wherein;

[0297] Antenna 1 is used to receive satellite signals, and antenna 2 is used to receive satellite signals.

[0298] Positioning chip 201 can be used to perform the following steps:

[0299] 1. Control antenna 1 or antenna 2 to receive satellite signals;

[0300] 2. Perform signal processing on the satellite signals received by antenna 1 or antenna 2, and compare the signal quality of the satellite signals received by antenna 1 with the signal quality of the satellite signals received by antenna 2;

[0301] 3. If the signal quality of the satellite signal received by antenna 1 is lower than that of the satellite signal received by antenna 2, antenna 2 shall be selected to receive the satellite signal, and the satellite signal received by antenna 2 shall be used for positioning. If the signal quality of the satellite signal received by antenna 1 is higher than that of the satellite signal received by antenna 2, antenna 1 shall be selected to receive the satellite signal, and the satellite signal received by antenna 1 shall be used for positioning.

[0302] The above can be referenced here. Figure 8A The embodiments shown are not described in detail here.

[0303] In some embodiments, the positioning chip 201 can also be used to perform the following steps:

[0304] 1. Select antenna 1, or antenna 1 and antenna 2 to receive satellite signals;

[0305] 2. Use the first antenna to receive satellite signal M1 and obtain the first signal quality of satellite signal M1. Use the first antenna to receive satellite signal M1 and the second antenna to receive satellite signal N1 and obtain the combined satellite signal W and the third signal quality of satellite signal W. Compare the magnitude of the first signal quality and the third signal quality. When the first signal quality is lower than the third signal quality, use the first antenna and the second antenna to receive the satellite signal.

[0306] 3. Use satellite signals for positioning.

[0307] The above can be referenced here. Figure 11 The embodiments shown are not described in detail here.

[0308] In some embodiments, the positioning chip 201 can also be used to perform the following steps:

[0309] 1. Select antenna 1, or antenna 1 and antenna 2 to receive satellite signals;

[0310] 2. Determine whether the signal quality of the satellite signal received by the first antenna is greater than the first threshold; if it is, use the satellite signal received by the first antenna for positioning.

[0311] 3. Determine whether the signal quality of the satellite signal received by the first antenna is lower than the second threshold; if it is lower, use the satellite signals received by the first antenna and the second antenna for positioning.

[0312] 4. Used to demodulate satellite signals received by the first and second antennas. Also, to combine the satellite signals received by the first and second antennas according to the maximum signal-to-weight ratio of each satellite's signal strength. For example, if the first antenna receives satellite signal M11 from satellite 1, and the second antenna receives satellite signal N11 from satellite 1, the modem1107 can adjust the phase of N11, and then add M11 and the adjusted N11 in phase.

[0313] The above can be referenced here. Figure 13 The embodiments shown are not described in detail here.

[0314] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0315] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0316] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0317] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0318] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.

[0319] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A positioning method, characterized by, The method is applied to an electronic device including a first antenna and a second antenna, the first antenna is directed to the sky when the electronic device is in a portrait posture, the second antenna is directed to the sky when the electronic device is in a landscape posture, and the method includes: The electronic device is in the portrait posture, and the electronic device receives and responds to a user operation of starting a positioning function to perform positioning according to a first satellite signal received by the first antenna; The electronic device switches from the portrait posture to the landscape posture, and if a signal quality difference between a second satellite signal received by the second antenna and the first satellite signal is greater than a second difference threshold, the electronic device performs positioning according to the first satellite signal received by the first antenna.

2. The method of claim 1, wherein, A main lobe direction of an antenna pattern of the first antenna is different from a main lobe direction of an antenna pattern of the second antenna.

3. The method of claim 2, wherein, The method further includes: If the signal quality of the first satellite signal is lower than the signal quality of the second satellite signal, the electronic device performs positioning by The first antenna and the second antenna.

4. The method of claim 3, wherein, The electronic device performs positioning by the first antenna and the second antenna, including: The electronic device determines position information according to the first satellite signal received by the first antenna and the second satellite signal received by the second antenna.

5. The method of claim 4, wherein, The electronic device performs positioning according to the first satellite signal received by the first antenna and the second satellite signal received by the second antenna, specifically including: The electronic device combines the first satellite signal and the second satellite signal to obtain a third satellite signal; The electronic device determines position information of the electronic device according to the third satellite signal.

6. The method of claim 5, wherein, The electronic device combines the first satellite signal and the second satellite signal to obtain a third satellite signal, specifically including: The electronic device obtains the third satellite signal from the first satellite signal and the second satellite signal, each of which has the maximum satellite signal quality.

7. The method of claim 5, wherein, The electronic device combines the first satellite signal and the second satellite signal to obtain a third satellite signal, specifically including: The electronic device determines L different satellite signals from the first satellite signal and the second satellite signal, and determines the L different satellite signals as the third satellite signal; When a first satellite of the L different satellites corresponds to one satellite signal, the electronic device puts the one satellite signal corresponding to the first satellite into the third satellite signal; When a second satellite of the L different satellites corresponds to two satellite signals, the electronic device adjusts the two satellite signals corresponding to the second satellite to have the same phase, adds the two satellite signals having the same phase to synthesize one satellite signal, and puts the one satellite signal into the third satellite signal.

8. The method of claim 7, wherein, The electronic device adjusts the two satellite signals corresponding to the second satellite to have the same phase, adds the two satellite signals having the same phase to synthesize one satellite signal, and puts the one satellite signal into the third satellite signal, specifically including: The electronic device adjusts two satellite signals corresponding to the second satellite to be the same in phase; The electronic device obtains weights corresponding to the two satellite signals respectively; The electronic device multiplies the two satellite signals which are the same in phase by the weights respectively and then adds them to synthesize a satellite signal and put it into the third satellite signal.

9. An electronic device, comprising: The electronic device comprises a baseband processor, a first antenna, a second antenna, a path selection module, the first antenna, the second antenna are coupled with the path selection module respectively, and the path selection module is coupled with the baseband processor, wherein: The first antenna is used for receiving a first satellite signal, and the first antenna is directed to the sky when the electronic device is in a portrait posture; The second antenna is used for receiving a second satellite signal, and the second antenna is directed to the sky when the electronic device is in a landscape posture; The path selection module is used for selecting the first antenna or the first antenna and the second antenna to receive a satellite signal; The baseband processor is used for, when the electronic device starts a positioning function in response to a user operation, positioning according to the first satellite signal received by the first antenna when the electronic device is in the portrait posture; and positioning according to the first satellite signal received by the first antenna when the electronic device switches from the portrait posture to the landscape posture, if a difference between signal quality of the second satellite signal and signal quality of the first satellite signal is greater than a second difference threshold.

10. The electronic device of claim 9, wherein, The main lobe direction of the antenna pattern of the first antenna is different from the main lobe direction of the antenna pattern of the second antenna.

11. The electronic device of claim 10, wherein, Further comprising a first radio frequency module and a second radio frequency module, the first antenna and the second antenna are coupled with the path selection module respectively, and specifically comprising: The first antenna is coupled with the path selection module through the first radio frequency module; and the second antenna is coupled with the path selection module through the second radio frequency module; The first radio frequency module is used for transmitting the first satellite signal; The second radio frequency module is used for transmitting the second satellite signal.

12. The electronic device of any of claims 9-11, wherein, The baseband processor is further used for: When the electronic device is in the landscape posture, if the signal quality of the first satellite signal is greater than a first threshold, positioning according to the first satellite signal received by the first antenna; and if the signal quality of the first satellite signal is lower than a second threshold, positioning by the first satellite signal received by the first antenna and the second satellite signal received by the second antenna, the second threshold being lower than the first threshold. The baseband processor is specifically used for:

13. The electronic device of claim 12, wherein, Determining position information of the electronic device according to the first satellite signal and the second satellite signal. The baseband processor is specifically used for:

14. The electronic device of claim 13, wherein, Combining the first satellite signal and the second satellite signal to obtain a third satellite signal; and determining the position information according to the third satellite signal. The baseband processor is specifically used for: Taking out satellite signals with the largest signal quality of multiple satellites from the first satellite signal and the second satellite signal to obtain the third satellite signal.

15. The electronic device of claim 14, wherein, The baseband processor is specifically used for: ​ 16. The electronic device of claim 14, wherein, ​ determine L different satellite signals corresponding to L different satellites respectively from the first satellite signal and the second satellite signal, and determine the L different satellite signals corresponding to the L different satellites respectively as third satellite signals; wherein, when a first satellite of the L different satellites corresponds to one satellite signal, the electronic device puts the satellite signal corresponding to the first satellite into the third satellite signals; when a second satellite of the L different satellites corresponds to two satellite signals, the two satellite signals corresponding to the second satellite are adjusted to have the same phase, and the two satellite signals with the same phase are added to synthesize one satellite signal and put into the third satellite signals.

17. The electronic device of claim 16, wherein, The electronic device is specifically configured to: adjust the two satellite signals corresponding to the second satellite to have the same phase; obtain weights corresponding to the two satellite signals respectively; multiply the two satellite signals with the same phase by the weights respectively, and then add them to synthesize one satellite signal and put into the third satellite signals.

18. A positioning chip, characterized by The positioning chip is applied to a positioning device, the positioning device includes a first antenna and a second antenna, the first antenna is used to receive a first satellite signal, the second antenna is used to receive a second satellite signal, the first antenna is directed to the sky when the positioning device is in a portrait screen posture, the second antenna is directed to the sky when the positioning device is in a landscape screen posture, and the positioning chip is used to: when the positioning device starts a positioning function in response to a user operation, when the positioning device is in the portrait screen posture, positioning is performed according to the first satellite signal received by the first antenna; when the positioning device switches from the portrait screen posture to the landscape screen posture, if the signal quality difference between the second satellite signal and the first satellite signal is greater than a second difference threshold, positioning is performed according to the first satellite signal received by the first antenna.

19. The positioning core according to claim 18, characterized in that The positioning chip is further configured to: when the positioning device is in the landscape screen posture, if the signal quality of the first satellite signal is greater than a first threshold, positioning is performed according to the first satellite signal received by the first antenna; if the signal quality of the first satellite signal is lower than a second threshold, positioning is performed according to the first satellite signal received by the first antenna and the second satellite signal received by the second antenna, and the second threshold is less than the first threshold.

20. The positioning core according to claim 19, characterized in that The positioning chip is specifically configured to: merge the first satellite signal and the second satellite signal to obtain a third satellite signal; determine the position information of the positioning device according to the third satellite signal.

21. The positioning core according to claim 20, characterized in that The positioning chip is specifically configured to: from the first satellite signal and the second satellite signal, take out the satellite signal with the maximum signal quality corresponding to each satellite respectively to obtain the third satellite signal.

22. The positioning core according to claim 20, characterized in that The positioning chip is specifically configured to: determining L satellite signals corresponding to L different satellites from the first satellite signal and the second satellite signal, and determining the L satellite signals corresponding to the L different satellites as third satellite signals; wherein when a first satellite of the L different satellites corresponds to one satellite signal, the one satellite signal corresponding to the first satellite is put into the third satellite signals; when a second satellite of the L different satellites corresponds to two satellite signals, the two satellite signals corresponding to the second satellite are adjusted to have the same phase, and the two satellite signals with the same phase are added to synthesize one satellite signal which is put into the third satellite signals.

23. The positioning core according to claim 22, characterized in that The positioning chip is specifically used for: adjusting the two satellite signals corresponding to the second satellite to have the same phase; obtaining weights corresponding to the two satellite signals respectively; multiplying the two satellite signals with the same phase by the weights respectively, and then adding to synthesize one satellite signal which is put into the third satellite signals.

24. A computer-readable storage medium, characterized in that, The computer program product comprises computer instructions, and when the computer instructions run on an electronic device, the electronic device executes the positioning method as claimed in any one of claims 1-8.

25. A computer program product, characterised in that, The computer program product comprises computer instructions, and when the computer instructions run on an electronic device, the electronic device executes the positioning method as claimed in any one of claims 1-8.

Citation Information

Patent Citations

  • Mobile terminal and processing method for receiving satellite information by mobile terminal

    CN102223172A

  • Signal processing method and electronic equipment

    CN105510941A

  • High-sensitivity GPS device with directional antenna

    CN105723241A

  • Intelligent switching method and device for GPS and Beidou double antennas

    CN110545135A