A method, apparatus, system, and storage medium for inter-device antenna alignment
By coordinating N rounds of positioning operations and notification messages, the directional antenna alignment problem was solved, improving the communication quality and backhaul performance between devices.
Patent Information
- Application Number
- CN202310415347.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2043-04-11
AI Technical Summary
When using directional antennas for communication between two devices, existing technologies cannot accurately and quickly determine the optimal alignment angle of multiple directional antennas to improve communication quality.
By performing N rounds of positioning operations, the positioning angles of multiple directional antennas are obtained, and the target positioning angle is selected according to the signal reception quality to align the directional antennas. The positioning process between devices is coordinated by using notification messages.
This enabled accurate positioning of the directional antenna between the two devices, improving backhaul performance and communication quality.
Smart Images

Figure CN116365236B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of wireless communication technology, and in particular to a method, apparatus, system, and storage medium for antenna alignment between devices. Background Technology
[0002] Currently, routers typically employ omnidirectional antennas to ensure communication quality and transmission efficiency in most situations, adapting to various practical scenarios. However, when two devices (e.g., router to router, or router to terminal) are far apart, the gain capability of omnidirectional antennas cannot guarantee the communication connection between them. Therefore, directional antennas are needed to improve signal strength during communication between devices. If both ends of the wireless communication use fixed-line antennas, each end needs to determine the angle of its respective directional antenna to achieve optimal wireless communication quality. Since existing technologies only involve determining the angle of one directional antenna, a method is needed that can accurately and quickly determine the angles of multiple directional antennas to achieve optimal communication quality between them. Summary of the Invention
[0003] This application provides a method, apparatus, system, and storage medium for antenna alignment between devices. This solution addresses the technical problem of how to achieve directional antenna alignment between devices, thereby improving backhaul performance.
[0004] In a first aspect, embodiments of this application provide a method for antenna alignment between devices, applied to a first device having a first directional antenna. The method includes: performing N rounds of positioning operations to obtain N first positioning angles corresponding to the first directional antenna when the second directional antenna of the second device is at N positioning angles. Wherein, the signal reception quality corresponding to each first positioning angle meets requirements, and N≥2. Receiving a first notification message from the second device including information of a target round. The target round is used to determine the positioning angle of the first directional antenna when aligned with the second directional antenna of the second device. Based on the first notification message, controlling the first directional antenna to rotate to the target first positioning angle, so that the first directional antenna is aligned with the second antenna, where the target first positioning angle is the first positioning angle associated with the target round among the N first positioning angles.
[0005] As an example, the signal reception quality corresponding to each first positioning angle meeting the requirements can mean that the signal reception quality corresponding to each round of the first positioning angle is greater than or equal to a preset signal reception quality threshold, or that the signal reception quality corresponding to each round of the first positioning angle is the strongest among the signal reception qualities corresponding to different positioning angles in this round.
[0006] As an example, the N first positioning angles corresponding to the first directional antenna correspond one-to-one with the N positioning angles of the second directional antenna. Optionally, the N positioning angles of the second directional antenna may be different.
[0007] This application provides a method for antenna alignment between devices, applied to a first device with a first directional antenna. The first device performs N rounds of positioning operations to obtain N first positioning angles corresponding to the first directional antenna when the second directional antenna of the second device is at N positioning angles. This allows the acquisition of N first positioning angles with acceptable signal reception quality. Then, based on the target round information carried in the first notification message of the second device, the first device selects a first positioning angle associated with the target round from the N first positioning angles and rotates the positioning angle of the first directional antenna to the target first positioning angle associated with the target round. This achieves alignment between the first and second directional antennas, solving the technical problem of directional antenna alignment between two devices. Since the signal reception quality corresponding to the first positioning angle associated with the target round selected by the first device meets the preset requirements, the backhaul performance between the first and second devices can be guaranteed after alignment.
[0008] In one possible implementation of this application, the method provided in this embodiment further includes: sending a second notification message to the second device after each round of position seeking. The second notification message is used to instruct the second device to begin performing the position seeking operation. This facilitates timely execution of the position seeking operation by the second device.
[0009] In one possible implementation of this application, after each round of positioning, sending a second notification message to the second device further includes: if a first condition is met, sending adjustment instruction information to the second device. This adjustment instruction information instructs the second device to rotate the second directional antenna by a first preset angle in a preset direction after performing the positioning operation. This facilitates the second device adjusting the positioning angle of its second directional antenna in a timely manner according to the instructions of the first device, thereby achieving alignment of the directional antennas of the first and second devices as quickly as possible.
[0010] In one possible implementation of this application, the first condition includes: the first signal reception quality is less than the second signal reception quality, and the difference between the first signal reception quality and the second signal reception quality is greater than or equal to a preset threshold, 2≤i≤N. The first signal reception quality is the signal reception quality of the first device when the first directional antenna is at the first positioning angle during the i-th round of positioning. The second signal reception quality is the signal reception quality of the first device when the first directional antenna is at the first positioning angle obtained during positioning by the first device in previous rounds. This allows the second device to be promptly notified to adjust the positioning angle of the second directional antenna when the signal quality obtained in a later round of positioning is lower than that of the previous round.
[0011] In one possible implementation of this application, in addition to performing N rounds of bit-finding operations before the initial bit-finding, the process includes: receiving a third notification message from a second device, the third notification message instructing the first device to begin performing bit-finding operations; and performing bit-finding operations in response to the third notification message.
[0012] In one possible implementation of this application, before controlling the first directional antenna to rotate to the target first positioning angle according to the first notification message, the method further includes: sending a fourth notification message to the second device when a second condition is met. The fourth notification message is used to instruct the second device to end the positioning search. The second condition is that the positioning search operation in j consecutive rounds meets the first condition, 1≤j≤N.
[0013] In one possible implementation of this application, when performing the first positioning operation, the positioning angle range of the first device is a first preset interval. When performing positioning operations other than the first positioning operation, the positioning angle range of the first device is a second preset interval, and the range of the second preset interval is a partial range of the first preset interval.
[0014] Secondly, embodiments of this application provide a method for antenna alignment between devices, applied to a second device having a second directional antenna. The method includes: performing N rounds of positioning operations to obtain N second positioning angles corresponding to the second directional antenna when the first directional antenna of the first device is at N first positioning angles. The signal reception quality associated with each round of second positioning angle meets requirements, and N ≥ 2. Based on the signal reception quality corresponding to each second positioning angle, a target second positioning angle is determined from the N second positioning angles, where the target second positioning angle is the one where the signal reception quality meets the first requirements among the N second positioning angles; the second directional antenna is rotated to the target second positioning angle; a first notification message is sent to the first device, the first notification message including information about the target round corresponding to the target second positioning angle, the target round being used to determine the positioning angle of the first directional antenna when aligned with the second directional antenna.
[0015] This application provides a method for antenna alignment between devices, applied to a second device with a second directional antenna. The second device performs N rounds of positioning operations to obtain the second positioning angle of the second directional antenna and the corresponding signal reception quality when the first directional antenna of the first device is at different positioning angles. The signal reception quality corresponding to each round of the second positioning angle meets preset requirements, thus obtaining N second positioning angles. Then, based on the signal reception quality corresponding to each second positioning angle, the second device determines a target second positioning angle from the N second positioning angles, thus determining a target second positioning angle whose signal reception quality meets the second preset requirements. By rotating the second directional antenna to the target second positioning angle and sending a first notification message to the first device, the first notification message includes information about the target round corresponding to the target second positioning angle. This allows the first device to determine the target first positioning angle with the best signal reception quality based on the target round information, thereby solving the technical problem of directional antenna alignment between two devices and improving backhaul performance.
[0016] In one possible implementation of this application, performing N rounds of bit-finding operations includes: before each round of bit-finding, receiving a second notification message from a first device, the second notification message instructing the second device to begin performing the bit-finding operation; and performing the bit-finding operation in response to the second notification message. This facilitates the second device in performing the bit-finding operation promptly upon receiving the second notification message.
[0017] In one possible implementation of this application, before each round of positioning, receiving the second notification message from the first device further includes: receiving adjustment instruction information from the first device, the adjustment instruction information being used to instruct the second device to rotate the second directional antenna by a first preset angle in a preset direction after performing the positioning operation. In response to the adjustment instruction information, the second device rotates the second directional antenna by the first preset angle in a preset direction after performing the positioning operation. This facilitates the second device in promptly adjusting the positioning angle of its second directional antenna according to the adjustment instruction information received from the first device, thereby achieving alignment of the directional antennas of the first and second devices as quickly as possible.
[0018] In one possible implementation of this application, the method provided in this embodiment further includes: after each round of bit seeking, sending a third notification message to the first device, the third notification message being used to instruct the first device to start performing bit seeking operations. This facilitates the first device to promptly perform the next round of bit seeking operations.
[0019] In one possible implementation of this application, before determining the target second positioning angle from N second positioning angles, the method further includes: receiving a fourth notification message from a first device, the fourth notification message being used to instruct the second device to end the positioning search. In response to the fourth notification message, the positioning search is terminated.
[0020] In one possible implementation of this application, during the initial positioning operation, the positioning angle range of the second device is a first preset interval. During positioning operations other than the initial positioning operation, the positioning angle range of the second device is a second preset interval, which is a portion of the first preset interval.
[0021] In one possible implementation of this application, the embodiments of this application further include: after each round of positioning operations before the last round of positioning operations, the second device adjusts the positioning angle of the second directional antenna according to the second positioning angle obtained in the first round of positioning and the second preset angle.
[0022] Thirdly, embodiments of this application provide a first communication device that can implement the methods in the first aspect or any possible implementation of the first aspect, and therefore can also achieve the beneficial effects of the first aspect or any possible implementation of the first aspect. The first communication device can be a first device or an apparatus that supports the first device in implementing the methods in the first aspect or any possible implementation of the first aspect, such as a chip or control circuit applied in the first device. The first communication device can implement the above methods through software, hardware, or hardware executing corresponding software.
[0023] As an example, this application provides a first communication device, which is a first device or a chip applied in a first device. The first communication device includes: a first positioning unit, a first communication unit, and a first processing unit. The first positioning unit performs N rounds of positioning operations to obtain N first positioning angles corresponding to the first directional antenna when the second directional antenna is at N positioning angles, and the signal reception quality associated with each round of the first positioning angle meets the requirements, where N ≥ 2. The first communication unit receives a first notification message from the second device, the first notification message including information about a target round, the target round being used to determine the positioning angle of the first directional antenna when aligned with the second directional antenna of the second device. The first processing unit controls the first directional antenna to rotate to the target first positioning angle according to the first notification message, so that the first directional antenna is aligned with the second directional antenna, the target first positioning angle being the first positioning angle associated with the target round among the N first positioning angles.
[0024] In one possible implementation of this application, the first communication unit is further configured to send a second notification message to the second device after each round of bit seeking. The second notification message is used to instruct the second device to begin performing the bit seeking operation.
[0025] In one possible implementation of this application, the first communication unit is further configured to send adjustment instruction information to the second device when the first condition is met. The adjustment instruction information is used to instruct the second device to rotate the second directional antenna by a first preset angle in a preset direction after performing a positioning operation.
[0026] In one possible implementation of this application, the first communication unit is further configured to receive a third notification message from the second device, the third notification message being used to instruct the first device to begin performing a position-finding operation. Correspondingly, the first position-finding unit is further configured to perform the position-finding operation according to the third notification message.
[0027] In one possible implementation of this application, if the second condition is met, the first communication unit is further configured to send a fourth notification message to the second device. The fourth notification message is used to instruct the second device to end the position seeking operation. The second condition is that the position seeking operation in j consecutive rounds satisfies the first condition, 1≤j≤N.
[0028] Fourthly, embodiments of this application provide a second communication device that can implement the methods in the second aspect or any possible implementation of the second aspect, and therefore can also achieve the beneficial effects of the second aspect or any possible implementation of the second aspect. The second communication device can be a second device, or an apparatus that supports the second device in implementing the methods in the second aspect or any possible implementation of the second aspect, such as a chip or control circuit applied in the second device. The second communication device can implement the above methods through software, hardware, or hardware executing corresponding software.
[0029] As an example, this application provides a second communication device, which is a second device or a chip applied in a second device. The second communication device includes: a second positioning unit, a second processing unit, and a second communication unit. The second positioning unit performs N rounds of positioning operations to obtain N second positioning angles corresponding to the second directional antenna when the first directional antenna of the first device is at N first positioning angles, wherein the signal reception quality associated with each round of second positioning angle meets requirements, and N≥2. The second processing unit determines a target second positioning angle from the N second positioning angles based on the signal reception quality corresponding to each second positioning angle. The target second positioning angle is one where the signal reception quality among the N second positioning angles meets a second preset requirement. The second processing unit is also used to rotate the second directional antenna to the target second positioning angle. The second communication unit sends a first notification message to the first device, the first notification message including information about the target round corresponding to the target second positioning angle, the target round being used to determine the positioning angle of the first directional antenna when aligned with the second directional antenna.
[0030] In one possible implementation of this application, the second communication unit is further configured to receive a second notification message from the first device before each round of bit seeking, the second notification message being used to instruct the second device to begin performing bit seeking operations. Correspondingly, the second processing unit is further configured to perform bit seeking operations in response to the second notification message.
[0031] In one possible implementation of this application, the second communication unit is further configured to receive adjustment instruction information from the first device, the adjustment instruction information being used to instruct the second device to rotate the second directional antenna by a first preset angle in a preset direction after performing a positioning operation. Correspondingly, the second processing unit is further configured to, in response to the adjustment instruction information, rotate the second directional antenna by a first preset angle in a preset direction in a preset direction after the second device performs a positioning operation.
[0032] In one possible implementation of this application, the second communication unit is further configured to send a third notification message to the first device after each round of bit seeking, the third notification message being used to instruct the first device to start performing bit seeking operation.
[0033] In one possible implementation of this application, the second communication unit is further configured to receive a fourth notification message from the first device, the fourth notification message being used to instruct the second device to end the bit search. Correspondingly, the second processing unit is further configured to end the bit search in response to the fourth notification message.
[0034] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform a method for aligning antennas between devices as described in any of the possible implementations of the first aspect.
[0035] Sixthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform a method for aligning antennas between devices as described in any of the possible implementations of the second aspect.
[0036] In a seventh aspect, embodiments of this application provide a computer program product including instructions that, when executed on a computer, cause the computer to perform a method for inter-device antenna alignment as described in the first aspect or various possible implementations of the first aspect.
[0037] Eighthly, embodiments of this application provide a computer program product including instructions that, when executed on a computer, cause the computer to perform a method for inter-device antenna alignment as described in the second aspect or various possible implementations of the second aspect.
[0038] Ninthly, embodiments of this application provide an inter-device antenna alignment apparatus for implementing various methods in various possible designs of the first aspect or any aspect of the first aspect. The inter-device antenna alignment apparatus may be the first device described above, or an apparatus containing the first device, or a component (e.g., a chip) applied to the first device.
[0039] In a tenth aspect, embodiments of this application provide an inter-device antenna alignment apparatus for implementing various methods in various possible designs of the second aspect or any of the second aspects described above. The inter-device antenna alignment apparatus may be the second device described above, or an apparatus containing the second device, or a component (e.g., a chip) applied to the second device.
[0040] The apparatus for inter-device antenna alignment described in the ninth or tenth aspect includes modules or units that implement the methods described above. These modules or units can be implemented in hardware, software, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
[0041] Eleventhly, embodiments of this application provide an inter-device antenna alignment apparatus, comprising: at least one processor and a communication interface. When the inter-device antenna alignment apparatus is in operation, the processor executes computer execution instructions or programs stored in the apparatus to cause the apparatus to perform any of the various possible designs of the first or second aspect described above. For example, the inter-device antenna alignment apparatus may be a first device or a component applied to a first device. For example, the inter-device antenna alignment apparatus may be a second device or a component applied to a second device.
[0042] It should be understood that the communication device described in aspect eleven above may further include a bus and a memory, the memory being used to store code and data. Optionally, at least one processor communication interface and the memory are coupled to each other.
[0043] In a twelfth aspect, embodiments of this application provide a chip including a processor and a communication interface coupled to the processor. The processor is used to run computer programs or instructions to implement the inter-device antenna alignment method described in the first aspect or various possible implementations of the first aspect. The communication interface is used to communicate with other modules outside the chip.
[0044] In a thirteenth aspect, embodiments of this application provide a chip including a processor and a communication interface coupled to the processor. The processor is used to run computer programs or instructions to implement a method for inter-device antenna alignment as described in the second aspect or various possible implementations of the second aspect. The communication interface is used to communicate with other modules outside the chip.
[0045] In a fourteenth aspect, embodiments of this application provide a system for inter-device antenna alignment, the system comprising: a first device and a second device, wherein the first device has a first directional antenna and the second device has a second directional antenna, the first device and the second device alternately perform a seek operation, the first device is used to perform an inter-device antenna alignment method described in the first aspect or various possible implementations of the first aspect, and the second device is used to perform an inter-device antenna alignment method described in the second aspect or various possible implementations of the second aspect. Attached Figure Description
[0046] Figure 1 A schematic diagram of the topology of a Mesh network provided in an embodiment of this application;
[0047] Figure 2 This application provides a schematic diagram of the structure of a router according to an embodiment of the present application.
[0048] Figure 3 An interactive schematic diagram illustrating a method for antenna alignment between devices provided in an embodiment of this application;
[0049] Figure 4 A schematic diagram of a directional antenna induction between devices is provided as an embodiment of this application;
[0050] Figure 5 A schematic diagram illustrating an alternating positioning process between devices provided in an embodiment of this application;
[0051] Figure 6 A schematic diagram of an inter-device antenna alignment device provided in an embodiment of this application;
[0052] Figure 7 This is a schematic diagram of another device for aligning antennas between devices, provided in an embodiment of this application. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0054] Before introducing the embodiments of this application, the relevant terms involved in this application are first defined as follows:
[0055] (1) Mesh Network: A multi-hop network. A wireless mesh network is a new type of wireless network technology completely different from traditional wireless networks. In traditional wireless network technology, each client accesses the network through a wireless link connected to an access point (AP). Clients must first access a fixed AP to communicate with each other; this network structure is called a single-hop network. In a wireless mesh network, any wireless device node can also act as a router. Each node in a wireless mesh network can send and receive signals, and each node can communicate directly with one or more peer nodes.
[0056] (2) CAP (Central Access Point): The main router in a Mesh network, a router that supports Mesh intelligent networking and can directly access the Internet.
[0057] (3) RE (Repeater): A slave router in a Mesh network, a router that supports Mesh intelligent networking, to establish a communication connection with CAP directly or through other REs.
[0058] (4) Directional Antenna: An antenna that provides exceptionally strong transmission and reception gain of electromagnetic waves in one or more specific directions, while exhibiting minimal transmission and reception gain in other directions. The purpose of using a directional antenna is to enhance signal gain and strengthen the received signal.
[0059] (5) Received Signal Strength Indication (RSSI): Used to determine link quality and whether to increase transmission power. The signal strength reflects the quality of network communication.
[0060] (6) Back-haul (BH): This is the middle layer of the network structure, located between the access network and the backbone network, providing an important connection between the two networks. BH is the link between routers.
[0061] For example, the physical link corresponding to BH can be 2G, 5G, or Ethernet, and RE can be connected to CAP or other REs through BH.
[0062] (7) Forward-Haul (FH): The link between the terminal and the router.
[0063] To adapt to various usage scenarios, routers employ omnidirectional antennas to ensure communication quality and transmission efficiency. However, when multiple devices (such as routers to routers or routers to terminals) are far apart, the signal gain of an omnidirectional antenna cannot guarantee communication between any two devices. Therefore, a directional antenna is needed to improve the signal strength for communication between devices.
[0064] Currently, in mesh network-based router architectures, 5G utilizes two frequency bands. One band uses omnidirectional antennas to ensure basic wireless performance for most terminals. The other band uses directional antennas to target terminals. Due to the directionality of directional antennas, the directional band can be used in the FH (Free-Head) link to serve terminals, or in the BH (Backhaul) link to serve routers in the mesh network. Therefore, in mesh networks, to enhance network transmission performance, two strategies are employed for backhaul performance: one strategy is to strengthen the BH backhaul link from CAP to RE by using the directional band for BH; the other strategy is to strengthen the FH coverage wireless link from RE to terminals. Both strategies require monitoring the wireless communication quality of the mesh links.
[0065] In existing technologies, when using directional bands for network connectivity via routers of the same form factor, the directional antennas of the two devices need to be rotated to ensure their orientation is aligned. However, because the detection results of the wireless link during the rotation of the directional antennas are unreliable, the directional antennas of the two devices cannot be accurately positioned.
[0066] This application embodiment applies to a BH backhaul link that enhances CAP to RE, using the directional frequency band for BH. Two routers can use the BH link to perform positioning in an alternating manner. Specifically, one router obtains the received signal strength of the other router's directional antenna at multiple positioning angles, and determines the positioning angle with the highest received signal strength as the target positioning angle for that directional antenna.
[0067] Therefore, embodiments of this application provide a method, apparatus, system, and storage medium for antenna alignment between devices. This solution addresses the technical problem of how to achieve directional antenna alignment between two devices, thereby improving backhaul performance.
[0068] To illustrate the technical solution described in this application, specific embodiments are provided below.
[0069] like Figure 1 As shown, Figure 1 This is a schematic diagram of the topology of a Mesh network provided in an embodiment of this application. The Mesh network includes: CAP100 and one or more RE200s.
[0070] Among them, CAP and RE are routers that support Mesh intelligent networking. CAP is connected to the Internet, and RE is connected to CAP directly or indirectly through other REs.
[0071] RE is connected to CAP or other REs via Backhaul (BH). The physical link corresponding to Backhaul can be 2G, 5G, or Ethernet. Multiple BH connections are allowed between RE and CAP or other REs.
[0072] Optionally, a mesh network may also include one or more endpoints. These endpoints connect to CAPs or REs, forming a tree-like network topology.
[0073] As an example, the terminal can be a mobile phone, computer, or tablet, etc., and this application embodiment does not limit this.
[0074] As an example, the CAP and RE have an internal antenna angle adjustment device for adjusting the positioning angle of the directional antenna of the CAP or RE.
[0075] The specific structure of the antenna angle adjustment device can be found in existing descriptions, and will not be repeated here. For example, the antenna angle adjustment device can be a motor installed inside the CAP or RE, which drives the directional antenna of the CAP or RE to rotate.
[0076] Optional, such as Figure 2 As shown, Figure 2 This application provides a schematic diagram of the structure of a router, which includes: a directional antenna 201, an antenna angle adjustment device 202, a processor 203, a communication line 204, and at least one communication interface. Figure 2 (The example described uses communication interface 205 as an example).
[0077] The processor 203 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.
[0078] Communication line 204 may include a path for transmitting information between the aforementioned components.
[0079] The communication interface 205 is used to exchange information with other devices, such as any transceiver, for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.
[0080] Optionally, the communication device may also include a memory 206.
[0081] The memory 206 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or it may be an electrically erasable programmable read-only memory (EEPROM), a compact disc-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory 206 may exist independently and be connected to the processor 203 via communication line 205. The memory 206 may also be integrated with the processor 203.
[0082] The memory 206 stores computer execution instructions for implementing the scheme of this application, and the processor 203 controls the execution. The processor 203 executes the computer execution instructions stored in the memory 206, thereby implementing the method for antenna alignment between devices provided in the following embodiments of this application.
[0083] Optionally, the computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.
[0084] In a specific implementation, as one example, the processor 203 may include one or more CPUs, for example... Figure 2 CPU0 and CPU1 in the CPU.
[0085] In a specific implementation, as one example, a router may include multiple processors, for example... Figure 2 Processors 203 and 207 are included. Each of these processors can be a single-core (Single-CPU) processor or a multi-core (Multi-CPU) processor. A processor here can refer to one or more devices, circuits, and / or processing cores used to process data (e.g., computer program instructions).
[0086] Optionally, the structures of CAP100 and RE200 in the embodiments of this application can be referred to as follows: Figure 2 The router structure is shown.
[0087] In this application embodiment, the specific structure of the execution entity of the inter-device antenna alignment method is not particularly limited, as long as communication can be performed according to the inter-device antenna alignment method of this application embodiment by running a program that records the code of the inter-device antenna alignment method of this application embodiment. For example, the execution entity of the inter-device antenna alignment method provided in this application embodiment may be a functional module in a first device that can call and execute a program, or a device for antenna alignment applied in the first device, such as a chip. The execution entity of the inter-device antenna alignment method provided in this application embodiment may be a functional module in a second device that can call and execute a program, or a device for antenna alignment applied in the second device, such as a chip. This application does not limit this.
[0088] The following embodiments describe a method for aligning antennas between devices using a first device with a first directional antenna and a second device with a second directional antenna as examples. The first device can be referenced to CAP100 in the Mesh network described above. The second device can be referenced to RE200 in the Mesh network described above.
[0089] like Figure 3 As shown, Figure 3 This illustration shows an interactive schematic diagram of a method for antenna alignment between devices according to an embodiment of this application. The method includes:
[0090] Step 310: The first device performs N rounds of positioning operations to obtain the N first positioning angles corresponding to the first directional antenna when the second directional antenna of the second device is in N positioning angles, where N ≥ 2. It can be understood that N is an integer.
[0091] In each round, the signal reception quality associated with the first positioning angle meets the requirements.
[0092] Optionally, at least two of the N positioning angles where the second directional antenna is located can be the same. Of course, the N positioning angles can also be different.
[0093] Correspondingly, optionally, at least two of the N first positioning angles can be the same. Of course, the N first positioning angles can also be different.
[0094] It is understandable that when the second directional antenna is at a positioning angle, the first device can obtain at least one first positioning angle by performing a positioning operation. In other words, a positioning angle of each second directional antenna corresponds to at least one first positioning angle.
[0095] Optionally, signal reception quality can be represented by parameters such as Received Signal Strength (RSSI), Signal Quality (SQ), and Signal-to-Noise Ratio (SNR).
[0096] For example, when the first directional antenna is at the first positioning angle, the signal reception quality of the first device meets the requirements, which can mean that the signal reception quality of the first device is greater than or equal to the first signal reception quality threshold, or that the signal reception quality of the first device is the strongest among the multiple positioning angles obtained when the first device performs positioning in any round.
[0097] The aforementioned first signal reception quality threshold can be a preset value, i.e., pre-configured in the first device, or it can be set by the user. This application embodiment does not limit this.
[0098] The embodiments of this application are described below using RSSI as an example to represent signal reception quality. The unit of RSSI is dBm (Decibel Relative to One Milliwatt). Generally, the RSSI value is less than 0, and a higher RSSI value indicates a stronger signal.
[0099] As an example, since the second directional antenna of the second device is at a fixed positioning angle during each round of positioning operation by the first device, the first device will perform positioning within a first or second preset interval to obtain multiple positioning angles. Since the signal reception quality associated with each positioning angle may differ, the first device can select the positioning angle with the strongest signal reception quality from the multiple positioning angles obtained in each round of positioning as the first positioning angle. By selecting the positioning angle with the strongest signal reception quality as the first positioning angle, the communication quality between the first and second directional antennas is optimized when they are aligned.
[0100] For example, the first device rotates the positioning angle of the first directional antenna at least once in each round of positioning operation to determine the first positioning angle. The following example uses the case where the positioning angle of the first directional antenna is rotated 3 times in each round of positioning operation to determine the first positioning angle.
[0101] For example, the first device performs a second round of positioning operation within a second preset interval. First, the first device measures RSSI1 when the second directional antenna is at its initial positioning angle, specifically at positioning angle 'a'. Next, the first device rotates the first directional antenna to position it at angle 'b'. Then, the first device acquires RSSI2 when the second directional antenna is at its initial positioning angle and at positioning angle 'b'. Finally, the first device continues to adjust the positioning angle of the first directional antenna to position angle 'c'. At this point, the first device acquires RSSI3 when the second directional antenna is at its initial positioning angle. If RSSI3 is the largest value, the first device determines that the first positioning angle of the first directional antenna during the second round of positioning operation is positioning angle 'c'.
[0102] As another example, the signal reception quality associated with the first positioning angle can also meet the requirements if the RSSI value associated with the first positioning angle is within a preset RSSI range. For example, the preset RSSI range is [-40, 0].
[0103] For example, when the first device performs the second round of positioning operation, the first device controls the first directional antenna to rotate so that the positioning angle of the first directional antenna includes: positioning angle a, positioning angle b, and positioning angle c. And the RSSI value of positioning angle a is -10, which is within the preset RSSI range. Therefore, the first device determines that positioning angle a is the first positioning angle of the first directional antenna obtained in the second round of positioning operation.
[0104] Of course, if the RSSI values corresponding to positioning angle a and positioning angle b are both within the preset RSSI range, the first device can select the one with the largest RSSI value from positioning angle a and positioning angle b as the first positioning angle.
[0105] Of course, if the RSSI values corresponding to positioning angles a, b, and c are all outside the preset RSSI range, the first device can re-execute the positioning operation to obtain multiple other positioning angles. For example, the first device can notify the second device to adjust the positioning angle of the second directional antenna and then re-execute the positioning operation. Alternatively, the first device can also output a prompt message to remind the user whether to expand the preset RSSI range, for example, the updated preset RSSI range is [-60, 0].
[0106] The signal reception quality between the first device and the second device is positively correlated with their communication performance. The more precise the positioning angle between the first directional antenna of the first device and the second directional antenna of the second device, the better the signal reception quality between them.
[0107] Understandably, the more rounds of the positioning operation, the better the accuracy of the signal reception quality corresponding to the first positioning angle found by the first device will meet the preset requirements. Of course, the positioning time of the first device will also be longer.
[0108] In one possible embodiment of this application, N is equal to 3, or 4, or 5.
[0109] In one possible embodiment of this application, the total number of seek times N for the first device and the second device can be pre-configured or determined through negotiation between the first device and the second device during the seek process. This embodiment of the application does not limit this. Of course, a number of seek times, such as M, can be pre-configured for the first device and the second device, where M is greater than or equal to N, and M is the maximum number of seek times for the first device and the second device.
[0110] Because each router may have its own independent decision-making power, the states of each router cannot be synchronized at the same time. Therefore, to ensure the normal operation of the position lookup operation, in this embodiment, the position lookup operation can be initiated by the first device. Of course, the position lookup operation can also be initiated by the second device, and this embodiment does not limit this. As for which device, the first or the second, initiates the position lookup operation first, this can be determined through negotiation between the two devices or it can be pre-configured, and this embodiment does not limit this.
[0111] It is understandable that when the first device performs each round of positioning operation, the second directional antenna of the second device is at a fixed positioning angle. In the Nth round of positioning operation, the positioning angle of the second directional antenna can be different. For example, the positioning angle of the second directional antenna in a later round is obtained from the optimal positioning angle of the second directional antenna in the first round (e.g., the second positioning angle R1) and a preset angle. For instance, to ensure that the positioning angle of the second directional antenna is different when the first device performs positioning in two consecutive rounds, the second device can rotate the positioning angle of the second directional antenna from R1 clockwise or counterclockwise by a preset angle after performing the previous round of positioning operation, so that the positioning angle of the second directional antenna is fixed at R1±δr. Here, δc represents the preset angle.
[0112] For example, taking a preset angle of 45° as an example, during the first round of positioning operation, the second device locates the second directional antenna at a second positioning angle of 60°. For instance, based on 60°, the second device rotates the second directional antenna clockwise by 45° to bring it to 105°. Then, the first device begins the second round of positioning operation. After completing the second round of positioning operation, the second device can rotate the second directional antenna counterclockwise by 45° from 60° to bring it to 15°. Then, the first device begins the third round of positioning operation.
[0113] Regardless of which device, the first or the second, initiates the positioning operation, it is understood that during each round of positioning operations performed by the initiator, the other device keeps the positioning angle of its directional antenna unchanged. For example, while the first device is performing the first round of positioning operations to obtain the first positioning angle, the second device keeps the positioning angle of its second directional antenna unchanged.
[0114] Step 320: The second device performs N rounds of positioning operations to obtain the N second positioning angles corresponding to the second directional antenna when the first directional antenna of the first device is at N first positioning angles.
[0115] In each round, the signal reception quality associated with the second positioning angle meets the requirements.
[0116] For example, if the signal reception quality of the second device meets the requirements when the second directional antenna is at the second positioning angle, it can be understood as: the signal reception quality of the second device is greater than or equal to the first signal reception quality threshold, or the signal reception quality of the second device is the strongest among the multiple positioning angles obtained when the second device performs positioning in any round.
[0117] The first device and the second device alternately perform the seek operation so that the first device and the second device each perform N seek operations.
[0118] For example, the second device maintains the positioning angle of the second directional antenna at angle 1. The first device first performs the first round of positioning operation to obtain the first positioning angle corresponding to the first round of positioning. Then, the first device maintains the first directional antenna at the first positioning angle, and the second device performs the first round of positioning operation to obtain the second positioning angle 1 corresponding to the first round of positioning. Next, the second device maintains the positioning angle of the second directional antenna at angle 2 (where angle 2 is obtained from the second positioning angle 1 and a preset angle), and the first device performs the second round of positioning operation to obtain the first positioning angle corresponding to the second round of positioning. After that, the first device maintains the positioning angle of the first directional antenna fixed, and the second device performs the second round of positioning operation to obtain the second positioning angle corresponding to the second round of positioning, and so on until N rounds of positioning operation are completed.
[0119] Understandably, when the second device performs each round of positioning operation, the first directional antenna of the first device is at the first positioning angle. In N rounds of positioning operations, the first positioning angle of the first directional antenna is different each time. For example, in the first round when the second device performs the positioning operation, the first positioning angle of the first directional antenna is the same as the first positioning angle obtained by the first device in the first round. In the second round of positioning operation, the first positioning angle of the first directional antenna is the same as the first positioning angle obtained by the first device in the second round. In the third round of positioning operation, the first positioning angle of the first directional antenna is the same as the first positioning angle obtained by the first device in the third round.
[0120] Step 330: The second device determines the target second positioning angle from the N second positioning angles based on the signal reception quality associated with each second positioning angle.
[0121] Among them, the signal reception quality associated with the second positioning angle of the target meets the first requirement.
[0122] Since each second positioning angle is obtained by the second device when the first directional antenna of the first device is at different positioning angles, the signal reception quality corresponding to each second positioning angle may be different. Therefore, in order to ensure the communication quality between the first device and the second device when the first directional antenna of the first device and the second directional antenna of the second device are aligned, a second positioning angle whose signal reception quality meets the first requirement can be selected from N second positioning angles as the target second positioning angle.
[0123] As an example, the signal reception quality associated with the second positioning angle of the target meets the first requirement, which is that the signal reception quality associated with the second positioning angle of the target is the best among the signal reception qualities corresponding to N second positioning angles.
[0124] For example, taking RSSI (Receiving Signal Quality) as an example, the second device performs three rounds of positioning operations, obtaining the following second positioning angles: second positioning angle 1, second positioning angle 2, and second positioning angle 3. Among them, the RSSI value corresponding to second positioning angle 2 is the largest, so the second device determines second positioning angle 2 as the target second positioning angle.
[0125] As another example, the signal reception quality associated with the target second positioning angle meeting the first requirement can be: the signal reception quality value is within a preset RSSI range, or the signal reception quality is greater than or equal to a second signal reception quality threshold. The second signal reception quality threshold is greater than or equal to a first signal reception quality threshold. For example, the preset RSSI range is [-40, 0]. Among the second positioning angles 1, 2, and 3 obtained by the second device, if the RSSI corresponding to the second positioning angle 2 is within the preset RSSI range, then the second device determines the second positioning angle 2 as the target second positioning angle. Of course, if the RSSI corresponding to the second positioning angle 1 and the RSSI corresponding to the second positioning angle 2 are both within the preset RSSI range, the first device can use the RSSI value with the largest value among the second positioning angles 1 and 2 as the target second positioning angle. Of course, if the RSSI corresponding to the second positioning angle 1 and the second positioning angle 2 are both outside the preset RSSI range, the second device can output a prompt message to remind the user whether to modify the preset RSSI range.
[0126] Understandably, the decision to determine the target's second positioning angle from N second positioning angles can be made by either the second device or the first device. Since the second device needs to send a notification message to the first device after performing the Nth round of positioning operations to indicate the end of the positioning process, after determining the target round, the second device sends the aforementioned notification message and the target round corresponding to the target second positioning angle to the first device. This reduces the number of interactions between the devices.
[0127] Step 340: The second device rotates the second directional antenna to the target second positioning angle.
[0128] As an example, the second device can adjust the positioning angle of the second directional antenna through an internal antenna angle adjustment device, so that the second directional antenna rotates to the target second positioning angle.
[0129] As an example, such as Figure 2 As shown, step 340 in this embodiment can be implemented in the following way: the processor in the second device controls the antenna angle adjustment device to adjust the second directional antenna to the target second positioning angle. Specifically, after obtaining the target second positioning angle, the processor sends an antenna direction adjustment command to the antenna angle adjustment device, and then the antenna angle adjustment device adjusts the antenna angle of the second directional antenna to the target second positioning angle according to the antenna direction adjustment command.
[0130] Step 350: The second device sends a first notification message to the first device. Correspondingly, the first device receives the first notification message from the second device.
[0131] The first notification message includes information about the target cycle corresponding to the second positioning angle of the target. The target cycle is used to determine the positioning angle of the first directional antenna when aligned with the second directional antenna.
[0132] As an example, in this embodiment of the application, the notification message exchanged between the first device and the second device can be a message. For example, the first notification message can be a first message, and so on, which will not be elaborated further below.
[0133] As an example, the second device can send a first notification message to the first device via a backhaul link with the first device. Correspondingly, the first device can receive the first notification message from the second device via the backhaul link.
[0134] For example, the target round information could be the sequence number of the execution round associated with the target's second positioning angle. This facilitates the first device in determining the first positioning angle obtained by locating the target round as the target's first positioning angle for alignment with the second directional antenna.
[0135] Optionally, the first notification message may also include first indication information, which is used to notify the first device that the Nth round of position seeking operation of the second device has ended.
[0136] Step 360: According to the first notification message, the first device controls the first directional antenna to rotate to the target first positioning angle so that the first directional antenna is aligned with the second directional antenna.
[0137] Among them, the first positioning angle of the target is the first positioning angle associated with the target cycle among N first positioning angles.
[0138] As an example, step 360 in this embodiment can be implemented as follows: The processor in the first device, based on the first notification message, selects the first positioning angle associated with the target round from N first positioning angles as the target first positioning angle, and controls the antenna angle adjustment device to adjust the positioning angle of the first directional antenna to the target first positioning angle according to the first target positioning angle. Specifically, after obtaining the target first positioning angle, the processor sends an antenna direction adjustment command to the antenna angle adjustment device, and then the antenna angle adjustment device adjusts the first directional antenna to the target first positioning angle according to the antenna direction adjustment command.
[0139] This application provides a method for antenna alignment between devices, applied to a first device with a first directional antenna. The first device performs N rounds of positioning operations to obtain N first positioning angles corresponding to the first directional antenna when the second directional antenna of the second device is at N positioning angles, thus acquiring N first positioning angles with satisfactory signal reception quality. Then, based on the target round information carried in the first notification message of the second device, the first device selects a first positioning angle associated with the target round from the N first positioning angles and rotates the positioning angle of the first directional antenna to the first positioning angle associated with the target round. This achieves the alignment of the first directional antenna of the first device and the second directional antenna of the second device, solving the technical problem of directional antenna alignment between two devices. Since the signal reception quality corresponding to the first positioning angle associated with the target round selected by the first device meets the preset requirements, the backhaul performance between the first and second devices can be guaranteed after alignment.
[0140] In one possible embodiment of this application, taking the first device as the initiator of the positioning operation as an example, before the first device performs the first round of positioning operation, the method may further include: the first device sending a notification message to the second device, the notification message being used by the second device to determine to maintain the positioning angle of the second directional antenna unchanged.
[0141] Understandably, after receiving the notification message, the second device can maintain the positioning angle of the second directional antenna at the initial positioning angle. This allows the first device, when the positioning angle of the second directional antenna is fixed, to perform a positioning operation to find the first positioning angle where the signal reception quality between the first and second devices meets the requirements when the second directional antenna is at the initial positioning angle.
[0142] As an example, the initial positioning angle can be the angle at which the second directional antenna is located after the second device activates the second directional antenna, or the initial positioning angle can be the angle at which the first device informs the second device through a notification message, or the initial positioning angle can be the positioning angle at which the second directional antenna is located before the first device and the second device perform the positioning operation.
[0143] In one possible embodiment of this application, the method provided by this application further includes: after each round of bit seeking, the first device sends a second notification message to the second device. Correspondingly, before each round of bit seeking, the second device receives the second notification message from the first device. In response to the second notification message, the second device performs a bit seeking operation.
[0144] The second notification message is used to instruct the second device to begin the position finding operation.
[0145] Optionally, the second notification message may also include second indication information. This second indication information is used to instruct the second device to begin the position-finding operation; that is, the second indication information is included as a field within the second notification message.
[0146] Optionally, the second indication information may also be used to notify the second device that the first device has completed the positioning operation.
[0147] Optionally, the second notification message may also include a round index identifier, which helps the second device determine which round of the bit-finding operation to perform. For example, if the round index identifier is 1, then the second device determines that it is performing the first round of the bit-finding operation.
[0148] In one possible embodiment of this application, the process of the first device sending a second notification message to the second device after each round of positioning further includes: the first device sending adjustment instruction information to the second device if a first condition is met. Correspondingly, the second device receives the adjustment instruction information from the first device. In response to the adjustment instruction information, the second device rotates the second directional antenna by a first preset angle according to a preset direction after performing the positioning operation.
[0149] The first device sends adjustment instruction information to enable the second device to adjust the positioning angle of the second directional antenna in a timely manner, so that subsequent positioning operations can better determine the first positioning angle that meets the communication quality requirements with the second device.
[0150] The adjustment instruction information is used by the second device to adjust the positioning angle of the second directional antenna after determining that a positioning operation has been performed. For example, the adjustment instruction information is used by the second device to rotate the second directional antenna by a first preset angle in a preset direction after determining that a positioning operation has been performed.
[0151] For example, the adjustment instruction information may include first adjustment information and second adjustment information. The first adjustment information indicates the adjustment direction (e.g., clockwise or counterclockwise). The second adjustment information indicates the adjustment angle. As another example, if the first device and the second device have pre-agreed or pre-configured an adjustment direction, the adjustment instruction information may include the second adjustment information. As yet another example, if the first device and the second device have pre-agreed or pre-configured an adjustment angle, the adjustment instruction information may include the first adjustment information.
[0152] Optionally, in addition to the first adjustment information and / or the second adjustment information, the adjustment instruction information may also include: a third adjustment information, used to instruct the second device to rotate the positioning angle of the second directional antenna after performing the positioning operation.
[0153] As another example, if the first device and the second device have negotiated or pre-configured adjustment direction and adjustment angle in advance, the adjustment instruction information may include an instruction field to instruct the second device to rotate the positioning angle of the second directional antenna after performing the positioning operation.
[0154] As an example, the preset direction can be clockwise or counterclockwise, and this application embodiment does not impose specific limitations on this.
[0155] For example, field "0" indicates counterclockwise rotation and field "1" indicates clockwise rotation. If the adjustment instruction information includes field "0", then the first device can determine to rotate the second directional antenna counterclockwise by a first preset angle.
[0156] As an example, the degree of the first preset angle can be 45°, 60°, or 30°. The degree of the first preset angle can be set by default by the first device and / or the second device, or it can be determined through negotiation between the first device and the second device or configured in advance. This application embodiment does not impose specific limitations on this.
[0157] Optionally, the first preset angle may refer to the target angle that the second directional antenna of the second device needs to rotate, or it may refer to the angle difference that the second directional antenna of the second device needs to rotate to.
[0158] As an example, if the first and second devices know the angle of each rotation in advance, the adjustment instruction information may include field a.
[0159] Optionally, if the first condition is met, the adjustment instruction information sent by the first device may be included in the second notification message.
[0160] It should be explained that, upon receiving the adjustment instruction, the second device will also receive a second notification message from the first device. The second device can first respond to the second notification message to determine the second positioning angle for the current round. Then, the second device responds to the adjustment instruction to adjust the positioning angle of the second directional antenna.
[0161] For example, the first condition includes one or more elements used by the first device to determine and instruct the second device to adjust the angle of the second directional antenna. For example, the first condition includes: the first signal reception quality is less than the second signal reception quality, or, the first signal reception quality is less than the second signal reception quality, and the difference between the first and second signal reception qualities is greater than or equal to a preset threshold, 2≤i≤N. This preset threshold can be set by default by the first and / or second devices, or it can be set manually; this application embodiment does not impose specific limitations on this.
[0162] For example, the first signal reception quality is the signal reception quality of the first directional antenna at the first positioning angle during the i-th round of positioning. The second signal reception quality is the signal reception quality of the first directional antenna at the first positioning angle obtained during any round of positioning by the first device before the i-th round.
[0163] For example, when i=3, the first signal reception quality is the signal reception quality of the first directional antenna at the first positioning angle during the third round of positioning. The second signal reception quality can be the signal reception quality corresponding to the first positioning angle 1 during the first round of positioning, or the second signal reception quality can be the signal reception quality corresponding to the first positioning angle 2 obtained during the second round of positioning.
[0164] As an example, at the end of each round of positioning operation, the first device compares the signal reception quality corresponding to the first positioning angle obtained in the current round with the signal reception quality corresponding to the first positioning angle obtained in the previous round. If the signal reception quality corresponding to the first positioning angle obtained in the current round is less than the signal reception quality corresponding to the first positioning angle obtained in the previous round, the first device determines that the first positioning angle determined in the current round is not the optimal positioning angle. Therefore, it sends an adjustment instruction to the second device to try to find a better positioning angle in the next round of positioning operation. For example, in the second round, with a preset threshold of 5, if the first signal reception quality is -20 and the second signal reception quality is -12, the difference between the first and second signal reception qualities is 8. This difference is greater than the preset threshold, so the first device sends an adjustment instruction to the second device.
[0165] In one possible embodiment of this application, before the last round of positioning operation, after the second device performs the first round of positioning operation in step 320 above, the method provided by this application embodiment further includes: the second device adjusting the positioning angle of the second directional antenna according to the second positioning angle obtained in the first round (i.e., the first round) and the second preset angle.
[0166] Optionally, the second preset angle can be 45°, 60°, or 30°, and this application embodiment does not limit it in this way. For example, the second preset angle can be set by default by the first device and / or the second device, or it can be set manually, and this application embodiment does not specifically limit it in this way.
[0167] Optionally, the degree of the second preset angle may refer to the degree of rotation of the second device.
[0168] In one possible embodiment of this application, the method provided by this application further includes: the second device sending a third notification message to the first device after each round of bit seeking; the first device receiving the third notification message from the second device before each round of bit seeking; and the first device performing the next round of bit seeking operation in response to the third notification message.
[0169] The third notification message is used to instruct the first device to begin the next round of position seeking operations.
[0170] Optionally, the third notification message may also include third indication information. This third indication information is used to instruct the first device to begin performing a position-finding operation. Optionally, the third indication information may also be used to notify the first device that the second device has completed the position-finding operation. Upon receiving the third notification message, the first device determines whether to begin performing the position-finding operation.
[0171] In one possible embodiment of this application, prior to step 330 above, the method provided in this application further includes: the first device sending a fourth notification message to the second device when a second condition is met. Correspondingly, the second device receives the fourth notification message sent by the first device. In response to the fourth notification message, the second device terminates the location search.
[0172] The fourth notification message is used to instruct the second device to stop performing the seek operation, that is, the seek operation ends.
[0173] Optionally, the fourth notification message may also include fourth indication information. This fourth indication information is used to instruct the second device to end the seek operation. Alternatively, the fourth indication information may include a second condition, and the second device, in response to the fourth notification message, determines whether to end the seek operation based on the second condition in the fourth notification message.
[0174] The second condition is that the bit-finding operation in j consecutive rounds satisfies the first condition, 1≤j≤N. The value of j can be set by default by the first device and / or the second device, or it can be set manually. This application embodiment does not impose specific restrictions on this.
[0175] As an example, taking j=3, in the fourth round, if the first device detects that in three consecutive rounds (rounds 2 to 4) of positioning, the first signal reception quality is lower than the second signal reception quality, and the difference between the first and second signal reception qualities is greater than or equal to a preset threshold, then the first device sends a fourth notification message to the second device after the fourth round of positioning. In response to the fourth notification message, the second device ends the positioning operation after completing the fourth round of positioning. Alternatively, the second device can directly end the positioning operation upon receiving the fourth notification message. In this way, the first device can determine that there is a positioning angle with signal reception quality that best matches the preset range in the existing rounds of positioning. To reduce unnecessary rounds, the first device can notify the second device to end the positioning, thereby reducing positioning time and improving positioning efficiency.
[0176] In one possible embodiment of this application, the positioning range of the first device and the second device in each round of positioning operation is the same, such as the first preset interval or the second preset interval.
[0177] In another possible embodiment of this application, when performing the first positioning operation, the positioning angle range of the first device is a first preset interval. When performing positioning operations other than the first positioning operation, the positioning angle range of the first device is a second preset interval.
[0178] Accordingly, during the initial positioning operation, the positioning angle range of the second device is the first preset interval. During positioning operations other than the initial positioning operation, the positioning angle range of the second device is the second preset interval.
[0179] The second preset interval is a partial range of the first preset interval. For example, the angle range of the first preset interval is [0, 360]. The angle range of the first preset interval is [0, 180].
[0180] Before RE and CAP perform the first round of positioning operations, they cannot determine each other's initial positions. Therefore, during the first round of positioning, the device's directional antenna rotates one full circle to locate the other's position. Thus, the first preset interval can be set to [0, 360]. This allows the device's directional antenna to traverse one full circle during the first positioning operation, thereby determining the positional relationship between the two devices. Since CAP and RE have already roughly determined the other's position by traversing one full circle in the first round of positioning (e.g., RE is directly to the right of CAP), the second preset interval can be set to [0, 180], which can narrow down the device's positioning range.
[0181] The first preset interval and the second preset interval can be set by default by the first device and / or the second device, or they can be set manually. This application embodiment does not impose specific restrictions on this.
[0182] As an example, such as Figure 4 As shown, taking the first device as CAP and the second device as RE, the angle range of the first preset interval is [0, 360]. The angle range of the second preset interval is [0, 180] as an example.
[0183] Understandably, when the first device performs a positioning operation, the second directional antenna of the second device will be fixed at a positioning angle. Therefore, each time the first device performs positioning within the first or second preset interval, it will control the first directional antenna to rotate to different positioning angles and then measure the signal reception quality (e.g., RSSI) of the first directional antenna at different positioning angles. Then, based on the RSSI corresponding to each of the multiple positioning angles, the first device can determine a positioning angle whose RSSI meets the preset requirements to obtain the first positioning angle for this round.
[0184] For example, in the first round, the first device performs a positioning operation to determine the first positioning angle of the first directional antenna. The second directional antenna of the second device is fixed at the positioning angle R0. When the first device performs the positioning operation in the first round within the range of 0-360°, the first device first controls the first directional antenna to rotate from 0° to 60°. When the positioning angle of the first directional antenna is 60°, the first device determines the signal reception quality of the first device to be RSSI1 (that is, when the second directional antenna is fixed at the positioning angle R1 and the positioning angle of the first directional antenna is 60°, the signal reception quality of the first device is RSSI1). Then, the first device controls the first directional antenna to rotate from 60° to 100°. When the positioning angle of the first directional antenna is 100°, the first device determines the RSSI value at this time to be RSSI2. Next, the first device controls the first directional antenna to rotate from 100° to 180°. When the positioning angle of the first directional antenna is 180° and the second directional antenna is fixed at the positioning angle R1, the first device determines the RSSI value at this time to be RSSI3. This process is repeated to obtain a total of 10 RSSIs (i.e., RSSI1 to RSSI10). Then, the first device compares the values of RSSI1 to RSSI10 and selects the RSSI that meets the preset requirements (e.g., RSSI3) as the first positioning angle (e.g., 180°) of the first directional antenna in the first round of positioning. Of course, to improve the positioning accuracy, the first device can also obtain more positioning angles (e.g., RSSI1 to RSSI30) in each round of positioning. Then, the first device compares the values of RSSI1 to RSSI30 and selects the RSSI that meets the preset requirements as the first positioning angle of the first directional antenna in the first round of positioning.
[0185] like Figure 5 As shown, Figure 5 Taking the first device as CAP and the second device as RE as an example, and using the process of CAP and RE performing three rounds of alternating positioning as an example, the specific implementation steps of the antenna alignment method between devices provided in this application embodiment are described:
[0186] For example, Figure 5 Taking a CAP as the central device, with the positioning operation initiated by the CAP and the signal reception quality represented by RSSI as an example, a schematic diagram of the directional antenna rotation of the CAP and RE can be found in [reference needed]. Figure 4 The diagram shows a schematic of a directional antenna induction system between devices.
[0187] (1) First round of position finding: RE fixed, CAP position finding
[0188] Step 411: RE fixes the positioning angle of the second directional antenna to angle R0.
[0189] As an example, in order for CAP to determine the required positioning angle for RSSI during the positioning process, CAP instructs RE to maintain the second directional antenna at its current positioning angle before performing the first round of positioning. This allows RE to maintain the first directional antenna at its initial positioning angle, such as R0, based on CAP's notification.
[0190] Step 412: CAP traverses the first preset interval to find the location and obtains the positioning angle C1 of the first directional antenna of CAP.
[0191] When the positioning angle C1 is R0, the first directional antenna of CAP senses the angle with the strongest RSSI between itself and the second directional antenna of RE.
[0192] The degree range of the first preset interval can be [0, 360]. For example... Figure 4 As shown in (1), CAP can determine the positioning angle C1 of the first directional antenna by traversing the entire homing loop, as shown in Table 1.
[0193] Table 1
[0194] Seeking rounds CAP positioning angle CAP seek RSSI RE Positioning Angle RE seek RSSI 1 C1 C_RSSI_1 R0 -
[0195] Step 413: CAP fixes the positioning angle C1 of the first directional antenna and records the positioning angle C1 and the received signal strength C_RSSI_1 associated with the positioning angle C1, as shown in Table 1.
[0196] Understandably, CAP stores C1 and C_RSSI_1 in its own memory. Subsequent data recorded by CAP can also be stored in its own memory.
[0197] Step 414: CAP sends a first message to RE. Correspondingly, RE receives the first message from CAP. This first message is used to notify RE to perform a bit search.
[0198] Optionally, the first message may also include a first field. This first field is used to instruct the RE to perform a bit search. Alternatively, the first field may also be used to notify the RE that the CAP bit search has been completed, and then the RE determines whether to start the bit search itself.
[0199] Optionally, the first message may also include information about a first preset interval, which makes it easier for the RE to determine whether to perform a seek operation within the first preset interval.
[0200] Optionally, the first message may also include information about the seek round, such as the information of the first round, so that the RE can determine to start the seek operation of the first round.
[0201] Understandably, after receiving the first message from CAP, RE will begin executing step 415 below.
[0202] (2) First round of bit search: CAP is fixed, RE is used for bit search.
[0203] Step 415: RE traverses the first preset interval to find the position and obtains the positioning angle R1 of the second directional antenna of RE.
[0204] Wherein, the positioning angle R1 is the angle at which the RE receives the strongest signal strength when the first directional antenna of CAP is at the positioning angle C1, using the second directional antenna.
[0205] As an example, such as Figure 4 As shown in (2), after CAP fixes the positioning angle C1 of the second directional antenna, RE starts to search for the position in the range of 0 to 360° and determines the positioning angle R1 of the second directional antenna.
[0206] Step 416: RE records the positioning angle R1 and the received signal strength R_RSSI_1 corresponding to the positioning angle R1.
[0207] Understandably, the RE stores the positioning angle R1 and the received signal strength R_RSSI_1 in its memory. Subsequent data recorded by the RE can also be stored in its memory, as shown in Table 2.
[0208] Table 2
[0209] Seeking rounds CAP positioning angle CAP seek RSSI RE Positioning Angle RE seek RSSI 1 C1 C_RSSI_1 R1 R_RSSI_1
[0210] Step 417: Based on the positioning angle R1, RE adjusts the positioning angle of the second directional antenna of RE to the positioning angle R2_0.
[0211] For example, RE rotates the second directional antenna 45° clockwise from the positioning angle R1 to fix the second directional antenna of RE at R2_0.
[0212] Understandably, since the CAP determines only one positioning angle, C1, after the initial positioning, and there are no other positioning angles for reference, it's impossible to compare the initial positioning angle C1 with other positioning angles. Therefore, after the RE obtains R1 through the initial positioning, it needs to rotate the directional antenna. The purpose of this is that the RE's initial positioning might be affected by the initial position R0, making it impossible to determine if the positioning angle is the optimal one. Therefore, after the first round of positioning operations, the RE needs to adjust the positioning angle of its directional antenna to find a better positioning angle in the next round of positioning operations.
[0213] Step 418: RE sends a second message to CAP. Correspondingly, CAP receives the second message from RE. This second message is used to notify CAP to perform a position lookup.
[0214] Optionally, the second message may include a second field that instructs CAP to perform a bit search. Alternatively, the fourth field may also be used to notify CAP that the RE has completed the first round of bit search operations.
[0215] Optionally, the second message may also include the round in which bit search is required, notifying CAP which round of bit search to begin.
[0216] (3) Second round of position finding: RE fixed, CAP position finding
[0217] Step 421: CAP traverses the second preset interval to find the location and obtains the positioning angle C2 of the first directional antenna.
[0218] Wherein, the positioning angle C2 is the angle at which the second directional antenna of RE is located at the positioning angle R2_0, and CAP uses the first directional antenna to sense the angle with the strongest received signal strength between the second directional antenna of RE.
[0219] Step 422: CAP records the positioning angle C2 and the corresponding received signal strength C_RSSI_2, as shown in Table 3.
[0220] Table 3
[0221] Seeking rounds CAP positioning angle CAP seek RSSI RE Positioning Angle RE seek RSSI 1 C1 C_RSSI_1 R1 R_RSS_1 2 C2 C_RSSI_2 R1+45 -
[0222] Step 423: CAP compares the magnitudes of the received signal strength C_RSSI_2 and the received signal strength C_RSSI_1.
[0223] Because the received signal strength between CAP and RE will differ depending on the positioning angles of the first directional antenna of CAP and the second directional antenna of RE, it is necessary to compare multiple recorded received signal strengths to determine the optimal positioning angle of the directional antenna of CAP for receiving the best signal strength.
[0224] Step 4231: When the received signal strength C_RSSI_2 is less than the received signal strength C_RSSI_1, and the difference is greater than a preset threshold, CAP sends a third message to RE, and RE receives the third message from CAP. The third message is used to instruct RE to rotate the second directional antenna counterclockwise by 45° based on the positioning angle R1.
[0225] Optionally, the third message may include a third field indicating that the RE rotates the second directional antenna counterclockwise and / or by 45 degrees based on the positioning angle R1. Alternatively, the third message may include third field a, third field b, and third field c, where third field a includes counterclockwise rotation, third field b includes 45 degrees, and third field c includes R1.
[0226] Alternatively, the third field in the third message can contain the degree of rotation. If the RE rotates counterclockwise from the positioning angle R1 by default, the degree can be 45 degrees; if the RE rotates clockwise from the positioning angle R1 by default, the degree can be 315 degrees.
[0227] Alternatively, the third message is used to instruct the RE to adjust the positioning angle of the second directional antenna. In response to the third message, the RE determines whether to rotate 45 degrees counterclockwise or 315 degrees clockwise based on the positioning angle R1.
[0228] As one implementation, at the end of each round of positioning operation, CAP compares the received signal strength C_RSSI_2 corresponding to the first positioning angle of the first directional antenna with the received signal strength C_RSSI_1 corresponding to the first positioning angle of the first directional antenna during the first round of positioning. If C_RSSI_2 is less than C_RSSI_1 and the difference is greater than a preset threshold, CAP determines that the positioning angle determined in this round of positioning operation is not the optimal positioning angle, and therefore sends a third message to RE to try to find a better positioning angle in the next round of positioning operation.
[0229] It should be noted that the third message sent by CAP to RE can be sent together with the first message in step 424, or it can be sent before or after sending the first message in step 424. Alternatively, the third message can also be included within the first message.
[0230] Step 424: CAP sends the first message to RE. Correspondingly, RE receives the first message.
[0231] It is understandable that the first message in step 424 may be the same as or different from the first message in step 414. For example, the difference may be that the first message in step 424 carries information about the second round, which is used by the RE to determine when to start the bit-finding operation of the second round.
[0232] (4) Second round of position seeking: CAP fixed, RE position seeking
[0233] Step 425: RE traverses the second preset interval to find the location and obtains the positioning angle R2 of the second directional antenna.
[0234] Wherein, the positioning angle R2 is when the first directional antenna of CAP is at the positioning angle C2, and RE uses the second directional antenna to sense the angle with the strongest received signal strength between it and the second directional antenna of CAP.
[0235] Step 426: RE records the positioning angle R2 and the received signal strength R_RSSI_2 corresponding to the positioning angle R2.
[0236] Specifically, as shown in Table 4, Table 4 shows the correlation between the received signal strength associated with each positioning angle recorded by the first and second devices after the second round of positioning operation.
[0237] Table 4
[0238] Seeking rounds CAP positioning angle CAP seek RSSI RE Positioning Angle RE seek RSSI 1 C1 C_RSSI_1 R1 R_RSSI_1 2 C2 C_RSSI_2 R2 R_RSSI_2
[0239] Step 427: When the RE receives the third message, the RE rotates the second directional antenna 45° counterclockwise from the positioning angle R1 and fixes it at the position R3_0.
[0240] It needs to be explained that, upon receiving the first and third messages, the RE first responds to the first message to determine the positioning angle R2 of its second directional antenna when the first directional antenna of the CAP is at positioning angle C2. Then, the RE responds to the third message to adjust the positioning angle of its second directional antenna.
[0241] Step 428: RE sends a second message to CAP, and CAP receives the second message from RE accordingly.
[0242] For example, the second message is used by CAP to determine the start of the third round of seek operation.
[0243] (5) Third round of position finding: RE fixed, CAP position finding
[0244] Step 431: CAP traverses the second preset interval to find the position and obtains the positioning angle C3 of the first directional antenna.
[0245] Wherein, the positioning angle C3 is the angle at which the received signal strength between the second directional antenna of RE and the second directional antenna of RE is strongest when the second directional antenna of RE is at the positioning angle R3_0.
[0246] Step 432: CAP records the positioning angle C3 and the received signal strength C_RSSI_3 corresponding to the positioning angle C3.
[0247] Table 5
[0248]
[0249]
[0250] Table 5 above shows the correlation between the received signal strength of each positioning angle recorded by CAP after the third round of positioning.
[0251] Step 433: CAP compares the sizes of C_RSSI_3, C_RSSI_1, and C_RSSI_2.
[0252] Step 4331: If C_RSSI_3 is less than C_RSSI_1 or less than C_RSSI_2, and the difference is greater than a preset threshold, CAP sends a fourth message to RE. Correspondingly, RE receives the fourth message from CAP.
[0253] The fourth message is used to indicate that the RE has ended its seek. Optionally, the fourth message may also include a fourth field, which is used to indicate that the RE has ended its seek.
[0254] Understandably, in this way, CAP can determine that the positioning angle with the strongest received signal has been determined in the existing rounds of position finding operations (such as C_RSSI_1 and C_RSSI_2). In order to reduce unnecessary rounds, CAP can notify RE to end the position finding, thereby reducing position finding time and improving position finding efficiency.
[0255] Step 434: CAP sends the first message to RE, and RE receives the first message from CAP.
[0256] (6) Third round of position seeking: CAP fixed, RE position seeking
[0257] Step 435: RE traverses the second preset interval to find the location and obtains the positioning angle R3 of the second directional antenna.
[0258] When the positioning angle R3 is the same as the positioning angle C3 of CAP, RE uses the second directional antenna to sense the angle with the strongest received signal strength between it and the first directional antenna of CAP.
[0259] Step 436: RE records the positioning angle R3 and the received signal strength R_RSSI_3 corresponding to the positioning angle R3.
[0260] Table 6
[0261] Seeking rounds CAP positioning angle CAP seek RSSI RE Positioning Angle RE seek RSSI 1 C1 C_RSSI_1 R1 R_RSSI_1 2 C2 C_RSSI_2 R2 R_RSSI_2 3 C3 C_RSSI_3 R3 R_RSSI_3
[0262] Table 6 above shows the correlation between the received signal strength of each positioning angle recorded by the first and second devices after the third round of positioning.
[0263] Step 441: RE compares R_RSSI_1, R_RSSI_2, and R_RSSI_3 corresponding to R1, R2, and R3 respectively, and selects the positioning angle R2 corresponding to R_RSSI_2 as the second positioning angle of the target. For example, R_RSSI_2 has the largest value.
[0264] Step 442: RE rotates the second directional antenna to the positioning angle R2.
[0265] Step 443: RE sends the fifth message to CAP, and CAP receives the fifth message from RE accordingly.
[0266] The fifth message (corresponding to the first notification message mentioned above) includes an index of the target round, where the target round is the round corresponding to R2, for example, the target round is the second round. CAP selects the positioning angle C2 from C1, C2 and C3 as the positioning angle of the first directional antenna based on the index of the second round, and then executes step 444.
[0267] Optionally, the fifth message may also include a fifth field, which is used to notify CAP that the third round of positioning operation of RE has ended. CAP selects C2 from the positioning angles C1, C2, and C3.
[0268] Step 444: CAP rotates the first directional antenna to the positioning angle C2 obtained in the second round of positioning.
[0269] The above mainly describes the solutions of the embodiments of this application from the perspective of interaction between various network elements. It is understood that each device, such as the first device, the second device, etc., includes corresponding structures and / or software modules to perform the above functions in order to achieve them. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0270] This application embodiment can divide functional units according to the first device and second device described in the above method examples. For example, each function can be divided into a separate functional unit, or two or more functions can be integrated into one processing unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.
[0271] The above combination Figures 1 to 5 The methods described in the embodiments of this application have been explained. The apparatus for performing the above methods, provided in the embodiments of this application, is described below. Those skilled in the art will understand that the methods and apparatus can be combined with and referenced in each other. The communication apparatus provided in the embodiments of this application can perform the steps respectively executed by the first device and the second device in the above-described method for inter-device antenna calibration.
[0272] When using integrated units Figure 6 The first communication device involved in the above embodiments is shown. The first communication device may be a first device or a device applied in the first device, such as a chip or processing circuit. The first communication device may include: a first bit-finding unit 510, a first communication unit 520, and a first processing unit 530.
[0273] In one alternative implementation, the first communication device may further include a storage unit for storing program code and data of the first communication device.
[0274] In one example, the first communication device is a first device or a chip applied in a first device. The first positioning unit 510 is used to perform N rounds of positioning operations to obtain N first positioning angles corresponding to the first directional antenna when the second directional antenna is at N positioning angles, and the signal reception quality associated with each round of the first positioning angle meets the requirements, where N ≥ 2. The first communication unit 520 is used to receive a first notification message from the second device, the first notification message including information about a target round, the target round being used to determine the positioning angle of the first directional antenna when aligned with the second directional antenna of the second device. The first processing unit 530 is used to control the first directional antenna to rotate to the target first positioning angle according to the first notification message, so that the first directional antenna is aligned with the second directional antenna, the target first positioning angle being the first positioning angle associated with the target round among the N first positioning angles.
[0275] In one possible implementation of this application, the first communication unit 520 is further configured to send a second notification message to the second device after each round of position seeking, the second notification message being used to instruct the second device to begin performing position seeking operations.
[0276] In one possible implementation of this application, the first communication unit 520 is further configured to send adjustment instruction information to the second device when the first condition is met. The adjustment instruction information is used to instruct the second device to rotate the second directional antenna by a first preset angle in a preset direction after performing a positioning operation.
[0277] In one possible implementation of this application, the first communication unit 520 is further configured to receive a third notification message from the second device before each round of bit seeking, the third notification message being used to instruct the first device to begin performing bit seeking operations. Correspondingly, the first bit seeking unit 510 is further configured to perform bit seeking operations according to the third notification message.
[0278] In one possible implementation of this application, if the second condition is met, the first communication unit 520 is further configured to send a fourth notification message to the second device. The fourth notification message is used to instruct the second device to end the position seeking operation. The second condition is that the position seeking operation in j consecutive rounds satisfies the first condition, 1≤j≤N.
[0279] When using integrated units Figure 7 The second communication device involved in the above embodiments is shown. The second communication device may be a second device or a device applied in the second device, such as a chip or processing circuit. The device includes: a second bit-finding unit 610, a second processing unit 620, and a second communication unit 630.
[0280] In one alternative implementation, the second communication device may further include a storage unit for storing program code and data of the second communication device.
[0281] In one example, the second communication device is a second device or a chip applied in a second device. The second positioning unit 610 performs N rounds of positioning operations to obtain the second positioning angle of the second directional antenna in each round and the signal reception quality corresponding to the second positioning angle. When the second directional antenna is at the second positioning angle, the signal reception quality of the second device meets a first preset requirement, where N ≥ 2. The second processing unit 620 determines a target second positioning angle from the N second positioning angles based on the signal reception quality corresponding to each second positioning angle. The target second positioning angle is the one where the signal reception quality among the N second positioning angles meets the second preset requirement. The second processing unit 620 is also used to rotate the second directional antenna to the target second positioning angle. The second communication unit 630 sends a first notification message to the first device. The first notification message includes information about the target round corresponding to the target second positioning angle. The target round is used to determine the positioning angle of the first directional antenna when aligned with the second directional antenna.
[0282] In one possible implementation of this application, the second communication unit 630 is further configured to receive a second notification message from the first device before each round of bit seeking, the second notification message being used to instruct the second device to begin performing bit seeking operations. Correspondingly, the second processing unit 620 is further configured to perform bit seeking operations in response to the second notification message.
[0283] In one possible implementation of this application, the second communication unit 630 is further configured to receive adjustment instruction information from the first device, the adjustment instruction information being used to instruct the second device to rotate the second directional antenna by a preset angle in a preset direction after performing a positioning operation. Correspondingly, the second processing unit 620 is further configured to, in response to the adjustment instruction information, rotate the second directional antenna by a first preset angle in a preset direction after the second device performs a positioning operation.
[0284] In one possible implementation of this application, the second communication unit 630 is further configured to send a third notification message to the first device after each round of bit seeking, the third notification message being used to instruct the first device to start performing bit seeking operation.
[0285] In one possible implementation of this application, the second communication unit 630 is further configured to receive a fourth notification message from the first device, the fourth notification message being used to instruct the second device to end the bit search. Correspondingly, the second processing unit 620 is further configured to end the bit search in response to the fourth notification message.
[0286] The first processing unit 530 or the second processing unit 620 may be a processor or controller, such as a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc. The communication module may be a transceiver, transceiver circuitry, or a communication interface, etc. The storage module may be a memory.
[0287] Optional, such as Figure 2The router structure shown may also include a memory, which can be read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions, random access memory (RAM) or other types of dynamic storage devices capable of storing information and instructions, electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited to these. The memory can exist independently and be connected to the processor via communication lines. Alternatively, the memory can be integrated with the processor.
[0288] The memory stores computer execution instructions for implementing the scheme of this application, and the execution is controlled by the processor. The processor executes the computer execution instructions stored in the memory to implement the inter-device antenna calibration method provided in the following embodiments of this application.
[0289] Optionally, the computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.
[0290] On the one hand, a computer-readable storage medium is provided, in which instructions are stored, which, when executed, implement as follows: Figure 3 Functions performed by a second device.
[0291] On the one hand, a computer-readable storage medium is provided, in which instructions are stored, which, when executed, implement as follows: Figure 3 The function performed by the first device.
[0292] On the one hand, a computer program product including instructions is provided, wherein the computer program product includes instructions that, when executed, implement such... Figure 3 The function performed by the first device.
[0293] On the other hand, a computer program product including instructions is provided, wherein the computer program product includes instructions that, when executed, implement as follows: Figure 3 The function performed by the second device.
[0294] On one hand, a chip is provided for use in a second device. The chip includes at least one processor and a communication interface, the communication interface and the at least one processor being coupled together. The processor is used to execute instructions to achieve, for example... Figure 3 The function performed by the second device.
[0295] In another aspect, embodiments of this application provide a chip applied in a first device. The chip includes at least one processor and a communication interface, the communication interface being coupled to the at least one processor. The processor is used to execute instructions to achieve, for example... Figure 3 The function performed by the first device.
[0296] This application provides a system for antenna alignment between devices, the system including: a first device and one or more second devices. The first device is used to perform... Figure 3 The first device performs the function, and the second device is used to perform functions such as... Figure 3 The function performed by the second device.
[0297] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are performed entirely or partially. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user equipment, or other programmable device. The computer program or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; it can also be an optical medium, such as a digital video disc (DVD); or it can be a semiconductor medium, such as a solid-state drive (SSD).
[0298] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple components. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.
[0299] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.
Claims
1. A method of inter-device antenna alignment, the method comprising: The method is applied to a first device with a first directional antenna, and comprises the following steps: performing N rounds of positioning operations to obtain N first positioning angles of the first directional antenna, and a signal receiving quality associated with each round of the first positioning angle meeting a requirement, N≥2; receiving a first notification message from a second device, the first notification message comprising information of a target round used to determine a positioning angle of the first directional antenna when the first directional antenna is aligned with a second directional antenna, the information of the target round being a serial number of an execution round associated with a target second positioning angle, the second device performing N rounds of positioning operations to obtain N second positioning angles of the second directional antenna when the first directional antenna is at the N first positioning angles, and determining the target second positioning angle from the N second positioning angles according to a signal receiving quality associated with each second positioning angle; controlling the first directional antenna to rotate to a target first positioning angle according to the first notification message, so that the first directional antenna is aligned with the second directional antenna, the target first positioning angle being the first positioning angle associated with the target round from the N first positioning angles.
2. The method of claim 1, wherein, The method further comprises the following steps: after each round of positioning, sending a second notification message to the second device, the second notification message being used to instruct the second device to start performing the positioning operation.
3. The method of claim 2, wherein, The step of sending the second notification message to the second device after each round of positioning further comprises the following steps: when a first condition is met, sending adjustment instruction information to the second device, the adjustment instruction information being used to instruct the second device to rotate the second directional antenna by a preset angle in a preset direction after performing the positioning operation.
4. The method of claim 3, wherein, The first condition comprises: a first signal receiving quality being less than a second signal receiving quality, and a difference between the first signal receiving quality and the second signal receiving quality being greater than or equal to a preset threshold, 2≤i≤N, the first signal receiving quality being a signal receiving quality of the first device when the first directional antenna is at the first positioning angle in the i th round of positioning; the second signal receiving quality being a signal receiving quality of the first device when the first directional antenna is at the first positioning angle in any round of positioning before the i th round of positioning.
5. The method according to any one of claims 1 to 4, characterized in that, Any round of positioning operation except the first round of positioning comprises the following steps: receiving a third notification message from the second device, the third notification message being used by the first device to determine to perform a next round of positioning operation; performing the next round of positioning operation in response to the third notification message.
6. The method according to any one of claims 1 to 4, characterized in that, Before the step of controlling the first directional antenna to rotate to the target first positioning angle according to the first notification message, the method further comprises the following steps: when a second condition is met, sending a fourth notification message to the second device, wherein the fourth notification message is used to indicate the second device to end the positioning, and the second condition being that positioning operations of continuous preset rounds meet the first condition.
7. The method according to any one of claims 1-4, wherein In the first round of the first positioning operation, the first device has a first preset range of positioning angles; In the positioning operation other than the first round of the first positioning operation, the first device has a second preset range of positioning angles, the range of the second preset range being part of the range of the first preset range.
8. A method of inter-device antenna alignment, the method comprising: The method is applied to a second device with a second directional antenna, and the method comprises: performing N rounds of positioning operations to obtain N second positioning angles corresponding to the second directional antenna when the first directional antenna of the first device is at N first positioning angles, wherein the signal reception quality associated with each of the second positioning angles meets a requirement, N≥2, the first device performs N rounds of positioning operations to obtain N first positioning angles corresponding to the first directional antenna when the second directional antenna is at N positioning angles, and the signal reception quality associated with each of the first positioning angles meets a requirement; determining a target second positioning angle from the N second positioning angles according to the signal reception quality associated with each of the second positioning angles, the signal reception quality associated with the target second positioning angle meeting a first requirement; rotating the second directional antenna to the target second positioning angle; sending a first notification message to the first device, the first notification message comprising information of a target round corresponding to the target second positioning angle, the information of the target round being the serial number of the execution round associated with the target second positioning angle, and the target round being used to determine the positioning angle of the first directional antenna when the second directional antenna is aligned.
9. The method of claim 8, wherein, The N rounds of positioning operations comprise: before each round of positioning, receiving a second notification message from the first device, the second notification message being used to instruct the second device to start performing the positioning operation; in response to the second notification message, performing the positioning operation.
10. The method of claim 9, wherein, The method further comprises: receiving adjustment indication information from the first device, the adjustment indication information being used to instruct the second device to rotate the second directional antenna by a first preset angle in a preset direction after performing the positioning operation; in response to the adjustment indication information, rotating the second directional antenna by the first preset angle in the preset direction after the second device performs the positioning operation.
11. The method according to any one of claims 8 to 10, characterized in that, The method further comprises: after each round of positioning, sending a third notification message to the first device, the third notification message being used by the first device to determine to start performing the next round of positioning operation.
12. The method according to any one of claims 8 to 10, characterized in that, Before determining the target second positioning angle from the N second positioning angles, the method further comprises: receiving a fourth notification message from the first device, wherein the fourth notification message is used to instruct the second device to end the positioning; in response to the fourth notification message, stopping performing the positioning operation.
13. The method of any one of claims 8-10, wherein in the first round of the first positioning operation, the second device has a first preset range of positioning angles; When performing the positioning operation other than the first positioning operation, the second device has a second preset interval for the positioning angle, and the interval of the second preset interval is a partial interval of the first preset interval.
14. The method according to any one of claims 8 to 10, characterized in that, Before the last positioning operation, the method further comprises: after each positioning operation, the second device adjusts the positioning angle of the second directional antenna according to the second positioning angle of the first positioning operation and a second preset angle.
15. A first device, comprising: A computer program product, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1-7 when executing the computer program.
16. A second device, comprising: A computer program product, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 8-14 when executing the computer program.
17. A system for inter-device antenna alignment, the system comprising: Comprise: A first device with a first directional antenna and a second device with a second directional antenna, the first device and the second device alternately perform a positioning operation, the first device is configured to implement the method according to any one of claims 1-7, and the second device is configured to implement the method according to any one of claims 8-14.
18. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to implement the method according to any one of claims 1-7 or 8-14.
Citation Information
Patent Citations
Antenna alignment method and system
CN104253658A
Method and device for aligning directional antennas, terminal device, and medium
CN109950699A