Patent ID: 9622065
Date: 2017-04-11
CPC Classifications: H04B,H04W

Claim:
1. A method for searching for a device, comprising: transmitting a ranging signal by a terminal device to the outside; receiving pieces of feedback information provided by nearby devices in response to the ranging signal by the terminal device; generating a searching result list according to the feedback information by the terminal device; for each of the pieces of feedback information, acquiring a distance value between the terminal device and a corresponding one of the nearby devices according to a transmitting time at which the ranging signal is transmitted and a receiving time at which the feedback information is received; arranging all distance values in an ascending order; arranging all the nearby devices of the searching result list in an ascending order of the distances between the terminal device and the nearby devices according to an arrangement order of all the distance values; and displaying the searching result list on the terminal device; wherein the step of transmitting a ranging signal by a terminal device to the outside comprises: transmitting an electromagnetic wave by the terminal device to the outside; wherein the step of each of the pieces of feedback information, acquiring the distance value between the terminal device and the corresponding one of the nearby devices according to the transmitting time at which the ranging signal is transmitted and the receiving time at which the feedback information is received, comprises: each time one of the pieces of feedback information is received, acquiring the distance value between the terminal device and a nearby device corresponding to the piece of feedback information by the terminal device according to the receiving time of the piece of feedback information; and the step of arranging all distance values in an ascending order, comprises: each time the distance value between the terminal device and one of the nearby devices is acquired, comparing the acquired distance value with other distance values and re-arranging all the distance values in an ascending order according to the comparison result by the terminal device.