Antenna control method and related apparatus

By presetting the antenna state correspondence relationship under each posture in the electronic device, the antenna state switching during attitude switching is realized, which solves the problem of poor GNSS signal reception when the posture changes in the electronic device, and improves positioning accuracy and user experience.

WO2025066579A1PCT designated stage expired Publication Date: 2025-04-03HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/111144
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-27
Filing Date
2024-08-09
Publication Date
2025-04-03

AI Technical Summary

Technical Problem

Electronic devices may cause poor GNSS signal reception when posture changes, resulting in inaccurate positioning.

Method used

By presetting the antenna state correspondence relationship of the electronic device in each posture, the antenna state switching is realized during attitude switching, so as to select the best antenna beam to receive a strong GNSS signal.

Benefits of technology

Improve the positioning accuracy of electronic devices and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024111144_03042025_PF_FP_ABST
    Figure CN2024111144_03042025_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the technical field of terminals. Provided are an antenna control method and a related apparatus. The method comprises: presetting a correspondence of antenna states in which an electronic device can better receive signals at various poses; and when the electronic device is used, the electronic device using the correspondence to obtain an antenna state corresponding to a switched pose during pose switching. This allows an antenna beam corresponding to the antenna state to receive a relatively strong GNSS signal, thereby improving the positioning accuracy of the electronic device, and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Antenna control method and related device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on September 27, 2023, with application number 2023112874424 and application name “Antenna Control Method and Related Devices”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to an antenna control method and related devices. Background Art

[0003] Some electronic devices can use antennas to acquire GNSS signals. For example, electronic devices can use GNSS signals to obtain the user's location, enabling functions such as plotting a running track. Electronic devices can also use GNSS signals to provide route navigation for users.

[0004] However, electronic devices may have problems such as poor GNSS signal acquisition and inaccurate positioning.

[0005] Summary of the Invention

[0006] The antenna control method and related devices provided in the embodiments of the present application can preset the correspondence between the antenna states of the electronic device that can better receive signals in various postures. When using the electronic device, the electronic device can use the correspondence to obtain the antenna state corresponding to the switched posture when the posture is switched. In this way, the antenna beam corresponding to the antenna state can receive a stronger GNSS signal, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

[0007] In a first aspect, an antenna control method provided by an embodiment of the present application includes:

[0008] When the electronic device switches from a first posture to a 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. The first beam and the second beam have different directions. The second state is obtained by the electronic device by querying the second posture from the corresponding relationship. 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. The first state is obtained by the electronic device by querying the first posture from the corresponding relationship. In this way, the antenna beam corresponding to the antenna state can receive a stronger GNSS signal.

[0009] In one possible implementation, when obtaining the correspondence between the first posture and the first state, the signal gains of the signals at various angles in the first posture under the multiple antenna states are first obtained, and then the first gain of the antenna under the multiple states is calculated based on the signal gains within a preset angle. The preset angle is an angle whose angle with the vertical ground direction is less than a preset value. The first gain includes an average value of the signal gains within the preset angle, a 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 first gain corresponding to the first state includes the maximum value of the first gains under the various antenna states. Thus, 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 gains under the various antenna states. By using the first state as the state corresponding to the first posture, the electronic device can select the optimal antenna state to receive a stronger signal, thereby improving the positioning accuracy of the electronic device.

[0010] In one possible implementation, the signal gains for multiple states in the first posture are determined based on the signal gains for the antenna at multiple states for signals at various angles in the third posture of the electronic device, as well as the coordinate relationship between the first and third postures. The signal gains for the antenna at multiple states for signals at various angles in the third posture are determined by measuring the gain of the electronic device when receiving signals from various angles in the third posture. In this way, the signal gains for multiple states in the first posture are determined based on the signal gains for the antenna at multiple states for signals at various angles in the third posture, eliminating the need to test each watch in each posture in the laboratory, thereby simplifying the laboratory testing process.

[0011] In one possible implementation, when obtaining the signal gains of multiple states of the first posture, the coordinates in the first coordinate system corresponding to the third posture are first converted to obtain the coordinates in the second coordinate system corresponding to the first posture, and then the signal gains of the multiple states of the first posture are obtained based on the correspondence between the coordinates before and after the conversion; wherein the first coordinate system is a coordinate system in which the normal direction of the electronic device screen is the z-axis and the direction of the target position of the electronic device pointing to the center of the electronic device is the x-axis when the electronic device is in the third posture; the second coordinate system is a coordinate system in which the normal direction of the electronic device screen is the z-axis and the direction of the target position of the electronic device pointing to the center of the electronic device is the x-axis when the electronic device is in the first posture; the coordinate conversion satisfies the following formula:

[0012] 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:

[0013] Here, 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 matrix's rotation order is to first rotate the z-axis of the first coordinate system by a, then the x-axis of the first coordinate system by b, and finally the z-axis of the first coordinate system by c. This way, by using 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 various angles in the first posture under multiple antenna states can be quickly determined, improving computational efficiency.

