[go: up one dir, main page]

CN106899939A - Monitoring method and device for terminal equipment - Google Patents

Monitoring method and device for terminal equipment Download PDF

Info

Publication number
CN106899939A
CN106899939A CN201710166018.2A CN201710166018A CN106899939A CN 106899939 A CN106899939 A CN 106899939A CN 201710166018 A CN201710166018 A CN 201710166018A CN 106899939 A CN106899939 A CN 106899939A
Authority
CN
China
Prior art keywords
wireless network
network information
terminal equipment
terminal device
wireless
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201710166018.2A
Other languages
Chinese (zh)
Inventor
杨婷婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology Co Ltd
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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201710166018.2A priority Critical patent/CN106899939A/en
Publication of CN106899939A publication Critical patent/CN106899939A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0226Traffic management, e.g. flow control or congestion control based on location or mobility
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a monitoring method and a device of terminal equipment, wherein the method comprises the following steps: receiving first wireless network information sent by first terminal equipment, and receiving second wireless network information sent by second terminal equipment, wherein the first wireless network information is obtained by the first terminal equipment through wireless network scanning, and the second wireless network information is obtained by the first terminal equipment through wireless network scanning; and determining whether the first terminal equipment is far away from the second terminal equipment or not according to the first wireless network information and the second wireless network information. The method and the device solve the defects of short monitoring distance and easy misinformation when monitoring whether the terminal devices are mutually far away in the prior art, and improve the accuracy of judging whether the terminal devices are far away.

Description

一种终端设备的监测方法和装置A monitoring method and device for terminal equipment

技术领域technical field

本发明实施例涉及通信应用技术领域,尤其涉及一种终端设备的监测方法和装置。Embodiments of the present invention relate to the technical field of communication applications, and in particular, to a monitoring method and device for terminal equipment.

背景技术Background technique

随着科技的发展,无线通信技术也愈加成熟,由于其应用的便利性,无线通信应用在多个领域逐渐取代有线通信。无线通信技术已经深入到人们的工作和生活中的各个方面,包括日常使用的手机、无线电话等,其中,第三代移动通信技术、无线局域网络、蓝牙、宽带卫星系统和数字电视等都是当下最热门的无线通信技术的应用。其中,蓝牙由于其低功耗、高效数据传输。连接稳定性高等性能,应用十分广泛。With the development of science and technology, wireless communication technology has become more and more mature. Due to the convenience of its application, wireless communication applications have gradually replaced wired communication in many fields. Wireless communication technology has penetrated into all aspects of people's work and life, including mobile phones and wireless phones used in daily life. Among them, the third generation mobile communication technology, wireless local area network, Bluetooth, broadband satellite system and digital TV are all The application of the most popular wireless communication technology at present. Among them, Bluetooth is due to its low power consumption and high-efficiency data transmission. High performance of connection stability, widely used.

当前市场的儿童电话手表均有蓝牙跟随功能,利用蓝牙的连接距离属性,即建立家长手机和儿童手表之间的蓝牙连接,通过判断蓝牙连接的信号衰减或连接断开提醒家长和孩子走散,但是由于蓝牙硬件的限制,蓝牙信号强度受环境干扰大,一般空旷地区最远距离能达到25米左右,但是遇到墙壁或人群等障碍物时,蓝牙信号立马衰减或断开。因此,现有的终端设备的监测方法的准确度较低。Children's phones and watches in the current market all have the Bluetooth follow function, using the connection distance attribute of Bluetooth, that is, to establish a Bluetooth connection between the parent's mobile phone and the children's watch, and to remind the parents and the child to separate by judging the signal attenuation or disconnection of the Bluetooth connection. However, due to the limitations of Bluetooth hardware, the strength of the Bluetooth signal is greatly affected by environmental interference. Generally, the longest distance in open areas can reach about 25 meters. However, when encountering obstacles such as walls or crowds, the Bluetooth signal immediately attenuates or disconnects. Therefore, the accuracy of the existing terminal device monitoring method is low.

发明内容Contents of the invention

本发明提供一种终端设备的监测方法和装置,可以提高终端设备监测的准确度。The invention provides a terminal equipment monitoring method and device, which can improve the accuracy of terminal equipment monitoring.

第一方面,本发明实施例提供了一种终端设备的监测方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for monitoring a terminal device, the method comprising:

接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,其中所述第一无线网络信息是所述第一终端设备进行无线网络扫描得到的,所述第二无线网络信息是所述第一终端设备进行无线网络扫描得到的;receiving the first wireless network information sent by the first terminal device, and receiving the second wireless network information sent by the second terminal device, wherein the first wireless network information is obtained by the first terminal device performing wireless network scanning, the The second wireless network information is obtained by the first terminal device through wireless network scanning;

依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备。Determine whether the first terminal device is far away from the second terminal device according to the first wireless network information and the second wireless network information.

进一步的,依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备,包括:Further, determining whether the first terminal device is far away from the second terminal device according to the first wireless network information and the second wireless network information includes:

确定所述第一无线网络信息所包含的第一无线信号标识与所述第二无线网络信息所包含的第二无线信号标识中相同无线信号标识的数量;determining the number of identical wireless signal identifiers among the first wireless signal identifiers included in the first wireless network information and the second wireless signal identifiers included in the second wireless network information;

若所述相同无线信号标识的数量大于数量阈值,则确定所述第一终端设备未远离所述第二终端设备;否则,依据所述相同无线信号标识对应的第一信号强度和第二信号强度,确定所述第一终端设备是否远离所述第二终端设备。If the number of the same wireless signal identifier is greater than the number threshold, determine that the first terminal device is not far away from the second terminal device; otherwise, according to the first signal strength and second signal strength corresponding to the same wireless signal identifier , determining whether the first terminal device is far away from the second terminal device.

进一步的,依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备,包括:Further, determining whether the first terminal device is far away from the second terminal device according to the first wireless network information and the second wireless network information includes:

依据所述第一无线网络信息和所述第二无线网络信息计算所述第一终端设备和所述第二终端设备之间的距离信息;calculating distance information between the first terminal device and the second terminal device according to the first wireless network information and the second wireless network information;

若所述距离信息大于距离阈值,则确定所述第一终端设备远离所述第二终端设备。If the distance information is greater than a distance threshold, it is determined that the first terminal device is far away from the second terminal device.

进一步的,依据所述第一无线网络信息和所述第二无线网络信息计算所述第一终端设备和所述第二终端设备之间的距离信息,包括:Further, calculating distance information between the first terminal device and the second terminal device according to the first wireless network information and the second wireless network information includes:

根据所述第一无线网络信息和所述第一无线网络信息对应的至少两个无线网络信号源的位置,确定所述第一终端设备的位置;Determine the location of the first terminal device according to the first wireless network information and the locations of at least two wireless network signal sources corresponding to the first wireless network information;

根据所述第二无线网络信息和所述第二无线网络信息对应的至少两个无线网络信号源的位置,确定所述第二终端设备的位置;Determine the location of the second terminal device according to the second wireless network information and the locations of at least two wireless network signal sources corresponding to the second wireless network information;

