System and method for positioning adjacent devices based on WiFi direct connection

The invention relates to a system for positioning adjacent devices based on WiFi direct connection, which operates in mobile equipment in compliance with a WiFi direction connection protocol. The system is used for searching adjacent devices which are in the same signal range as the mobile equipment and in compliance with the WiFi direct connection protocol, and acquiring WiFi signal strengths of the adjacent devices; collecting the WiFi signal strengths of the adjacent devices in the horizontal moving process of the mobile equipment, and calculating the distance values between the adjacent devices and the mobile equipment; calculating coordinate values of the adjacent devices and the average values thereof according to the distance values and the distance of the horizontal movement of the mobile equipment, and correcting the y coordinate values of the average values, and drawing a location distribution diagram. The invention further provides a method for positioning. Coordinate information of all target points which are in the same WiFi signal range as the mobile equipment can be calculated by using the system and the method provided by the invention without being interfered by WiFi signal blind spots.