[0014] In one possible implementation, the signal gains of signals at various angles in the first posture under multiple antenna states are obtained by measuring the gains of the electronic device when receiving signals from various angles in the first posture. In this way, determining the signal gains of signals at various angles in the first posture under multiple antenna states through laboratory testing eliminates the need for performing matrix conversion and other related calculations, thereby reducing the computational effort.

[0015] In one possible implementation, 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, 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 by querying the fourth posture from the corresponding relationship. In this way, the antenna state can be switched according to the different postures of the electronic device, so that beams with different directions can be selected, so that the selected beam can receive a stronger signal.

[0016] In one possible implementation, the method further includes: when the electronic device switches from the first posture to the fifth posture, the electronic device does not switch the antenna state; the antenna remains in the first state, where the first state is obtained by the electronic device from a query of the fifth posture in the corresponding relationship. In this way, when the electronic device is in different postures but the states corresponding to the different postures are the same, the antenna state does not need to be switched. This reduces antenna state switching while still allowing for stronger signal reception, thereby improving the positioning accuracy of the electronic device.

[0017] In a second aspect, an embodiment of the present application provides an antenna control device, which may be an electronic device or a chip or chip system within an electronic device. The device may include a processing unit. The processing unit is configured to implement any processing-related method performed by the electronic device in the first aspect or any possible implementation of the first aspect. When the device is an electronic device, the processing unit may be a processor. The device may also include a storage unit, which may be a memory. The storage unit is configured to store instructions, and the processing unit executes the instructions stored in the storage unit to enable the electronic device to implement the method described in the first aspect or any possible implementation of the first aspect. When the device 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 enable 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, a cache, etc.) or a storage unit within the electronic device located outside the chip (e.g., a read-only memory, a random access memory, etc.).

[0018] Exemplarily, the processing unit is configured to switch from a first posture to a second posture, further configured to control the antenna to switch from the first state to the second state, and specifically further configured to query the second posture from the corresponding relationship. The processing unit is configured to switch from the second posture to the first posture, further configured to control the antenna to switch from the second state to the first state, and specifically further configured to query the first posture from the corresponding relationship.

[0019] In one possible implementation, when obtaining the correspondence between the first posture and the first state, the signal gain of the signal at each angle in the first posture 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 the preset angle.

[0020] In one possible implementation, the signal gains of multiple states of the first posture are obtained based on the signal gains of signals at various angles in the third posture of the electronic device in multiple states of the antenna, and the coordinate relationship between the first posture and the third posture. The signal gains of signals at various angles in the third posture in multiple states of the antenna are obtained by measuring the gains of the electronic device when receiving signals from various angles in the third posture.

[0021] In one possible implementation, when obtaining the signal gains of multiple states of the first posture, the coordinates in the first coordinate system corresponding to the third posture are first converted to obtain the coordinates in the second coordinate system corresponding to the first posture, and then the signal gains of multiple states of the first posture are obtained based on the correspondence between the coordinates before and after the conversion.

[0022] In a possible implementation, the signal gains of the signals at various angles in the first posture in multiple states of the antenna are obtained by measuring the gains of the electronic device when receiving signals from various angles in the first posture.

[0023] In a possible implementation, the processing unit is configured to switch from the first posture to the fourth posture, and is further configured to control the antenna to switch from the first state to the fourth state, and is specifically configured to query the fourth posture from the corresponding relationship.

[0024] In a possible implementation, the processing unit is configured to switch from the first posture to the fifth posture, and is further configured to query the fifth posture from the corresponding relationship.

[0025] In a third aspect, an embodiment of the present application provides a terminal device, comprising a processor and a memory, wherein the memory is used to store code instructions, and the processor is used to run the code instructions to execute the method described in the first aspect or any possible implementation of the first aspect.

[0026] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.

[0027] In a fifth aspect, an embodiment of the present application provides a computer program product comprising a computer program, which, when the computer program runs on a computer, enables the computer to execute the method described in the first aspect or any possible implementation of the first aspect.

[0028] In a sixth aspect, the present application provides a chip or chip system, comprising at least one processor and a communication interface, wherein the communication interface and the at least one processor are interconnected via a line, and the at least one processor is configured to execute a computer program or instruction to perform the method described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip may be an input / output interface, a pin, or a circuit.

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

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

[0031] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0032] FIG2 is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0033] FIG3 is a schematic diagram of beams with different directions in an electronic device provided by an embodiment of the present application;

[0034] FIG4 is a schematic diagram of the posture and beam pointing of an electronic device provided in an embodiment of the present application;

[0035] FIG5 is a flow chart of an antenna control method provided in an embodiment of the present application;

[0036] FIG6 is a schematic diagram of a gain of a right-handed circularly polarized component obtained by an electronic device provided in an embodiment of the present application;

[0037] FIG7 is a schematic diagram of an antenna receiving signal in a reference posture provided by an embodiment of the present application;

[0038] FIG8 is a schematic diagram of an antenna receiving a signal in an arbitrary posture provided by an embodiment of the present application;

[0039] FIG9 is a schematic diagram of a zenith area provided in an embodiment of the present application;

[0040] FIG10 is a schematic diagram of an antenna control method provided in an embodiment of the present application;

