Antenna control method and related apparatus

CN119766288BActive Publication Date: 2026-09-08HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311287442.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-27
Publication Date
2026-09-08
Estimated Expiration
2043-09-27

AI Technical Summary

Technical Problem

[0003]然而,电子设备可能存在获取GNSS信号较差,定位不准确等问题

Benefits of technology

[0030] It should be understood that the second to sixth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119766288B_ABST
    Figure CN119766288B_ABST
Patent Text Reader

Abstract

The antenna control method and the related device provided by the embodiments of the present application relate to the technical field of terminals. The method comprises the following steps: a corresponding relationship between an antenna state in which an electronic device can receive a signal well in each posture and the posture can be preset; when the electronic device is used, the electronic device can use the corresponding relationship to obtain an antenna state corresponding to a switched posture when the posture is switched. In this way, the antenna beam corresponding to the antenna state can receive a stronger GNSS signal, so that the positioning accuracy of the electronic device is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to antenna control methods and related devices. Background Technology

[0002] Some electronic devices can use antennas to acquire GNSS signals. For example, electronic devices can use GNSS signals to obtain the user's location, thereby enabling functions such as mapping running tracks; electronic devices can also use GNSS signals to provide route navigation for users.

[0003] However, electronic devices may have problems such as poor GNSS signal acquisition and inaccurate positioning. Summary of the Invention

[0004] The antenna control method and related apparatus provided in this application can preset the correspondence between antenna states that enable electronic devices to receive signals well in various attitudes. When using the electronic device, the electronic device can use the correspondence to obtain the antenna state corresponding to the changed attitude when switching attitudes. This enables the antenna beam corresponding to the antenna state to receive stronger GNSS signals, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

[0005] In a first aspect, the antenna control method provided in the embodiments of this application includes:

[0006] When the electronic device switches from a first attitude to a second attitude, it controls the antenna to switch from the first state to the second state. In the first state, the antenna beam is the first beam; in the second state, the antenna beam is the second beam. The directions of the first and second beams are different. The second state is obtained by the electronic device from a correspondence table. When the electronic device switches back from the second attitude to the first attitude, it controls the antenna to switch from the second state to the first state. The first state is obtained by the electronic device from a correspondence table. This ensures that the antenna beam corresponding to that antenna state can receive stronger GNSS signals.

[0007] In one possible implementation, when obtaining the correspondence between the first attitude and the first state, the signal gain of the signal at each angle under the first attitude in multiple antenna states is first obtained. Then, the first gain of the antenna in multiple states is calculated based on the signal gain within a preset angle. Here, the preset angle is an angle formed by the angle between the antenna and the direction perpendicular to the ground being less than a preset value. The first gain includes the average signal gain within the preset angle, the sum of signal gains within the preset angle, or a preset multiple of the sum of signal gains within the preset angle. The first gain corresponding to the first state includes the maximum value of the first gain in each antenna state. Thus, since a larger first gain indicates a stronger signal received by the corresponding antenna state, and the first gain corresponding to the first state includes the maximum value of the first gain in each antenna state, the electronic device, using the first state as the state corresponding to the first attitude, can select the optimal antenna state to receive a stronger signal, thereby improving the positioning accuracy of the electronic device.

[0008] In one possible implementation, the signal gain of multiple states in the first posture is obtained based on the signal gain of the signal at various angles in the third posture of the electronic device in multiple states of the antenna, as well as the coordinate relationship between the first and third postures. The signal gain of the signal at various angles in the third posture in multiple states of the antenna is obtained by measuring the gain of the electronic device when receiving signals from various angles in the third posture. In this way, the signal gain of multiple states in the first posture is obtained based on the signal gain of the signal at various angles in the third posture in multiple states of the antenna, which eliminates the need to test each posture of the watch in the laboratory, thus simplifying the laboratory testing process.

[0009] In one possible implementation, when obtaining the signal gain of multiple states of the first posture, the coordinates in the first coordinate system corresponding to the third posture are first transformed to obtain the coordinates in the second coordinate system corresponding to the first posture. Then, the signal gain of multiple states of the first posture is obtained according to the correspondence between the coordinates before and after the transformation. The first coordinate system is the coordinate system with the normal direction of the electronic device screen as the z-axis and the direction from the center of the electronic device to the target position of the electronic device as the x-axis when the electronic device is in the third posture. The second coordinate system is the coordinate system with the normal direction of the electronic device screen as the z-axis and the direction from the center of the electronic device to the target position of the electronic device as the x-axis when the electronic device is in the first posture. The coordinate transformation satisfies the following formula:

[0010]

[0011] Where (x,y,z) are the coordinates in the first coordinate system, (x1,y1,z1) are the coordinates in the second coordinate system, and R(a,b,c) is the rotation matrix corresponding to the Euler angle (a,b,c). The rotation matrix R(a,b,c) satisfies the following formula:

[0012]

[0013] Where 'a' is the precession angle, 'b' is the nutation angle, and 'c' is the rotation angle, the rotation matrix follows a sequence: first, rotate 'a' about the z-axis of the first coordinate system; then, rotate 'b' about the x-axis of the first coordinate system; and finally, rotate 'c' about the z-axis of the first coordinate system. By establishing the correspondence between the coordinates of the first coordinate system corresponding to the third attitude and the coordinates of the second coordinate system corresponding to the first attitude, the signal gain of the signal at various angles under the first attitude in multiple antenna states can be quickly obtained, improving computational efficiency.

[0014] In one possible implementation, the signal gain of the signal at each angle of the first posture in multiple antenna states is obtained by measuring the gain of the electronic device when receiving signals from each angle in the first posture. This way, obtaining the signal gain of the signal at each angle of the first posture in multiple antenna states through laboratory testing eliminates the need for matrix transformations and other related calculations, thus reducing computational load.