根据所述第一终端设备的位置和所述第二终端设备的位置确定所述第一终端设备和所述第二终端设备之间的距离信息。Determine distance information between the first terminal device and the second terminal device according to the position of the first terminal device and the position of the second terminal device.

进一步的,根据无线网络信息和无线网络信息对应的至少两个无线网络信号源的位置确定终端设备的位置,包括:Further, determining the position of the terminal device according to the wireless network information and the positions of at least two wireless network signal sources corresponding to the wireless network information includes:

针对每个无线网络信号源,依据该无线网络信号源的位置以及所述无线网络信息中该无线网络信号源的信号强度,确定终端设备与该无线网络信号源之间的距离;For each wireless network signal source, determine the distance between the terminal device and the wireless network signal source according to the location of the wireless network signal source and the signal strength of the wireless network signal source in the wireless network information;

依据终端设备与所述至少两个无线网络信号源之间的距离,确定所述终端设备的位置。The position of the terminal device is determined according to the distance between the terminal device and the at least two wireless network signal sources.

第二方面,本发明实施例提供了一种终端设备的监测装置,所述装置包括:In a second aspect, an embodiment of the present invention provides a device for monitoring terminal equipment, the device comprising:

接收模块,用于接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,其中所述第一无线网络信息是所述第一终端设备进行无线网络扫描得到的,所述第二无线网络信息是所述第一终端设备进行无线网络扫描得到的;A receiving module, configured to receive the first wireless network information sent by the first terminal device, and receive the second wireless network information sent by the second terminal device, wherein the first wireless network information is the first wireless network information sent by the first terminal device Obtained by scanning, the second wireless network information is obtained by the first terminal device performing wireless network scanning;

确定模块,用于依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备。A determining module, configured to determine whether the first terminal device is far away from the second terminal device according to the first wireless network information and the second wireless network information.

进一步的,所述确定模块包括:Further, the determination module includes:

数量确定单元,用于确定所述第一无线网络信息所包含的第一无线信号标识与所述第二无线网络信息所包含的第二无线信号标识中相同无线信号标识的数量;A quantity determining unit, configured to determine the number of identical wireless signal identifiers among the first wireless signal identifiers included in the first wireless network information and the second wireless signal identifiers included in the second wireless network information;

第一判断单元,用于若所述相同无线信号标识的数量大于数量阈值,则确定所述第一终端设备未远离所述第二终端设备;否则,依据所述相同无线信号标识对应的第一信号强度和第二信号强度,确定所述第一终端设备是否远离所述第二终端设备。A first judging unit, configured to determine that the first terminal device is not far away from the second terminal device if the number of the same wireless signal identifiers is greater than the number threshold; otherwise, according to the same wireless signal identifier corresponding first The signal strength and the second signal strength are used to determine whether the first terminal device is far away from the second terminal device.

进一步的,所述确定模块包括:Further, the determination module includes:

距离计算单元,用于依据所述第一无线网络信息和所述第二无线网络信息计算所述第一终端设备和所述第二终端设备之间的距离信息;a distance calculation unit, configured to calculate distance information between the first terminal device and the second terminal device according to the first wireless network information and the second wireless network information;

第二判断单元,用于若所述距离信息大于距离阈值,则确定所述第一终端设备远离所述第二终端设备。A second judging unit, configured to determine that the first terminal device is far away from the second terminal device if the distance information is greater than a distance threshold.

进一步的,其特征在于,所述距离计算单元包括:Further, it is characterized in that the distance calculation unit includes:

第一位置确定子单元,用于根据所述第一无线网络信息和所述第一无线网络信息对应的至少两个无线网络信号源的位置,确定所述第一终端设备的位置;A first position determining subunit, configured to determine the position of the first terminal device according to the first wireless network information and the positions of at least two wireless network signal sources corresponding to the first wireless network information;

第二位置确定子单元,用于根据所述第二无线网络信息和所述第二无线网络信息对应的至少两个无线网络信号源的位置,确定所述第二终端设备的位置;A second position determining subunit, configured to determine the position of the second terminal device according to the second wireless network information and the positions of at least two wireless network signal sources corresponding to the second wireless network information;

距离信息确定子单元,用于根据所述第一终端设备的位置和所述第二终端设备的位置确定所述第一终端设备和所述第二终端设备之间的距离信息。A distance information determining subunit, configured to determine distance information between the first terminal device and the second terminal device according to the location of the first terminal device and the location of the second terminal device.

进一步的,所述第一位置确定子单元和所述第二位置确定子单元具体用于:Further, the first position determination subunit and the second position determination subunit are specifically used for:

针对每个无线网络信号源,依据该无线网络信号源的位置以及所述无线网络信息中该无线网络信号源的信号强度,确定终端设备与该无线网络信号源之间的距离;For each wireless network signal source, determine the distance between the terminal device and the wireless network signal source according to the location of the wireless network signal source and the signal strength of the wireless network signal source in the wireless network information;

依据终端设备与所述至少两个无线网络信号源之间的距离,确定所述终端设备的位置。The position of the terminal device is determined according to the distance between the terminal device and the at least two wireless network signal sources.

本发明实施例中,通过接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备。可以避免无线网络连接不稳定导致的准确度低下,即可以提高终端设备监测的准确度。In the embodiment of the present invention, by receiving the first wireless network information sent by the first terminal device and receiving the second wireless network information sent by the second terminal device, according to the first wireless network information and the second wireless network information , determining whether the first terminal device is far away from the second terminal device. The low accuracy caused by unstable wireless network connection can be avoided, that is, the accuracy of terminal device monitoring can be improved.

附图说明Description of drawings

图1是本发明实施例一中的一种终端设备的监测方法的流程图;FIG. 1 is a flowchart of a monitoring method for a terminal device in Embodiment 1 of the present invention;

图2是本发明实施例二中的一种终端设备的监测方法的流程图;FIG. 2 is a flowchart of a monitoring method for a terminal device in Embodiment 2 of the present invention;

图3是本发明实施例三中的一种终端设备的监测方法的流程图;FIG. 3 is a flowchart of a monitoring method for a terminal device in Embodiment 3 of the present invention;

图4是本发明实施例四中的一种终端设备的监测方法的流程图;FIG. 4 is a flowchart of a monitoring method for a terminal device in Embodiment 4 of the present invention;

图5是本发明实施例五中的一种终端设备的监测装置的结构示意图。FIG. 5 is a schematic structural diagram of a monitoring device for terminal equipment in Embodiment 5 of the present invention.

具体实施方式detailed description

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

实施例一Embodiment one

图1是本发明实施例一提供的一种终端设备的监测方法的流程图,本实施例可适用于监测终端设备之间是否存在相对位置的情况,该方法可以由本发明实施例提供的终端设备的监测装置来执行,该装置可采用软件和/或硬件的方式来实现,该装置可集成于具有监测终端设备之间是否远离功能的终端内,例如终端可以是电脑、智能手机、平板电脑或者智能手表的智能穿戴设备等。参考图1,该方法具体可以包括如下步骤:Figure 1 is a flow chart of a terminal device monitoring method provided by Embodiment 1 of the present invention. This embodiment is applicable to monitoring whether there is a relative position between terminal devices. This method can be implemented by the terminal device provided by the embodiment of the present invention The monitoring device can be implemented by means of software and/or hardware. The device can be integrated into a terminal with the function of monitoring whether the terminal devices are far away. For example, the terminal can be a computer, a smart phone, a tablet computer or Smart watches, smart wearable devices, etc. Referring to Fig. 1, the method specifically may include the following steps:

