WO2015074368A1 - 一种搜索设备的方法及终端设备 - Google Patents

一种搜索设备的方法及终端设备 Download PDF

Info

Publication number
WO2015074368A1
WO2015074368A1 PCT/CN2014/075072 CN2014075072W WO2015074368A1 WO 2015074368 A1 WO2015074368 A1 WO 2015074368A1 CN 2014075072 W CN2014075072 W CN 2014075072W WO 2015074368 A1 WO2015074368 A1 WO 2015074368A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
feedback information
order
search result
result list
Prior art date
Application number
PCT/CN2014/075072
Other languages
English (en)
French (fr)
Inventor
谢芳
Original Assignee
惠州Tcl移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Priority to EP14812701.2A priority Critical patent/EP3073644A4/en
Priority to US14/437,560 priority patent/US9622065B2/en
Publication of WO2015074368A1 publication Critical patent/WO2015074368A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/02Diversity systems; Multi-antenna system, i.e. transmission or reception using multiple antennas
    • H04B7/022Site diversity; Macro-diversity
    • H04B7/026Co-operative diversity, e.g. using fixed or mobile stations as relays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and a terminal device for searching for a device.
  • the step of the terminal device acquiring the distance value between the neighboring devices corresponding to each feedback information according to the sending time of the ranging signal and the receiving time of the feedback information includes: after receiving the feedback information, the terminal device Obtaining a distance value between the nearby devices corresponding to the feedback information according to the receiving time of the feedback information; and the step of arranging all the distance values in order from small to large includes: the terminal device acquires the terminal device and one nearby After the distance value between the devices, a distance value obtained is compared with other distance values, and all distance values are rearranged in order from small to large according to the comparison result.
  • another technical solution adopted by the present invention is to provide a method for searching for a device, including: the terminal device sends out a ranging signal; the terminal device receives feedback information of a nearby device in response to the ranging signal; The feedback information generates a search result list, and all nearby devices in the search result list are arranged in order from the nearest terminal device; the terminal device displays the search result list.
  • the step of arranging all nearby devices in the search result list in order from the near end to the far end device includes: the terminal device acquiring the terminal device and each feedback information according to the sending time of the ranging signal and the receiving time of the feedback information.
  • the step of the terminal device acquiring the distance value between the neighboring devices corresponding to each feedback information according to the sending time of the ranging signal and the receiving time of the feedback information includes: after receiving the feedback information, the terminal device Obtaining a distance value between the nearby devices corresponding to the feedback information according to the receiving time of the feedback information; and the step of arranging all the distance values in order from small to large includes: the terminal device acquires the terminal device and one nearby After the distance value between the devices, a distance value obtained is compared with other distance values, and all distance values are rearranged in order from small to large according to the comparison result.
  • the step of arranging all nearby devices in the search result list in order from the near end to the far end device includes: the terminal device according to the chronological order of receiving all the feedback information, correspondingly all the nearby devices in the search result list according to the corresponding The chronological order is arranged such that all nearby devices in the search result list are arranged in order from the nearest terminal to the terminal device.
  • the step of the terminal device transmitting the ranging signal includes: the terminal device sends out the ranging electromagnetic wave outward.
  • a terminal device including a sending module, for transmitting a ranging signal outward; and a receiving module, configured to receive feedback information of a nearby device in response to the ranging signal. And a generating module, configured to generate a search result list according to the feedback information, and arrange all nearby devices in the search result list according to a distance from the terminal device in a short-to-far order; and a display module, configured to display the search result list.
  • the generating module includes: an obtaining unit, configured to acquire a distance value between the neighboring devices corresponding to each feedback information of the terminal device according to the sending time of the ranging signal and the receiving time of the feedback information; and the sorting unit is configured to: The distance values are arranged in ascending order, and all nearby devices in the search result list are arranged in order from the near end to the far end according to the order of all distance values.
  • the obtaining unit is configured to acquire a distance value between the neighboring device and the nearby device corresponding to the feedback information, according to a receiving time of the feedback information, after the receiving module receives the feedback information; the sorting unit is used in the acquiring unit. After obtaining the distance value between the terminal device and a nearby device, a distance value obtained is compared with other distance values, and all distance values are rearranged in order from small to large according to the comparison result.
  • the generating module is configured to arrange all nearby devices in the search result list according to the chronological order according to the chronological order of receiving all the feedback information, so that all nearby devices in the search result list are in close proximity to the terminal device. The order is arranged.
  • the sending module is configured to send a ranging electromagnetic wave outward.
  • the invention has the beneficial effects that, in the method of the search device of the present invention, the terminal device sends out a ranging signal to generate a search result according to the feedback information fed back by the nearby device in response to the ranging signal.
  • FIG. 1 is a flow chart of an embodiment of a method for searching for a device according to the present invention
  • FIG. 2 is a flow chart of the method for searching for a device in FIG. 1 , in which all nearby devices in the search result list are arranged in order from the near end to the far end;
  • FIG. 3 is a schematic structural diagram of an embodiment of a terminal device according to the present invention.
  • the device searched for is a Bluetooth device
  • the terminal device is also a Bluetooth device.
  • a Bluetooth call request is first initiated to find an available Bluetooth device, and the terminal device continuously displays the Bluetooth device it searches for to the user during the searching process, and the user can Find the Bluetooth device that needs to establish a connection among all the Bluetooth devices found.
  • the WIFI device may also be searched, that is, the terminal device sends a WIFI connection request, and performs data transmission in the WIFI manner.
  • the user can quickly find the Bluetooth device he needs.
  • the method for searching for a device includes the following steps:
  • Step S101 The terminal device sends a ranging signal to the outside.
  • Electromagnetic wave ranging electromagnetic Distance The measurement is a method of measuring the distance by using electromagnetic waves as a carrier wave, which is modulated by one end of the measurement line and reflected or transferred back by the other end, by measuring the time between the transmitted wave and the echo.
  • the terminal device issues a Bluetooth call request, the ranging electromagnetic wave signal is also sent out.
  • Step S102 The terminal device receives feedback information of the nearby device response ranging signal.
  • a nearby device refers to an available Bluetooth device within the maximum transmission distance of the terminal device.
  • the nearby device receives the electromagnetic wave and reflects or transfers the electromagnetic wave back to the terminal device.
  • the electromagnetic wave that the nearby device feeds back to the terminal device carries the device information of the nearby device, such as the MAC address. And the device name, etc., to enable the terminal device to distinguish which feedback information the received feedback information is from.
  • Step S103 The terminal device generates a search result list according to the feedback information, and arranges all nearby devices in the search result list in order from the nearest terminal device.
  • Step S104 The terminal device displays a search result list.
  • the terminal device displays a list of search results to the user to display the searched nearby devices to the user.
  • the Bluetooth function is generally used for short-distance transmission. Therefore, when a user transmits data to other devices through the Bluetooth function, the target device to be connected is usually in the vicinity of the user and is closer to the user. Therefore, the present embodiment can enable the user to quickly find the target device to be connected by arranging all the devices in the vicinity according to the distance from the terminal device in the order of the distance from the terminal device, and displaying the arrangement result in the form of a list to the user. . In general, the top three digits in the search results list will usually contain the target device that the user wants to connect to.
  • all nearby devices are arranged in order from near to far according to the distance between the terminal device and nearby devices.
  • the specific steps of arranging all nearby devices in the search result list in order from the farthest to the farthest are:
  • Step S201 The terminal device acquires a distance value between the neighboring devices corresponding to each of the feedback information by the terminal device according to the sending time of the ranging signal and the receiving time of the feedback information.
  • the terminal device After the terminal device sends out the ranging electromagnetic wave signal, the terminal device receives feedback information of the nearby device in response to the ranging electromagnetic wave signal.
  • the terminal device calculates the time interval between the two according to the time of issuance of the ranging electromagnetic wave signal and the receiving time of each feedback information, thereby respectively calculating the distance value between the nearby devices corresponding to each feedback information.
  • Step S202 Arranging all distance values in ascending order.
  • Step S203 Arrange all the nearby devices in the search result list in order from the nearest terminal to the far terminal according to the arrangement order of all the distance values.
  • the feedback information returned by the nearby device will carry the device information.
  • the terminal device extracts the device identifier from the received feedback information, and synchronizes each acquired distance value with a corresponding device identifier.
  • the following program can be used:
  • the pAMC address is used to record the MAC address of a nearby device. This information can be used as an identifier to identify a nearby device.
  • Distance is the distance between nearby devices and terminal devices, and pName is used to record the names of nearby devices.
  • Each distance value has a one-to-one correspondence with the corresponding nearby devices, and the nearby devices corresponding to each distance value can be identified according to the calculated distance value. Therefore, according to the arrangement order of all the distance values, all the nearby devices in the search result list are also arranged correspondingly, so that the nearby devices can be arranged in order from the farthest to the farthest from the terminal device.
  • the smallest distance value is arranged in the first place, and the largest distance value is arranged in the last bit, and correspondingly, the nearby device corresponding to the minimum distance value is also arranged in the first place in the search result list, and Nearby devices corresponding to the largest distance value are also ranked last in the search result list.
  • the nearby device searched for the first time is displayed to the user in real time.
  • the distance value between the neighboring devices corresponding to the feedback information of the terminal device is obtained according to the receiving time of the feedback information. That is, the terminal device does not wait until all the feedback information is received to calculate the distance value, but calculates the distance value every time a feedback information is received.
  • the distance value obtained is compared with other distance values, and all the distance values are rearranged in order from small to large according to the comparison result. .
  • the terminal device After receiving the feedback information at the first time, the terminal device calculates the distance value according to the receiving time of the feedback signal and the sending time of the ranging signal, and then compares the distance value with other distance values, according to The comparison results rearrange all distance values so that all nearby devices in the search results list are also rearranged according to the new order of all distance values.
  • a new device sends feedback information to the terminal device, and the terminal device calculates a distance value between the new device and the terminal device according to the feedback information, and compares the distance value with other distance values. Compare to re-arrange all distance values including the distance between the new device and the terminal device in ascending order, so that all nearby devices including the new device in the search result list Rearrange them in order from near to far and display a new list of search results.
  • the terminal device calculates a distance value between the new device and the terminal device, and compares the calculated distance value with other distance values to rearrange all distance values.
  • the order in which the order of all nearby devices in the search result list is also rearranged.
  • the terminal device displays the rearranged search result list to the user.
  • the search result list may be updated after a certain time interval (for example, 0.2 seconds), and the search result list that will be rearranged after detecting that the search result list has been rearranged. Display, if the list of detected search results is not updated, the original search result list is displayed.
  • the order of all the devices of the search result list also changes, and the terminal device can display the searched device to the user at the first time, so that the user can quickly find it.
  • the target device is required, and the accuracy can be improved by calculating the distance value between the terminal device and the nearby device to arrange nearby devices in order from near to far.
  • all nearby devices in the search result list may be arranged according to the chronological order of receiving the feedback information, so that all nearby devices in the search result list are in close proximity to the terminal device. Arrange in a far order. Generally, the closer the distance is, the faster the terminal device receives the feedback information.
  • the terminal device sequentially sorts the corresponding devices according to the chronological order in which the feedback information is received. Specifically, after receiving the first feedback information at the first time, the terminal device only appears one searched device in the search result list, that is, the device corresponding to the feedback information, and the device corresponding to the feedback information is arranged. In the first place in the search result list, the terminal device displays the search result list.
  • the terminal device when the terminal device needs to perform Bluetooth communication with other devices, the target Bluetooth device that needs to establish a connection can be quickly found.
  • the terminal device includes a sending module 301, a receiving module 302, a generating module 303, and a display module 304.
  • the sending module 301 is configured to send a ranging signal to the outside.
  • the ranging signal may be a ranging electromagnetic wave, and may of course be other wireless signals.
  • the receiving module 302 receives feedback information of the nearby device 305 in response to the ranging signal, where the feedback information carries device information of the corresponding device, such as a MAC address, etc., so that the terminal device can identify which nearby device the received feedback information is from.
  • the generating module 303 is configured to generate a search result list according to the feedback information, and arrange all nearby devices in the search result list in order from the near end to the far end device.
  • the display module 304 is configured to display the search result list.