[0015] In one possible implementation, the method further includes: when the electronic device switches from a first attitude to a fourth attitude, the electronic device controls the antenna to switch from a first state to a fourth state. In the fourth state, the antenna beam is the fourth beam, and the direction of the first beam is different from the direction of the fourth beam. The fourth state is obtained by the electronic device from a correspondence table by querying the fourth attitude. In this way, the antenna state can be switched according to the different attitudes of the electronic device, allowing for the selection of beams with different directions, enabling the selected beam to receive stronger signals.

[0016] In one possible implementation, the method further includes: when the electronic device switches from a first attitude to a fifth attitude, the electronic device does not switch the antenna state; the antenna remains in the first state, which is obtained by the electronic device from the correspondence relationship for the fifth attitude. In this way, when the electronic device is in different attitudes, but the corresponding states are the same, it is not necessary to switch the antenna state. This reduces antenna state switching while still receiving a stronger signal, thereby improving the positioning accuracy of the electronic device.

[0017] Secondly, embodiments of this application provide an antenna control apparatus, which may be an electronic device, a chip or chip system within an electronic device. The apparatus may include a processing unit. The processing unit is used to implement any processing-related method executed by the electronic device in the first aspect or any possible implementation of the first aspect. When the apparatus is an electronic device, the processing unit may be a processor. The apparatus may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to cause the electronic device to implement the method described in the first aspect or any possible implementation of the first aspect. When the apparatus is a chip or chip system within an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit to cause the electronic device to implement the method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit within the chip (e.g., a register, cache, etc.), or a storage unit located outside the chip within the electronic device (e.g., a read-only memory, random access memory, etc.).

[0018] For example, the processing unit is configured to switch from a first attitude to a second attitude, and further configured to control the antenna to switch from a first state to a second state, specifically further configured to query the second attitude from a correspondence relationship. It is also configured to switch from the second attitude back to the first attitude, and further configured to control the antenna to switch from the second state to the first state, specifically further configured to query the first attitude from a correspondence relationship.

[0019] In one possible implementation, when obtaining the correspondence between the first attitude and the first state, the signal gain of the signal at each angle under the first attitude in multiple states of the antenna is first obtained, and then the first gain of the antenna in multiple states is calculated based on the signal gain within a preset angle.

[0020] In one possible implementation, the signal gain of multiple states of the first posture is obtained based on the signal gain of the signal at each angle of the electronic device in multiple states of the antenna under the third posture, as well as the coordinate relationship between the first posture and the third posture. The signal gain of the signal at each angle of the third posture under multiple states of the antenna is obtained by measuring the gain of the electronic device when receiving signals from each angle under the third posture.

[0021] In one possible implementation, when obtaining the signal gain of multiple states of the first attitude, the coordinates in the first coordinate system corresponding to the third attitude are first transformed to obtain the coordinates in the second coordinate system corresponding to the first attitude, and then the signal gain of multiple states of the first attitude is obtained according to the correspondence between the coordinates before and after the transformation.

[0022] In one possible implementation, the signal gain of the signal at each angle of the first posture in multiple states of the antenna is obtained by measuring the gain of the electronic device when receiving signals from each angle in the first posture.

[0023] In one possible implementation, the processing unit is used to switch from the first attitude to the fourth attitude, and also to control the antenna to switch from the first state to the fourth state. Specifically, it is also used to query the fourth attitude from the correspondence.

[0024] In one possible implementation, the processing unit is used to switch from the first pose to the fifth pose, and also to query the fifth pose from the correspondence.

[0025] Thirdly, embodiments of this application provide a terminal device including a processor and a memory, the memory for storing code instructions, and the processor for running the code instructions to perform the methods described in the first aspect or any possible implementation of the first aspect.

[0026] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0027] Fifthly, embodiments of this application provide a computer program product including a computer program, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation of the first aspect.

[0028] Sixthly, this application provides a chip or chip system including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run computer programs or instructions to perform the methods described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.

[0029] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).

[0030] It should be understood that the second to sixth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description

[0031] Figure 1 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0032] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;

[0033] Figure 3 A schematic diagram of beams pointing in different directions in an electronic device provided in an embodiment of this application;

[0034] Figure 4 A schematic diagram illustrating the attitude and beam pointing of an electronic device as provided in an embodiment of this application;

[0035] Figure 5 A flowchart of an antenna control method provided in an embodiment of this application;

[0036] Figure 6 A schematic diagram illustrating the gain of an electronic device for acquiring a right-hand circular polarization component, provided in an embodiment of this application;

[0037] Figure 7 A schematic diagram of an antenna receiving signals in a reference attitude, provided for an embodiment of this application;

[0038] Figure 8 This is a schematic diagram illustrating an antenna receiving signals in any orientation, as provided in an embodiment of this application.

[0039] Figure 9 A schematic diagram of a zenith region provided in an embodiment of this application;

[0040] Figure 10 A schematic diagram of an antenna control method provided in an embodiment of this application;

[0041] Figure 11 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0042] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:

[0043] 1. Terminology

[0044] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.

[0045] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0046] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, and c can be single or multiple.

[0047] 2. Electronic equipment

[0048] The electronic device in this application embodiment can also be any form of terminal device. For example, the electronic device may include: mobile phone, tablet computer, handheld computer, laptop computer, mobile internet device (MID), wearable device, virtual reality (VR) device, augmented reality (AR) device, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, cellular phone, cordless phone, session initiation protocol (SIP) phone, wireless local loop (WLL) station, personal digital assistant (PDA), handheld device with wireless communication function, computing device or other processing device connected to a wireless modem, vehicle device, wearable device, electronic device in 5G network, or future evolved public land mobile communication network (public land The embodiments of this application do not limit the scope of electronic devices in a mobile network (PLMN).

[0049] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0050] Furthermore, in this application embodiment, the electronic device can also be an electronic device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0051] The electronic equipment in the embodiments of this application may also be referred to as: user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.

[0052] In this embodiment, the electronic device or various network devices include a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on top of the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also called main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0053] For example, Figure 1 A schematic diagram of the electronic device is shown.