[0041] FIG11 is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0043] 1. Terminology

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

[0045] 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 descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0046] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items 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, c can be single or multiple.

[0047] 2. Electronic devices

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

[0049] As an example and not a limitation, in the embodiments of the present application, the electronic device may also be a wearable device. Wearable devices may also be referred to as wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0050] In addition, in the embodiment of the present application, 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 devices in the embodiments of the present 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 the embodiments of the present application, the electronic device or each network device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory (also known as main memory). The operating system can be any one or more computer operating systems that implement business processing through processes, such as the Linux operating system, the Unix operating system, the Android operating system, the iOS operating system, or the Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0053] For example, FIG1 shows a schematic structural diagram of an electronic device.

[0054] The electronic device may include a processor 110, an internal memory 120, a wireless charging module 130, a charging management module 140, a power management module 141, a battery 142, a display 150, a wireless communication module 160, an antenna, an audio module 170, a speaker 170A, a receiver 170B, a sensor module 180, a button 190, etc. Among them, the sensor module 180 may include an infrared light sensor 180A, a gyroscope sensor 180B, an acceleration 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 specific limitations on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the diagram may be implemented in hardware, software, or a combination of software and hardware.

[0056] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors. The controller may generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.

[0057] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0058] In some embodiments, the processor 110 may include one or more interfaces. The 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), and / or a general-purpose input / output (GPIO) interface.

[0059] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic illustration and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0060] The internal memory 120 can be used to store computer executable program code, and the executable program code includes instructions. The internal memory 120 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, at least one application required for a function, etc. The data storage area can store data created during the use of the electronic device, etc. In addition, the internal memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 120 and / or instructions stored in a memory provided in the processor.

[0061] Antennas are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, in embodiments of the present application, the electronic device can obtain global navigation satellite system (GNSS) signals and / or global positioning system (GPS) signals via an antenna.

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

[0063] Wireless communication module 160 can be one or more devices that integrate at least one communication processing module. Wireless communication module 160 receives electromagnetic waves via an antenna, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to processor 110. Wireless communication module 160 can also receive signals to be transmitted from processor 110, frequency-modulate and amplify them, and then convert them into electromagnetic waves for radiation via the antenna.

[0064] Figure 2 is a block diagram of the software structure of an electronic device according to an embodiment of the present application. The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers: the application layer, the application framework layer, the Android runtime and system library, the hardware abstraction layer (HAL), and the kernel layer.

[0065] The application layer, also known as the application layer, can include a series of application packages. As shown in Figure 2, an 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 an application programming interface (API) and programming framework for applications in the application layer. The Framework layer may include some predefined functions.

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

[0068] The Android runtime includes the core library and the virtual machine. The Android runtime is responsible for controlling and managing the Android system.

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

[0070] The application layer and framework layer run in a virtual machine. The virtual machine executes the Java files in the application and framework layers as binary files. The virtual machine is responsible for performing functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection. For example, in an embodiment of the present application, the virtual machine can be used to calculate the posture of the electronic device, query the corresponding antenna status based on the posture, and switch the antenna status.

[0071] The system library can also be called the Native layer. The Native layer can include multiple functional modules, such as the media library, function library, and graphics processing library.

[0072] The Hardware Abstraction Layer (HAL) is an abstract structure between the kernel layer and the Android runtime. It encapsulates hardware drivers and provides a unified interface for upper-layer applications to call.

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

[0074] It should be noted that the embodiments of the present application are only illustrated using the Android system as an example. 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 the present application, the solutions of the present application can also be implemented.

[0075] Some electronic devices use antennas to acquire satellite signals, such as GNSS and GPS signals. For example, GNSS signals can be used to determine a user's location, enabling features like running track mapping. They can also provide route navigation.

[0076] It is understood that the larger the antenna or the more antennas a device has, the better the GNSS signal it can acquire. Therefore, in some implementations, to achieve more accurate positioning, electronic devices may employ solutions such as antenna switching and antenna diversity to enhance GNSS signals. For example, an electronic device may have multiple built-in 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. Therefore, the signal received by these small electronic devices may be poor. In addition, when the posture of the electronic device changes, the direction of the antenna beam receiving the signal in the electronic device may also change, making the signal received by the electronic device unstable or poor, resulting in problems such as inaccurate positioning.

[0078] In view of this, the antenna control method provided in the embodiment of the present application can preset the correspondence between the antenna states of the electronic device that can better receive signals in various postures. When using the electronic device, the electronic device can use the correspondence to obtain the antenna state corresponding to the switched posture when the posture is switched, so that the antenna beam corresponding to the antenna state can receive a stronger GNSS signal, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

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

[0080] As shown in Figure 3, an antenna in a watch can have different directional antenna beams in different states. Antenna beams can be used to receive GNSS signals and are also referred to as beams. It's understood that the strength of GNSS signals received by beams in different directions can vary. For example, beam 1 might receive stronger GNSS signals from the left, beam 2 might receive stronger GNSS signals from the center, and beam 3 might receive stronger GNSS signals from the right. The antenna can be in any of the directional beams at the same time.