Abstract

本发明公开了一种搜索设备的方法及终端设备,所述方法包括:终端设备向外发出测距信号,所述终端设备接收附近设备响应所述测距信号的反馈信息;所述终端设备根据所述反馈信息生成搜索结果列表,并将所述搜索结果列表中的所有所述附近设备按照距离所述终端设备由近到远的顺序进行排列;所述终端设备显示所述搜索结果列表。通过上述方式,本发明能够使用户快速找到所需建立连接的目标设备。

Description

一种搜索设备的方法及终端设备
【技术领域】
本发明涉及通信技术领域,特别是涉及一种搜索设备的方法及终端设备。
【背景技术】
相较于传统的有线电连接,蓝牙和WIFI能够实现电子装置之间的无线连接,省去了传统的电线,可随时随地进行信息共享,更方便使用。因此,蓝牙和WIFI功能也成为绝大部分终端设备必不可少的配置,以满足消费者的需求。
无论是蓝牙还是WIFI,其在进行无线连接时均需要搜索可用设备,发出连接请求,待对方同意连接请求后才能够进行信息传输。通常的class2的蓝牙传输距离为10米,class1的蓝牙传输距离可达100米,而WIFI的传输距离按照发射功率的不同而不同,一般为20-300米的传输距离。因此,当蓝牙或WIFI发出连接请求时,会将在其最大传输距离的搜索半径内的所有可用设备都显示出来,尤其是在小区楼宇密集区域或人员密集区域,所搜索到的设备更是数不胜数,如此一来,使得用户难以在众多的设备中找到其需要建立连接的设备。
【发明内容】
本发明主要解决的技术问题是提供一种搜索设备的方法及终端设备,能够使用户快速找到所需建立连接的目标设备。
为解决上述技术问题,本发明采用的一个技术方案是:提供一种搜索设备的方法,包括终端设备向外发出测距信号;终端设备接收附近设备响应测距信号的反馈信息;终端设备根据反馈信息生成搜索结果列表;终端设备根据测距信号的发出时间和反馈信息的接收时间获取终端设备与每个反馈信息相对应的附近设备之间的距离值;将所有距离值按照从小到大的顺序进行排列;根据所有距离值的排列顺序,将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列;终端设备显示搜索结果列表;其中,终端设备向外发出测距信号的步骤包括:终端设备向外发出测距电磁波。
其中,终端设备根据测距信号的发出时间和反馈信息的接收时间获取终端设备与每个反馈信息相对应的附近设备之间的距离值的步骤包括:终端设备每接收到一个反馈信息后,即根据一个反馈信息的接收时间获取终端设备与反馈信息相对应的附近设备之间的距离值;将所有距离值按照从小到大的顺序进行排列的步骤包括:终端设备每获取终端设备与一台附近设备之间的距离值后,即将所获取的一个距离值与其他距离值进行比较,并根据比较结果将所有距离值按照从小到大的顺序重新排列。
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种搜索设备的方法,包括终端设备向外发出测距信号;终端设备接收附近设备响应测距信号的反馈信息;终端设备根据反馈信息生成搜索结果列表,并将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列;终端设备显示搜索结果列表。
其中,将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列的步骤包括:终端设备根据测距信号的发出时间和反馈信息的接收时间获取终端设备与每个反馈信息相对应的附近设备之间的距离值;将所有距离值按照从小到大的顺序进行排列;根据所有距离值的排列顺序,将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列。
其中,终端设备根据测距信号的发出时间和反馈信息的接收时间获取终端设备与每个反馈信息相对应的附近设备之间的距离值的步骤包括:终端设备每接收到一个反馈信息后,即根据一个反馈信息的接收时间获取终端设备与反馈信息相对应的附近设备之间的距离值;将所有距离值按照从小到大的顺序进行排列的步骤包括:终端设备每获取终端设备与一台附近设备之间的距离值后,即将所获取的一个距离值与其他距离值进行比较,并根据比较结果将所有距离值按照从小到大的顺序重新排列。
其中,将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列的步骤包括:终端设备根据接收所有反馈信息的时间先后顺序,将搜索结果列表中的所有附近设备按照对应时间先后顺序进行排列,以使搜索结果列表中所有附近设备按照距离终端设备由近到远的顺序进行排列。
其中,终端设备向外发出测距信号的步骤包括:终端设备向外发出测距电磁波。
为解决上述技术问题,本发明采用的又一个技术方案是:提供一种终端设备,包括发送模块,用于向外发出测距信号;接收模块,用于接收附近设备响应测距信号的反馈信息;生成模块,用于根据反馈信息生成搜索结果列表,并将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列;显示模块,用于显示搜索结果列表。
其中,生成模块包括:获取单元,用于根据测距信号的发出时间和反馈信息的接收时间获取终端设备与每个反馈信息相对应的附近设备之间的距离值;排序单元,用于将所有距离值按照从小到大的顺序进行排列,并根据所有距离值的排列顺序,将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列。
其中,获取单元用于在接收模块每接收到一个反馈信息后,即根据一个反馈信息的接收时间获取终端设备与反馈信息相对应的附近设备之间的距离值;排序单元用于在获取单元每获取终端设备与一台附近设备之间的距离值后,即将所获取的一个距离值与其他距离值进行比较,并根据比较结果将所有距离值按照从小到大的顺序重新排列。
其中,生成模块用于根据接收所有反馈信息的时间先后顺序,将搜索结果列表中的所有附近设备按照对应时间先后顺序进行排列,以使搜索结果列表中所有附近设备按照距离终端设备由近到远的顺序进行排列。
其中,发送模块用于向外发出测距电磁波。
本发明的有益效果是:区别于现有技术的情况,本发明的搜索设备的方法中,终端设备向外发出测距信号,根据附近设备响应该测距信号而反馈回来的反馈信息生成搜索结果列表,并将搜索结果列表中的所有设备按照距离终端设备由近到远的顺序进行排列,并显示给用户,由此能够使用户快速找到与其靠近的设备,进而快速找到所需要建立连接的目标设备。
【附图说明】
图1是本发明搜索设备的方法一实施方式的流程图;
图2是图1搜索设备的方法中,将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列的流程图;
图3是本发明终端设备一实施方式的结构示意图。
【具体实施方式】
下面将结合附图和实施方式对本发明进行详细的说明。
参阅图1,本发明搜索设备的方法的一实施方式中,所搜索的设备为蓝牙设备,终端设备也为蓝牙设备。当终端设备需要与其他设备通过蓝牙进行数据传输时,首先会发起蓝牙呼叫请求,以寻找可用的蓝牙设备,终端设备在寻找过程中不断将其所搜索到的蓝牙设备显示给用户,用户可从所搜索到的所有蓝牙设备中找到所需要建立连接的蓝牙设备。当然,在其他实施方式中,也可以是搜索WIFI设备,即终端设备发出的是WIFI连接请求,以WIFI方式进行数据传输。通过本实施方式,能够使用户快速找到其所需的蓝牙设备。具体地,搜索设备的方法包括如下步骤:
步骤S101:终端设备向外发出测距信号。
测量距离的方法有多种,例如激光测距或无线电磁波测距等。本实施方式采用常用的电磁波测距方法测量终端设备与附近设备之间的距离。电磁波测距(electromagnetic distance measurement)是利用电磁波作为载波,经调制后由测线一端发射出去,由另一端反射或转送回来,通过测定发射波与回波相隔的时间,以测量距离的方法。当终端设备发出蓝牙呼叫请求的同时,也向外发出测距电磁波信号。
步骤S102:终端设备接收附近设备响应测距信号的反馈信息。
附近设备是指在终端设备的最大传输距离内的可用蓝牙设备。当终端设备向外发出测距电磁波信号时,其附近设备接收到电磁波后将电磁波反射或转送回去给终端设备,其中附近设备反馈给终端设备的电磁波中携带有附近设备的设备信息,例如MAC地址和设备名称等,以使终端设备能够区分所接收到的反馈信息是来自哪一台设备的反馈信息。
步骤S103:终端设备根据反馈信息生成搜索结果列表,并将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列。
终端设备根据所接收到的反馈信息生成搜索结果,将所搜索到的所有设备记录在一个列表中,例如该列表可以是通过记录所搜索到的每台设备的设备名称以形成搜索结果列表,并将搜索结果列表中的所有设备按照距离终端设备由近到远的顺序进行排列,即将距离终端设备最近的附近设备排列在搜索结果列表中的第一位,然后根据距离的近到远依次排列其他设备。
步骤S104:终端设备显示搜索结果列表。
终端设备向用户显示搜索结果列表,以向用户显示所搜索到的附近设备。蓝牙功能一般都是进行短距离传输,因此当用户通过蓝牙功能与其他设备进行数据传输时,其所需要连接的目标设备通常都是在用户附近,距离用户较近。因此,本实施方式通过将所搜索到的附近所有设备按照距离终端设备由近到远的顺序进行排列,并将排列结果以列表形式显示给用户,从而能够使用户快速找到所需要连接的目标设备。一般而言,位于搜索结果列表的前三位通常会包含有用户所需连接的目标设备。
更具体地,参阅图2,本实施方式中,根据终端设备与附近设备之间的距离以将所有附近设备按照由近到远的顺序排列。将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列的具体步骤包括:
步骤S201:终端设备根据所述测距信号的发出时间和所述反馈信息的接收时间获取所述终端设备与每个所述反馈信息相对应的附近设备之间的距离值。
终端设备向外发出测距电磁波信号后,接收附近设备响应测距电磁波信号的反馈信息。终端设备根据测距电磁波信号的发出时间和每一个反馈信息的接收时间,计算出两者的时间间隔,从而分别计算出终端设备与每个反馈信息相对应的附近设备之间的距离值。
步骤S202:将所有距离值按照从小到大的顺序进行排列。
步骤S203:根据所有距离值的排列顺序,将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列。
附近设备反馈回来的反馈信息中,会携带有设备信息。终端设备从接收到的反馈信息中提取出设备标识,并将所获取的每个距离值与相对应的设备标识同步起来。例如,可以采用如下程序实现:
Typedef
{
*pMAC,
Int Distance,
*pName,
……
} BTdevice;
其中,pAMC地址用于记录附近设备的MAC地址,这一信息可以作为识别一台附近设备的标识。Distance是附近设备与终端设备之间的距离,pName用于记录附近设备的名称。每个距离值与其相对应的附近设备是一一对应关系,根据所计算出的距离值能够识别出每个距离值对应的附近设备。因此,根据所有距离值的排列顺序,将搜索结果列表中的所有附近设备也进行相应排列,从而能够实现使附近设备按照距离终端设备由近到远的顺序进行排列。例如,最小的距离值排列在第一位,最大的距离值排列在最后一位,对应地,将与该最小的距离值相对应的附近设备也排列在搜索结果列表中的第一位,而与最大的距离值相对应的附近设备也排列在搜索结果列表中的最后一位。
此外,为了提高用户体验,加快显示速度,以使用户能够在第一时间找到其所需要建立连接的目标设备,进一步地,本实施方式中,将第一时间搜索到的附近设备实时显示给用户。具体地,终端设备每接收到一个反馈信息后,即根据一个反馈信息的接收时间获取终端设备与该反馈信息相对应的附近设备之间的距离值。即终端设备并非是等到接收完所有的反馈信息后才计算距离值,而是每接收到一个反馈信息即进行距离值的计算。并且,终端设备每获取终端设备与一台附近设备之间的距离值后,即将所获取的一个距离值与其他距离值进行比较,并根据比较结果将所有距离值按照从小到大的顺序重新排列。
通过上述方式,终端设备在第一时间接收到一个反馈信息后,即根据该反馈信号的接收时间和测距信号的发出时间计算距离值,然后将该距离值与其他距离值进行比较大小,根据比较结果将所有距离值重新排列,从而使得搜索结果列表中的所有附近设备也根据所有距离值的新的排列顺序进行重新排列。一旦搜索到新的设备时,即有新的设备向终端设备发送反馈信息,终端设备即根据其反馈信息计算出新的设备与终端设备之间的距离值,并将该距离值与其他距离值进行比较,以将包括新的设备与终端设备之间的距离值在内的所有距离值按照从小到大的顺序重新进行排列,从而使搜索结果列表中的包括新的设备在内的所有附近设备按照由近到远的顺序重新排列,并显示新的搜索结果列表。
因此,通过上述方式,一旦搜索到新的附近设备,终端设备即计算出新的设备与终端设备之间的距离值,并将计算出的距离值与其他距离值进行比较以重新排列所有距离值的顺序,进而使得搜索结果列表中的所有附近设备的排列顺序也重新排列。终端设备将重新排列的搜索结果列表显示给用户,例如可以间隔一定的时间(比如0.2秒)检测搜索结果列表是否有更新,当检测到搜索结果列表已经重新排列后,将重新排列的搜索结果列表显示,若检测搜索结果列表没有更新,则显示原来的搜索结果列表。从而,随着所有距离值的排列顺序的改变,搜索结果列表的所有设备的排列顺序也随着改变,进而终端设备可以在第一时间将搜索到的设备显示给用户,使用户能够快速找到其需要的目标设备,且通过计算终端设备与附近设备之间的距离值以将附近设备按照由近到远的顺序进行排列,能够提高准确性。
在本发明搜索设备的另一实施方式中,还可以是根据接收反馈信息的时间先后顺序将搜索结果列表中的所有附近设备进行排列,以使搜索结果列表中所有附近设备按照距离终端设备由近到远的顺序进行排列。通常距离越近,终端设备就越快接收到反馈信息。本实施方式中,终端设备根据接收到反馈信息的时间先后顺序,将相应的设备也进行先后排序。具体地,终端设备在第一时间接收到第一个反馈信息后,即此时搜索结果列表中仅出现一个搜索到的设备,也就是该反馈信息对应的设备,将该反馈信息对应的设备排列在搜索结果列表中的第一位,终端设备显示该搜索结果列表。在终端设备接收到第二个反馈信息后,将第二个反馈信息对应的设备排列在前一个设备之后,即排列在搜索结果列表中的第二位,以此类推。终端设备依次将先后接收到的反馈信息对应的设备显示给用户,直至显示完最后一台搜索到的设备,由此也就得到了按照从近到远的顺序排列的搜索结果列表。因此,用户可在第一时间找到其所需建立连接的目标设备,有利于用户的快速查找。
参阅图3,本发明终端设备的一实施方式中,能够在终端设备需要与其他设备进行蓝牙通讯时,快速找到其所需要建立连接的目标蓝牙设备。具体地,终端设备包括发送模块301、接收模块302、生成模块303以及显示模块304。其中,发送模块301用于向外发送测距信号,例如该测距信号可以是测距电磁波,当然还可以是其他无线信号。接收模块302接收附近设备305响应测距信号的反馈信息,该反馈信息携带有相应设备的设备信息,例如MAC地址等,以使终端设备能够识别所接收到的反馈信息来自于哪一台附近设备。生成模块303用于根据反馈信息生成搜索结果列表,并将搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列。显示模块304用于显示该搜索结果列表。
当终端设备需要与其他的设备进行蓝牙通讯时,一般所需通讯的对方设备都是位于终端设备附近,因此,本实施方式通过将所搜索到的附近设备按照由近到远的顺序进行排列并显示给用户,从而使用户能够快速找到与其最近的设备,进而快速找到其所需要建立连接的目标蓝牙设备。
更具体地,在本实施方式中,生成模块303包括获取单元3031和排序单元3032,获取单元3031用于根据测距信号的发出时间和反馈信息的接收时间获取终端设备与每个反馈信息相对应的附近设备之间的距离值,排序单元3032将获取单元3031所获取的所有距离值按照从小到大的顺序进行排列,并根据所有距离值的排列顺序,将搜索结果列表中的所有附近设备按照距离所述终端设备由近到远的顺序进行排列。此外,为了提高用户体验,使用户在第一时间内找到其所需要的目标设备,获取单元3031在接收模块302每接收到一个反馈信息后,即根据一个反馈信息的接收时间获取终端设备与该反馈信息相对应的附近设备之间的距离值,而排序单元3032在获取单元3031每获取终端设备与一台附近设备之间的距离值后,即将所获取的一个距离值与其他距离值进行比较,并根据比较结果将所有距离值按照从小到大的顺序重新排列,从而根据所有距离值的排列顺序,将搜索结果列表中的所有设备也按照由近到远的顺序重新排列。显示模块304将显示重新排列后的搜索结果列表。从而终端设备一旦搜索到新的设备,即更新搜索结果列表,以使用户能够快速找到其所需要的目标设备。
通常距离越近,终端设备就越快接收到反馈信息,因此在本发明终端设备的另一实施方式中,也可以不计算终端设备和附近设备之间的距离,而是根据接收模块接收所有反馈信息的先后顺序,将搜索结果列表中的所有附近设备按照对应的时间先后顺序进行排列,从而使搜索结果列表中的所有附近设备按照距离终端设备由近到远的顺序进行排列。
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (12)

  1. 一种搜索设备的方法,其中,包括:
    终端设备向外发出测距信号;
    所述终端设备接收附近设备响应所述测距信号的反馈信息;
    所述终端设备根据所述反馈信息生成搜索结果列表;
    终端设备根据所述测距信号的发出时间和所述反馈信息的接收时间获取所述终端设备与每个所述反馈信息相对应的附近设备之间的距离值;
    将所有所述距离值按照从小到大的顺序进行排列;
    根据所述所有距离值的排列顺序,将所述搜索结果列表中的所有所述附近设备按照距离所述终端设备由近到远的顺序进行排列;
    所述终端设备显示所述搜索结果列表;
    其中,所述终端设备向外发出测距信号的步骤包括:终端设备向外发出测距电磁波。
  2. 根据权利要求1所述的方法,其中,
    所述终端设备根据所述测距信号的发出时间和所述反馈信息的接收时间获取所述终端设备与每个所述反馈信息相对应的附近设备之间的距离值的步骤包括:
    所述终端设备每接收到一个所述反馈信息后,即根据一个所述反馈信息的接收时间获取所述终端设备与所述反馈信息相对应的附近设备之间的距离值;
    所述将所有所述距离值按照从小到大的顺序进行排列的步骤包括:
    所述终端设备每获取终端设备与一台附近设备之间的距离值后,即将所获取的一个所述距离值与其他距离值进行比较,并根据比较结果将所有所述距离值按照从小到大的顺序重新排列。
  3. 一种搜索设备的方法,其中,包括:
    终端设备向外发出测距信号;
    所述终端设备接收附近设备响应所述测距信号的反馈信息;
    所述终端设备根据所述反馈信息生成搜索结果列表,并将所述搜索结果列表中的所有所述附近设备按照距离所述终端设备由近到远的顺序进行排列;
    所述终端设备显示所述搜索结果列表。
  4. 根据权利要求3所述的方法,其中,
    所述将所述搜索结果列表中的所有所述附近设备按照距离所述终端设备由近到远的顺序进行排列的步骤包括:
    终端设备根据所述测距信号的发出时间和所述反馈信息的接收时间获取所述终端设备与每个所述反馈信息相对应的附近设备之间的距离值;
    将所有所述距离值按照从小到大的顺序进行排列;
    根据所述所有距离值的排列顺序,将所述搜索结果列表中的所有所述附近设备按照距离所述终端设备由近到远的顺序进行排列。
  5. 根据权利要求4所述的方法,其中,
    所述终端设备根据所述测距信号的发出时间和所述反馈信息的接收时间获取所述终端设备与每个所述反馈信息相对应的附近设备之间的距离值的步骤包括:
    所述终端设备每接收到一个所述反馈信息后,即根据一个所述反馈信息的接收时间获取所述终端设备与所述反馈信息相对应的附近设备之间的距离值;
    所述将所有所述距离值按照从小到大的顺序进行排列的步骤包括:
    所述终端设备每获取终端设备与一台附近设备之间的距离值后,即将所获取的一个所述距离值与其他距离值进行比较,并根据比较结果将所有所述距离值按照从小到大的顺序重新排列。
  6. 根据权利要求3所述的方法,其中,
    所述将所述搜索结果列表中的所有所述附近设备按照距离所述终端设备由近到远的顺序进行排列的步骤包括:
    终端设备根据接收所有所述反馈信息的时间先后顺序,将所述搜索结果列表中的所有所述附近设备按照对应所述时间先后顺序进行排列,以使所述搜索结果列表中所有附近设备按照距离所述终端设备由近到远的顺序进行排列。
  7. 根据权利要求3所述的方法,其中,
    所述终端设备向外发出测距信号的步骤包括:终端设备向外发出测距电磁波。
  8. 一种终端设备,其中,包括:
    发送模块,用于向外发出测距信号;
    接收模块,用于接收附近设备响应所述测距信号的反馈信息;
    生成模块,用于根据所述反馈信息生成搜索结果列表,并将所述搜索结果列表中的所有所述附近设备按照距离所述终端设备由近到远的顺序进行排列;
    显示模块,用于显示所述搜索结果列表。
  9. 根据权利要求8所述的终端设备,其中,
    所述生成模块包括:
    获取单元,用于根据所述测距信号的发出时间和所述反馈信息的接收时间获取所述终端设备与每个所述反馈信息相对应的附近设备之间的距离值;
    排序单元,用于将所有所述距离值按照从小到大的顺序进行排列,并根据所述所有距离值的排列顺序,将所述搜索结果列表中的所有所述附近设备按照距离所述终端设备由近到远的顺序进行排列。
  10. 根据权利要求9所述的终端设备,其中,
    所述获取单元用于在所述接收模块每接收到一个所述反馈信息后,即根据一个所述反馈信息的接收时间获取所述终端设备与所述反馈信息相对应的附近设备之间的距离值;
    所述排序单元用于在所述获取单元每获取终端设备与一台附近设备之间的距离值后,即将所获取的一个所述距离值与其他距离值进行比较,并根据比较结果将所有所述距离值按照从小到大的顺序重新排列。
  11. 根据权利要求8所述的终端设备,其中,
    所述生成模块用于根据接收所有所述反馈信息的时间先后顺序,将所述搜索结果列表中的所有所述附近设备按照对应所述时间先后顺序进行排列,以使所述搜索结果列表中所有附近设备按照距离所述终端设备由近到远的顺序进行排列。
  12. 根据权利要求8所述的终端设备,其中,
    所述发送模块用于向外发出测距电磁波。