[0054] The electronic device may include a processor 110, internal memory 120, wireless charging module 130, charging management module 140, power management module 141, battery 142, display screen 150, wireless communication module 160, antenna, audio module 170, speaker 170A, receiver 170B, sensor module 180, buttons 190, etc. The sensor module 180 may include an infrared light sensor 180A, a gyroscope sensor 180B, an accelerometer sensor 180C, a proximity light sensor 180D, an ambient light sensor 180E, etc.

[0055] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device. In other embodiments of this application, the electronic device 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 include hardware, software, or a combination of software and hardware.

[0056] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0057] 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 aforementioned memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0058] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include inter-integrated circuit (I2C) interfaces, inter-integrated circuit sound (I2S) interfaces, pulse code modulation (PCM) interfaces, universal asynchronous receiver / transmitter (UART) interfaces, mobile industry processor interfaces (MIPI), and / or general-purpose input / output (GPIO) interfaces, etc.

[0059] 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 limitation on the structure of the electronic device. In other embodiments of this application, the electronic device may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0060] Internal memory 120 can be used to store executable program code, including instructions. Internal memory 120 may include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc. The data storage area may store data created during the use of the electronic device. Furthermore, internal 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. Processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in internal memory 120 and / or instructions stored in memory located within the processor.

[0061] Antennas are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, in the embodiments of this application, the electronic device can acquire Global Navigation Satellite System (GNSS) signals and / or Global Positioning System (GPS) signals through antennas.

[0062] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), GNSS, frequency modulation (FM), near-field communication (NFC), and infrared (IR) technologies. For example, electronic devices can use GNSS positioning to obtain a user's running trajectory.

[0063] The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, perform frequency modulation and amplification on them, and then convert them into electromagnetic waves for radiation via the antenna.

[0064] Figure 2 This is a software structure block diagram of an electronic device according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, the hardware adaptation layer (HAL), and the kernel layer.

[0065] The application layer, also known as the application layer, can include a series of application packages. For example... Figure 2 As shown, the application package can include applications such as phone, music, and camera. Applications can include system applications and third-party applications.

[0066] The application framework layer, also known as the framework layer, provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The framework layer can include some predefined functions.

[0067] like Figure 2 As shown, the Framework layer can include a window manager, resource manager, notification manager, content provider, and view system, etc.

[0068] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the control and management of the Android system.

[0069] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0070] The application layer and framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection. For example, in the embodiments of this application, the virtual machine can be used to calculate the attitude of an electronic device, query the corresponding antenna state based on the attitude, and switch antenna states.

[0071] The system library, also known as the native layer, can include multiple functional modules. Examples include media libraries, function libraries, and graphics processing libraries.

[0072] The Hardware Abstraction Layer (HAL) is a layer of abstraction located between the kernel layer and the Android runtime. The HAL can be a wrapper around hardware drivers, providing a unified interface for calls from upper-layer applications.

[0073] The kernel layer is the layer between hardware and software. The kernel layer can include display drivers, camera drivers, audio drivers, etc.

[0074] It should be noted that the embodiments of this application are only illustrated using the Android system. In other operating systems (such as Windows system, iOS system, etc.), as long as the functions implemented by each functional module are similar to those in the embodiments of this application, the solution of this application can also be implemented.

[0075] Some electronic devices can use antennas to acquire satellite signals, such as GNSS and GPS signals. Taking GNSS signals as an example, electronic devices can use GNSS signals to obtain the user's location, thereby enabling functions such as mapping running tracks; electronic devices can also use GNSS signals to provide route navigation for users.

[0076] Understandably, the larger the antenna or the more antennas there are, the better the GNSS signal acquired by the electronic device. Therefore, in some implementations, to achieve more accurate positioning, electronic devices can employ antenna switching, antenna diversity, and other schemes to enhance the GNSS signal. For example, an electronic device can have multiple built-in antennas, allowing it to use multiple antennas to receive GNSS signals.

[0077] However, due to the small size of some electronic devices, such as wearable devices like watches, these devices have shorter and / or fewer built-in antennas, which may result in poor signal reception. Furthermore, when the orientation of an electronic device changes, the direction of the antenna beams receiving the signal may also change, leading to unstable or poor signal reception and problems such as inaccurate positioning.

[0078] In view of this, the antenna control method provided in this application embodiment can preset the correspondence between the antenna states that the electronic device can receive signals well in each attitude. When using the electronic device, the electronic device can use the correspondence to obtain the antenna state corresponding to the changed attitude when switching attitudes. This enables the antenna beam corresponding to the antenna state to receive stronger GNSS signals, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

[0079] It is understood that a watch may have one or more antennas. For ease of description, the antenna control method of this application embodiment will be described below using a watch with one built-in antenna as an example.

[0080] like Figure 3 As shown, an antenna in a watch can correspond to different directional antenna beams in different states. These antenna beams are used to receive GNSS signals; the antenna beam itself can also be called a beam. Understandably, the strength of the GNSS signal received by beams with different directional orientations varies. For example, beam 1 might receive a stronger GNSS signal from the left, beam 2 might receive a stronger GNSS signal from the middle, and beam 3 might receive a stronger GNSS signal from the right. The antenna can be on a specific directional beam at any given time.

[0081] In one possible implementation, the watch could include a single-pole multi-throw (SPMWP) switch. The watch could change the antenna state by switching between SPMWP switches, thereby enabling the use of different directional beams to receive GNSS signals. For example, the SPMWP switch in the watch could include switch 1, switch 2, and switch 3. When switched to switch 1, the watch could use beam 1 to receive GNSS signals; when switched to switch 2, the watch could use beam 2 to receive GNSS signals; and when switched to switch 3, the watch could use beam 3 to receive GNSS signals.

[0082] Understandably, the GNSS signal received in the upper region of the watch is relatively stronger compared to other directions. This is because when the watch is near the horizon, the GNSS signal near the horizon is very likely to be blocked by objects such as trees and buildings, while the GNSS signal in the upper region of the watch is not easily blocked. Therefore, in order to better receive GNSS signals, the watch can determine which beam is currently in the upper region and can use that beam to receive GNSS signals. In this embodiment, the upper region can also be referred to as the zenith region.