[0081] In a possible implementation, the watch may include a single-pole multi-throw (SPMT) switch. By switching between these switches, the watch can change antenna states, thereby receiving GNSS signals using beams with different orientations. For example, the SPMT switches in the watch may include switch 1, switch 2, and switch 3. When switched to switch 1, the watch can receive GNSS signals using beam 1; when switched to switch 2, the watch can receive GNSS signals using beam 2; and when switched to switch 3, the watch can receive GNSS signals using beam 3.

[0082] It is understandable that the GNSS signal received in the area above the watch is relatively strong compared to other directions. This is because when the watch is near the horizon, the GNSS signal near the horizon is likely to be blocked by objects such as trees and buildings, while the GNSS signal in the area above 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 area and then use that beam to receive GNSS signals. Among them, in the embodiment of the present application, this upper area can also be called the zenith area.

[0083] As shown in Figure 4, when the user's motion posture changes, the watch's posture also changes. In this case, the watch can select the beam in the zenith area to receive GNSS signals, thereby improving the watch's positioning capability. It should be understood that the user's motion posture in Figure 4 is for illustration only, and the embodiments of this application do not limit the user's specific motion posture.

[0084] As shown in Figure 4a, when the user is running, beam 1 in the watch is facing upward and is better in the zenith area of ​​the watch, indicating that beam 1 can receive a stronger GNSS signal, and the watch can switch to beam 1 to receive the GNSS signal; as shown in Figure 4b, when the user is cycling, beam 2 in the watch is facing upward and is better in the zenith area of ​​the watch, indicating that beam 2 can receive a stronger GNSS signal, and the watch can switch to beam 2 to receive the GNSS signal; as shown in Figure 4c, when the user is climbing, beam 3 in the watch is facing upward and is better in the zenith area of ​​the watch, indicating that beam 3 can receive a stronger GNSS signal, and the watch can switch to beam 3 to receive the GNSS signal.

[0085] FIG5 below shows a flow chart of an antenna control method according to an embodiment of the present application.

[0086] S501 : Measure antenna patterns in each reconfigurable state in a reference attitude, and record the gain of the right-hand circular polarization component.

[0087] It is understandable that the watch can include multiple postures in space. For example, taking the angle between the watch and the coordinate system as refined to 1 degree, the watch can have 360 ​​postures in the x-axis, y-axis, and z-axis directions, and the watch can have 360*360*360 postures in the coordinate system, that is, 46656000 postures. Taking the angle between the watch and the coordinate system as refined to 5 degrees, the watch can have 72 postures in the x-axis, y-axis, and z-axis directions, and the watch can have 72*72*72 postures in the coordinate system, that is, 373248 postures. The specific angle refinement dimension between the watch and the coordinate system is not limited in the embodiments of this application.

[0088] In the embodiments of the present application, the reference posture can be any posture of the watch, without limitation, and this reference posture can also be referred to as posture 1. For example, the reference posture can be the posture of the watch when the watch is in a flat position, the normal direction of the dial is the Z axis, and the center of the watch points to the 12 o'clock direction as the X axis.

[0089] The reconfigurable state can be understood as the state in which the antenna in the watch can switch. For example, the same antenna can have multiple reconfigurable states when switching between different states, or the watch can be considered to have two reconfigurable states when using antenna 1 alone or antenna 2 alone. For example, in Figure 3 above, the reconfigurable state can 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 can include multiple reconfigurable states, and the specific number of reconfigurable states is not limited in the embodiments of this application.

[0090] For ease of description, the following explanation is given by taking 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 an example.

[0091] It is understood that the signal received by the watch's antenna can also be called an incoming wave. The incoming wave can include waves in different directions. For example, a GNSS signal with right-hand circular polarization can also be called a right-hand circularly polarized wave.

[0092] Because the watch's received signal beam doesn't match the incoming wave's direction, it can't accurately reflect the received signal's gain. Therefore, as shown in Figure 6, given that GNSS signals are right-hand circularly polarized waves, to better receive GNSS signals, the watch can obtain the power gain of the GNSS signal received on the right-hand circularly polarized component. The power gain of the GNSS signal received on the right-hand circularly polarized component can also be referred to as the gain of the right-hand circularly polarized component.

[0093] In a possible implementation, as shown in Figure 7, in laboratory tests, when the watch is in a reference posture, waves from different directions can be sent to the watch to obtain the antenna radiation pattern of the watch, and the gains of the right-hand circularly polarized components of state 1, state 2 and state 3 are tested when the watch receives 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] The angle θ may represent the angle between the incoming wave and the positive direction of the z-axis, and the angle θ may range from 0° to 180°. The angle φ may represent the angle between the projection of the incoming wave on the xoy plane and the positive direction of the x-axis, and the angle φ may range from 0° to 360°. The angle φ may be the angle between the projection of the incoming wave on the xoy plane and the positive direction of the x-axis in a clockwise direction, or the angle between the projection of the incoming wave on the xoy plane and the positive direction of the x-axis in a counterclockwise direction, and is not limited in the embodiments of the present application.