PCT/CN2014/075072 2013-11-19 2014-04-10 一种搜索设备的方法及终端设备 WO2015074368A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14812701.2A EP3073644A4 (en) 2013-11-19 2014-04-10 Method and terminal device for searching for device
US14/437,560 US9622065B2 (en) 2013-11-19 2014-04-10 Method for searching for a device and terminal device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310582974.0 2013-11-19
CN201310582974.0A CN103595449A (zh) 2013-11-19 2013-11-19 一种搜索设备的方法及终端设备

Publications (1)

Publication Number Publication Date
WO2015074368A1 true WO2015074368A1 (zh) 2015-05-28

Family

ID=50085451

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075072 WO2015074368A1 (zh) 2013-11-19 2014-04-10 一种搜索设备的方法及终端设备

Country Status (4)

Country Link
US (1) US9622065B2 (zh)
EP (1) EP3073644A4 (zh)
CN (1) CN103595449A (zh)
WO (1) WO2015074368A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595449A (zh) * 2013-11-19 2014-02-19 惠州Tcl移动通信有限公司 一种搜索设备的方法及终端设备
KR102332934B1 (ko) * 2014-12-10 2021-11-30 삼성전자주식회사 다른 전자 장치와 연결되는 전자 장치 및 그 제어 방법
CN105517193A (zh) * 2016-01-29 2016-04-20 深圳市凯立德科技股份有限公司 一种建立连接的方法及设备
CN105931344B (zh) * 2016-04-11 2018-09-04 深圳街电科技有限公司 一种用于自动排队的移动终端、服务装置及方法
CN106341715A (zh) * 2016-08-29 2017-01-18 红河凯丰科技有限公司 一种新型电视及多媒体播放系统
CN108418982B (zh) * 2018-03-12 2020-03-27 Oppo广东移动通信有限公司 语音通话数据处理方法、装置、存储介质及移动终端
CN115065856A (zh) * 2022-06-13 2022-09-16 深圳绿米联创科技有限公司 数据显示方法以及数据显示系统

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1715951A (zh) * 2004-06-29 2006-01-04 微软公司 使用无线信号强度的接近性检测
CN1805395A (zh) * 2005-01-11 2006-07-19 精工爱普生株式会社 无线局域网终端装置的检索方法、程序及使用该方法的检索系统
CN101390408A (zh) * 2004-10-01 2009-03-18 思科技术公司 用于客户端漫游和重新关联的中央规划和分布式控制的方法
CN101682529A (zh) * 2007-03-29 2010-03-24 捷讯研究有限公司 用于对已发现设备列表进行优先顺序排列的方法、系统和移动设备
CN102037747A (zh) * 2008-06-23 2011-04-27 诺基亚公司 用于传送音频信号的装置和方法
CN102547031A (zh) * 2010-12-08 2012-07-04 京瓷美达株式会社 移动印刷系统
CN102685927A (zh) * 2011-03-08 2012-09-19 媒介访问系统私人有限公司 用于移动通信中的数据卸载的方法和系统
US20120322466A1 (en) * 2011-06-17 2012-12-20 Qualcomm Incorporated Out-of-band paging with group identifier to reduce mobile detection latency
CN103595449A (zh) * 2013-11-19 2014-02-19 惠州Tcl移动通信有限公司 一种搜索设备的方法及终端设备

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6961541B2 (en) * 2002-05-24 2005-11-01 Aeroscout, Inc. Method and apparatus for enhancing security in a wireless network using distance measurement techniques
CN101340212A (zh) * 2007-07-03 2009-01-07 艾威梯软件技术(北京)有限公司 按键触发蓝牙连接设备自动切换的方法、设备和系统
CN101351022A (zh) * 2007-07-16 2009-01-21 艾威梯软件技术(北京)有限公司 根据信号强度进行无线设备排序的方法和设备
KR100968044B1 (ko) * 2007-09-27 2010-07-07 에스케이 텔레콤주식회사 전자책 단말기 및 그 제어방법
KR20100127416A (ko) * 2009-05-26 2010-12-06 엘지전자 주식회사 디스플레이장치 및 그의 기기 검색 방법
KR101759912B1 (ko) * 2011-01-04 2017-07-20 삼성전자주식회사 휴대 단말기의 데이터 전송 방법 및 장치
CN102624430A (zh) * 2012-04-13 2012-08-01 华为终端有限公司 蓝牙终端的搜索处理方法及蓝牙终端

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1715951A (zh) * 2004-06-29 2006-01-04 微软公司 使用无线信号强度的接近性检测
CN101390408A (zh) * 2004-10-01 2009-03-18 思科技术公司 用于客户端漫游和重新关联的中央规划和分布式控制的方法
CN1805395A (zh) * 2005-01-11 2006-07-19 精工爱普生株式会社 无线局域网终端装置的检索方法、程序及使用该方法的检索系统
CN101682529A (zh) * 2007-03-29 2010-03-24 捷讯研究有限公司 用于对已发现设备列表进行优先顺序排列的方法、系统和移动设备
CN102037747A (zh) * 2008-06-23 2011-04-27 诺基亚公司 用于传送音频信号的装置和方法
CN102547031A (zh) * 2010-12-08 2012-07-04 京瓷美达株式会社 移动印刷系统
CN102685927A (zh) * 2011-03-08 2012-09-19 媒介访问系统私人有限公司 用于移动通信中的数据卸载的方法和系统
US20120322466A1 (en) * 2011-06-17 2012-12-20 Qualcomm Incorporated Out-of-band paging with group identifier to reduce mobile detection latency
CN103595449A (zh) * 2013-11-19 2014-02-19 惠州Tcl移动通信有限公司 一种搜索设备的方法及终端设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3073644A4 *