[0083] like Figure 4 As shown, the watch's orientation varies depending on the user's movement posture. In this case, the watch can select a beam in the zenith region to receive GNSS signals, thereby improving its positioning capabilities. This is understandable. Figure 4The user's movement posture is only used as an example, and the specific movement posture of the user is not limited in the embodiments of this application.

[0084] like Figure 4 As shown in Figure a, when the user is running, beam 1 in the watch points upwards, ideally to the zenith region of the watch, indicating that beam 1 can receive stronger GNSS signals. Therefore, the watch can switch to beam 1 to receive GNSS signals. Figure 4 As shown in b, when the user is cycling, beam 2 in the watch points upwards, better positioned in the zenith region of the watch, indicating that beam 2 can receive stronger GNSS signals. Therefore, the watch can switch to beam 2 to receive GNSS signals; Figure 4 As shown in Figure c, when the user is climbing a mountain, the 3rd beam in the watch points upwards and is better positioned in the zenith area of ​​the watch, indicating that the 3rd beam can receive stronger GNSS signals. Therefore, the watch can switch to the 3rd beam to receive GNSS signals.

[0085] under Figure 5 A flowchart of an antenna control method according to an embodiment of this application is shown.

[0086] S501. Measure the antenna pattern of each reconfigurable state at the reference attitude and record the gain of the right-hand circular polarization component.

[0087] It is understandable that a watch can include multiple postures in space. For example, if the angle between the watch and the coordinate system is refined to 1 degree, the watch can have 360 ​​postures in each of the x, y, and z axes, resulting in 360*360*360 postures, or 46,656,000 postures in the coordinate system. If the angle is refined to 5 degrees, the watch can have 72 postures in each of the x, y, and z axes, resulting in 72*72*72 postures, or 373,248 postures in the coordinate system. The specific degree of angle refinement between the watch and the coordinate system is not limited in this embodiment.

[0088] In this embodiment, the reference posture can be any posture of the watch, without limitation, and can also be referred to as posture 1. For example, the reference posture can be the posture of the watch when it is laid flat, with the normal direction of the dial as the Z-axis and the direction from the center of the watch to 12 o'clock as the X-axis.

[0089] A reconfigurable state can be understood as the state that the antenna in a watch can switch between. For example, the same antenna can have multiple reconfigurable states when switching between different states, or the watch using antenna 1 alone or antenna 2 alone can be considered as two reconfigurable states. For example, in the above... Figure 3In this context, the reconfigurable states may include the antenna state corresponding to beam 1, the antenna state corresponding to beam 2, and the antenna state corresponding to beam 3. It is understood that the watch may include multiple reconfigurable states, and the specific number of reconfigurable states is not limited in this embodiment.

[0090] For ease of description, we will use the antenna state corresponding to beam 1 as state 1, the antenna state corresponding to beam 2 as state 2, and the antenna state corresponding to beam 3 as state 3 as examples for the following explanation.

[0091] Understandably, the signal received by the watch's antenna can also be called an incoming wave. Incoming waves can include waves from different directions; for example, GNSS signals have a right-hand circular polarization direction and can also be called a right-hand circular polarization wave.

[0092] Because when the beam of the signal received by the watch does not match the direction of the incoming wave, the gain of the received signal cannot be accurately reflected. Therefore, as... Figure 6 As shown, since GNSS signals are right-hand circularly polarized waves, in order to better receive GNSS signals, the watch can obtain the power gain of the received GNSS signal on the right-hand circularly polarized component. The power gain of the received GNSS signal on the right-hand circularly polarized component can also be called the gain of the right-hand circularly polarized component.

[0093] In possible implementations, such as Figure 7 As shown, in laboratory testing, when the watch is in a reference attitude, incoming waves from different directions can be sent to the watch to obtain the antenna pattern of the watch, and the gain of the right-hand circular polarization component in states 1, 2 and 3 can be tested when the watch receives incoming waves from different directions.

[0094] For example, when the watch is in the reference posture, the gain of the right-hand circular polarization component in each state can be shown in Table 1 below.

[0095] Here, the angle θ can represent the angle between the incoming wave and the positive z-axis, and the angle θ can range from 0° to 180°. An angle can represent the angle between the projection of the incoming wave onto the xoy plane and the positive x-axis. Angles can range from 0° to 360°; The angle can be the angle between the projection of the incoming wave onto the xoy plane and the positive x-axis in the clockwise rotation direction, or it can be the angle between the projection of the incoming wave onto the xoy plane and the positive x-axis in the counterclockwise rotation direction. This application does not limit the angle.

[0096] It should be noted that the angle θ in Table 1 below and Angles can be refined to any degree, such as 1 degree, 2 degrees, 5 degrees, etc., specifically θ angle and The degree measure of the angle is not limited in this embodiment. For example, if the angle θ and If the angle is refined to 1 degree, then the angle θ can include 181 angle values. An angle can include 360 ​​angle values, and Table 1 can include 65,160 sets of data for a certain state. If the angle θ and... If the angle is refined to 5 degrees, then the angle θ can include 37 angle values. An angle can include 72 angle values, and Table 1 can include 2664 sets of data for a certain state.

[0097] For ease of description, Table 1 below uses angle θ and... Taking a 30-degree angle as an example, in Table 1, the angle θ can include seven values: 0°, 30°, 60°, 90°, 120°, 150°, and 180°. Angles can include 12 angle values: 0°, 30°, 60°, 90°, 120°, 150°, 180°, 210°, 240°, 270°, 300°, and 330°. In Table 1, states 1, 2, and 3 can each include 84 sets of data.

[0098] Table 1

[0099]

[0100] After obtaining the gain of the right-hand circular polarization component in states 1, 2, and 3 when the watch is in the reference attitude, step S502 can be executed to obtain the gain of the right-hand circular polarization component in states 1, 2, and 3 in all attitudes of the watch.