[0096] It should be noted that the θ angle and the φ angle in Table 1 below can be refined to any degree, such as 1 degree, 2 degrees, 5 degrees, etc. The specific degree refinement dimension of the θ angle and the φ angle is not limited in the embodiment of the present application. For example, if the θ angle and the φ angle are refined to 1 degree, the θ angle can include 181 angle values, the φ angle can include 360 ​​angle values, and 65,160 sets of data can be included in a certain state in Table 1. If the θ angle and the φ angle are refined to 5 degrees, the θ angle can include 37 angle values, the φ angle can include 72 angle values, and 2,664 sets of data can be included in a certain state in Table 1.

[0097] For ease of description, the following Table 1 takes the case where the angle θ and the angle φ are refined to 30 degrees as an example. That is, in Table 1, the angle θ may include 7 angle values ​​of 0°, 30°, 60°, 90°, 120°, 150°, and 180°, and the angle φ may include 12 angle values ​​of 0°, 30°, 60°, 90°, 120°, 150, 180°, 210°, 240°, 270°, 300°, and 330°. State 1, State 2, and State 3 in Table 1 may each include 84 sets of data.

[0098] Table 1

[0099] After testing and obtaining the gains of the right-hand circular polarization components in states 1, 2, and 3 when the watch is in the reference posture, step S502 can also be executed to obtain the gains of the right-hand circular polarization components in states 1, 2, and 3 in all postures of the watch.

[0100] S502: traverse all watch postures and redraw the antenna pattern after rotation.

[0101] In one possible implementation, the antenna radiation patterns corresponding to other postures of the watch can be obtained through formula conversion based on the reference posture, that is, the coordinate system corresponding to the reference posture and the coordinate system corresponding to other postures can be converted into each other.

[0102] For example, the following uses the Euler angles (a, b, c) and the rotation matrix to implement the conversion between two coordinate systems.

[0103] 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. Taking the rotation order of first rotating along the z-axis, then along the x-axis, and finally along the z-axis as an example, we can obtain the corresponding rotation operators and rotation matrices for each Euler angle. It is understandable that different rotation orders correspond to different rotation matrices.

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

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

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

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

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

[0109] 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 center of the electronic device pointing to the 12 o'clock direction of the electronic device as the x-axis when the watch is in the reference posture; the coordinate system corresponding to other postures can be a coordinate system with the normal direction of the mobile phone screen as the z-axis and the center of the mobile phone pointing to the 12 o'clock direction of the mobile phone as the x-axis when the mobile phone is in other postures. It is understandable that the 12 o'clock direction can also be any other position on the watch, and this embodiment of the application is not limited thereto.

[0110] For ease of description, the above coordinate systems can all be definitions of the positive direction of the coordinate axes. For example, the coordinate system corresponding to the reference posture can be a coordinate system in which the normal of the watch screen is upward as the positive direction of the z-axis, and the center of the electronic device points to the 12 o'clock direction of the electronic device as the positive direction of the x-axis when the watch is in the reference posture; the coordinate system corresponding to other postures can be a coordinate system in which the normal of the phone screen is upward as the positive direction of the z-axis, and the center of the phone points to the 12 o'clock direction of the phone as the positive direction of the x-axis when the phone is in other postures.

[0111] Among them, the coordinates (x1, y1, z1) can satisfy the following formula:

[0112] In this way, based on the reference posture, after conversion by the rotation matrix, the antenna patterns corresponding to other postures can be obtained.

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

[0114] Table 2

[0115] As you can understand, if the angle between the watch and the coordinate system is refined to 30 degrees, the watch can have 12 postures in the x-axis, y-axis, and z-axis directions, which means that the watch can have 1728 postures in the coordinate system, corresponding to 1728 antenna patterns. In other words, there can be 1728 gain tables for the right-hand circularly polarized component similar to those in Table 2.

[0116] In addition, the antenna radiation pattern of the watch in various postures can be obtained by using methods such as rotation vectors. The specific calculation method for converting other postures based on the reference posture is not limited in the embodiments of this application.

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

[0118] S503: Calculate the average gain value within a preset angle in the zenith area and provide an optimal reconfigurable state.

[0119] After obtaining the gains of the right-hand circular polarization components in each watch posture, the average gains of states 1, 2, and 3 within a preset angle in the zenith area in each watch posture can be calculated.

[0120] As shown in FIG9 , based on a rectangular coordinate system, the preset angle can be understood as an angle of 60° with the Z axis, starting from the coordinate axis origin O. The 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 the present embodiment. For ease of description, the following description uses a preset angle of 60° as an example.

[0121] For example, using the watch's baseline attitude as an example, the average gain values ​​for each state within the θ range of 0° to 60° in Table 1 can be calculated, yielding average gain values ​​of 1 for state 1, 2 for state 2, and 3 for state 3. It can be understood that a larger average gain value indicates a stronger signal received in that state, and that state can be considered optimal. Similarly, average gain values ​​for each state within the zenith range can be calculated for other attitudes.

[0122] The optimal state of the specific mobile phone in various postures can be shown in Table 3 below. In some implementations, Table 3 can 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 value of the gain average values ​​corresponding to various antenna states, which is not limited in the embodiments of the present application.