S110、接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,其中所述第一无线网络信息是所述第一终端设备进行无线网络扫描得到的,所述第二无线网络信息是所述第一终端设备进行无线网络扫描得到的。S110. Receive the first wireless network information sent by the first terminal device, and receive the second wireless network information sent by the second terminal device, wherein the first wireless network information is obtained by the first terminal device performing wireless network scanning , the second wireless network information is obtained by the first terminal device performing wireless network scanning.

其中,无线网络可以是无线宽带(Wireless-Fidelity,Wi-Fi)或蓝牙网络。具体的,第一终端设备开启无线网络扫描功能,无线扫描是指不受数据线电缆的长度限制来传输数据,无线网络扫描是指扫描终端设备所处环境中的无线网络信号,得到第一无线网络信息,第一终端设备将第一无线网络信息发送至服务器,服务器接收第一无线网络信息。示例性的,第一无线网络信息可以是无线网络的种类、数量和强度等。同理,第二终端设备开启的无线网络扫描功能,得到第二无线网络信息,第二终端设备将第二无线网络信息发送至服务器,服务器接收第二无线网络信息。示例性的,第二无线网络信息可以是无线网络的种类、数量和强度等。Wherein, the wireless network may be a wireless broadband (Wireless-Fidelity, Wi-Fi) or a Bluetooth network. Specifically, the first terminal device turns on the wireless network scanning function. Wireless scanning refers to transmitting data without being limited by the length of the data cable. Wireless network scanning refers to scanning wireless network signals in the environment where the terminal device is located to obtain the first wireless network signal. For network information, the first terminal device sends the first wireless network information to the server, and the server receives the first wireless network information. Exemplarily, the first wireless network information may be the type, quantity, strength, etc. of the wireless network. Similarly, the second terminal device activates the wireless network scanning function to obtain the second wireless network information, the second terminal device sends the second wireless network information to the server, and the server receives the second wireless network information. Exemplarily, the second wireless network information may be the type, quantity, strength, etc. of the wireless network.

S120、依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备。S120. Determine whether the first terminal device is far away from the second terminal device according to the first wireless network information and the second wireless network information.

具体的,第一无线网络信息是由第一终端设备经过无线网络扫描获得,因此第一无线网络信息的种类、数量和强度等详细信息与第一终端设备内置的无线网卡功率的大小有关。同理,第二无线网络信息的种类、数量和强度等详细信息和第二终端设备内置的无线网卡功率的大小有关,例如安卓手机的无线网卡的功率在出厂时通常被限制在80%。并且,在终端设备对无线网络进行扫描时,扫描得到的无线网络信息和终端设备的位置有关。Specifically, the first wireless network information is obtained by the first terminal device through wireless network scanning, so detailed information such as the type, quantity, and strength of the first wireless network information is related to the power of the built-in wireless network card of the first terminal device. Similarly, the detailed information such as the type, quantity and strength of the second wireless network information is related to the power of the built-in wireless network card of the second terminal device. For example, the power of the wireless network card of an Android mobile phone is usually limited to 80% when it leaves the factory. Moreover, when the terminal device scans the wireless network, the scanned wireless network information is related to the location of the terminal device.

服务器通过对比第一无线网络信息和第二无线网络信息的差异,可以确定第一终端设备是否远离第二终端设备。示例性的,第一无线网络信息和第二无线网络信息的差异可以是数量、种类或强度的差异,第一终端设备远离第二终端设备可以是两个终端设备从距离很近的状态变换至距离较远的状态,其中,可以是两个终端设备中的一个位置发生变化或者两个位置均发生变化。The server can determine whether the first terminal device is far away from the second terminal device by comparing the difference between the first wireless network information and the second wireless network information. Exemplarily, the difference between the first wireless network information and the second wireless network information may be a difference in quantity, type or strength, and the distance between the first terminal device and the second terminal device may be that the two terminal devices change from a state of close distance to In the state of a relatively long distance, one or both of the two terminal devices may change in location.

本发明实施例中,服务器通过接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备。可以避免无线网络连接不稳定导致的准确度低下,即可以提高终端设备监测的准确度。In the embodiment of the present invention, the server receives the first wireless network information sent by the first terminal device, and receives the second wireless network information sent by the second terminal device, according to the first wireless network information and the second wireless network information to determine whether the first terminal device is far away from the second terminal device. The low accuracy caused by unstable wireless network connection can be avoided, that is, the accuracy of terminal device monitoring can be improved.

实施例二Embodiment two

图2是本发明实施例二提供的一种终端设备的监测方法的流程图,本实施例在上述实施例的基础上,对“依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备”进行了优化。参考图2,该方法具体可以包括如下步骤:Fig. 2 is a flow chart of a monitoring method for terminal equipment provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment performs "according to the first wireless network information and the second wireless network information , determining whether the first terminal device is far away from the second terminal device" for optimization. Referring to Figure 2, the method specifically may include the following steps:

S210、接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,其中所述第一无线网络信息是所述第一终端设备进行无线网络扫描得到的,所述第二无线网络信息是所述第一终端设备进行无线网络扫描得到的。S210. Receive the first wireless network information sent by the first terminal device, and receive the second wireless network information sent by the second terminal device, wherein the first wireless network information is obtained by the first terminal device performing wireless network scanning , the second wireless network information is obtained by the first terminal device performing wireless network scanning.

S220、确定所述第一无线网络信息所包含的第一无线信号标识与所述第二无线网络信息所包含的第二无线信号标识中相同无线信号标识的数量。S220. Determine the number of identical wireless signal identifiers between the first wireless signal identifier included in the first wireless network information and the second wireless signal identifier included in the second wireless network information.

其中,第一无线网络信息中包含若干个无线网络信息,相应的,每个无线网络信息都带有第一无线信号标识;第二无线网络信息中包含若干个无线网络信息,相应的,每个无线网络信息都带有第二无线信号标识。每个无线信号标识可以唯一确定一个无线网络信息,确定第一无线网络信息所包含的第一无线信号标识的数量,该数量用N表示,确定第二无线网络信息所包含的第二无线信号标识的数量,该数量用M表示,判断N个第一无线信号标识和M个第二无线信号标识中相同无线信号标识的数量。Wherein, the first wireless network information includes a plurality of wireless network information, correspondingly, each wireless network information has a first wireless signal identifier; the second wireless network information includes a plurality of wireless network information, correspondingly, each The wireless network information all carries the second wireless signal identifier. Each wireless signal identifier can uniquely determine a piece of wireless network information, determine the number of first wireless signal identifiers contained in the first wireless network information, the number is represented by N, and determine the second wireless signal identifier contained in the second wireless network information , the number is denoted by M, and the number of identical wireless signal identifiers among the N first wireless signal identifiers and the M second wireless signal identifiers is judged.