[0101] S502, Iterate through all watch orientations and redraw the antenna pattern after rotation.

[0102] In one possible implementation, the antenna pattern corresponding to other poses of the watch can be obtained by formula transformation based on the reference pose. In other words, the coordinate system corresponding to the reference pose and the coordinate system corresponding to other poses can be mutually transformed.

[0103] For example, the following illustration demonstrates the transformation between two coordinate systems using Euler angles (a,b,c) and a rotation matrix.

[0104] Where a is the precession angle, b is the nutation angle, and c is the rotation angle. Taking the rotation order as an example—first rotating along the z-axis, then along the x-axis, and then back along the z-axis—we can obtain the rotation operators and rotation matrices corresponding to each Euler angle. It is understandable that different rotation orders result in different rotation matrices.

[0105] For example, the rotation operator Z(a) of a can satisfy the following formula:

[0106]

[0107] The rotation operator N(b) of b can satisfy the following formula:

[0108]

[0109] The rotation operator Z'(c) of c can satisfy the following formula:

[0110]

[0111] The rotation matrix R(a,b,c) can satisfy the following formula:

[0112]

[0113] It is understandable that the coordinate system corresponding to the reference pose is first rotated by 'a' degrees along the z-axis, then by 'b' degrees along the x-axis, and then by 'c' degrees along the z-axis to obtain the coordinate systems corresponding to other poses. Assuming the coordinates in the coordinate system corresponding to the reference pose are (x, y, z), after calculation with the rotation matrix, the coordinates in the coordinate systems corresponding to other poses can be obtained as (x1, y1, z1).

[0114] The coordinate system corresponding to the reference posture can be a coordinate system with the normal direction of the watch screen as the z-axis and the direction from the center of the electronic device to the 12 o'clock position as the x-axis when the watch is in the reference posture. The coordinate system corresponding to other postures is a coordinate system with the normal direction of the phone screen as the z-axis and the direction from the center of the phone to the 12 o'clock position as the x-axis when the phone is in other postures. It is understood that the 12 o'clock position can also be any other position on the watch, and this embodiment of the application does not limit it.

[0115] For ease of description, the coordinate systems mentioned above can all be defined by the positive directions of the coordinate axes. For example, the coordinate system corresponding to the reference posture can be a coordinate system where, when the watch is in the reference posture, the positive direction of the z-axis is the direction of the normal to the watch screen pointing upwards, and the positive direction of the x-axis is the direction from the center of the electronic device to the 12 o'clock position of the electronic device; the coordinate system corresponding to other postures can be a coordinate system where, when the mobile phone is in other postures, the positive direction of the z-axis is the direction of the normal to the mobile phone screen pointing upwards, and the positive direction of the x-axis is the direction from the center of the mobile phone to the 12 o'clock position of the mobile phone.

[0116] The coordinates (x1, y1, z1) can satisfy the following formula:

[0117]

[0118] Thus, based on the reference attitude, after transformation by the rotation matrix, the antenna pattern corresponding to other attitudes can be obtained.

[0119] For example, taking attitude 2 as an example, the antenna pattern corresponding to attitude 2 can be shown in Table 2 below.

[0120] Table 2

[0121]

[0122] Understandably, taking a 30-degree angle between the watch and the coordinate system as an example, the watch can have 12 different orientations in the x, y, and z axes. Therefore, the watch can have 1728 different orientations in the coordinate system, corresponding to 1728 antenna patterns. In other words, there can be 1728 gain tables similar to the right-hand circular polarization components in Table 2.

[0123] In addition, the antenna pattern of the watch in various postures can be obtained by means of rotation vectors, etc. The specific calculation method for obtaining other postures based on the reference posture is not limited in the embodiments of this application.

[0124] In another possible implementation, the antenna patterns corresponding to other orientations of the watch can also be tested in the laboratory. For example... Figure 8 As shown, for example Figure 8 The 'a' can be referred to as the 'gesture' of the watch, 2. Figure 8 'b' can be referred to as the watch's attitude 3. It is understood that the watch can be in any attitude. When the watch is in a certain attitude, incoming waves from different directions can be sent to the watch, and the gain of the right-hand circularly polarized component in each state when the watch receives the incoming waves can be tested. The specific implementation can be referred to the description in step S501 above, and will not be repeated here.

[0125] S503, the average gain within a preset angle in the zenith region, and the optimal reconfigurable state.

[0126] After obtaining the gain of the right-hand circular polarization component under various watch postures, the average gain of state 1, state 2 and state 3 under each watch posture within a preset angle in the zenith region can be calculated.

[0127] like Figure 9 As shown, using a Cartesian coordinate system, the preset angle can be understood as an angle of 60° between the origin O of the coordinate axis and the Z-axis. This preset angle can be pre-set by the watch; for example, the preset angle can be 60°. The specific value of the preset angle is not limited in this embodiment. For ease of description, a preset angle of 60° will be used as an example in the following explanation.

[0128] For example, taking the watch's reference orientation as an example, the average gain of each state in Table 1 within the range of 0° to 60° can be calculated to obtain the average gain 1 for state 1, the average gain 2 for state 2, and the average gain 3 for state 3. It can be understood that the larger the average gain, the stronger the signal received in the corresponding state, and thus that state can be considered the optimal state. Similarly, the average gain of each state within the zenith range can also be calculated under other orientations.

[0129] The optimal states of the mobile phone under various postures are shown in Table 3 below. In some implementations, Table 3 may also be referred to as the optimal state antenna list. The optimal state may include the state corresponding to the maximum, second largest, or larger average gain value among the various states of the antenna, etc., which is not limited in the embodiments of this application.

[0130] As can be understood, Table 3 uses a 5-degree angle between the watch and the coordinate system as an example. This means the watch can have 72 different orientations along the x, y, and z axes, resulting in 72*72*72 possible orientations, or 373,248 possible orientations, within the coordinate system. Each of these orientations can yield a corresponding optimal state.

