Antenna control method and related device
By presetting the antenna state correspondence relationship of electronic devices and real-time switching, the problem of poor GNSS signal reception when the posture changes in electronic devices is solved, and positioning accuracy and user experience are improved.
Patent Information
- Application Number
- CN202311287442.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2043-09-27
AI Technical Summary
Electronic devices may cause poor GNSS signal reception when attitude changes, resulting in inaccurate positioning.
By presetting the antenna state correspondence relationship of the electronic device in each posture, the antenna state is switched in real time to match the attitude changes, thereby selecting the best antenna beam to receive the GNSS signal.
It improves the GNSS signal reception strength of electronic devices in different postures, and enhances positioning accuracy and user experience.
Smart Images

Figure CN119766288A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to an antenna control method and related devices. Background Art
[0002] Some electronic devices can use antennas to obtain GNSS signals. For example, electronic devices can obtain the user's location through GNSS signals to achieve functions such as drawing a running track; 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 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, 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.
[0005] In a first aspect, an antenna control method provided by an embodiment of the present application includes:
[0006] 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 antenna beam is the first beam, and when the antenna is in the second state, the antenna beam is the second beam, the first beam is directed differently from the second beam, and 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 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. In this way, the antenna beam corresponding to the antenna state can receive a stronger GNSS signal.
[0007] In a 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 according to the signal gain within the preset angle; wherein the preset angle is an angle formed by an angle with a vertical ground direction 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 gain within the preset angle, or a preset multiple of the sum of the signal gain 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. In this way, 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, and the electronic device adopts the first state as the state corresponding to the first posture, the best antenna state can be selected to receive a stronger signal, thereby improving the positioning accuracy of the electronic device.
[0008] In a possible implementation, 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 of the electronic device in multiple states of the antenna, and the coordinate relationship between the first posture and the third posture, and the signal gains of the signals at various angles in the third posture in multiple states of the antenna are obtained by measuring the gain of the electronic device when receiving signals from various angles in the third posture. In this way, 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 in multiple states of the antenna, and it is not necessary to test each posture of the watch in the laboratory, thereby simplifying the laboratory testing process.
[0009] In a 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 according to 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:
[0010]
[0011] Among them, (x, y, z) are the coordinates in the first coordinate system, (x1, y1, z1) are the coordinates 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:
[0012]
[0013] Among them, a is the precession angle in Euler angle, b is the nutation angle in Euler angle, c is the rotation angle in Euler angle, and 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. In this way, 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 signal at each angle in the first posture under multiple states of the antenna can be quickly obtained, thereby improving the calculation efficiency.
[0014] In a possible implementation, 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 the signals from various angles in the first posture. In this way, the signal gains of the signals at various angles of the first posture in multiple states of the antenna are obtained by testing in the laboratory, and related calculations such as matrix conversion may not need to be performed, thereby reducing the amount of calculation.
[0015] In a 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 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. In this way, 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 beam can receive a stronger signal.
[0016] In a 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 state of the antenna, and the antenna is in the first state, and the first state is obtained by the electronic device from the corresponding relationship by querying the fifth posture. In this way, when the postures of the electronic device are different, but the states corresponding to the different postures are the same, it is not necessary to switch the state of the antenna, which can reduce the switching of the antenna state while being able to receive a stronger signal, 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 in an electronic device. The device may include a processing unit. The processing unit is used to implement any method related to processing 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 used to store instructions, and the processing unit executes the instructions stored in the storage unit so that the electronic device implements the method described in the first aspect or any possible implementation of the first aspect. When the device is a chip or chip system in an electronic device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit so that the electronic device implements the method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), or a storage unit in the electronic device located outside the chip (for example, a read-only memory, a random access memory, etc.).
[0018] Exemplarily, the processing unit is used to switch from the first posture to the second posture, and is also used to control the antenna to switch from the first state to the second state, and is specifically used to query the second posture from the corresponding relationship. It is used to switch from the second posture to the first posture, and is also used to control the antenna to switch from the second state to the first state, and is specifically used 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 a 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, and 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 used to switch from the first posture to the fourth posture, and is also used to control the antenna to switch from the first state to the fourth state, and is specifically used to query the fourth posture from the corresponding relationship.
[0024] In a possible implementation, the processing unit is used to switch from the first posture to the fifth posture, and is also used to query the fifth posture from the corresponding relationship.
[0025] In a third aspect, an embodiment of the present application provides a terminal device, including a processor and a memory, the memory being used to store code instructions, and the processor being 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 instructions are stored. When the computer program or instructions are 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 including a computer program. When the computer program runs on a computer, the computer executes the method described in the first aspect or any possible implementation manner of the first aspect.
[0028] In a sixth aspect, the present application provides a chip or a chip system, the chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used to run a computer program or instruction to execute the method 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, a pin or a circuit, etc.
[0029] In a possible implementation, the chip or chip system described above in the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside 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] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0032] Figure 2 A schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;
[0033] Figure 3 A schematic diagram of beams with different directions in an electronic device provided in an embodiment of the present application;
[0034] Figure 4 A schematic diagram of an electronic device posture and beam pointing provided in an embodiment of the present application;
[0035] Figure 5 A flowchart of an antenna control method provided in an embodiment of the present application;
[0036] Figure 6 A schematic diagram of gain of a right-hand circularly polarized component obtained by an electronic device provided in an embodiment of the present application;
[0037] Figure 7 A schematic diagram of an antenna receiving a signal in a reference posture provided in an embodiment of the present application;
[0038] Figure 8 A schematic diagram of an antenna receiving a signal in an arbitrary posture provided in an embodiment of the present application;
[0039] Fig. 9 A schematic diagram of a zenith area provided in an embodiment of the present application;
[0040] Fig.10 A schematic diagram of an antenna control method provided in an embodiment of the present application;
[0041] Fig.11 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to clearly describe the technical solutions of the embodiments of the present application, some terms and technologies involved in the embodiments of the present application are briefly introduced below:
[0043] 1. Terminology
[0044] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first chip and the second chip are only used to distinguish different chips, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0045] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0046] In the embodiments of the present application, "at least one" refers to one or more, and "more than one" 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: A exists alone, A and B exist at the same time, and B exists 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" or similar expressions refers 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, c can be single or multiple.
[0047] 2. Electronic equipment
[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, a vehicle-mounted device, a wearable device, an electronic device in a 5G network or a public land mobile communication network (public land mobile communication network) to be evolved in the future. Mobile network, PLMN) and the like, the embodiments of the present application are not limited to this.
[0049] As an example but not 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 powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and fully or partially independent of smartphones, such as smart watches or smart glasses, as well as devices 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 types of smart bracelets and smart jewelry for vital sign monitoring.
[0050] In addition, in the embodiments of the present application, the electronic device may also be an electronic device in an 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 that interconnects people and machines and things.
[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 an embodiment 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 a 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 operating system, Unix operating system, Android operating system, iOS operating system, or Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0053] For example, Figure 1 A schematic structural diagram of an electronic device is shown.
[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 screen 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 to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented by 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 processor (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), etc. Among them, different processing units may be independent devices or integrated into one or more processors. The controller may generate an operation control signal according to the instruction opcode and the timing signal to complete the control of fetching and executing instructions.
[0057] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, 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. The interface 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, etc.
[0059] It is understandable that the interface connection relationship between the modules illustrated in the embodiment 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 codes, and the executable program codes include instructions. The internal memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, at least one application required for a function, etc. The data storage area may 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] The antenna is used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, in an embodiment of the present application, the electronic device can obtain a global navigation satellite system (GNSS) signal and / or a global positioning system (GPS) signal through 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), nearfield communication (NFC), infrared (IR), etc. For example, electronic devices can use GNSS positioning to obtain the user's running track.
[0063] The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into an electromagnetic wave for radiation via the antenna.
[0064] Figure 2 It is a software structure block diagram of the electronic device of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into five layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, the hardware abstraction layer (hardware adaptation layer, HAL), and the kernel layer.
[0065] The application layer can also be called the application layer, which can include a series of application packages. Figure 2 As shown, the application package may include applications such as phone, music, camera, etc. Applications may include system applications and third-party applications.
[0066] The application framework layer can also be called the Framework layer. The Framework layer can provide an application programming interface (API) and a programming framework for the application layer's applications. The Framework layer can include some predefined functions.
[0067] like Figure 2 As shown, the Framework layer may include a window manager, a resource manager, a notification manager, a content provider, a view system, and the like.
[0068] Android runtime includes core libraries and virtual machines. 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 function that needs to be called by the Java language, and the other part is the Android core library.
[0070] The application layer and the framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the framework layer as binary files. The virtual machine is used to perform functions such as object life cycle 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 state based on the posture, and switch the antenna state.
[0071] The system library can also be called the Native layer, which can include multiple functional modules, such as the media library, function library, and graphics processing library.
[0072] The hardware abstraction layer is an abstract structure between the kernel layer and the Android runtime. The hardware abstraction layer can be a package of hardware drivers, providing 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 can use antennas to obtain satellite signals, such as GNSS signals, GPS signals, etc. Taking GNSS signals as an example, electronic devices can obtain the user's location through GNSS signals to achieve functions such as drawing a running track; electronic devices can also use GNSS signals to provide route navigation for users.
[0076] It is understandable that the larger the antenna or the more antennas there are, the better the GNSS signal obtained by the electronic device. Therefore, in some implementations, in order to achieve more accurate positioning, the electronic device may use antenna switching, antenna diversity and other solutions to enhance the GNSS signal. For example, multiple antennas may be built into the electronic device, and the electronic device may use multiple antennas to receive GNSS signals.
[0077] However, due to the small size of some electronic devices, such as wearable devices such as watches, the antennas built into these electronic devices are shorter and / or the number of antennas is smaller, so the signals obtained by 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 accordingly, making the signal obtained 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 having one antenna built in it.
[0080] like Figure 3 As shown, an antenna in a watch may correspond to antenna beams with different directions in different states, wherein the antenna beams may be used to receive GNSS signals, and the antenna beams may also be referred to as beams. It is understandable that the strength of GNSS signals received by beams with different directions is different. For example, beam 1 may receive a stronger GNSS signal on the left, beam 2 may receive a stronger GNSS signal in the middle, and beam 3 may receive a stronger GNSS signal on the right. The antenna may be on a certain directed beam at the same time.
[0081] In a possible implementation, the watch may include a single-pole multi-throw switch, and the watch can change the antenna state by switching between the single-pole multi-throw switches, so as to use beams with different directions to receive GNSS signals. For example, the single-pole multi-throw switch in the watch includes switch 1, switch 2, and switch 3. When switched to switch 1, the watch can use beam 1 to receive GNSS signals; when switched to switch 2, the watch can use beam 2 to receive GNSS signals; when switched to switch 3, the watch can use beam 3 to receive GNSS signals.
[0082] It is understandable that the GNSS signal received in the upper area of 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 very 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 the GNSS signal, the watch can determine which beam is currently in the upper area, and then use the beam to receive the GNSS signal. Among them, in the embodiment of the present application, the upper area can also be referred to as the zenith area.
[0083] like Figure 4 As shown, when the user's motion posture is different, the watch's posture is also different. At this time, the watch can select the beam in the zenith area to receive GNSS signals, thereby improving the positioning capability of the watch. It can be understood that Figure 4The user's motion posture is only used as an example, and the embodiments of the present application do not limit the user's specific motion posture.
[0084] like Figure 4 As shown in a, when the user is running, beam 1 in the watch faces upward and is better located in the zenith area of the watch, indicating that beam 1 can receive stronger GNSS signals, so the watch can switch to beam 1 to receive GNSS signals; Figure 4 As shown in b, when the user is riding, beam 2 in the watch faces upward and is better located in the zenith area of the watch, indicating that beam 2 can receive stronger GNSS signals, so the watch can switch to beam 2 to receive GNSS signals; Figure 4 As shown in c, when the user is climbing a mountain, beam 3 in the watch faces upward and is better located in the zenith area of the watch, indicating that beam 3 can receive stronger GNSS signals, so the watch can switch to beam 3 to receive GNSS signals.
[0085] under Figure 5 A flow chart of an antenna control method according to an embodiment of the present application is shown.
[0086] S501 , measuring antenna patterns in various reconfigurable states in a reference attitude, and recording gains of right-hand circular polarization components.
[0087] It is understandable that the watch can include multiple postures in space. Exemplarily, taking the angle between the watch and the coordinate system refined to 1 degree as an example, 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 refined to 5 degrees as an example, 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 the present application.
[0088] In the embodiment of the present application, the reference posture can be any posture of the watch, without limitation, and the 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 state, 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 be switched. For example, the same antenna can have multiple reconfigurable states when switching different states, or the watch can be regarded as two reconfigurable states when using antenna 1 alone or antenna 2 alone. Figure 3In the embodiment, the reconfigurable state 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 understandable that the watch may include multiple reconfigurable states, and the specific number of reconfigurable states is not limited in the embodiment of the present 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 understandable that the signal received by the antenna of the watch can also be called an incoming wave. The incoming wave can include waves in different directions. For example, a GNSS signal is an incoming wave in the right-hand circular polarization direction, which can also be called a right-hand circular polarization wave.
[0092] When the beam of the watch receiving the signal does not match the direction of the incoming wave, the gain of the received signal cannot be accurately reflected. Figure 6 As shown, based on the fact that the GNSS signal is a right-hand circularly polarized wave, in order to better receive the GNSS signal, the watch can obtain the power gain of the GNSS signal received on the right-hand circularly polarized component. Among them, the power gain of the GNSS signal received on the right-hand circularly polarized component can also be called the gain of the right-hand circularly polarized component.
[0093] Possible implementations, such as Figure 7 As shown, 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 states 1, 2, and 3 are tested when the watch receives waves from different directions.
[0094] Exemplarily, when the watch is in a reference posture, the gain of the right-hand circular polarization component in each state may be as 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 can represent the angle between the projection of the incoming wave on the xoy plane and the positive direction of the x-axis. Angles can range from 0° to 360°; The angle can be the angle between the projection of the incoming wave on the xoy plane and the positive direction of the x-axis in the clockwise direction, or it can be the angle between the projection of the incoming wave on the xoy plane and the positive direction of the x-axis in the counterclockwise direction, which is not limited in the embodiments of the present application.
[0096] It should be noted that the angles θ and The angle can be refined to any degree, such as 1 degree, 2 degrees, 5 degrees, etc. The degree of the angle is a refinement dimension, which is not limited in the present embodiment. For example, if the angle θ and If the angle is refined to 1 degree, the angle θ can include 181 angle values. Angle can include 360 angle values, and Table 1 can include 65160 sets of data under a certain state. If the angle is refined to 5 degrees, the θ angle can include 37 angle values. Angle can include 72 angle values, and a certain state in Table 1 can include 2664 sets of data.
[0097] For ease of description, the following table 1 uses angle θ and The angle is refined to 30 degrees for example. That is, in Table 1, the angle θ can include 7 angle values of 0°, 30°, 60°, 90°, 120°, 150° and 180°. The angle may include 12 angle values, namely, 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]
[0100] 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.
[0101] S502: traverse all the watch postures and redraw the antenna radiation pattern after rotation.
[0102] In a 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.
[0103] Exemplarily, the following uses the Euler angle (a, b, c) and the rotation matrix to achieve the conversion between two coordinate systems.
[0104] 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. Taking the rotation order of first rotating along the z-axis, then rotating along the x-axis, and then rotating along the z-axis as an example, the rotation operator and rotation matrix corresponding to each Euler angle can be obtained. It can be understood that different rotation orders correspond to 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 can be understood that the coordinate system corresponding to the reference posture is first rotated a degrees along the z axis, then b degrees along the x axis, and then c degrees along the z axis to obtain the coordinate system corresponding to other postures. Assuming that the coordinates in the coordinate system corresponding to the reference posture are (x, y, z), after calculating with the rotation matrix, the coordinates in the coordinate system corresponding to other postures can be obtained (x1, y1, z1).
[0114] The coordinate system corresponding to the reference posture can be a coordinate system in which the normal direction of the watch screen is the z-axis and the 12 o'clock direction from the center of the electronic device to the electronic device is the x-axis when the watch is in the reference posture; the coordinate system corresponding to other postures is a coordinate system in which the normal direction of the mobile phone screen is the z-axis and the 12 o'clock direction from the center of the mobile phone to the mobile phone is the x-axis when the mobile phone is in other postures. It can be understood that the 12 o'clock direction can also be any other position in the watch, which is not limited in the embodiments of the present application.
[0115] For ease of description, the above coordinate systems can all be definitions of the positive direction of the coordinate axis. 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 is a coordinate system in which the normal of the mobile phone screen is upward as the positive direction of the z-axis and the center of the mobile phone points to the 12 o'clock direction of the mobile phone as the positive direction of the x-axis when the mobile phone is in other postures.
[0116] Among them, the coordinates (x1, y1, z1) can satisfy the following formula:
[0117]
[0118] In this way, based on the reference posture, after conversion by the rotation matrix, the antenna radiation patterns corresponding to other postures can be obtained.
[0119] Exemplarily, taking posture 2 as an example, the antenna radiation pattern corresponding to posture 2 can be shown in Table 2 below.
[0120] Table 2
[0121]
[0122] It can be understood that, taking the angle between the watch and the coordinate system as 30 degrees, the watch can have 12 postures in the x-axis, y-axis, and z-axis directions, so 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 right-hand circular polarization components similar to Table 2.
[0123] 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 the present application.
[0124] In another possible implementation, the antenna patterns corresponding to other postures of the watch can also be tested in the laboratory. Figure 8 As shown, for example Figure 8 a can be called the posture 2 of the watch, Figure 8 b can be called the posture 3 of the watch. It can be understood that the watch can be in any posture. When the watch is in a certain posture, waves from different directions can be sent to the watch, and the gain of the right-hand circular polarization component in each state when the watch receives the wave can be tested. The specific implementation can refer to the description in the above step S501, which will not be repeated here.
[0125] S503: Calculate the average gain value within a preset angle in the zenith area and provide an optimal reconfigurable state.
[0126] After obtaining the gain of the right-hand circular polarization component in each watch posture, the average gain of state 1, state 2 and state 3 within a preset angle in the zenith area in each watch posture can be calculated.
[0127] like Fig. 9 As shown, based on the rectangular coordinate system, the preset angle can be understood as starting from the coordinate axis origin O and forming an angle of 60° with the Z axis. Among them, the preset angle can be preset by the watch, for example, the preset angle can be 60°, and the specific value of the preset angle is not limited in the embodiment of the present application. For the convenience of description, the following description is taken as an example of a preset angle of 60°.
[0128] For example, taking the reference posture of the watch as an example, the gain averages of each state in the range of θ from 0° to 60° in Table 1 can be calculated to obtain the gain average 1 of state 1, the gain average 2 of state 2, and the gain average 3 of state 3. It can be understood that the larger the gain average, the stronger the signal received by the corresponding state, and the state can be understood as the best state. Similarly, in other postures, the gain averages of each state in the zenith range can also be calculated.
[0129] The optimal state of a specific mobile phone in each posture can be shown in Table 3 below. In some implementations, Table 3 can also be called an optimal state antenna list. The optimal state may include the state corresponding to the maximum value, the second largest value, or the larger value of the gain average values corresponding to each state of the antenna, which is not limited in the embodiments of the present application.
[0130] It can be understood that, in Table 3, taking the angle between the watch and the coordinate system as 5 degrees as an example, 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. Among them, each posture can get the corresponding optimal state.
[0131] For example, as shown in Table 3 below, in the reference posture, if the gain average value 3 is greater than the gain average value 2, and the gain average value 3 is greater than the gain average value 1, then the optimal state in the reference posture can be state 3; in posture 2, if the gain average value 1 is greater than the gain average value 2, and the gain average value 1 is greater than the gain average value 3, then the optimal state in posture 2 can be state 1; in posture 3, if the gain average value 2 is greater than the gain average value 1, and the gain average value 2 is greater than the gain average value 3, the optimal state in posture 3 can be state 2, etc. It can be understood that the optimal states corresponding to different postures can be the same or different. Table 3 is an exemplary illustration that different mobile phone postures can have different optimal states. The specific optimal states in each posture and the contents included in Table 3 are subject to actual test results.
[0132] Table 3
[0133]
[0134] It can be understood that the embodiments of the present application can also calculate other values of the gain within a preset angle in 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.
[0135] S504: Store the best antenna list corresponding to all watch postures in the watch.
[0136] After obtaining the best status antenna list in the above step S503, the list can be preset in the watch and step S505 is executed.
[0137] It is understandable that the list of optimal antenna states is obtained through laboratory testing and calculation in advance and pre-set in the watch, so that after the watch determines the posture, it can query the result from the table without the need for the watch to execute the calculation process to obtain the table. This can reduce the calculation process in the watch and save computing power.
[0138] 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.
[0139] Table 4
[0140] Watch gesture a b c Best Condition Baseline 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 …… …… …… ……
[0141] S505: The watch posture sensor calculates the current watch posture.
[0142] 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.
[0143] S506: The watch obtains the corresponding reconstruction status.
[0144] The watch can query the best antenna status list preset in the watch to obtain the best status corresponding to the current watch posture, and then control the switch to the corresponding antenna status. In this way, the best antenna status can be selected to receive stronger GNSS signals and improve the positioning accuracy of the electronic device.
[0145] The following specific embodiments are used to describe the method of the present application in detail. The following embodiments may be combined with each other or implemented independently, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0146] Fig.10 The antenna control method of an embodiment of the present application is shown. 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:
[0147] 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 beam of the antenna is a first beam, and when the antenna is in the second state, the beam of the antenna is a 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.
[0148] In the embodiment of the present application, the first gesture can understand any gesture of the electronic device, and the second gesture can understand any gesture of the electronic device, and the first gesture and the second gesture are different.
[0149] The first state is a state corresponding to the first posture in the corresponding relationship. The first state can be understood as the best state corresponding to the first posture. The best state can refer to the above Figure 5 The optimal state in the corresponding embodiment is not described in detail. 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.
[0150] 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.
[0151] 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.
[0152] 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, and when the antenna state of the electronic device includes more than two states, the electronic device can also switch between multiple antenna states.
[0153] 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.
[0154] Optional, in Fig.10 On the basis of the corresponding embodiments, 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 a preset angle; wherein the preset angle is an angle with the vertical ground direction that 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 gains in various states of the antenna.
[0155] In the embodiment of the present application, the signal gains of the signals at various angles in the first posture under multiple states of the antenna can refer to the above Figure 5The description of step S501 on Table 1 or the description of step S502 on Table 2 in the corresponding embodiments will not be repeated.
[0156] The preset angle can be understood as the above Figure 5 In the corresponding embodiment, the preset angle in step S503, for example, the preset angle may be 60°, which will not be described in detail.
[0157] The first gain may include the above Figure 5 In the corresponding embodiment, the gain average value in step S503 may also include other calculation methods of the signal gain within a preset angle, which will not be described in detail.
[0158] The first gain of the antenna in multiple states can be calculated according to the signal gain within the preset angle. Figure 5 The relevant description of step S503 in the corresponding embodiment is not 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, and may also include the second maximum 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.
[0160] 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.
[0161] Optional, in Fig.10 On the basis of the corresponding embodiments, 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.
[0162] In the embodiment of the present application, the third posture can be understood as the above Figure 5 The reference posture in step S501 of the corresponding embodiment, specifically the signal gain of the signals at various angles in the third posture under multiple states of the antenna can refer to the relevant description in step S501, which will not be repeated here.
[0163] The first posture can be understood as the above Figure 5 The calculation process of the signal gain of the multiple states of the first posture of the watch in step S502 of the corresponding embodiment can refer to the above Figure 5The relevant description in step S502 of the corresponding embodiment is not repeated here.
[0164] The signal gains of multiple states of the first posture are obtained based on the signal gains of the signals at various angles in multiple states of the antenna in the third posture. There is no need to test each posture of the watch in the laboratory, thereby simplifying the laboratory testing process.
[0165] Optional, in Fig.10 On the basis of the corresponding embodiment, 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 according to 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:
[0166]
[0167] Among them, (x, y, z) are the coordinates in the first coordinate system, (x1, y1, z1) are the coordinates 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:
[0168]
[0169] Among them, a is the precession angle in Euler angle, b is the nutation angle in Euler angle, c is the rotation angle in Euler angle, and 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.
[0170] In the embodiment of the present application, the calculation process of the signal gain of the multiple states of the first posture can refer to the above Figure 5 The relevant description in step S502 of the corresponding embodiment is not repeated here.
[0171] 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 signal at each angle in the first posture in multiple states of the antenna can be quickly obtained, thereby improving the calculation efficiency.
[0172] Optional, in Fig.10On the basis of 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 the signal from each angle in the first posture.
[0173] In the embodiment of the present application, 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 test method can refer to the above Figure 5 The relevant description in step S502 of the corresponding embodiment is not repeated here.
[0174] 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.
[0175] Optional, in Fig.10 Based on the corresponding embodiments, the method may further 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 by querying the fourth posture from the corresponding relationship.
[0176] In the embodiment of the present application, the fourth posture can be understood as any posture of the electronic device, and the first posture is different from the fourth posture.
[0177] 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.
[0178] 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 beam can receive a stronger signal, thereby improving the positioning accuracy of the electronic device and enhancing the user experience.
[0179] Optional, in Fig.10 Based on the corresponding embodiment, the method may further 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 querying the fifth posture from the corresponding relationship.
[0180] In the embodiment of the present application, the fifth posture can be understood as any posture of the electronic device, and the first posture is different from the fifth posture. Among them, the best state corresponding to the fourth posture is the first state. In other words, different electronic device postures can correspond to the same antenna state.
[0181] When the electronic device is in different postures but the states corresponding to the 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.
[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, 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 the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0183] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to achieve 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 the form of hardware or computer software driving hardware 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 the present application.
[0184] 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. There may be other division methods in actual implementation.
[0185] like Fig.11 FIG. 11 is a schematic diagram of a chip structure provided by 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 .
[0186] In some implementations, the memory 1104 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
[0187] 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. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 1101. The above 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.
[0188] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field 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 completes the steps of the above method in combination with its hardware.
[0189] The processor 1101 , the memory 1104 , and the communication interface 1103 may communicate with each other via the communication line 1102 .
[0190] In the above embodiments, 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 may be downloaded and installed in the memory in the form of software.
[0191] 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 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 computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. 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 includes one or more available media integrated. For example, the available medium may include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0192] 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 by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.
[0193] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection 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 technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology 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 optical discs reproduce data optically using lasers.
[0194] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
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
Method and system for assisting MES positioning based on Beidou satellite
CN103713302A
Method for controlling beam stabilization and antenna device
CN107004953A
Beam management method and related equipment
CN110753388A
Antenna switching method and device, electronic equipment and storage medium
CN112600605A
Terminal antenna and method for controlling antenna beam direction
CN114188707A