示例性的,以无线网络信息是Wi-Fi信息、第一终端设备为手机和第二终端设备为智能手表为例进行说明,该手表具有网络通讯传输的功能。其中,Wi-Fi是一种允许电子设备连接到一个无线局域网(WLAN)的技术,通常连接到无线局域网是有密码保护的,但也可是开放的,这样就允许任何在WLAN范围内的设备可以连接上。根据市场上终端设备的配置,通常的终端设备能扫描的Wi-Fi信号约为10个左右,其中,第一无线网络信息是指手机在WLAN范围内扫描到的Wi-Fi信号的信息,第二无线网络信息是指智能手表在WLAN范围内扫描到的Wi-Fi信号的信息。假设手机扫描到了5个Wi-Fi信号,该5个Wi-Fi信号的第一无线信号标识分别是AL、B089、A7H6、87E和PLI890,智能手表扫描到了6个Wi-Fi信号,该6个Wi-Fi信号的第二无线信号标识分别是AL、M09O、A7H6、87E、PLI890和VB65,其中,相同无线信号标识的数量为4个,具体为AL、A7H6、87E和PLI890。需要说明的是,第一无线信号标识和第二无线信号标识均为被扫描的无线网络本身属性中的设置,终端设备只是对其进行扫描并获知其无线信号标识的名称。Exemplarily, the wireless network information is Wi-Fi information, the first terminal device is a mobile phone, and the second terminal device is a smart watch. The watch has a function of network communication transmission. Among them, Wi-Fi is a technology that allows electronic devices to connect to a wireless local area network (WLAN). Usually, the connection to the wireless local area network is password-protected, but it can also be open, which allows any device within the range of the WLAN to connect. According to the configuration of terminal devices on the market, a typical terminal device can scan about 10 Wi-Fi signals. Among them, the first wireless network information refers to the information of the Wi-Fi signals scanned by the mobile phone within the WLAN range. 2. Wireless network information refers to the information of the Wi-Fi signal scanned by the smart watch within the WLAN range. Assuming that the mobile phone scans 5 Wi-Fi signals, the first wireless signal identifiers of the 5 Wi-Fi signals are AL, B089, A7H6, 87E, and PLI890, and the smart watch scans 6 Wi-Fi signals. The second wireless signal identifiers of the Wi-Fi signal are AL, M09O, A7H6, 87E, PLI890, and VB65 respectively, where the number of the same wireless signal identifiers is 4, specifically AL, A7H6, 87E, and PLI890. It should be noted that both the first wireless signal identifier and the second wireless signal identifier are settings in the properties of the scanned wireless network itself, and the terminal device only scans it and obtains the name of its wireless signal identifier.

S230、若所述相同无线信号标识的数量大于数量阈值,则确定所述第一终端设备未远离所述第二终端设备;否则,依据所述相同无线信号标识对应的第一信号强度和第二信号强度,确定所述第一终端设备是否远离所述第二终端设备。S230. If the number of the same wireless signal identifier is greater than the number threshold, determine that the first terminal device is not far away from the second terminal device; otherwise, according to the first signal strength and the second signal strength corresponding to the same wireless signal identifier Signal strength, determining whether the first terminal device is far away from the second terminal device.

具体的,判断第一无线网络信息所包含的第一无线信号标识与第二无线网络信息所包含的第二无线信号标识中相同无线信号标识的数量是否大于数量阈值,该数量阈值可以是根据终端设备的配置或性能设置而得,如该数量阈值可以是3。继续以无线网络信息为Wi-Fi信号、第一终端设备为手机和第二终端设备为智能手表,且相同无线信号标识的数量为4个为例进行说明,则确定手机未远离智能手表。Specifically, it is judged whether the number of the same wireless signal identifiers in the first wireless signal identifier included in the first wireless network information and the second wireless signal identifier included in the second wireless network information is greater than a quantity threshold, and the quantity threshold may be determined according to the terminal The configuration or performance setting of the device is obtained, for example, the number threshold may be 3. Continue to take the wireless network information as a Wi-Fi signal, the first terminal device as a mobile phone and the second terminal device as a smart watch, and the number of the same wireless signal identification is 4 for example, then it is determined that the mobile phone is not far away from the smart watch.

又例如,假设手机扫描到了5个Wi-Fi信号,该5个Wi-Fi信号的第一无线信号标识分别是AL、B089、A7H6、KR54和FH09,智能手表扫描到了6个Wi-Fi信号,该6个Wi-Fi信号的第二无线信号标识分别是AL、M09O、A7H6、87E、PLI890和VB65,其中相同无线信号标识的数量为2个,具体为AL、A7H6,小于数量阈值3,后续可以根据相同无线信号标识对应的第一信号强度和第二信号强度,确定手机是否远离智能手表。For another example, assume that the mobile phone scans 5 Wi-Fi signals, the first wireless signal identifiers of the 5 Wi-Fi signals are AL, B089, A7H6, KR54, and FH09, and the smart watch scans 6 Wi-Fi signals. The second wireless signal identifiers of the six Wi-Fi signals are AL, M09O, A7H6, 87E, PLI890, and VB65 respectively, and the number of the same wireless signal identifiers is 2, specifically AL and A7H6, which are less than the number threshold of 3. Whether the mobile phone is far away from the smart watch can be determined according to the first signal strength and the second signal strength corresponding to the same wireless signal identifier.

具体的,仍以相同无线信号标识的数量为2个且具体为AL、A7H6为例,检测第一无线信号标识中AL的第一信号强度与第二无线信号标识中AL的第二信号强度,检测第一无线信号标识中A7H6的第一信号强度与第二无线信号标识中A7H6的第二信号强度。例如,AL的第一信号强度为14、AL的第二信号强度为3、A7H6的第一信号强度为4、A7H6的第二信号强度为13,根据这四个信号强度数值可以看出,AL的第一信号强度和第二信号强度差为11,A7H6的第一信号强度和第二信号强度差为9,服务器中可以预设一个信号强度差阈值5,上述两个信号强度差均大于信号强度差阈值,说明手机远离智能手表。Specifically, still taking the number of the same wireless signal identifier as 2 and specifically AL and A7H6 as an example, detect the first signal strength of AL in the first wireless signal identifier and the second signal strength of AL in the second wireless signal identifier, Detect the first signal strength of A7H6 in the first wireless signal identifier and the second signal strength of A7H6 in the second wireless signal identifier. For example, the first signal strength of AL is 14, the second signal strength of AL is 3, the first signal strength of A7H6 is 4, and the second signal strength of A7H6 is 13. According to these four signal strength values, it can be seen that AL The difference between the first signal strength and the second signal strength of the A7H6 is 11, and the difference between the first signal strength and the second signal strength of the A7H6 is 9. A signal strength difference threshold of 5 can be preset in the server. The above two signal strength differences are greater than the signal strength Intensity difference threshold, indicating that the phone is far away from the smart watch.

本发明实施例中,通过确定所述第一无线网络信息所包含的第一无线信号标识与所述第二无线网络信息所包含的第二无线信号标识中相同无线信号标识的数量,并判断当相同无线信号标识的数量大于数量阈值时,确定所述第一终端设备未远离所述第二终端设备,否则依据所述相同无线信号标识对应的第一信号强度和第二信号强度进一步确定所述第一终端设备是否远离所述第二终端设备。实现了通过对第一无线网络信息和第二无线网络信息中相同无线信号标识数量的判断以及无线网络信息信号强度的判断,来确定第一终端设备和第二终端设备之间是否远离的情况。In this embodiment of the present invention, by determining the number of the same wireless signal identifiers among the first wireless signal identifier included in the first wireless network information and the second wireless signal identifier included in the second wireless network information, and judging when When the number of the same wireless signal identifier is greater than the number threshold, it is determined that the first terminal device is not far away from the second terminal device; otherwise, it is further determined according to the first signal strength and second signal strength corresponding to the same wireless signal identifier Whether the first terminal device is far away from the second terminal device. The situation of determining whether the first terminal device is far away from the second terminal device is realized by judging the number of identical wireless signal identifiers in the first wireless network information and the second wireless network information and judging the signal strength of the wireless network information.

实施例三Embodiment three

图3是本发明实施例三提供的一种终端设备的监测方法的流程图,本实施例在上述实施例的基础上,对“依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备”进行了优化。参考图3,该方法具体可以包括如下步骤:Fig. 3 is a flow chart of a monitoring method for terminal equipment provided by Embodiment 3 of the present invention. On the basis of the above embodiments, this embodiment performs "according to the first wireless network information and the second wireless network information , determining whether the first terminal device is far away from the second terminal device" for optimization. Referring to Figure 3, the method specifically may include the following steps:

S310、接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,其中所述第一无线网络信息是所述第一终端设备进行无线网络扫描得到的,所述第二无线网络信息是所述第一终端设备进行无线网络扫描得到的。S310. Receive the first wireless network information sent by the first terminal device, and receive the second wireless network information sent by the second terminal device, wherein the first wireless network information is obtained by the first terminal device performing wireless network scanning , the second wireless network information is obtained by the first terminal device performing wireless network scanning.

S320、依据所述第一无线网络信息和所述第二无线网络信息计算所述第一终端设备和所述第二终端设备之间的距离信息。S320. Calculate distance information between the first terminal device and the second terminal device according to the first wireless network information and the second wireless network information.

具体的,所述第一无线网络信息可以包括第一无线网络信息的数量、种类和强度等;所述第二无线网络信息可以包括第二无线网络信息的数量、种类和强度等,且第一无线网络信息与第二无线网络信息的种类相同。根据所述第一无线网络信息和所述第二无线网络信息计算第一终端设备和第二终端设备之间的距离信息,所述距离信息可以是第一终端设备和第二终端设备的距离差,例如可以是35米。Specifically, the first wireless network information may include the number, type, and strength of the first wireless network information; the second wireless network information may include the number, type, and strength of the second wireless network information, and the first The type of the wireless network information is the same as that of the second wireless network information. Calculate distance information between the first terminal device and the second terminal device according to the first wireless network information and the second wireless network information, the distance information may be a distance difference between the first terminal device and the second terminal device , for example can be 35 meters.

示例性的,以无线网络信息是Wi-Fi信号信息、第一终端设备为手机和第二终端设备为智能手表为例进行说明,根据手机扫描到的Wi-Fi信号的数量和信号强度以及智能手表扫描到的Wi-Fi信号的数量和信号强度计算手机和智能手表之间的距离。Exemplarily, the wireless network information is Wi-Fi signal information, the first terminal device is a mobile phone, and the second terminal device is a smart watch. The number and signal strength of Wi-Fi signals scanned by the watch calculate the distance between the phone and the smart watch.

S330、若所述距离信息大于距离阈值,则确定所述第一终端设备远离所述第二终端设备。S330. If the distance information is greater than a distance threshold, determine that the first terminal device is far away from the second terminal device.

其中,距离阈值可以是开发者根据终端设备的配置和用户的需求预先设定的,该距离阈值可以是30米,判断步骤S320中计算出来的第一终端设备和第二终端设备的距离信息是否大于距离阈值,若是,则确定第一终端设备远离第二终端设备,否则,确定第一终端设备未远离第二终端设备。示例性的,当第一终端设备和第二终端设备之间的距离是45米时,大于距离阈值30米,确定第一终端设备远离第二终端设备;当第一终端设备和第二终端设备之间的距离是15米时,小于距离阈值30米,确定第一终端设备未远离第二终端设备。Wherein, the distance threshold may be preset by the developer according to the configuration of the terminal device and the user's needs, and the distance threshold may be 30 meters. It is determined whether the distance information between the first terminal device and the second terminal device calculated in step S320 is greater than the distance threshold, if so, determine that the first terminal device is far away from the second terminal device; otherwise, determine that the first terminal device is not far away from the second terminal device. Exemplarily, when the distance between the first terminal device and the second terminal device is 45 meters, which is greater than the distance threshold of 30 meters, it is determined that the first terminal device is far away from the second terminal device; when the first terminal device and the second terminal device When the distance between them is 15 meters, which is less than the distance threshold of 30 meters, it is determined that the first terminal device is not far away from the second terminal device.

本发明实施例中,通过根据所述第一无线网络信息和所述第二无线网络信息计算所述第一终端设备和所述第二终端设备之间的距离信息,并当所述距离信息大于距离阈值时,确定所述第一终端设备远离所述第二终端设备。实现了通过终端设备间的距离信息判断终端设备间是否远离,直观明晰。In this embodiment of the present invention, the distance information between the first terminal device and the second terminal device is calculated according to the first wireless network information and the second wireless network information, and when the distance information is greater than When the distance threshold is exceeded, it is determined that the first terminal device is far away from the second terminal device. It realizes judging whether the terminal devices are far away through the distance information between the terminal devices, which is intuitive and clear.

实施例四Embodiment Four

图4是本发明实施例四提供的一种终端设备的监测方法的流程图,本实施例在上述实施例的基础上,对“依据所述第一无线网络信息和所述第二无线网络信息计算所述第一终端设备和所述第二终端设备之间的距离信息”进行了优化。参考图4,该方法具体可以包括如下步骤:Fig. 4 is a flow chart of a monitoring method for terminal equipment provided by Embodiment 4 of the present invention. On the basis of the above embodiments, this embodiment performs "according to the first wireless network information and the second wireless network information Calculation of distance information between the first terminal device and the second terminal device" is optimized. Referring to Figure 4, the method specifically may include the following steps:

S410、接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,其中所述第一无线网络信息是所述第一终端设备进行无线网络扫描得到的,所述第二无线网络信息是所述第一终端设备进行无线网络扫描得到的。S410. Receive the first wireless network information sent by the first terminal device, and receive the second wireless network information sent by the second terminal device, wherein the first wireless network information is obtained by the first terminal device performing wireless network scanning , the second wireless network information is obtained by the first terminal device performing wireless network scanning.

S420、根据所述第一无线网络信息和所述第一无线网络信息对应的至少两个无线网络信号源的位置,确定所述第一终端设备的位置。S420. Determine a location of the first terminal device according to the first wireless network information and locations of at least two wireless network signal sources corresponding to the first wireless network information.

