主权项 |
1. An electronic device, comprising:
an antenna module provided for communicating with a wireless communication device; a direction detecting module electrically connected with the antenna module for detecting strength of N wireless signals that the antenna module received, respectively, from a first offset angle to N-th offset angle with respect to the wireless communication device to determine a directivity of the wireless communication device, wherein the directivity of the wireless communication device is a direction that the wireless communication device has a maximum receiving and transmitting signal strength and N is a positive integer larger than 1, and the difference of every two adjacent offset angles between the first offset angle and the N-th offset angle is (360/N) degrees: and a signal processing module electrically connected with the direction detecting module for comparing the offset angles corresponding to the strength of the N wireless signals at the directivity of the wireless communication device with a look-up table for obtaining an angle of the wireless communication device with respect to the electronic device; wherein the direction detecting module distributes each of the strength of the N wireless signals to K threshold ranges for forming a signal strength distribution and compares the signal strength distribution with the look-up table to determine the directivity of the wireless communication device in which K is a positive integer lager than 1. |