[0123] As can be understood, Table 3 uses the example of a 5-degree angle between the watch and the coordinate system. Thus, the watch can have 72 possible postures along the x-axis, y-axis, and z-axis. Thus, the watch can have 72*72*72 postures in the coordinate system, or 373,248 possible postures. Each posture can achieve the corresponding optimal state.

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

[0125] Table 3

[0126] It is understandable that the embodiments of the present application can also calculate other values ​​of the gain within the preset angle of the zenith area, such as calculating the sum of the gains, or calculating multiples of the sum of the gains, or using other calculation methods to calculate the gains, which is not limited by the embodiments of the present application.

[0127] S504: Store the optimal antenna list corresponding to all watch postures in the watch.

[0128] After obtaining the optimal antenna list in step S503, the list can be preset in the watch and step S505 is executed.

[0129] It is understandable that the list of optimal antenna conditions is obtained through laboratory testing and calculation in advance and pre-set in the watch. In this way, after the watch determines the posture, it can query the result from the table without the need for the watch to execute the process of calculating the table. This can reduce the calculation process in the watch and save computing power.

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

[0131] Table 4

[0132] S505: The watch posture sensor calculates the current watch posture.

[0133] After the watch posture sensor obtains the current watch posture, step S506 may be executed to obtain the optimal state corresponding to the current watch posture.

[0134] S506: The watch obtains the corresponding reconstruction status.

[0135] The watch can query the preset optimal antenna status list to obtain the optimal status corresponding to the current watch posture, and then control the switch to the corresponding antenna status. This way, the optimal antenna status can be selected to receive stronger GNSS signals, improving the positioning accuracy of electronic devices.

[0136] The following describes the method of the embodiment of the present application in detail 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 repeated in some embodiments.

[0137] FIG10 shows an antenna control method according to an embodiment of the present application. The electronic device includes an antenna, and a corresponding relationship between the electronic device posture and the antenna state is set in the electronic device. The method includes:

[0138] S1001. When the electronic device switches from a first posture to a second posture, the electronic device controls the antenna to switch from a first state to a second state, wherein when the antenna is in the first state, the antenna beam is a first beam, and when the antenna is in the second state, the antenna beam is a second beam, and the direction of the first beam is different from the direction of the second beam. The second state is obtained by the electronic device querying the second posture from the corresponding relationship.

[0139] In the embodiment of the present application, the first gesture can be understood as any gesture of the electronic device, and the second gesture can be understood as any gesture of the electronic device, and the first gesture and the second gesture are different.

[0140] The first state is the state corresponding to the first posture in the corresponding relationship, and the first state can be understood as the optimal state corresponding to the first posture. The optimal state can refer to the optimal state in the embodiment corresponding to Figure 5 above, and will not be repeated here. The second state is the state corresponding to the second posture in the corresponding relationship, and the second state can be understood as the optimal state corresponding to the second posture.

[0141] S1002: When the electronic device switches from the second posture to the first posture, 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 by querying the first posture from the corresponding relationship.

[0142] In the embodiment of the present application, the electronic device can be switched in any posture. For example, the electronic device can be switched back and forth between the first posture and the second posture, or can be switched in other postures.

[0143] It can be understood that when the antenna state of the electronic device includes two states, the electronic device can switch between the two antenna states. When the antenna state of the electronic device includes more than two states, the electronic device can also switch between multiple antenna states.

[0144] By switching the state of the electronic device according to the preset correspondence between the electronic device posture and the antenna state, the electronic device can quickly obtain an antenna state that can better receive signals when the posture is switched, so that the electronic device can continuously obtain better signals, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

[0145] Optionally, based on the embodiment corresponding to Figure 10, when obtaining the correspondence between the first posture and the first state, the signal gains of the signals at various angles in the first posture in multiple states of the antenna are first obtained, and then the first gain of the antenna in multiple states is calculated based on the signal gains within the preset angles; wherein, the preset angle is an angle whose angle with the vertical ground direction is less than a preset value, the first gain includes the average value of the signal gains within the preset angles, the sum of the signal gains within the preset angles, or a preset multiple of the sum of the signal gains within the preset angles, and the first gain corresponding to the first state includes the maximum value of the first gains in each state of the antenna.

[0146] In the embodiment of the present application, the signal gains of signals at various angles in the first posture under multiple states of the antenna can refer to the relevant description of Table 1 in step S501 or the relevant description of Table 2 in step S502 in the embodiment corresponding to Figure 5 above, and will not be repeated here.

[0147] The preset angle may be understood as the preset angle in step S503 in the embodiment corresponding to FIG. 5 . For example, the preset angle may be 60°, which will not be described in detail.

[0148] The first gain may include the gain average value in step S503 in the embodiment corresponding to FIG. 5 , and may also include other calculation methods of the signal gain within a preset angle, which will not be described in detail.

[0149] For calculating the first gain of the antenna in multiple states according to the signal gain within the preset angle, reference may be made to the description of step S503 in the embodiment corresponding to FIG. 5 , which will not be repeated here.