[0131] For example, as shown in Table 3 below, under the baseline posture, if the average gain 3 is greater than the average gain 2, and the average gain 3 is greater than the average gain 1, then the optimal state under the baseline posture can be state 3; under posture 2, if the average gain 1 is greater than the average gain 2, and the average gain 1 is greater than the average gain 3, then the optimal state under posture 2 can be state 1; under posture 3, if the average gain 2 is greater than the average gain 1, and the average gain 2 is greater than the average gain 3, then the optimal state under posture 3 can be state 2, and so on. It is understood that the optimal state corresponding to different postures can be the same or different. Table 3 is an example illustrating that different mobile phone postures can have different optimal states. The specific optimal states under each posture, and the contents included in Table 3, are subject to actual test results.

[0132] Table 3

[0133]

[0134] It is understood that the embodiments of this application may also calculate other values ​​of gain within a preset angle in the zenith region, such as calculating the sum of gains, or calculating a multiple of the sum of gains, or using other calculation methods to calculate the gain, which is not limited in the embodiments of this application.

[0135] S504. Store the list of optimal antenna states corresponding to all watch orientations into the watch.

[0136] After obtaining the list of optimal antenna states from step S503 above, the table can be preset in the watch, and step S505 can be executed.

[0137] Understandably, the optimal antenna list is obtained through laboratory testing and calculation in advance and pre-set in the watch. This way, after the watch determines the attitude, it can look up the result in the list without having to perform the calculation process to obtain the list itself. This reduces the calculation process in the watch and saves computing power.

[0138] It should be noted that the list of antennas in optimal state can be as shown in Table 3 above, or as shown in Table 4 below. This application embodiment does not limit the specific form of displaying the list of antennas in optimal state, as long as the optimal state under different watch postures can be obtained.

[0139] Table 4

[0140] Reference attitude 0 0 0 State 3 Posture 2 5 0 0 State 1 Posture 3 0 5 0 State 2 Posture 4 0 0 5 …… Posture 5 5 5 0 …… posture n …… …… …… ……

[0141] S505, the watch attitude sensor calculates the current watch attitude.

[0142] After acquiring the current watch posture, the watch posture sensor can execute step S506 to obtain the optimal state corresponding to the current watch posture.

[0143] S506, the watch obtains the corresponding reconstruction status.

[0144] The watch can consult a pre-set list of optimal antenna states to determine the best state for the current watch orientation, and then switch to the corresponding antenna state via a power switch. This allows for the selection of the optimal antenna state to receive stronger GNSS signals, improving the positioning accuracy of electronic devices.

[0145] The methods of this application will be described in detail below through specific embodiments. The following embodiments can be combined with each other or implemented independently, and the same or similar concepts or processes may not be described again in some embodiments.

[0146] Figure 10 An antenna control method according to an embodiment of this application is illustrated. The electronic device includes an antenna, and the electronic device is configured with a correspondence between the electronic device's attitude and the antenna's state. The method includes:

[0147] S1001. When the electronic device switches from the first attitude to the second attitude, the electronic device controls the antenna to switch from the first state to the second state. When the antenna is in the first state, the antenna beam is the first beam. When the antenna is in the second state, the antenna beam is the second beam. The direction of the first beam and the direction of the second beam are different. The second state is obtained by the electronic device from the correspondence relationship to query the second attitude.

[0148] In this embodiment of the application, the first posture can be understood as any posture of the electronic device, and the second posture can be understood as any posture of the electronic device. The first posture and the second posture are different.

[0149] The first state is the state corresponding to the first pose in the correspondence relationship. The first state can be understood as the optimal state corresponding to the first pose. The optimal state can be referred to the above. Figure 5 The optimal state in the corresponding embodiment will not be described again. The second state is the state corresponding to the second posture in the correspondence relationship, and the second state can be understood as the optimal state corresponding to the second posture.

[0150] S1002. When the electronic device switches from the second attitude to the first attitude, the electronic device controls the antenna to switch from the second state to the first state, wherein the first state is obtained by the electronic device from the correspondence relationship to query the first attitude.

[0151] In this embodiment of the application, the electronic device can switch between any posture. For example, the electronic device can switch back and forth between a first posture and a second posture, or it can switch between other postures.

[0152] It is understandable that when the antenna state of an electronic device includes two states, the electronic device can switch between the two antenna states. When the antenna state of an electronic device includes more than two states, the electronic device can also switch between multiple antenna states.

[0153] Switching the electronic device's state based on the preset correspondence between the electronic device's attitude and antenna state allows the electronic device to quickly obtain an antenna state that enables better signal reception during attitude changes. This allows the electronic device to continuously acquire better signals, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

[0154] Optional, in Figure 10 Based on the corresponding embodiments, when obtaining the correspondence between the first attitude and the first state, the signal gain of the signal at each angle under the first attitude in multiple states of the antenna is first obtained, and then the first gain of the antenna in multiple states is calculated based on the signal gain within a preset angle; wherein, the preset angle is the angle formed by the angle with the direction perpendicular to the ground being less than a preset value, the first gain includes the average value of the signal gain within the preset angle, the sum of the signal gains within the preset angle, or a preset multiple of the sum of the signal gains within the preset angle, and the first gain corresponding to the first state includes the maximum value of the first gain in each state of the antenna.

[0155] In this embodiment, the signal gain of the signal at each angle under the first posture in multiple states of the antenna can be referred to the above. Figure 5The relevant descriptions of Table 1 in step S501 or Table 2 in step S502 in the corresponding embodiments will not be repeated here.

[0156] The preset angle can be understood as described above. Figure 5 The preset angle in step S503 in the corresponding embodiment, for example, can be 60°, which will not be described in detail here.

[0157] The first gain may include the above. Figure 5 In the corresponding embodiment, the average gain in step S503 may also include other calculation methods for signal gain within a preset angle, which will not be elaborated further.