其中,无线网络信号源是指具有向外界辐射无线网络信号功能的装置,可选的,本实施例中的无线网络信号源可以是无线访问接入点(Wireless Access Point,AP)或无线路由器等。AP相当于无线网络中的交换机,具有无线信号发射的功能,无线路由器可以看成转发器,可以将宽带网络信号通过天线转发给终端设备。本实施例中,为了确定第一终端设备的位置需要至少两个无线网络信号源,以两个无线网络信号源进行说明,两个无线网络信号源分别用P和Q标识。第一终端设备进行无线扫描,扫描到无线网络信号源P对应的第一无线网络信息以及无线网络信号源Q对应的第一无线网络信息,由于无线网络信息与无线网络信号源的位置相应的对应关系,结合无线网络信号源P的位置和无线网络信号源Q的位置,可以确定所述第一终端设备的位置。Wherein, the wireless network signal source refers to a device capable of radiating wireless network signals to the outside world. Optionally, the wireless network signal source in this embodiment may be a wireless access point (Wireless Access Point, AP) or a wireless router, etc. . An AP is equivalent to a switch in a wireless network and has the function of transmitting wireless signals. A wireless router can be regarded as a repeater, which can forward broadband network signals to terminal devices through an antenna. In this embodiment, in order to determine the location of the first terminal device, at least two wireless network signal sources are required, and two wireless network signal sources are used for illustration, and the two wireless network signal sources are identified by P and Q respectively. The first terminal device performs wireless scanning, and scans the first wireless network information corresponding to the wireless network signal source P and the first wireless network information corresponding to the wireless network signal source Q, because the wireless network information corresponds to the position of the wireless network signal source In combination with the location of the wireless network signal source P and the location of the wireless network signal source Q, the location of the first terminal device can be determined.

S430、根据所述第二无线网络信息和所述第二无线网络信息对应的至少两个无线网络信号源的位置,确定所述第二终端设备的位置。S430. Determine a location of the second terminal device according to the second wireless network information and locations of at least two wireless network signal sources corresponding to the second wireless network information.

其中,仍以两个无线网络信号源进行说明,两个无线网络信号源分别用P和Q标识。第二终端设备进行无线扫描,扫描到无线网络信号源P对应的第二无线网络信息以及无线网络信号源Q对应的第二无线网络信息,由于无线网络信息与无线网络信号源的位置相应的对应关系,结合无线网络信号源P的位置和无线网络信号源Q的位置,可以确定所述第二终端设备的位置。Wherein, two wireless network signal sources are still used for illustration, and the two wireless network signal sources are marked with P and Q respectively. The second terminal device performs wireless scanning, and scans the second wireless network information corresponding to the wireless network signal source P and the second wireless network information corresponding to the wireless network signal source Q, because the wireless network information corresponds to the location of the wireless network signal source In combination with the location of the wireless network signal source P and the location of the wireless network signal source Q, the location of the second terminal device can be determined.

S440、根据所述第一终端设备的位置和所述第二终端设备的位置确定所述第一终端设备和所述第二终端设备之间的距离信息。S440. Determine distance information between the first terminal device and the second terminal device according to the location of the first terminal device and the location of the second terminal device.

具体的,确定了第一终端设备的位置和第二终端设备的位置之后,可以对两个位置信息进行处理,获得第一终端设备和第二终端设备之间的距离信息。Specifically, after the location of the first terminal device and the location of the second terminal device are determined, the two location information may be processed to obtain distance information between the first terminal device and the second terminal device.

S450、若所述距离信息大于距离阈值,则确定所述第一终端设备远离所述第二终端设备。S450. If the distance information is greater than a distance threshold, determine that the first terminal device is far away from the second terminal device.

需要说明的是,无线网络信号源的数量是1时,无法测量出第一终端设备和第二终端设备的位置,当无线网络信号源的数量为两个或两个以上时,可以测量出第一终端设备和第二终端设备的位置,无线网络信号源的数量越多,测量得到的第一终端设备和第二终端设备的位置越精确。It should be noted that when the number of wireless network signal sources is 1, the positions of the first terminal device and the second terminal device cannot be measured; when the number of wireless network signal sources is two or more, the positions of the first terminal device and the second terminal device can be measured. For the positions of the first terminal device and the second terminal device, the more the number of wireless network signal sources is, the more accurate the measured positions of the first terminal device and the second terminal device are.

本发明实施例中,通过无线网络信息和无线网络信号源的位置,确定第一终端设备的位置和第二终端设备的位置,进而确定第一终端设备和第二终端设备之间的距离信息。提高了第一终端设备和第二终端设备距离的准确度,从而提高了相对位置监测的准确度。In the embodiment of the present invention, the location of the first terminal device and the location of the second terminal device are determined through the wireless network information and the location of the wireless network signal source, and then the distance information between the first terminal device and the second terminal device is determined. The accuracy of the distance between the first terminal device and the second terminal device is improved, thereby improving the accuracy of relative position monitoring.

示例性的,根据无线网络信息和无线网络信息对应的至少两个无线网络信号源的位置确定终端设备的位置,可以包括:Exemplarily, determining the position of the terminal device according to the wireless network information and the positions of at least two wireless network signal sources corresponding to the wireless network information may include:

A、针对每个无线网络信号源,依据该无线网络信号源的位置以及所述无线网络信息中该无线网络信号源的信号强度,确定终端设备与该无线网络信号源之间的距离。A. For each wireless network signal source, determine the distance between the terminal device and the wireless network signal source according to the location of the wireless network signal source and the signal strength of the wireless network signal source in the wireless network information.

其中,无线网络信号源的数量至少为两个,如下以无线网络信息是Wi-Fi信号信息,两个无线网络信号源为例进行说明。当第一终端设备扫描了两个无线网络信号源P和Q,第一终端设备扫描到无线网络信号源P对应的Wi-Fi信号的无线信号标识为P1,信号强度为8;第一终端设备扫描到无线网络信号源Q对应的Wi-Fi信号的无线信号标识为Q1,信号强度为3;第二终端设备扫描到无线网络信号源P对应的Wi-Fi信号的无线信号标识为P2,信号强度为12;第二终端设备扫描到无线网络信号源Q对应的Wi-Fi信号的无线信号标识为Q2,信号强度为6。其中,服务器中预置有信号强度和距离之间的预设关系。依据该预设关系可知,第一终端设备距离无线网络信号源P1的距离是16米,距离无线网络信号源Q1的距离是6米,第二终端设备距离无线网络信号源Q2的距离是24米,距离无线网络信号源Q2的距离是12米。需要说明的是,终端设备与无线网络信号源之间的距离是一个距离范围,并不是一个精确的距离值,当无线网络信号源的个数越多时,该距离范围越接近终端设备位置的真实值,计算结果越准确。Wherein, the number of wireless network signal sources is at least two, and the following takes the wireless network information as Wi-Fi signal information and two wireless network signal sources as an example for illustration. When the first terminal device scans two wireless network signal sources P and Q, the first terminal device scans the wireless signal identifier of the Wi-Fi signal corresponding to the wireless network signal source P as P1, and the signal strength is 8; the first terminal device The wireless signal ID of the Wi-Fi signal corresponding to the wireless network signal source Q scanned is Q1, and the signal strength is 3; the wireless signal ID of the Wi-Fi signal corresponding to the wireless network signal source P scanned by the second terminal device is P2, and the signal strength is 3. The strength is 12; the wireless signal identifier of the Wi-Fi signal corresponding to the wireless network signal source Q scanned by the second terminal device is Q2, and the signal strength is 6. Wherein, a preset relationship between signal strength and distance is preset in the server. According to the preset relationship, it can be known that the distance between the first terminal device and the wireless network signal source P1 is 16 meters, the distance between the first terminal device and the wireless network signal source Q1 is 6 meters, and the distance between the second terminal device and the wireless network signal source Q2 is 24 meters. , the distance from the wireless network signal source Q2 is 12 meters. It should be noted that the distance between the terminal device and the wireless network signal source is a distance range, not an accurate distance value. When the number of wireless network signal sources is larger, the distance range is closer to the real location of the terminal device. value, the more accurate the calculation result is.

