Method and device for locating ap
暂无分享,去创建一个
Embodiments of the present invention provide a method for locating an AP. The method comprises: acquiring a pre-established AP fingerprint library, wherein the AP fingerprint library comprises multiple AP fingerprints obtained at multiple measuring points, and each AP fingerprint comprises location information of the corresponding measuring point, a MAC address of the AP, and the signal strength of the AP; searching in the AP fingerprint library for multiple AP fingerprints that have the same MAC address as an AP to be located; calculating the gradient size and the gradient direction of each found AP fingerprint according to the location information of the corresponding measuring point and the signal strength of each found AP fingerprint; and determining the horizontal location of the AP according to the gradient size and the gradient direction of each AP fingerprint. The embodiments of the present invention also provide a device for locating an AP. By means of the present invention, the precision of AP locating can be improved.