1. Field of the Invention
The present invention relates to an access point, and more particularly, to a method of selecting at least an optimal antenna within an antenna module of an access point.
2. Description of the Prior Art
When an electronic device such as a laptop, smart phone or tablet connects to an access point having a plurality of antennas, the access point performs a training procedure for transmitting a plurality of training packets to the electronic device. According to the response of the electronic device to the plurality of training packets, the access point then determines an optimal antenna for the electronic device or an optimal directionality of the antenna which can achieve the best connection quality.
The quality of the connection between the electronic device and the access point may affect whether the transmission of the training packets succeeds and also affect whether the training procedure can be finished successfully. Specifically, when the connecting quality is good, the optimal antenna can be easily determined by the access point. When the connecting quality is poor, the time for the electronic device to receive the training packets is extended. While the transmitting speed of the training packets is fixed, the access point may send training packets without considering the quality of the connection environment. Therefore, when the connecting quality is poor and the number of packets is increased, the possibility of Transmitter time out is also increased, which might cause the training procedure cannot be finished and the failure of selection of an optimal antenna for the access point. In a worse situation, it may undermine transmission efficiency of the electronic device and success rate of data transmission.
One of the objectives of the present invention is therefore to provide a method of selecting one or one set of optimal antenna(s) in an antenna module of an access point, which can prevent the training procedure from being affected by poor connecting quality.
According to an embodiment of the present invention, an access point comprises an antenna module, a wireless network module and a processor, wherein when the access point connects with an electronic device and operates under a training stage for determining at least an optimal antenna for the electronic device, the processor determines quantity number of a plurality of training packets and a delay time between the plurality of training packets or a length of at least one of the plurality of training packets according to a connecting status between the access point and the electronic device, and sends the plurality of training packets to the electronic device via the wireless network module and the antenna module.
According to another embodiment of the present invention, an antenna selecting method for an access point is disclosed, wherein the access point comprises an antenna module, the antenna module comprises a plurality of antennas, and the antenna selecting method comprises: connecting with an electronic device, and operating under a training stage; determining a number of a plurality of training packets and a delay time between the plurality of training packets or a length of at least one of the plurality of training packets according to a connecting status between the access point and the electronic device; sending the plurality of training packets to the electronic device; and determining at least an optimal antenna for the electronic device according to a response of the electronic device corresponding to the plurality of training packets.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
In this embodiment, the conversion table 113 records Modulation and Coding Scheme (MCS) codes employed by the access point 110, a plurality of levels of the connecting strength corresponding to each of the MCS codes, and a number of a plurality of training packets corresponding to each level of the connecting strength, the delay time between the plurality of training packets corresponding to each level of the connecting strength, and the length of at least one of the plurality of training packets corresponding to each level of the connecting strength, wherein the content of the conversion table 113 is illustrated in table 1. It should be noted that the content of table 1 is only an illustration and not a limitation of the present invention.
In table 1, the connecting quality has n levels, wherein higher levels correspond to poorer connecting strength. Accompanying the decrease of the connecting strength, the number of the plurality of training packets becomes fewer, e.g. the connecting strength is proportional to the number of the plurality of training packets, and the delay time between two training packets becomes longer, and the length of the at least one of the training packet becomes shorter. In other words, the connecting strength can be inverse proportional to the length of the training packet. In table 1, S can be 10, X can be 2 micro seconds, C can be 2 micro seconds and K can be 1000 bytes approximately, but these values are only for illustrative purposes, and are not a limitation of the present invention.
In step 200, the access point 110 is waiting for connecting with a new electronic device, i.e. the access point 110 at this time has not yet connected with the electronic device 120. In step 202, the electronic device 120 connects with the access point 110, and performs a connection initialization operation, wherein the access point 110 sends a plurality of non-training packets to the electronic device 120, e.g. using a “Ping” (Packet InterNet Grope) command for transmitting an Internet Control Message Protocol (ICMP) packet. At this time, the wireless network module 114 of the access point 110 computes a temporary MCS code according to the response of the electronic device 120 for connecting and transmitting packets with the electronic device 120.
In step 204, the access point 110 starts a training stage to decide a set of optimal antennas for the electronic device 120. In step 206, the access point 110 switches the directionality of each antenna to choose one of the directional antennas from each antenna. In step 208, the access point 110 switches different MCS codes and uses the switched MCS code to perform training packet transmission with the electronic device 120 in the following steps. In step 210, the access point 110 reads the Received Signal Strength Indication (RSSI) of the received packet.
In step 212, the access point 110 starts the training packet sending procedure.
In step 304, the processor 112 configures the number of training packets which need to be sent during a specific time according to the number of training packets decided in step 302, and in step 306, the processor 112 starts sending a first training packet to the electronic device 120 according to the length of training packet decided in step 302. Next, in step 308, the processor 110 sends the next training packet to the electronic device 120 according to the delay time between two training packets according to step 302. In step 310, the processor 112 determines whether each of the training packets has been transmitted, i.e. whether the transmission of training packet stage is finished. If yes, the flow goes to step 312; otherwise, the flow goes back to step 308 to send the next training packet. In step 312, the processor determines if the transmission of training packets is finished successfully. If yes, the flow goes to step 214 shown in
In step 214, the processor 112 reads the responding packet sent back by the electronic device 120 corresponding to the training packet. This is because, when the electronic device 120 successfully receives a training packet, it immediately sends back a responding packet to the access point 110 to notify that the training packet is received. Therefore, the processor 112 reads the responding packet sent by the electronic device 120 in step 214, and computes the number of received responding packets.
In step 216, the processor 112 computes the actual connecting speed between the access point 110 and the electronic device 120 according to the number of received responding packets. Assume the access point 110 sends 10 packets to the electronic device 120, but the electronic device 120 only receives 5 training packets successfully, and therefore only sends 5 responding packets back to the access point 110. In this case, the actual connecting speed between the access point 110 and the electronic device 120 is half the predetermined connecting speed. That is, if the predetermined connecting speed is 975 Mbps, the actual connecting speed is 487.5 Mbps (975/2=487.5). It should be noted that the determined actual connecting speed in this step is for representing the transmitting quality of the current employing antenna. In other embodiments of the present invention, the actual connecting speed can be replaced with other similar meaningful indication/value, e.g. the success/failure rate of transmitted training packets.
In step 218, the processor 122 determines if each of the MCS codes has been selected successfully. If yes, the flow goes to step 220; otherwise, the flow goes back to step 208 to switch to other MCS codes which have not yet performed a training packet sending procedure.
In step 220, the processor 112 determines if each of the antennas has been selected successfully. If yes, the flow goes to step 222; otherwise, the flow goes back to step 206 to switch to other antennas which have not yet performed a training packet sending procedure.
In step 222, the processor 112 computes a set of optimal antennas for the electronic device 120 according to the RSSI obtained by each antenna in step 210 and the actual connecting speed obtained in step 216, and uses the determined set of optimal antenna as the following transmitting intermediary between the access point 110 and the electronic device 120.
As described by the flow shown in
It should be noted that, in the above explanation of
In another embodiment of the present invention, the steps 208 and 218 in
The access point 110 uses the MCS code for determining connecting status (level of connecting strength) in the abovementioned embodiments; however, in other embodiments of the present invention, the access point 110 can use any parameter to represent the connecting status. In particular, any parameter related to connecting strength, connecting speed and connecting quality can be used for determining the number of the plurality of training packets, the delay time between the plurality of training packets and/or the length of the at least one of the plurality of training packets.
In addition, although the explanations in
Summarizing the present invention, in the access point, the packet number of a plurality of training packets, the delay time between the plurality of training packets and the length of the at least one of the plurality of training packets can be adjusted dynamically during the training stage according to a current connecting quality in order to determine an optimal antenna for transmission.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
104105390 | Feb 2015 | TW | national |