B、依据终端设备与所述至少两个无线网络信号源之间的距离,确定所述终端设备的位置。B. Determine the position of the terminal device according to the distance between the terminal device and the at least two wireless network signal sources.

具体的,依据第一终端设备与至少两个无线网络信号源之间的距离,确定第一终端设备的位置;依据第二终端设备与至少两个无线网络信号源之间的距离,确定第二终端设备的位置。Specifically, according to the distance between the first terminal device and at least two wireless network signal sources, determine the position of the first terminal device; according to the distance between the second terminal device and at least two wireless network signal sources, determine the second The location of the end device.

实施例五Embodiment five

图5是本发明实施例五提供的一种终端设备的监测装置的结构示意图,该装置适用于执行本发明实施例提供的终端设备的监测方法。参考图5,该装置具体可以包括:FIG. 5 is a schematic structural diagram of an apparatus for monitoring terminal equipment provided in Embodiment 5 of the present invention, and the apparatus is suitable for executing the method for monitoring terminal equipment provided in the embodiment of the present invention. Referring to Figure 5, the device specifically may include:

接收模块510,用于接收第一终端设备发送的第一无线网络信息,并接收第二终端设备发送的第二无线网络信息,其中所述第一无线网络信息是所述第一终端设备进行无线网络扫描得到的,所述第二无线网络信息是所述第一终端设备进行无线网络扫描得到的;The receiving module 510 is configured to receive the first wireless network information sent by the first terminal device, and receive the second wireless network information sent by the second terminal device, wherein the first wireless network information is the first wireless network information sent by the first terminal device Obtained by network scanning, the second wireless network information is obtained by the first terminal device performing wireless network scanning;

确定模块520,用于依据所述第一无线网络信息和所述第二无线网络信息,确定所述第一终端设备是否远离所述第二终端设备。A determining module 520, configured to determine whether the first terminal device is far away from the second terminal device according to the first wireless network information and the second wireless network information.

进一步的,确定模块520包括:Further, the determination module 520 includes:

数量确定单元,用于确定所述第一无线网络信息所包含的第一无线信号标识与所述第二无线网络信息所包含的第二无线信号标识中相同无线信号标识的数量;A quantity determining unit, configured to determine the number of identical wireless signal identifiers among the first wireless signal identifiers included in the first wireless network information and the second wireless signal identifiers included in the second wireless network information;

第一判断单元,用于若所述相同无线信号标识的数量大于数量阈值,则确定所述第一终端设备未远离所述第二终端设备;否则,依据所述相同无线信号标识对应的第一信号强度和第二信号强度,确定所述第一终端设备是否远离所述第二终端设备。A first judging unit, configured to determine that the first terminal device is not far away from the second terminal device if the number of the same wireless signal identifiers is greater than the number threshold; otherwise, according to the same wireless signal identifier corresponding first The signal strength and the second signal strength are used to determine whether the first terminal device is far away from the second terminal device.

进一步的,确定模块520也可以包括:Further, the determining module 520 may also include:

距离计算单元,用于依据所述第一无线网络信息和所述第二无线网络信息计算所述第一终端设备和所述第二终端设备之间的距离信息;a distance calculation unit, configured to calculate distance information between the first terminal device and the second terminal device according to the first wireless network information and the second wireless network information;

第二判断单元,用于若所述距离信息大于距离阈值,则确定所述第一终端设备远离所述第二终端设备。A second judging unit, configured to determine that the first terminal device is far away from the second terminal device if the distance information is greater than a distance threshold.

进一步的,所述距离计算单元包括:Further, the distance calculation unit includes:

第一位置确定子单元,用于根据所述第一无线网络信息和所述第一无线网络信息对应的至少两个无线网络信号源的位置,确定所述第一终端设备的位置;A first position determining subunit, configured to determine the position of the first terminal device according to the first wireless network information and the positions of at least two wireless network signal sources corresponding to the first wireless network information;

第二位置确定子单元,用于根据所述第二无线网络信息和所述第二无线网络信息对应的至少两个无线网络信号源的位置,确定所述第二终端设备的位置;A second position determining subunit, configured to determine the position of the second terminal device according to the second wireless network information and the positions of at least two wireless network signal sources corresponding to the second wireless network information;

距离信息确定子单元,用于根据所述第一终端设备的位置和所述第二终端设备的位置确定所述第一终端设备和所述第二终端设备之间的距离信息。A distance information determining subunit, configured to determine distance information between the first terminal device and the second terminal device according to the location of the first terminal device and the location of the second terminal device.

进一步的,所述第一位置确定子单元和所述第二位置确定子单元具体用于:Further, the first position determination subunit and the second position determination subunit are specifically used for:

针对每个无线网络信号源,依据该无线网络信号源的位置以及所述无线网络信息中该无线网络信号源的信号强度,确定终端设备与该无线网络信号源之间的距离;For each wireless network signal source, determine the distance between the terminal device and the wireless network signal source according to the location of the wireless network signal source and the signal strength of the wireless network signal source in the wireless network information;

依据终端设备与所述至少两个无线网络信号源之间的距离,确定所述终端设备的位置。The position of the terminal device is determined according to the distance between the terminal device and the at least two wireless network signal sources.

本发明实施例提供的终端设备的监测装置可执行本发明任意实施例所提供的终端设备的监测方法,具备执行方法相应的功能模块和有益效果。The terminal device monitoring device provided in the embodiments of the present invention can execute the terminal device monitoring method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (10)