[0150] The first gain corresponding to the first state may include the maximum value of the first gain in each state of the antenna, and may also include 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 is not limited in the embodiments of the present application.

[0151] Since the larger the first gain, the stronger the 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 posture and can select the optimal antenna state to receive a stronger signal, thereby improving the positioning accuracy of the electronic device.

[0152] Optionally, based on the embodiment corresponding to Figure 10, the signal gains of multiple states of the first posture are obtained based on the signal gains of signals at various angles in the third posture of the electronic device in multiple states of the antenna, and the coordinate relationship between the first posture and the third posture. The signal gains of signals at various angles in the third posture in multiple states of the antenna are obtained by measuring the gains of the electronic device when receiving signals from various angles in the third posture.

[0153] In the embodiment of the present application, the third posture can be understood as the reference posture in step S501 of the embodiment corresponding to Figure 5 above. The signal gain of signals at various angles in multiple states of the antenna under the specific third posture can refer to the relevant description in step S501 and will not be repeated here.

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

[0155] The signal gains of multiple states of the first posture are obtained based on the signal gains of the signals at various angles in the third posture at multiple states of the antenna. There is no need to test each posture of the watch in the laboratory, thereby simplifying the laboratory testing process.

[0156] Optionally, based on the embodiment corresponding to FIG10 , when obtaining the signal gains of multiple states of the first posture, the coordinates in the first coordinate system corresponding to the third posture are first converted to obtain the coordinates in the second coordinate system corresponding to the first posture, and then the signal gains of multiple states of the first posture are obtained based on the correspondence between the coordinates before and after the conversion; wherein the first coordinate system is a coordinate system in which the normal direction of the electronic device screen is the z-axis and the direction of the target position of the electronic device pointed to by the center of the electronic device is the x-axis when the electronic device is in the third posture; the second coordinate system is a coordinate system in which the normal direction of the electronic device screen is the z-axis and the direction of the target position of the electronic device pointed to by the center of the electronic device is the x-axis when the electronic device is in the first posture; the coordinate conversion satisfies the following formula:

[0157] 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:

[0158] Among them, a is the precession angle in Euler angle, b is the nutation angle in Euler angle, and c is the rotation angle in Euler angle. The rotation order of the rotation matrix includes first rotating the z-axis of the first coordinate system by a, then rotating the x-axis of the first coordinate system by b, and then rotating the z-axis of the first coordinate system by c.

[0159] In the embodiment of the present application, the calculation process of the signal gains of multiple states of the first posture can refer to the relevant description in step S502 of the embodiment corresponding to Figure 5 above, and will not be repeated here.

[0160] Through 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 signals at various angles in the first posture under multiple states of the antenna can be quickly obtained, thereby improving calculation efficiency.

[0161] Optionally, based on the embodiment corresponding to Figure 10, the signal gain of the signals at various angles in the first 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 first posture.

[0162] In an embodiment of the present application, the signal gains of signals at various angles of the first posture in multiple states of the antenna can also be tested in the laboratory. The specific testing method can refer to the relevant description in step S502 of the embodiment corresponding to Figure 5 above, and will not be repeated here.

[0163] By testing in the laboratory to obtain the signal gains of the signals at various angles of the first posture in multiple states of the antenna, it is unnecessary to perform related calculations such as matrix conversion, thereby reducing the amount of calculation.

[0164] Optionally, based on the embodiment corresponding to Figure 10, the method may also include: 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, wherein, when the antenna is in the fourth state, the beam of the antenna 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 querying the fourth posture from the corresponding relationship.

[0165] In the embodiment of the present application, the fourth posture can be understood as any posture of the electronic device, and the first posture and the fourth posture are different.

[0166] The fourth state is a state corresponding to the fourth posture in the corresponding relationship, and the fourth state can be understood as the optimal state corresponding to the fourth posture.

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

[0168] Optionally, based on the embodiment corresponding to Figure 10, the method may also include: when the electronic device switches from the first posture to the fifth posture, the electronic device does not switch the state of the antenna, and the antenna is in the first state, and the first state is obtained by the electronic device by querying the fifth posture from the corresponding relationship.

[0169] In the embodiment of the present application, the fifth posture can be understood as any posture of the electronic device, and the first posture and the fifth posture are different. Among them, the optimal state corresponding to the fourth posture is the first state. In other words, different electronic device postures can correspond to the same antenna state.

[0170] When the electronic device is in different postures but the states corresponding to different postures are the same, there is no need to switch the antenna state. This can reduce the antenna state switching while being able to receive stronger signals, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.

[0171] 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, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0172] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the method steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0173] The embodiment of the present application can divide the functional modules of the device implementing the method according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.

[0174] 11 is a schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip 1100 includes one or more (including two) processors 1101 , a communication line 1102 , a communication interface 1103 , and a memory 1104 .

[0175] In some embodiments, the memory 1104 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.

[0176] The method described in the above embodiment of the present application can be applied to the processor 1101, or implemented by the processor 1101. The processor 1101 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor 1101 or an instruction in the form of software. The above-mentioned processor 1101 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 1101 can implement or execute the methods, steps and logic block diagrams related to each processing disclosed in the embodiment of the present application.