Also Published As

Publication number Publication date
EP3073644A4 (en) 2017-06-28
CN103595449A (zh) 2014-02-19
US20160021524A1 (en) 2016-01-21
US9622065B2 (en) 2017-04-11
EP3073644A1 (en) 2016-09-28

Similar Documents

Publication Publication Date Title
WO2015074368A1 (zh) 一种搜索设备的方法及终端设备
CN102905034B (zh) 电子设备测试系统及其测试方法
WO2014021619A2 (ko) 멀티노드 무선전력전송 시스템의 무선 충전 방법
WO2021128857A1 (zh) 一种地震数据实时采集装置、系统及方法
WO2013122368A1 (ko) 위치 정보 입력이 가능한 키보드 및 이를 포함하는 키보드 시스템
CN109217961A (zh) 一种多通道人机交互与人机环境测试数据同步装置和方法
CN103675800A (zh) 一种测量距离的方法及实现距离测量的电子设备
WO2021088970A1 (zh) 探测参考信号发射设置方法、信息配置方法、定位方法和相关设备
WO2019039811A1 (ko) 블록체인 기반 원 아이디 서비스 시스템 및 방법
WO2015020502A1 (ko) P2p 그룹을 형성하는 무선 통신 네트워크에서 서비스 디스커버리 기법
CN107636485A (zh) 用于测量距离和位置的装置和方法
CN208158599U (zh) 一种多通道人机交互和人机环境测试数据同步装置和系统
EP2944153A1 (en) Device for transmitting and receiving data using earphone and method for controlling the same
CN105277936A (zh) 一种基于手机的测距系统和方法
CN106205657A (zh) 一种歌词显示方法和装置
CN107765213B (zh) 定位方法及装置
EP2759149A1 (en) Method and apparatus for providing information regarding a device
CN111954152A (zh) 一种同步的多蓝牙节点定位系统及定位方法
CN1630215A (zh) 具有体温测量功能的蓝牙耳机系统
CN206178078U (zh) 一种用于批量线路对接用的多路对线器
JP2014194778A (ja) コンピュータ入力システム及びその方法
CN109200600B (zh) 智能积木系统及数据传输方法
JP2014026639A (ja) 測定装置
US20200128324A1 (en) Networked speaker system with combined power over ethernet and audio delivery
KR101805838B1 (ko) Ble를 이용한 실시간 정보 제공 시스템 및 방법

Legal Events

Date Code Title Description
REEP Request for entry into the european phase

Ref document number: 2014812701

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014812701

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 14437560

Country of ref document: US

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14812701

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE