Antenna mode selection method and selection device
By measuring and confirming the signal quality of the frame and selecting an antenna mode with higher signal quality, combining physical throughput and signal quality for antenna training, the packet loss problem caused by antenna mode selection in the prior art is solved, and the selection accuracy and communication are improved efficiency.
Patent Information
- Application Number
- CN202110447785.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-25
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2041-04-25
AI Technical Summary
When selecting the best antenna mode, existing intelligent antenna selection algorithms can easily lead to large-scale packet loss in terminal equipment, resulting in service delays and lags.
By sending multiple packets to the second communication device and measuring the signal quality of the confirmation frame in different antenna modes, an antenna mode with higher signal quality is selected as the dominant antenna mode. If the number of dominant antenna modes is greater than 1, antenna training is performed and the best antenna mode is selected based on physical throughput and signal quality.
It effectively avoids packet loss of terminal equipment, improves the accuracy of choosing the best antenna mode, reduces the communication impact during antenna training, and improves communication efficiency.
Smart Images

Figure CN115250132B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method and device for selecting an antenna mode. Background Art
[0002] In a communication system based on smart antennas, a problem is: when a network device sends data to a terminal device, how does the smart antenna selection algorithm select the best antenna mode from the omnidirectional antenna mode and directional antenna mode included in the smart antenna, so as to achieve the best signal transmission between the network device and the terminal device.
[0003] An intelligent antenna selection algorithm is as follows: use at least one higher modulation and coding scheme (MCS) to send data packets for each antenna mode of the omnidirectional antenna mode and the directional antenna mode included in the intelligent antenna. Calculate the packet error rate of the terminal device corresponding to each antenna mode under the at least one MCS; and use the antenna mode corresponding to the minimum packet error rate as the optimal antenna mode. In addition, after selecting the optimal antenna mode for the terminal device, if the terminal device has a continuous decrease in traffic, the intelligent antenna selection algorithm reselects the antenna mode.
[0004] However, the above-mentioned smart antenna selection algorithm may cause a large number of packet losses in the terminal device, resulting in service delays and freezes in the terminal device. Summary of the invention
[0005] The present application provides an antenna mode selection method and selection device, which can avoid a large number of packet losses in terminal equipment, and further improve the accuracy of selecting the best antenna mode.
[0006] In a first aspect, the present application provides an antenna mode selection method, which is applied to a first communication device, which communicates with other communication devices through multiple antenna modes, and the multiple antenna modes include omnidirectional antenna modes and multiple directional antenna modes. The method includes: sending multiple packets to a second communication device; in each antenna mode of the multiple antenna modes, measuring the signal quality of multiple confirmation frames of the second communication device in response to the multiple packets respectively; and selecting a dominant antenna mode from the multiple antenna modes according to the signal quality corresponding to each antenna mode of the multiple antenna modes.
[0007] The above-mentioned method for selecting the antenna mode determines the dominant antenna mode according to the signal quality of the confirmation frame corresponding to each antenna mode. The lower the MCS, the easier it is for the communication device to correctly decode the packet sent with the MCS. Since the confirmation frame is usually sent with a lower MCS, if the second communication device successfully receives the packet sent by the first communication device, even if the signal quality of the confirmation frame received by the first communication device is reduced due to the antenna mode used, the first communication device can usually receive the confirmation frame of the packet. Therefore, the first communication device can determine whether the antenna mode it uses is appropriate based on the signal quality of the confirmation frame without affecting normal communication. The impact on the communication between the second communication device and the second communication device when testing the antenna mode can be reduced.
[0008] In combination with the first aspect, in a possible implementation manner, sending the multiple packets to the second communication device includes: sending the multiple packets to the second communication device in an omnidirectional antenna mode.
[0009] In combination with the first aspect, in a possible implementation manner, the multiple packets include multiple data frames.
[0010] In combination with the first aspect, in a possible implementation manner, when the number of dominant antenna modes is 1, the method further includes: communicating with the second communication device using the dominant antenna mode as the optimal antenna mode.
[0011] In combination with the first aspect, in a possible implementation, when the number of dominant antenna patterns is greater than 1, the method further includes: performing antenna training on the dominant antenna pattern to obtain an optimal antenna pattern; and communicating with the second communication device using the optimal antenna pattern.
[0012] The antenna mode selection method provided in the embodiment of the present application can avoid packet loss in the second communication device during the antenna training process because only the dominant antenna mode is trained during the antenna training. In addition, because the dominant antenna mode is screened out based on signal quality, the training amount of the antenna algorithm is reduced, making the training process faster.
[0013] In combination with the first aspect, in a possible implementation method, antenna training is performed on the dominant antenna mode to obtain the optimal antenna mode, including: obtaining the physical throughput corresponding to each antenna mode in the dominant antenna mode; selecting the optimal antenna mode from the dominant antenna mode according to the physical throughput, wherein the first physical throughput corresponding to the optimal antenna mode is the maximum physical throughput of all physical throughputs corresponding to the dominant antenna mode, and the difference between the first physical throughput and the second physical throughput when all physical throughputs are sorted in order from large to small is greater than or equal to the throughput threshold.
[0014] The antenna mode selection method provided in the embodiment of the present application selects the best antenna mode by obtaining the physical throughput corresponding to each antenna mode in the dominant antenna mode after determining the dominant antenna mode. In this technical solution, when selecting the best antenna mode by physical throughput, it is not only necessary to meet the maximum physical throughput, but also to meet the difference between the second physical throughput when all physical throughputs are sorted in descending order is greater than or equal to the throughput threshold, so as to ensure the accuracy of the best antenna mode selected by the physical throughput.
[0015] In combination with the first aspect, in a possible implementation manner, the throughput threshold is one tenth of the second physical throughput.
[0016] In combination with the first aspect, in a possible implementation, the method also includes: obtaining the signal quality corresponding to each antenna mode in the dominant antenna mode; wherein, selecting the best antenna mode from the dominant antenna mode based on the physical throughput includes: selecting the best antenna mode from the dominant antenna mode based on the physical throughput and the signal quality, and the signal quality corresponding to the best antenna mode is the maximum signal quality among all signal qualities corresponding to the dominant antenna mode.
[0017] The antenna mode selection method provided in the embodiment of the present application, after determining the dominant antenna mode, in order to select the best antenna mode from the dominant antenna modes, not only the physical throughput corresponding to each antenna mode is used as an evaluation index, but also the signal quality corresponding to each antenna mode is combined to jointly select the best antenna mode. This method can improve the accuracy of selecting the best antenna mode. For example, the short movement of the second communication device will cause a large change in throughput. If only the physical throughput is used for evaluation, the best antenna mode at this time may change. If two evaluation indicators are used for selection, it will be more reliable.
[0018] In combination with the first aspect, in a possible implementation, the method also includes: when communicating with a second communication device in the optimal antenna mode, if the signal quality of communication with the second communication device decreases continuously for t consecutive periods, and / or the physical throughput of communication with the second communication device decreases continuously for s consecutive periods, triggering antenna retraining, where t and s are positive integers greater than or equal to 2.
[0019] In this technical solution, compared with the prior art, in addition to physical throughput, signal quality is introduced when determining whether antenna retraining needs to be triggered. Therefore, it is possible to determine whether smart antenna retraining needs to be triggered from multiple dimensions, thereby improving the accuracy of triggering antenna retraining.
[0020] In a second aspect, the present application provides an antenna mode selection device, which is applied to a first communication device, wherein the first communication device communicates with other communication devices through multiple antenna modes, and the multiple antenna modes include omnidirectional antenna modes and multiple directional antenna modes. The device includes: a sending module, which is used to send multiple packets to a second communication device; a measuring module, which is used to measure the signal quality of multiple confirmation frames of the second communication device in response to the multiple packets respectively in each antenna mode of the multiple antenna modes; and a selection module, which is used to select a dominant antenna mode from multiple antenna modes according to the signal quality corresponding to each antenna mode of the multiple antenna modes.
[0021] In combination with the second aspect, in one implementable manner, the sending module is specifically used to: send multiple packets to the second communication device in the omnidirectional antenna mode.
[0022] In combination with the second aspect, in one achievable manner, the multiple packets include multiple data frames.
[0023] In combination with the second aspect, in one achievable manner, when the number of the dominant antenna modes is 1, the apparatus further includes a communication module configured to communicate with a second communication device using the dominant antenna mode as an optimal antenna mode.
[0024] In combination with the second aspect, in one implementable method, when the number of dominant antenna modes is greater than 1, the device also includes: a training module for performing antenna training on the dominant antenna mode to obtain the optimal antenna mode; the communication module is also used to: communicate with the second communication device using the optimal antenna mode.
[0025] In combination with the second aspect, in one implementable manner, the training module is specifically used to: obtain the physical throughput corresponding to each antenna mode in the dominant antenna mode; select the best antenna mode from the dominant antenna mode according to the physical throughput, wherein the first physical throughput corresponding to the best antenna mode is the maximum physical throughput among all physical throughputs corresponding to the dominant antenna mode, and the difference between the first physical throughput and the second physical throughput when all physical throughputs are sorted in order from large to small is greater than or equal to the throughput threshold.
[0026] In combination with the second aspect, in one achievable manner, the throughput threshold is one tenth of the second physical throughput.
[0027] In combination with the second aspect, in an implementable manner, the device also includes: an acquisition module, used to obtain the signal quality corresponding to each antenna mode in the dominant antenna mode; the selection module is also used to: select the best antenna mode from the dominant antenna mode based on the physical throughput and signal quality, and the signal quality corresponding to the best antenna mode is the maximum signal quality among all signal qualities corresponding to the dominant antenna mode.
[0028] In combination with the second aspect, in one implementable manner, the device also includes: a trigger module, which is used to trigger antenna retraining when communicating with a second communication device in an optimal antenna mode, if the signal quality of communication with the second communication device decreases continuously for t consecutive periods, and / or the physical throughput between communications with the second communication device decreases continuously for s consecutive periods, where t and s are positive integers greater than or equal to 2.
[0029] In a third aspect, the present application provides an antenna mode selection device, comprising: a memory and a processor; the memory is used to store program instructions; the processor is used to call the program instructions in the memory to execute the antenna mode selection method as described in the first aspect or any possible implementation method thereof.
[0030] In some implementations, the device may be a chip. In this implementation, the device may also optionally include a communication interface for communicating with other devices or equipment.
[0031] In a fourth aspect, the present application provides a computer-readable medium storing a program code for computer execution, the program code including a method for executing the antenna mode selection method as described in the first aspect or any possible implementation thereof.
[0032] In a fifth aspect, the present application provides a computer program product, which includes a computer program code. When the computer program code runs on a computer, the computer implements the antenna mode selection method as described in the first aspect or any possible implementation method thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of a communication system provided by an embodiment of the present application;
[0034] Figure 2 A schematic flow chart of a method for selecting an antenna mode provided in one embodiment of the present application;
[0035] Figure 3 A schematic flow chart of a method for selecting an antenna mode provided in another embodiment of the present application;
[0036] Figure 4 A schematic diagram of the structure of an antenna mode selection device provided in one embodiment of the present application;
[0037] Figure 5 A schematic diagram of the structure of an antenna mode selection device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0038] For the sake of understanding, the relevant terms involved in this application are first explained.
[0039] 1. Modulation and coding strategy
[0040] Modulation and coding scheme (MCS) is mainly used to configure the radio frequency rate in wireless local area networks (WLAN). In WLAN, the radio frequency rate is configured through the modulation and coding scheme MCS index value. The MCS modulation and coding table is a representation form proposed to characterize the communication rate of WLAN. MCS takes the factors that affect the communication rate as the columns of the table and the MCS index as the rows to form a rate table. Therefore, each MCS index actually corresponds to the physical transmission rate under a set of parameters.
[0041] Figure 1 A schematic diagram of a communication system provided by an embodiment of the present application. Figure 1 As shown, the communication system 100 of the present application may include a first communication device 101 and a second communication device 102 .
[0042] Among them, the first communication device 101 is a device that connects a terminal (or terminal device) to a wireless network, also known as a wireless access point (AP). In the embodiment of the present application, the first communication device may also be referred to as a network device. The second communication device 102 may be a mobile device with WLAN function, which may be deployed on land, including indoors or outdoors, handheld or vehicle-mounted; it may also be deployed on the water surface (such as a ship, etc.); it may also be deployed in the air (for example, on an airplane, a balloon, and a satellite, etc.). The terminal device may be a mobile phone, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc., which are not limited here.
[0043] for Figure 1In the communication system shown, when the first communication device 101 sends data to the second communication device 102, the first communication device 101 needs to convert the data into electromagnetic waves through the antenna and send them to the second communication device 102. When sending data through the antenna, the data can be sent in an omnidirectional antenna mode or in a directional antenna mode.
[0044] Among them, the omnidirectional antenna mode and the directional antenna mode can be considered as different states of the direction in which the beam energy is concentrated when the antenna sends data. The omnidirectional antenna mode means that when the first communication device uses the antenna to send data, the direction in which the beam energy of the antenna covers is 360 degrees, and the directional antenna mode means that when the first communication device uses the antenna to send data, the direction in which the beam energy of the antenna is concentrated is a specific direction. It can be understood that there can be multiple specific directions, so the number of directional antenna modes can also be multiple.
[0045] It should be understood that for the antenna in the first communication device, the direction in which the beam energy is concentrated can be set. The antenna mode can be considered to represent the direction in which the beam energy of the first communication device is concentrated when sending data to the second communication device. If the directions in which the beam energy is concentrated are different, the antenna modes are considered to be different. For example, the directions in which the beam energy of the antenna is concentrated can be 0 to 90 degrees, 90 degrees to 180 degrees, 180 degrees to 270 degrees, 270 degrees to 360 degrees, and 0 to 360 degrees, which means that there are 5 antenna modes that can be used for the antenna. Among them, the mode in which the beam energy covers 0 to 360 degrees is the omnidirectional mode.
[0046] It is noted that when the first communication device communicates with the second communication device, the number of antennas used may also be multiple, for example, there are two groups of antennas, and each group of antennas includes an omnidirectional mode and four directional modes. For example, the two groups of antennas theoretically have 25 antenna modes. In practical applications, the required antenna mode can be selected from the 25 antenna modes according to different usage scenarios, and the embodiments of the present application do not limit this. It is also noted that the above two groups of antennas and each group of antennas including four directional antenna modes are only an example, and may be other numbers, and the embodiments of the present application do not limit this.
[0047] When using the omnidirectional antenna mode, a larger range can be covered, but the transmission distance is limited. For example, when the second communication device 102 is far away from the network device 101 or there are obstacles, the signal energy received by the second communication device 102 is low, resulting in poor communication between the second communication device 102 and the first communication device 101. When using the directional antenna mode, the transmission distance can be increased, but due to the limited radiation range, if the second communication device 102 is outside the radiation range, good signal transmission will not be possible. Therefore, when the first communication device 101 sends data to the second communication device 102, how to select the best antenna mode from the omnidirectional antenna mode and the directional antenna mode to send data to the second communication device 102 so that the best signal transmission can be achieved between the first communication device 101 and the second communication device 102 is a very important issue.
[0048] At present, an antenna mode training algorithm can select the best antenna mode from the omnidirectional antenna mode and the directional antenna mode. The method is as follows: first, for each antenna mode in the omnidirectional antenna mode and the directional antenna mode, a downlink data packet is sent to the second communication device 102 based on at least one higher modulation and coding scheme (MCS), and then the packet error rate of the second communication device 102 under the at least one MCS in each antenna mode is obtained, and finally the antenna mode corresponding to the minimum packet error rate is used as the best antenna mode. Furthermore, after the best antenna mode is determined, if the second communication device 102 has a continuous decrease in physical throughput in this antenna mode, the antenna mode training algorithm reselects the best antenna mode.
[0049] However, in the existing antenna mode training algorithm, when the direction covered by the beam energy corresponding to the antenna mode used cannot cover the second communication device 102, if downlink data packets are sent to the second communication device 102 based on a higher MCS, it will cause continuous large-scale packet loss in the second communication device 102, causing service delays and freezes in the terminal device. In addition, when selecting the best antenna mode, the existing antenna mode training algorithm only uses the packet error rate to select the best antenna mode, and the judgment condition is relatively simple, resulting in a low accuracy rate for the selected best antenna mode. In addition, when determining whether to perform retraining, only the physical throughput of the second communication device 102 is used as the basis for judgment, and the judgment condition is relatively simple, resulting in a low accuracy rate for retraining.
[0050] In view of this, the present application provides a method for selecting an antenna mode. In the technical solution of the present application, a dominant antenna mode is screened out from all antenna modes based on the signal quality of the confirmation frame returned by the terminal device measured in each antenna mode. In addition, if the number of screened out dominant antenna modes is greater than 1, the screened out dominant antenna mode is further trained, and a multi-dimensional judgment based on signal quality is added during the training process to improve the accuracy of the best antenna mode finally selected. Furthermore, in the technical solution of the present application, when judging whether it is necessary to trigger the re-selection of the antenna mode, a multi-dimensional judgment based on signal quality is also added to improve the accuracy of judging whether it is necessary to trigger the re-selection of the antenna mode.
[0051] Figure 2 The following is a schematic flow chart of a method for selecting an antenna mode provided by an embodiment of the present application. Figure 2 As shown, the method of this embodiment may include S201, S202 and S203.
[0052] The antenna mode selection method can be Figure 1 The communication system shown in the figure is implemented by the first communication device 101. In this embodiment, the first communication device 101 can communicate with other communication devices through multiple antenna modes, and the multiple antenna modes include an omnidirectional antenna mode and multiple directional antenna modes.
[0053] S201, sending multiple packets to a second communication device.
[0054] Here, a packet refers to a data block in a communication system, and its specific description can refer to the relevant technical description.
[0055] For example, the plurality of packets may be physical layer convergence procedure protocol data units (PPDUs).
[0056] In this embodiment, the first communication device may use an omnidirectional antenna mode to send multiple packets to the second communication device.
[0057] It is understandable that when the first communication device sends multiple packets to the second communication device, if the first communication device uses an omnidirectional antenna mode, it can be ensured that the second communication device can receive multiple packets. Further, when using the omnidirectional antenna mode to send multiple packets, a higher MCS can also be used.
[0058] In this embodiment, the first communication device may also use a trained directional antenna pattern to send multiple packets to the second communication device, wherein the trained directional antenna pattern is a directional antenna pattern that can ensure that the second communication device can receive the multiple packets.
[0059] For example, the antenna of the first communication device includes four directional antenna modes and one omnidirectional antenna mode. It is assumed that the four directional antenna modes are respectively called antenna mode 1, antenna mode 2, antenna mode 3 and antenna mode 4. Among them, the coverage range of the beam energy represented by antenna mode 1 is 0 degrees to 90 degrees, the coverage range of the beam energy represented by antenna mode 2 is 90 degrees to 180 degrees, the coverage range of the beam energy represented by antenna mode 3 is 180 degrees to 270 degrees, the coverage range of the beam energy represented by antenna mode 4 is 270 degrees to 360 degrees, and the coverage range of the beam energy represented by the omnidirectional antenna mode is 0 to 360 degrees. At this time, if the second communication device is located within the range covered by the beam energy included in antenna mode 2, the first communication device can also use antenna mode 2 to send multiple packets to the second communication device.
[0060] It should be noted that this embodiment does not limit the number of multiple packets and the format of multiple packets, for example, it can be 100 PPDUs.
[0061] S202: In each of the multiple antenna modes, measure signal quality of a plurality of confirmation frames respectively responded to by the second communication device in response to the plurality of packets.
[0062] In this embodiment, in each of the multiple antenna modes, the signal quality of the confirmation frame is measured, and because the MCS of the confirmation frame is relatively low, even if the first communication device receives the confirmation frame using an antenna mode that does not match the second communication device, it can ensure that the confirmation frame is correctly decoded, thereby not affecting the communication between the first communication device and the second communication device. For a detailed description of the confirmation frame using a low-order MCS, reference can be made to the related technical description, which will not be repeated here.
[0063] It is understandable that when the first communication device sends a packet to the second communication device, if the second communication device receives the packet, the second communication device needs to return a confirmation frame to the first communication device to let the first communication device know that the second communication device has received the packet.
[0064] In this embodiment, the antenna in the first communication device includes multiple antenna modes, and for each antenna mode, it is necessary to meet the requirement of receiving at least one confirmation frame. Therefore, when the first communication device in this embodiment sends multiple packets, the number of the multiple packets sent needs to be at least equal to the number of antenna modes to be tested, so that when the second communication device receives the multiple packets and sends multiple confirmation frames in response to the multiple packets, it can ensure that each antenna mode in the multiple antenna modes receives at least one confirmation frame.
[0065] For example, the antenna of the first communication device includes one omnidirectional antenna mode and four directional antenna modes. When the first communication device sends multiple packets to the second communication device, the number of the multiple packets is 5. In this way, when the second communication device receives the five packets, it returns five corresponding confirmation frames to the first communication device. At this time, the first communication device can receive one confirmation frame in each antenna mode.
[0066] Still taking the example that the antenna of the first communication device includes one omnidirectional antenna mode and four directional antenna modes, when the first communication device sends multiple packets to the second communication device, the number of the multiple packets is 500. Thus, when the second communication device receives the 500 packets, it will return 500 corresponding confirmation frames to the first communication device. At this time, the first communication device can receive 100 confirmation frames in each antenna mode.
[0067] In this embodiment, there is no limitation on how the second communication device sends multiple confirmation frames corresponding to multiple packets to the first communication device.
[0068] For example, in one implementation, when the second communication device sends a confirmation frame to the first communication device, the second communication device may send a confirmation frame corresponding to each packet to the first communication device after receiving the packet.
[0069] For another example, in another implementation, when the second communication device sends a confirmation frame to the first communication device, after receiving a portion of packets, it may send a portion of confirmation frames corresponding to the portion of packets to the first communication device.
[0070] In this embodiment, the confirmation frame may be, for example, a block acknowledgement (BA) frame.
[0071] It can also be understood that each confirmation frame received by the first communication device has a corresponding signal quality, for example, the signal quality can be a received signal strength indication (RSSI) or a signal noise ratio (SNR), which is not limited in the embodiments of the present application. Therefore, for each antenna mode, when the confirmation frame sent by the second communication device is received, the signal quality of the confirmation frame included in the antenna mode can be obtained.
[0072] S203: Select a dominant antenna mode from the multiple antenna modes according to the signal quality corresponding to each antenna mode in the multiple antenna modes.
[0073] In this embodiment, for each antenna mode, after the signal quality of the included confirmation frame is obtained, the signal quality corresponding to each antenna mode can be determined based on the signal quality of the confirmation frame.
[0074] In one implementation, for each antenna mode, if the number of confirmation frames included is equal to 1, the signal quality of the confirmation frame can be used as the signal quality corresponding to the antenna mode. It is noted that using the signal quality of the confirmation frame as the signal quality corresponding to the antenna mode is only an example, and other methods can also be used, such as processing the signal quality of the confirmation frame and obtaining the value as the signal quality corresponding to the antenna mode, which is not limited in the embodiments of the present application.
[0075] In another implementation, for each antenna mode, if the number of confirmation frames included is multiple, after measuring the signal qualities corresponding to the multiple confirmation frames respectively, the average value of the signal qualities of the multiple confirmation frames can be used as the signal quality corresponding to the antenna mode.
[0076] For example, the first communication device includes one omnidirectional antenna mode and four directional antenna modes, and the four directional antennas are respectively referred to as antenna mode 1, antenna mode 2, antenna mode 3, and antenna mode 4. Assuming that the first communication device sends multiple packets to the second communication device using the omnidirectional antenna mode to send 100 PPDUs, then after receiving the 100 PPDUs, the second communication device will return 100 confirmation frames respectively responding to the 100 PPDUs to the first communication device. At this time, assuming that the number of confirmation frames received by each antenna mode in the first communication device is 20, that is, 20 confirmation frames are received in the omnidirectional antenna mode, 20 confirmation frames are received in antenna mode 1, 20 confirmation frames are received in antenna mode 2, 20 confirmation frames are received in antenna mode 3, and 20 confirmation frames are received in antenna mode 4. In this way, for each antenna mode, the average value of the signal quality of the 20 confirmation frames can be calculated as the signal quality corresponding to the antenna mode.
[0077] It is explained here that, for each antenna mode, the signal qualities of multiple confirmation frames are averaged to obtain the signal quality corresponding to each antenna mode. This is only one implementation method and other implementation methods may also be used. The embodiments of the present application do not limit this.
[0078] It can be understood that the signal quality corresponding to each antenna mode can reflect the communication status between the first communication device and the second communication device when the first communication device communicates with the second communication device through the antenna mode.
[0079] It can also be understood that each directional antenna pattern has a radiation range in a certain direction. If the second communication device is within the radiation range of that direction, the communication effect between the second communication device and the first communication device will be better, and the signal quality of the confirmation frame sent by the second communication device received by the first communication device will be greater. However, if the second communication device is not within the radiation range of that direction, for example, the direction where the second communication device is located is opposite to the direction of the directional antenna pattern (in this application, the directional antenna pattern in this direction is referred to as a reverse antenna pattern), then the signal quality of the confirmation frame sent by the second communication device received by the first communication device will be very small.
[0080] Therefore, in this embodiment, according to the signal quality corresponding to each antenna mode, an antenna mode with good signal quality can be selected to communicate with the second communication device. In this embodiment, the antenna mode with good signal quality is also called a dominant antenna mode.
[0081] The antenna mode selection method provided in the embodiment of the present application determines the dominant antenna mode according to the signal quality of the confirmation frame corresponding to each antenna mode. The lower the MCS, the easier it is for the communication device to correctly decode the packet sent with the MCS. Since the confirmation frame is usually sent with a lower MCS, if the second communication device successfully receives the packet sent by the first communication device, even if the signal quality of the confirmation frame received by the first communication device is reduced due to the antenna mode used, the first communication device can usually receive the confirmation frame of the packet. Therefore, the first communication device can determine whether the antenna mode it uses is appropriate based on the signal quality of the confirmation frame without affecting normal communication. The impact on the communication between the second communication device and the antenna mode when testing the antenna mode can be reduced.
[0082] Optionally, if the number of selected dominant antenna modes is 1, indicating that the dominant antenna mode is the best antenna mode, then the first communication device can communicate with the second communication device based on the dominant antenna mode. The process of the first communication device communicating with the second communication device can refer to the relevant technical description, which will not be repeated here.
[0083] Optionally, the multiple packets sent by the first communication device to the second communication device include multiple data frames, wherein relevant descriptions about the data frames can refer to relevant technical descriptions and are not repeated here.
[0084] As an optional embodiment, when the number of dominant antenna patterns is greater than 1, the method further includes: performing antenna training on the dominant antenna pattern to obtain an optimal antenna pattern; and communicating with the second communication device using the optimal antenna pattern.
[0085] In this method, since only the dominant antenna mode is trained during antenna training, that is, the reverse antenna mode has been screened out, packet loss in the second communication device can be avoided. In addition, since the dominant antenna mode is screened out based on signal quality, the training amount of the smart antenna algorithm is reduced, making the training process faster, reducing the time affecting the operation of other algorithms, and improving the overall efficiency of communication.
[0086] In one implementable manner, performing antenna training on a dominant antenna mode to obtain an optimal antenna mode may include: obtaining a physical throughput corresponding to each antenna mode in the dominant antenna mode; and selecting an optimal antenna mode from the dominant antenna mode according to the physical throughput, wherein a first physical throughput corresponding to the optimal antenna mode is a maximum physical throughput among all physical throughputs corresponding to the dominant antenna mode, and a difference between the first physical throughput and a second physical throughput when all physical throughputs are sorted in descending order is greater than or equal to a throughput threshold.
[0087] Among them, physical throughput refers to the amount of data sent and received by a node per unit time, which can be calculated by the formula PhyThrought = (1-PER) * PhyRate. Among them, PER represents the packet error rate, PhyRate represents the physical rate, and PhyThrought represents the physical throughput. It is noted here that the relevant description of the packet error rate and the physical rate refers to the relevant technical implementation, which will not be repeated here.
[0088] An implementation method for obtaining the physical throughput corresponding to each antenna mode is introduced below.
[0089] For each antenna mode in the dominant antenna mode, when the first communication device sends a data packet to the second communication device in this antenna mode, it can send a data packet to the second communication device based on different MCSs in this antenna mode, and then obtain a BA frame responded by the second communication device under different MCSs, and determine the corresponding physical throughput of the second communication device based on the BA frame.
[0090] For example, the first communication device sends data packets to the terminal device based on three different MCSs respectively. Assuming that 50 PPDUs are sent under each MCS, the second communication device will return a BA frame to the first communication device in response to the 50 PPDUs. Accordingly, for the first communication device, if a BA frame is received, the packet error rate when the first communication device and the second communication device communicate under the MCS can be obtained by counting the information carried by the received BA frame. Furthermore, the physical throughput of the second communication device under the MCS can be obtained based on the packet error rate. Among them, the implementation process of obtaining the packet error rate when the first communication device and the second communication device communicate under the MCS by counting the information carried by the received BA frame can refer to the relevant technical description, which will not be repeated here.
[0091] After obtaining the physical throughput corresponding to each MCS, the physical throughput corresponding to each MCS may be added to represent the physical throughput corresponding to the antenna mode.
[0092] It can be understood that after each antenna mode obtains the corresponding physical throughput, if the physical throughput is larger, it means that the antenna mode corresponding to the physical throughput is the best. In this embodiment, if the difference between the maximum physical throughput and the second physical throughput when all physical throughputs are sorted in descending order is greater than or equal to the set throughput threshold, the antenna mode is determined as the best antenna mode. For example, the throughput threshold is one tenth of the second physical throughput.
[0093] The antenna mode selection method provided in the embodiment of the present application selects the best antenna mode by obtaining the physical throughput corresponding to each antenna mode in the dominant antenna mode after determining the dominant antenna mode. In this technical solution, when selecting the best antenna mode by physical throughput, it is not only necessary to meet the maximum physical throughput, but also to meet the difference between the second physical throughput when all physical throughputs are sorted in descending order is greater than or equal to the throughput threshold, so as to ensure the accuracy of the best antenna mode selected by the physical throughput.
[0094] As an optional embodiment, the method also includes: obtaining the signal quality corresponding to each antenna mode in the dominant antenna mode; wherein, selecting the best antenna mode from the dominant antenna mode according to the physical throughput includes: selecting the best antenna mode from the dominant antenna mode according to the physical throughput and the signal quality, the signal quality corresponding to the best antenna mode being the maximum signal quality among all the signal qualities corresponding to the dominant antenna mode.
[0095] In this embodiment, after the dominant antenna mode is determined, in addition to the physical throughput corresponding to each antenna mode of the first communication device in the dominant antenna mode, the best antenna mode is determined in combination with the signal quality corresponding to each antenna mode.
[0096] Another implementation method for obtaining the signal quality corresponding to each antenna mode is introduced below.
[0097] For each antenna mode in the dominant antenna mode, when the first communication device sends a data packet to the second communication device in this antenna mode, it can send a data packet to the second communication device based on different MCSs in this antenna mode, and then obtain a BA frame in which the second communication device responds to the data packet under different MCSs, and determine the signal quality corresponding to the antenna mode based on the BA frame.
[0098] Take signal quality as RSSI as an example. The first communication device sends data packets to the second communication device based on three different MCSs. Assuming that 50 PPDUs are sent under each MCS, for the second communication device, without packet loss, the maximum number of packets received by the second communication device is 150, that is, the maximum number of BA frames returned by the second communication device to the first communication device under the three MCSs is 150. And each BA frame has a corresponding RSSI. Therefore, the first communication device can obtain the RSSI corresponding to the antenna mode through the RSSI of each BA frame received.
[0099] In an implementable manner, the first communication device may obtain the RSSI corresponding to the antenna mode by performing packet-by-packet filtering on the RSSI of each received BA frame. The specific implementation process may refer to the related technical description and will not be described in detail here.
[0100] It should be noted that obtaining the final RSSI corresponding to the antenna mode through the RSSI of each received BA frame is not limited to the above-mentioned packet-by-packet filtering method, and the embodiments of the present application do not limit this.
[0101] The antenna mode selection method provided in the embodiment of the present application, after determining the dominant antenna mode, in order to select the best antenna mode from the dominant antenna modes, not only the physical throughput corresponding to each antenna mode is used as an evaluation index, but also the signal quality corresponding to each antenna mode is combined to jointly select the best antenna mode. This method can improve the accuracy of selecting the best antenna mode. For example, the short movement of the second communication device will cause a large change in throughput. If only the physical throughput is used for evaluation, the best antenna mode at this time may change. If two evaluation indicators are used for selection, it will be more reliable.
[0102] As an optional embodiment, after determining the optimal antenna mode, the method also includes: if the signal quality of communication with the second communication device continuously decreases for t consecutive periods, and / or the physical throughput of communication with the second communication device continuously decreases for s consecutive periods, triggering antenna retraining, t and s are positive integers greater than or equal to 2.
[0103] It is understandable that after the best antenna mode is determined, the first communication device and the second communication device communicate based on the best antenna mode. However, in actual scenarios, the second communication device often moves. Then, when the second communication device moves to an area that is not radiated by the best antenna mode, if the best antenna mode is continued to be used to communicate with the second communication device, the second communication device will have poor communication. At this time, the antenna mode should be reselected to ensure that the second communication device does not have poor communication.
[0104] In this embodiment, after the optimal antenna mode is determined, when the first communication device and the second communication device communicate based on the antenna mode, if the physical throughput of the terminal device decreases for s consecutive periods, or if the measured signal quality and physical throughput continue to decrease under the optimal antenna mode, it means that the antenna mode may no longer be suitable for communication with the second communication device. In this case, the smart antenna should be triggered again for training.
[0105] As an example, the RSSI corresponding to the best antenna mode can be counted every 100 data packets in the best antenna mode, and the physical throughput corresponding to the best antenna mode can be counted every 300 data packets in the best antenna mode. When the RSSI corresponding to the best antenna mode drops three times in a row and the physical throughput drops once or the physical throughput of the second communication device drops three times in a row, the smart antenna retraining is triggered.
[0106] In this embodiment, compared with the prior art, in addition to physical throughput, signal quality is introduced when determining whether smart antenna retraining needs to be triggered. Therefore, whether smart antenna retraining needs to be triggered can be determined from multiple dimensions, thereby improving the accuracy of triggering smart antenna retraining.
[0107] For ease of understanding, the following is a statistical analysis of 100 BA frames corresponding to 100 PPDUs in one omnidirectional antenna mode, four directional antenna modes, and each antenna mode. Figure 3 A method for selecting an antenna mode according to another embodiment of the present application is described in detail. Figure 3 As shown, the method of this embodiment may include S301, S302, S303, S304 and S305. The antenna mode selection method may be Figure 1 The present invention is performed by a first communication device in the communication system shown.
[0108] S300, enter the training state.
[0109] S301, screening antenna modes to be trained based on RSSI of BA frames.
[0110] In this embodiment, 100 BA frames are counted for each antenna mode, and the average RSSI of the 100 BA frames is used as the signal quality of each antenna mode. The 100 BA frames of each antenna correspond to 100 PPDUs sent using the omnidirectional antenna mode.
[0111] As an example, the signal quality of each antenna mode may be calculated using the following formula.
[0112]
[0113] Where i represents the antenna mode; ppduNum[ant i ] represents the number of PPDUs counted when antenna mode is i, rssi[ant i ][j] represents the RSSI of the BA frame corresponding to the j-th PPDU sent when the antenna mode is i.
[0114] After finding the signal quality of each antenna mode, find the antenna mode with the highest signal quality, and merge all antenna modes with RSSI differences within 0.5 decibels (decibel, db) with the omnidirectional antenna mode to participate in the next round of training.
[0115] S302: Count the physical throughput of the screened antenna mode and the RSSI of the BA frame.
[0116] For example, for each of the screened antenna modes, three different MCSs can be trained. Under each MCS, 50 PPDUs are tested to calculate the physical throughput of the antenna mode under each MCS, and then the physical throughputs under all MCSs corresponding to the antenna mode are added together as the total physical throughput of the antenna mode. Similarly, according to the RSSI of all BA frames under all MCSs corresponding to the antenna mode, packet-by-packet processing is performed to obtain the final RSSI. The detailed implementation process can be described in the above-mentioned related embodiments and will not be repeated here.
[0117] S303, determine whether there is an antenna mode corresponding to the physical throughput and RSSI that are simultaneously maximum, or the maximum physical throughput is greater than 10% of the second largest physical throughput after all physical throughputs are arranged in order from large to small. If not, execute S304; if so, execute S305.
[0118] S304: Count the physical throughput of the screened antenna mode and the RSSI of the BA frame again, and make a new selection.
[0119] S305 , taking the antenna mode corresponding to the maximum physical throughput and RSSI at the same time, or the maximum physical throughput being greater than 10% of the second largest physical throughput after all physical throughputs are arranged in descending order as the best antenna mode.
[0120] In this embodiment, the basis for determining the best antenna mode includes two: one is that the physical throughput and RSSI are both maximum, and the other is that the maximum physical throughput is greater than 10% of the second largest physical throughput after all physical throughputs are arranged in descending order. The detailed implementation process of S303 to S305 can refer to the description of the above embodiment and will not be repeated here.
[0121] The antenna mode selection method provided in this embodiment can use the omnidirectional antenna mode to send data packets at a higher transmission rate when a dominant antenna mode is obtained, and can eliminate the reverse antenna mode at a very low cost, thereby ensuring that during the training process of the smart antenna, only the dominant antenna mode is trained when performing upgraded training.
[0122] Optionally, after S305 above, during the communication using the best antenna mode, it may be determined whether to trigger retraining by measuring the physical throughput corresponding to the best antenna mode and the RSSI of the BA frame.
[0123] For example, the RSSI of the BA frame can be counted once every 100 PPDUs, and the physical throughput can be calculated once every 300 PPDUs. The counted RSSI is compared with the previously recorded data. If the RSSI of the BA frame drops three times in a row and the physical throughput drops once, or the physical throughput drops three times in a row, retraining is triggered. The detailed implementation process of this step can be referred to the description of the above embodiment, which will not be repeated here.
[0124] Figure 4 A schematic diagram of the structure of an antenna mode selection device provided in one embodiment of the present application. Figure 4 The selection device shown can be used to execute the antenna mode selection method described in any one of the aforementioned embodiments.
[0125] like Figure 4 As shown, the antenna mode selection device 400 of this embodiment includes: a sending module 401, a measuring module 402 and a selecting module 403.
[0126] A sending module 401 is used to send multiple packets to a second communication device; a measuring module 402 is used to measure the signal quality of multiple confirmation frames of the second communication device in response to the multiple packets in each antenna mode among multiple antenna modes; a selecting module 403 is used to select a dominant antenna mode from multiple antenna modes based on the signal quality corresponding to each antenna mode among the multiple antenna modes.
[0127] As an example, the sending module 401 can be used to execute Figure 2 The step of sending multiple packets to the second communication device in the antenna mode selection method. For example, the sending module 401 is used to execute S201.
[0128] As another example, the selection module 403 may be used to perform Figure 2 The step of selecting a dominant antenna mode in the antenna mode selection method is as follows: For example, the selection module 403 is used to execute S203.
[0129] In a possible implementation, the sending module 401 is specifically configured to: send a plurality of packets to the second communication device in the omnidirectional antenna mode.
[0130] In one achievable manner, the plurality of packets include a plurality of data frames.
[0131] In an implementable manner, when the number of the dominant antenna modes is 1, the apparatus 400 further includes a communication module 404 for communicating with a second communication device using the dominant antenna mode as the optimal antenna mode.
[0132] In one implementable manner, when the number of dominant antenna modes is greater than 1, the apparatus 400 further includes: a training module 405 for performing antenna training on the dominant antenna mode to obtain an optimal antenna mode; and the communication module 404 is further used to communicate with a second communication device using the optimal antenna mode.
[0133] In one implementable manner, the training module 405 is specifically used to: obtain the physical throughput corresponding to each antenna mode in the dominant antenna mode; select the best antenna mode from the dominant antenna mode according to the physical throughput, wherein the first physical throughput corresponding to the best antenna mode is the maximum physical throughput among all physical throughputs corresponding to the dominant antenna mode, and the difference between the first physical throughput and the second physical throughput when all physical throughputs are sorted in order from large to small is greater than or equal to the throughput threshold.
[0134] In an implementable manner, the throughput threshold is one tenth of the second physical throughput.
[0135] In one implementable manner, the device 400 also includes: an acquisition module 406, used to obtain the signal quality corresponding to each antenna mode in the dominant antenna mode; the selection module 403 is also used to: select the best antenna mode from the dominant antenna mode based on the physical throughput and the signal quality, and the signal quality corresponding to the best antenna mode is the maximum signal quality among all signal qualities corresponding to the dominant antenna mode.
[0136] In one implementable manner, the apparatus 400 further includes: a trigger module 407: for triggering smart antenna retraining when communicating with a second communication device in an optimal antenna mode, if the signal quality of communication with the second communication device decreases continuously for t consecutive periods, and / or the physical throughput of communication with the second communication device decreases continuously for s consecutive periods, where t and s are positive integers greater than or equal to 2.
[0137] Figure 5 A schematic diagram of the structure of an antenna mode selection device provided in another embodiment of the present application. Figure 5 The device shown can be used to execute the antenna mode selection method described in any one of the aforementioned embodiments.
[0138] like Figure 5 As shown, the device 500 of this embodiment includes: a memory 501, a processor 502, a communication interface 503 and a bus 504. The memory 501, the processor 502 and the communication interface 503 are connected to each other through the bus 504.
[0139] The memory 501 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 501 may store a program. When the program stored in the memory 501 is executed by the processor 502, the processor 502 is used to execute the program. Figure 2 or Figure 3 The individual steps of the method are shown.
[0140] The processor 502 may be a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits for executing relevant programs to implement the present application. Figure 2 or Figure 3 The method shown.
[0141] The processor 502 may also be an integrated circuit chip having the ability to process signals. Figure 2 or Figure 3 Each step of the method can be completed by an integrated logic circuit of hardware in the processor 502 or an instruction in the form of software.
[0142] The processor 502 may also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0143] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501, and the processor 502 reads the information in the memory 501, and completes the functions required to be executed by the units included in the temperature measuring device of the present application in combination with its hardware. For example, it can execute Figure 2 or Figure 3 The various steps / functions of the illustrated embodiment.
[0144] The communication interface 503 may use, but is not limited to, a transceiver or other transceiver device to implement communication between the apparatus 500 and other devices or a communication network.
[0145] The bus 504 may include a path for transmitting information between various components of the device 500 (eg, the memory 501 , the processor 502 , and the communication interface 503 ).
[0146] It should be understood that the device 500 shown in the embodiment of the present application may be an electronic device, or may also be a chip configured in the electronic device.
[0147] It should be understood that the processor in the embodiment of the present application may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0148] It should also be understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0149] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). 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 contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0150] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0151] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0152] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0153] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0154] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0155] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0156] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0158] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.
[0159] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for selecting an antenna mode, characterized in that: Applied to a first communication device, the first communication device communicates with other communication devices through multiple antenna modes, the multiple antenna modes including an omnidirectional antenna mode and multiple directional antenna modes, the method comprising: sending a plurality of packets to a second communication device; measuring, in each of the plurality of antenna modes, signal qualities of a plurality of confirmation frames of the second communications device in response to the plurality of packets respectively; Selecting a dominant antenna mode from the multiple antenna modes according to a signal quality corresponding to each antenna mode in the multiple antenna modes; When the number of the dominant antenna modes is greater than 1, the method further includes: Performing antenna training on the advantageous antenna mode to obtain an optimal antenna mode; Communicating with the second communication device using the optimal antenna mode.
2. The method according to claim 1, characterized in that The sending of multiple packets to the second communication device comprises: A plurality of packets are transmitted to the second communication device in the omni-directional antenna mode.
3. The method according to claim 2, characterized in that The plurality of packets include a plurality of data frames.
4. The method according to claim 1, characterized in that When the number of the dominant antenna modes is 1, the method further includes: Communicate with the second communication device using the dominant antenna mode as the optimal antenna mode.
5. The method according to claim 1, characterized in that The performing antenna training on the dominant antenna mode to obtain the best antenna mode includes: Obtaining a physical throughput corresponding to each antenna mode in the dominant antenna mode; An optimal antenna mode is selected from the dominant antenna modes according to the physical throughput, wherein a first physical throughput corresponding to the optimal antenna mode is a maximum physical throughput among all physical throughputs corresponding to the dominant antenna mode, and a difference between the first physical throughput and a second physical throughput when all the physical throughputs are sorted in descending order is greater than or equal to a throughput threshold.
6. The method according to claim 5, characterized in that The throughput threshold is one tenth of the second physical throughput.
7. The method according to claim 5, characterized in that The method further comprises: Obtaining the signal quality corresponding to each antenna mode in the dominant antenna mode; The selecting the best antenna mode from the dominant antenna modes according to the physical throughput includes: An optimal antenna mode is selected from the dominant antenna modes according to the physical throughput and the signal quality, and the signal quality corresponding to the optimal antenna mode is the maximum signal quality among all signal qualities corresponding to the dominant antenna modes.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: After determining the optimal antenna mode, if the signal quality of communication with the second communication device decreases continuously for t consecutive periods, and / or the physical throughput of communication with the second communication device decreases continuously for s consecutive periods, antenna retraining is triggered, where t and s are positive integers greater than or equal to 2.
9. An antenna mode selection device, characterized in that: The apparatus comprises means for performing the method of any one of claims 1 to 8.
10. An antenna mode selection device, characterized in that: include: Memory and processor; The memory is used to store program instructions; The processor is used to call the program instructions in the memory to execute the antenna mode selection method according to any one of claims 1 to 8.
11. A computer readable medium, characterized in that The computer-readable medium stores a program code for computer execution, the program code including instructions for executing the method according to any one of claims 1 to 8.
12. A computer program product, comprising computer program code, characterized in that: When the computer program code is executed on a computer, the computer is caused to implement the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Updating a beam pattern table
CN104584325A
Antenna steering for an access point based upon control frames
US20050063343A1
Efficient search through an antenna-pattern group
US20190199423A1