[0158] The calculation of the first gain of the antenna in multiple states based on the signal gain within a preset angle can be referenced as described above. Figure 5 The relevant descriptions of step S503 in the corresponding embodiments will not be repeated here.

[0159] The first gain corresponding to the first state may include the maximum value of the first gain in each state of the antenna, or the second largest value of the first gain in each state of the antenna, or the larger value of the first gain in each state of the antenna, etc., which are not limited in the embodiments of this application.

[0160] Since a larger first gain indicates a stronger signal received by the corresponding antenna state, the first gain corresponding to the first state includes the maximum value of the first gain in each state of the antenna. The electronic device uses the first state as the state corresponding to the first attitude, and can select the best antenna state to receive a stronger signal, thereby improving the positioning accuracy of the electronic device.

[0161] Optional, in Figure 10 Based on the corresponding embodiment, the signal gain of multiple states of the first posture is obtained based on the signal gain of the signal at each angle in the third posture of the electronic device in multiple states of the antenna, as well as the coordinate relationship between the first posture and the third posture. The signal gain of the signal at each angle in the third posture in multiple states of the antenna is obtained by measuring the gain of the electronic device when receiving signals from each angle in the third posture.

[0162] In this embodiment of the application, the third posture can be understood as described above. Figure 5 The reference attitude in step S501 of the corresponding embodiment, and the signal gain of the signal at each angle under the third attitude in multiple states of the antenna, can be referred to the relevant description in step S501, and will not be repeated here.

[0163] The first posture can be understood as described above. Figure 5 In the corresponding embodiment, the calculation process for the signal gain of the watch in other postures and multiple states of the first posture in step S502 can be referred to the above. Figure 5The relevant descriptions in step S502 of the corresponding embodiment will not be repeated here.

[0164] The signal gain of multiple states in the first posture is obtained based on the signal gain of the antenna in multiple states at each angle in the third posture. This eliminates the need to test each posture of the watch in the laboratory, thus simplifying the laboratory testing process.

[0165] Optional, in Figure 10 Based on the corresponding embodiment, when obtaining the signal gain of multiple states of the first posture, the coordinates in the first coordinate system corresponding to the third posture are first transformed to obtain the coordinates in the second coordinate system corresponding to the first posture. Then, the signal gain of multiple states of the first posture is obtained according to the correspondence between the coordinates before and after the transformation. The first coordinate system is the coordinate system with the normal direction of the electronic device screen as the z-axis and the direction from the center of the electronic device to the target position of the electronic device as the x-axis when the electronic device is in the third posture. The second coordinate system is the coordinate system with the normal direction of the electronic device screen as the z-axis and the direction from the center of the electronic device to the target position of the electronic device as the x-axis when the electronic device is in the first posture. The coordinate transformation satisfies the following formula:

[0166]

[0167] Where (x,y,z) are the coordinates in the first coordinate system, (x1,y1,z1) are the coordinates in the second coordinate system, and R(a,b,c) is the rotation matrix corresponding to the Euler angle (a,b,c). The rotation matrix R(a,b,c) satisfies the following formula:

[0168]

[0169] Where a is the precession angle in Euler angles, b is the nutation angle in Euler angles, and c is the rotation angle in Euler angles. The rotation sequence of the rotation matrix includes first rotating a about the z-axis of the first coordinate system, then rotating b about the x-axis of the first coordinate system, and then rotating c about the z-axis of the first coordinate system.

[0170] In this embodiment, the calculation process for the signal gain of multiple states of the first posture can be referred to the above. Figure 5 The relevant descriptions in step S502 of the corresponding embodiment will not be repeated here.

[0171] By establishing the correspondence between the coordinates of the first coordinate system corresponding to the third posture and the coordinates of the second coordinate system corresponding to the first posture, the signal gain of the signal at each angle under the first posture in multiple states of the antenna can be quickly obtained, thus improving computational efficiency.

[0172] Optional, in Figure 10Based on the corresponding embodiment, the signal gain of the signal at each angle of the first posture in multiple states of the antenna is obtained by measuring the gain of the electronic device when receiving signals from each angle in the first posture.

[0173] In this embodiment, the signal gain of the signal at each angle of the first posture in multiple states of the antenna can also be tested in the laboratory. The specific testing method can be referred to the above. Figure 5 The relevant descriptions in step S502 of the corresponding embodiment will not be repeated here.

[0174] By obtaining the signal gain of the first posture signal at various angles in multiple antenna states through laboratory testing, it is possible to reduce the computational load without performing matrix transformations and other related calculations.

[0175] Optional, in Figure 10 Based on the corresponding embodiments, the method may further include: when the electronic device switches from the first attitude to the fourth attitude, the electronic device controls the antenna to switch from the first state to the fourth state, wherein when the antenna is in the fourth state, the antenna beam is the fourth beam, the direction of the first beam is different from the direction of the fourth beam, and the fourth state is obtained by the electronic device from the correspondence relationship to query the fourth attitude.

[0176] In this application embodiment, the fourth posture can be understood as any posture of the electronic device, which is different from the first posture and the fourth posture.

[0177] The fourth state is the state corresponding to the fourth posture in the correspondence relationship. The fourth state can be understood as the optimal state corresponding to the fourth posture.

[0178] The antenna state can be switched according to the different postures of the electronic device, so that different directional beams can be selected, and the selected beam can receive stronger signals, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

[0179] Optional, in Figure 10 Based on the corresponding embodiments, the method may further include: when the electronic device switches from the first attitude to the fifth attitude, the electronic device does not switch the antenna state, and the antenna is in the first state, which is obtained by the electronic device from the correspondence relationship to query the fifth attitude.

[0180] In this embodiment, the fifth posture can be understood as any posture of the electronic device, and the first posture is different from the fifth posture. The optimal state corresponding to the fourth posture is the first state. That is to say, different electronic device postures can correspond to the same antenna state.

[0181] When an electronic device is in different postures but the corresponding states are the same, it is not necessary to switch the antenna state. This reduces the need for antenna state switching while receiving a stronger signal, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

