AODV (Adhoc On-Demand Distance Vector Routing) is a common technique to setup a routing path in a meth network with route requests and route replies, such as a Bluetooth network.
However, such mechanism may have some disadvantages. For example, the routing paths are established in a unidirectional manner such that an asymmetric link may exist between routers due to some factors such as different path loss or different transmitting powers of the routing paths.
Therefore, one objective of the present application is to provide a communication link checking method which can solve the asymmetric link issue.
Another one objective of the present application is to provide an electronic device applying a communication link checking method which can solve the asymmetric link issue.
One embodiment of the present application provides a communication link checking method, applied to check a communication link of a first electronic device, which comprises: (a) receiving a report message, wherein the report message comprises received strength information indicating a received signal strength of a request message received by a second electronic device and comprises wanted strength information provided by the second electronic device; and (b) determining a quality of the communication link according to the received strength information and the wanted strength information.
Another embodiment of the present application provides a communication link checking method, applied to check a communication link of a second electronic device, comprising: (a) generating and transmitting a report message to a first electronic device by the second electronic device, wherein the report message comprises received strength information indicating a received signal strength of a request message received by the second electronic device and comprises wanted strength information provided by the second electronic device provided by the second electronic device; and (b) determining a quality of the communication link according to the received strength information and the wanted strength information.
Still another embodiment of the present application provides a communication link checking method, applied to check a communication link of a first electronic device, which comprises: transmitting a plurality of test data units to a second electronic device by the first electronic device; receiving a receiving result of the test data units; and determining a quality of the communication link according to the receiving result.
Still another embodiment of the present application provides a communication link checking method, applied to check a communication link of a second electronic device, comprising: receiving a plurality of test data units from a first electronic device by the second electronic device; generating a receiving result of the test data units; and determining a quality of the communication link according to the receiving result.
The above-mentioned embodiments can be performed by a control circuit of an electronic device, which executes program codes stored in a storage device.
In view of above-mentioned embodiments, the quality of communication link can be checked, and proper communication links between routers can be selected according to the checking result. Accordingly, the conventional asymmetric link issue can be resolved.
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 following embodiments, each component can be implemented by hardware (e.g. an apparatus or a circuit) or hardware with software (e.g. a processor installed with at least one program). Also, the methods in following embodiments can be implemented by executing program code stored in a storage device. Besides, the terms “first” “second” . . . in following embodiments are only used to identify the two different components or different steps, but do not mean to limit the order thereof.
After receiving the request message RM, the second electronic device D_2 responds a report message PM to the first electronic device D_1. The report message PM comprises received strength information indicating a received signal strength of the request message RM and comprises wanted strength information provided by the second electronic device D_2. For example, the received signal strength of the report message RM received by the second electronic device D_2 is −80 dbm and the wanted strength information provided by the second electronic deviceD_2 indicates the second electronic deviceD_2 needs a received signal strength for at least −90 dbm. Please note, the report message PM can be further provided by another electronic device that can communicate with the second electronic device besides the second electronic device D_2.
Next, a quality of the communication link between the first electronic device D_1 and the second electronic device D_2 is determined according to at least one of: the transmitting power information, the received strength information and the wanted strength information. For example, if a difference between the transmitting power and the received signal strength is large, it means the path loss is high thus the communication link between the first electronic device D_1 and the second electronic device D_2 has a poor quality. Oppositely, if a difference between the transmitting power and the received signal strength is small, it means the path loss is low thus the communication link between the first electronic device D_1 and the second electronic device D_2 has a good quality. For another example, if a difference between the received signal strength and the wanted signal strength is large, it means the communication link is not ideal thus the communication link between the first electronic device D_1 and the second electronic device D_2 has a poor quality. Oppositely, if a difference between the received signal strength and the wanted signal strength is small, it means the communication link is more ideal thus the communication link between the first electronic device D_1 and the second electronic device D_2 has a good quality.
The above-mentioned steps can be performed by either the first electronic device D_1 or the second electronic device D_2. Also, the above-mentioned steps can be performed by an electronic device independent from the first electronic device D_1 and the second electronic device D_2. Moreover, in one embodiment, the second electronic device D_2 can initiatively transmit the report message PM to the second electronic device D_2 rather than responding to the request message RM.
In one embodiment, the first electronic device D_1 and the second electronic device D_2 are routers of a network. The network can be, for example, the above-mentioned mesh network, but can be any other kind of network as well. Furthermore, the first electronic device D_1 and the second electronic device D_2 can be provided in the same area (e.g. city, province, or country), but can be provided in different areas as well.
In one embodiment, the transmitter address data TA, the receiver address data RA, the transmit power data TP and the identifier data ID respectively occupies one byte of the request message RM, but not limited.
Please refer to
In one embodiment, the report message PM is a package. Also, the transmitter address data TA, the receiver address data RA, the identifier data ID, the received strength data RS and the wanted strength data WS respectively occupies one byte of the report message PM, but not limited.
Besides the above-mentioned embodiment of
For more detail, in the embodiment of
After that, the test data units TD_1 . . . TD_n are transmitted from the first electronic device D_1 to the second electronic device D_2. Next, the first electronic device D_1 sends a result request message RRM to the second electronic device D_2. Responding to the result request message RRM, the second electronic device D_2 sends at least one receiving result RR to the first electronic device D_1. Then, the quality of the communication link between the first electronic device D_1 and the second electronic device D_2 is determined according to the receiving result RR.
The above-mentioned quality determining step can be performed by either the first electronic device D_1 or the second electronic device D_2. Also, the quality determining step can be performed by an electronic device independent from the first electronic device D_1 and the second electronic device D_2. Moreover, in one embodiment, the second electronic device D_2 can initiatively transmit the receiving result RR to the second electronic device D_2, after receiving the test data units TD_1 . . . TD_n rather than responding to the result request message RRM.
In one embodiment, the test request message TR comprises information about a number of the test data units which will be transmitted (e.g. n test data units will be transmitted in the embodiment of
Also, in one embodiment, the receiving result RR comprises at least one of: a number of the test data units which are received, an average signal strength of the test data units and a frame error rate. Therefore, the quality of the communication link between the first device D_1 and the second device D_2 can be determined according to the receiving result RR. For example, if a difference between a number of the test data units which are transmitted and a number of the test data units which are received is large, it means the transmitted data is easily lost in this communication link, thus the communication link between the first electronic device D_1 and the second electronic device D_2 is determined as poor. Oppositely, if a difference between a number of the test data units which are transmitted and a number of the test data units which are received is large, it means the transmitted data is not easily lost in this communication link, thus the communication link between the first electronic device D_1 and the second electronic device D_2 is determined as good.
For another example, if the average signal strength of the test data units TD_1-TD_n is low or the frame error rate is high, the communication link between the first electronic device D_1 and the second electronic device D_2 is determined as poor. On the opposite, if the average signal strength of the test data units TD_1-TD_n is high or the frame error rate is low, the communication link between the first electronic device D_1 and the second electronic device D_2 is determined as good.
In the embodiments of
Therefore, in the embodiment of
After that, the test data units TD_1 . . . TD_n are transmitted from the first electronic device D_1 to the second electronic device D_2. Next, the first electronic device D_1 sends a result request message RRM to the first electronic device D_1. Responding to the result request message RRM, the second electronic device D_2 sends at least one receiving result RR to the first electronic device D_1. Then, the quality of the communication link between the first electronic device D_1 and the second electronic device D_2 is determined according to the receiving result RR.
The above-mentioned quality determining step can be performed by either the first electronic device D_1 or the second electronic device D_2. Also, the quality determining step can be performed by an electronic device independent from the first electronic device D_1 and the second electronic device D_2. Moreover, in one embodiment, the first electronic device D_1 can initiatively transmit the receiving result RR to the second electronic device D_2 rather than responding to the result request message RRM.
In one embodiment, the test request message TR comprises information about a number of the test data units which will be transmitted (e.g. n test data units will be transmitted in the embodiment of
In one embodiment, the first electronic device D_1 and the second electronic device D_2 in
Please note, the above-mentioned transmitting and receiving can mean directly or indirectly transmitting and receiving. Take
As illustrated in
Besides, the test data unit TD (i.e. the above-mentioned test data unit TD_1 . . . TD_2) comprises transmitter address data TA, receiver address data RA, transmit power data TP, transaction identifier data TI, and direction information data DI. The definitions of transmitter address data TA, receiver address data RA, and transaction identifier data TI have been explained in above-mentioned descriptions. The transmit power data TP indicates the power that the first electronic device D_1 applies to transmit the test data units TD_1 . . . TD_n. The order information data OI comprise above-mentioned order information indicating an order of the test data units.
Additionally, the result request message RRM comprises transmitter address data TA, receiver address data RA, transaction identifier data TI, which have been defined in above-mentioned descriptions.
Furthermore, the receiving result RR comprises transmitter address data TA, receiver address data RA, transaction identifier data TI, which have been defined in above-mentioned descriptions. Besides, the receiving result RR further comprises received number data RN, average strength data AS, and frame error rate data ER. The received number data RN indicates a number of the test data units which are received, the average strength data AS indicates an average signal strength of the test data units, and frame error rate data ER indicates the frame error rate.
It will be appreciated that the data structures illustrated in
The electronic device 700 can be integrated to the first electronic device D_1 or to the second electronic device D_2. Additionally, the electronic device 700 can be an electronic device which is independent from but can control the first electronic device D_1 and the second electronic device D_2.
In view of above-mentioned embodiments, the quality of communication link can be checked, and proper communication links between routers can be selected according to the checking result. Accordingly, the conventional asymmetric link issue can be resolved. However, please note the present application is not limited to solve the asymmetric link issue.
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.
This application claims the priority of U.S. Provisional Application No. 62/626,189, filed 2018 Feb. 5, and U.S. Provisional Application No. 62/633,701, filed 2018 Feb. 22 which are included herein by reference.
| Number | Date | Country | |
|---|---|---|---|
| 62626189 | Feb 2018 | US | |
| 62633701 | Feb 2018 | US |