1. a kind of monitoring method of terminal device, it is characterised in that including:
The first radio network information that first terminal equipment sends is received, and receives the second wireless network of second terminal equipment transmission Network information, wherein first radio network information is the first terminal equipment and carries out wireless network scan and obtains, it is described Second wireless network information is that the first terminal equipment carries out wireless network scan and obtains;
According to first radio network information and the second wireless network information, determine whether the first terminal equipment is remote From the second terminal equipment.
2. method according to claim 1, it is characterised in that according to first radio network information and second nothing Whether the line network information, determine the first terminal equipment away from the second terminal equipment, including:
Determine that the first wireless signal that first radio network information is included is identified and the second wireless network information institute Comprising second wireless singal mark in same wireless signal identification quantity;
If the quantity of the same wireless signal identification is more than amount threshold, it is determined that the first terminal equipment is not away from described Second terminal equipment;Otherwise, according to corresponding first signal intensity of the same wireless signal identification and secondary signal intensity, really Whether the fixed first terminal equipment is away from the second terminal equipment.
3. method according to claim 1, it is characterised in that according to first radio network information and second nothing Whether the line network information, determine the first terminal equipment away from the second terminal equipment, including:
The first terminal equipment and described is calculated according to first radio network information and the second wireless network information The distance between second terminal equipment information;
If the range information is more than distance threshold, it is determined that the first terminal equipment is away from the second terminal equipment.
4. method according to claim 3, it is characterised in that according to first radio network information and second nothing The line network information calculates the distance between the first terminal equipment and second terminal equipment information, including:
According to first radio network information and corresponding at least two wireless network signal of first radio network information The position in source, determines the position of the first terminal equipment;
According to the second wireless network information and corresponding at least two wireless network signal of the second wireless network information The position in source, determines the position of the second terminal equipment;
The position of position and the second terminal equipment according to the first terminal equipment determine the first terminal equipment and The distance between second terminal equipment information.
5. method according to claim 4, it is characterised in that corresponding according to radio network information and radio network information The position at least two wireless network signal sources determines the position of terminal device, including:
For each wireless network signal source, it is somebody's turn to do according in the position in the wireless network signal source and the radio network information The signal intensity in wireless network signal source, determines the distance between terminal device and the wireless network signal source;
According to the distance between terminal device and described at least two wireless network signals source, the position of the terminal device is determined Put.
6. a kind of monitoring device of terminal device, it is characterised in that including:
Receiver module, for receiving the first radio network information of first terminal equipment transmission, and receives second terminal equipment hair The second wireless network information sent, wherein first radio network information is the first terminal equipment and carrying out wireless network and sweeping Retouch what is obtained, the second wireless network information is that the first terminal equipment carries out wireless network scan and obtains;
Determining module, for according to first radio network information and the second wireless network information, determining described first Whether terminal device is away from the second terminal equipment.
7. device according to claim 6, it is characterised in that the determining module includes:
Quantity determining unit, for determining the first wireless signal mark that first radio network information included with described the The quantity of same wireless signal identification in the second wireless singal mark that two radio network informations are included;
First judging unit, if being more than amount threshold for the quantity of the same wireless signal identification, it is determined that described first Terminal device is not away from the second terminal equipment;Otherwise, it is strong according to corresponding first signal of the same wireless signal identification Whether degree and secondary signal intensity, determine the first terminal equipment away from the second terminal equipment.
8. device according to claim 6, it is characterised in that the determining module includes:
Metrics calculation unit, for calculating described the according to first radio network information and the second wireless network information The distance between one terminal device and the second terminal equipment information;
Second judging unit, if being more than distance threshold for the range information, it is determined that the first terminal equipment is away from institute State second terminal equipment.
9. device according to claim 8, it is characterised in that the metrics calculation unit includes:
First position determination subelement, for corresponding with first radio network information according to first radio network information At least two wireless network signal sources position, determine the position of the first terminal equipment;
Second place determination subelement, for corresponding with the second wireless network information according to the second wireless network information At least two wireless network signal sources position, determine the position of the second terminal equipment;
Range information determination subelement, for the position according to the first terminal equipment and the position of the second terminal equipment Determine the distance between the first terminal equipment and the second terminal equipment information.
10. device according to claim 9, it is characterised in that the first position determination subelement and the second Put determination subelement specifically for:
For each wireless network signal source, it is somebody's turn to do according in the position in the wireless network signal source and the radio network information The signal intensity in wireless network signal source, determines the distance between terminal device and the wireless network signal source;
According to the distance between terminal device and described at least two wireless network signals source, the position of the terminal device is determined Put.
CN201710166018.2A 2017-03-20 2017-03-20 Monitoring method and device for terminal equipment Pending CN106899939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710166018.2A CN106899939A (en) 2017-03-20 2017-03-20 Monitoring method and device for terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710166018.2A CN106899939A (en) 2017-03-20 2017-03-20 Monitoring method and device for terminal equipment

Publications (1)

Publication Number Publication Date
CN106899939A true CN106899939A (en) 2017-06-27

Family

ID=59193825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710166018.2A Pending CN106899939A (en) 2017-03-20 2017-03-20 Monitoring method and device for terminal equipment

Country Status (1)

Country Link
CN (1) CN106899939A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140221009A1 (en) * 2012-02-29 2014-08-07 Tencent Technology (Shenzhen) Company Limited Method, system and apparatus for collecting location information
CN105577907A (en) * 2015-04-23 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Information processing method and device
CN105722216A (en) * 2016-04-14 2016-06-29 腾讯科技(深圳)有限公司 Distance detection method and terminal device
CN106019218A (en) * 2016-05-13 2016-10-12 中科劲点(北京)科技有限公司 Method for acquiring the relative distance of terminals and terminal
US20170001560A1 (en) * 2015-07-02 2017-01-05 Roger Roisen Systems and methods for removable vehicle seat sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140221009A1 (en) * 2012-02-29 2014-08-07 Tencent Technology (Shenzhen) Company Limited Method, system and apparatus for collecting location information
CN105577907A (en) * 2015-04-23 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Information processing method and device
US20170001560A1 (en) * 2015-07-02 2017-01-05 Roger Roisen Systems and methods for removable vehicle seat sensor
CN105722216A (en) * 2016-04-14 2016-06-29 腾讯科技(深圳)有限公司 Distance detection method and terminal device
CN106019218A (en) * 2016-05-13 2016-10-12 中科劲点(北京)科技有限公司 Method for acquiring the relative distance of terminals and terminal

Similar Documents

Publication Publication Date Title
US10609537B2 (en) Proximity platform
US20180324553A1 (en) Ble-based positioning method and apparatus
CN108513347B (en) Data transmission method and electronic equipment
US10383083B2 (en) Wireless local area network based positioning method and device
US9615277B2 (en) Method for determining position based on network and electronic device thereof
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN112470523A (en) Environment-aware adaptive fallback for wireless devices searching for available networks
CN113382423A (en) Signal transmission method, information indication method and related equipment
CN105684475A (en) Proximity-based services
CN111903177B (en) Method and device for identifying target equipment
US20180120898A1 (en) Remote control docking station and system
JP2016511615A (en) Method and apparatus for performing a scanning operation
JP2017532840A (en) Wireless transceivers managed based on neighborhood
CN106921938A (en) Localization method, device and intelligent terminal based on wireless network
CN107632600A (en) Method and device for controlling movement of air purifier, mobile terminal and purifier
WO2022247390A1 (en) Method and apparatus for measuring device distance, electronic device, and readable storage medium
CN105071552A (en) Wireless charging method, system and device, energy emission device and energy reception device
CN106714277A (en) Network connection method and terminal
CN113225787A (en) Wi-Fi scanning method, terminal equipment and storage medium
CN115278872A (en) Intelligent wearable device and positioning method, main control terminal, and fixed location positioning system
CN101959273A (en) Mobile communication device and network switching method thereof
CN108882335A (en) Network connection method, device and electronic device
CN106899939A (en) Monitoring method and device for terminal equipment
CN105392083B (en) MPP sound box switching method and access controller
CN116761254B (en) Indoor positioning method, device, communication equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170627