[0177] The steps of the method disclosed in the embodiments of the present application can be directly implemented as being executed by a hardware decoding processor, or can be implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read-only memory (EEPROM). The storage medium is located in the memory 1104, and the processor 1101 reads the information in the memory 1104 and performs the steps of the above method in combination with its hardware.

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

[0179] In the above embodiment, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory or downloaded and installed in the memory in the form of software.

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

[0181] The present application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part via software, hardware, firmware, or any combination thereof. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one location to another. The storage medium can be any target medium that can be accessed by a computer.

[0182] 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 include magnetic disk storage or other magnetic disk storage devices. Moreover, any connecting line may also be appropriately referred to as a computer-readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically using lasers.

[0183] The present application embodiment is described with reference to the flow chart and / or block diagram according to the method, device (system) and computer program product of the embodiment of the present application.It should be understood that each flow process and / or box in the flow chart and / or block diagram and the combination of the flow process and / or box in the flow chart and / or block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processing unit of general-purpose computer, special-purpose computer, embedded processing machine or other programmable data processing equipment to produce a machine, so that the instruction executed by the processing unit of computer or other programmable data processing equipment produces the device for realizing the function specified in one flow chart flow chart or multiple flow charts and / or one block or multiple blocks of block diagram.

Claims

1. An antenna control method, characterized in that: The electronic device includes an antenna, and the electronic device is provided with a corresponding relationship between the electronic device posture and the 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, wherein when the antenna is in the first state, the beam of the antenna is the first beam, and when the antenna is in the second state, the beam of the antenna is the second beam, the direction of the first beam is different from the direction of the second beam, and the second state is obtained by the electronic device querying the second posture from the corresponding relationship; When the electronic device switches from the second posture to the first posture again, 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 by querying the first posture from the corresponding relationship.

2. The method according to claim 1, characterized in that When obtaining the correspondence between the first posture and the first state, first obtain the signal gains of the signals at various angles in the first posture in multiple states of the antenna, and then calculate the first gain of the antenna in multiple states according to the signal gains within the preset angles; Among them, the preset angle is an angle whose angle with the vertical ground direction is less than a preset value, the first gain includes the average value of the signal gains 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.

3. The method according to claim 2, characterized in that The signal gains of multiple states of the first posture are obtained based on the signal gains of signals at various angles in the third posture of the electronic device in multiple states of the antenna, and the coordinate relationship between the first posture and the third posture. The signal gains of signals at various angles in the third posture in multiple states of the antenna are obtained by measuring the gains when the electronic device receives signals from various angles in the third posture.

4. The method according to claim 3, characterized in that: When obtaining the signal gains of the multiple states of the first posture, firstly transform the coordinates in the first coordinate system corresponding to the third posture to obtain the coordinates in the second coordinate system corresponding to the first posture, and then obtain the signal gains of the multiple states of the first posture according to the corresponding relationship between the coordinates before and after the transformation; Wherein, the first coordinate system is a coordinate system in which the normal direction of the electronic device screen is the z-axis and the direction of the target position of the electronic device pointed to by the center of the electronic device is the x-axis when the electronic device is in the third posture; the second coordinate system is a coordinate system in which the normal direction of the electronic device screen is the z-axis and the direction of the target position of the electronic device pointed to by the center of the electronic device is the x-axis when the electronic device is in the first posture; The coordinate transformation satisfies the following formula: Wherein, (x, y, z) is the coordinate in the first coordinate system, (x1, y1, z1) is the coordinate in the second coordinate system, R(a, b, c) is the rotation matrix corresponding to the Euler angle (a, b, c), and the rotation matrix R(a, b, c) satisfies the following formula: Among them, a is the precession angle in the Euler angle, b is the nutation angle in the Euler angle, and c is the rotation angle in the Euler angle. The rotation order of the rotation matrix includes first rotating the z-axis of the first coordinate system by a, then rotating the x-axis of the first coordinate system by b, and then rotating the z-axis of the first coordinate system by c.

5. The method according to claim 2, characterized in that: The signal gains of the signals at various angles of the first posture in multiple states of the antenna are obtained by measuring the gains of the electronic device when receiving signals from various angles in the first posture.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: 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, wherein when the antenna is in the fourth state, the beam of the antenna 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 by querying the fourth posture from the corresponding relationship.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When the electronic device switches from the first posture to the fifth posture, the electronic device does not switch the state of the antenna, and the antenna is in the first state, which is obtained by the electronic device by querying the fifth posture from the corresponding relationship.

8. An electronic device, characterized in that: include: A memory and a processor, the memory being used to store a computer program, and the processor being used to execute the computer program to perform the method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the method according to any one of claims 1 to 7.

10. A computer program product, characterized in that The invention comprises a computer program, which, when being executed, enables an electronic device to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

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

    CN115225110A

  • Antenna switching method and terminal antenna

    CN116053806A

  • Antenna and handheld communication equipment

    CN116780166A

  • Electronic device for performing beam searching, operating method therefor, and storage medium

    WO2022164218A1