[0182] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.

[0183] The foregoing primarily describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the aforementioned functions, it includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the method steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0184] This application embodiment can divide the apparatus for implementing the method into functional modules based on the above method examples. For example, each function can be divided into its own functional modules, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0185] like Figure 11 The diagram shows a chip structure according to an embodiment of this application. The chip 1100 includes one or more processors 1101, communication lines 1102, communication interfaces 1103, and memory 1104.

[0186] In some implementations, memory 1104 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.

[0187] The methods described in the embodiments of this application can be applied to processor 1101, or implemented by processor 1101. Processor 1101 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit in the hardware of processor 1101 or by instructions in software form. The processor 1101 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. Processor 1101 can implement or execute the various processing-related methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0188] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 1104, and processor 1101 reads information from memory 1104 and, in conjunction with its hardware, completes the steps of the above method.

[0189] The processor 1101, memory 1104 and communication interface 1103 can communicate with each other via communication line 1102.

[0190] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.

[0191] This application also provides a computer program product comprising one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from a website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. For example, available media may include magnetic media (e.g., floppy disk, hard disk, or magnetic tape), optical media (e.g., digital versatile disc (DVD)), or semiconductor media (e.g., solid-state disk (SSD)).

[0192] This application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. The computer-readable medium may include computer storage media and communication media, and may also include any medium capable of transferring a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0193] As one possible design, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; computer-readable media may also include disk storage or other disk storage devices. Furthermore, any connecting cable may also be appropriately referred to as computer-readable media. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. As used herein, disks and optical discs include optical discs (CD), laser discs, optical discs, digital versatile discs (DVD), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers.

[0194] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

Claims

1. An antenna control method, characterized in that, The electronic device includes an antenna, through which the electronic device receives GNSS signals from a Global Navigation Satellite System. The electronic device has a mapping relationship between all its attitudes and antenna states, with one electronic device attitude corresponding to one antenna state. The method includes: When the electronic device switches from the first posture to the second posture, the electronic device controls the antenna to switch from the first state to the second state. When the antenna is in the first state, the antenna beam is the first beam. When the antenna is in the second state, the antenna beam is the second beam. In the second posture, the second beam points to the zenith region. The second state is obtained by the electronic device from the correspondence to query the second posture. When the electronic device switches from the second posture back to the first posture, the electronic device controls the antenna to switch from the second state to the first state. In the first posture, the first beam points to the zenith region. The first state is obtained by the electronic device from the correspondence relationship by querying the first posture. The correspondence between all attitudes of the electronic device and the antenna state is set through the following steps: The signal gain of the electronic device at various angles under a reference posture in multiple states of the antenna is obtained. The reference posture is the state in which the electronic device is placed flat. The signal gain of the electronic device at various angles under the reference posture in multiple states of the antenna is obtained by measuring the gain of the electronic device when receiving signals from various angles under the reference posture. For each orientation of the electronic device, the corresponding antenna state is determined using the following steps: First, the coordinates in the first coordinate system corresponding to the reference attitude are transformed to obtain the coordinates in the second coordinate system corresponding to the attitude. Then, based on the correspondence between the coordinates before and after the transformation, the signal gain of the signal at each angle under the attitude in multiple states of the antenna is obtained. The first coordinate system is a coordinate system with the normal direction of the electronic device's screen as the z-axis and the direction from the center of the electronic device to the target position as the x-axis when the electronic device is in the reference attitude. The second coordinate system is a coordinate system with the normal direction of the electronic device's screen as the z-axis and the direction from the center of the electronic device to the target position as the x-axis when the electronic device is in this attitude. The first gain of the antenna in multiple states is calculated based on the signal gain within a preset angle; wherein, the preset angle is an angle formed by the angle between the antenna and the direction perpendicular to the ground being less than a preset value, and the spatial region defined by the preset angle is the zenith region; the first gain includes the average value of the signal gain within the preset angle, the sum of the signal gains within the preset angle, or a preset multiple of the sum of the signal gains within the preset angle. The antenna state corresponding to the attitude is determined by the antenna state corresponding to the maximum value of the first gain in multiple states of the antenna.

2. The method according to claim 1, characterized in that, The coordinate transformation satisfies the following formula: Where (x, y, z) are the coordinates in the first coordinate system, (x1, y1, z1) are the coordinates in the second coordinate system, and R(a,b,c) is the rotation matrix corresponding to the Euler angles (a,b,c), wherein the rotation matrix R(a,b,c) satisfies the following formula: ; Where a is the precession angle in Euler angles, b is the nutation angle in Euler angles, and c is the rotation angle in Euler angles, the rotation sequence of the rotation matrix includes first rotating a around the z-axis of the first coordinate system, then rotating b around the x-axis of the first coordinate system, and then rotating c around the z-axis of the first coordinate system.

3. The method according to any one of claims 1-2, characterized in that, The method further includes: When the electronic device switches from the first posture to the fourth posture, the electronic device controls the antenna to switch from the first state to the fourth state. When the antenna is in the fourth state, the antenna beam is the fourth beam, and the direction of the first beam is different from the direction of the fourth beam. The fourth state is obtained by the electronic device from the correspondence to query the fourth posture.

4. The method according to any one of claims 1-2, characterized in that, The method further includes: When the electronic device switches from the first posture to the fifth posture, the electronic device does not switch the state of the antenna. The antenna is in the first posture, which is obtained by the electronic device from the correspondence to the fifth posture.

5. An electronic device, characterized in that, include: A memory and a processor, the memory for storing a computer program and the processor for executing the computer program to perform the method as described in any one of claims 1-4.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, cause a computer to perform the method as described in any one of claims 1-4.

7. A computer program product, characterized in that, Includes a computer program that, when run, causes an electronic device to perform the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Beam management method and related equipment

    CN110753388A

  • Antenna switching method and device, electronic equipment and storage medium

    CN112600605A