WO2020154956A1 - Device positioning method and system, positioning server and computer readable medium - Google Patents

Device positioning method and system, positioning server and computer readable medium Download PDF

Info

Publication number
WO2020154956A1
WO2020154956A1 PCT/CN2019/073925 CN2019073925W WO2020154956A1 WO 2020154956 A1 WO2020154956 A1 WO 2020154956A1 CN 2019073925 W CN2019073925 W CN 2019073925W WO 2020154956 A1 WO2020154956 A1 WO 2020154956A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
information
location
target device
positioning
Prior art date
Application number
PCT/CN2019/073925
Other languages
French (fr)
Chinese (zh)
Inventor
郭代飞
赵丽娟
Original Assignee
西门子股份公司
西门子(中国)有限公司
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 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2019/073925 priority Critical patent/WO2020154956A1/en
Publication of WO2020154956A1 publication Critical patent/WO2020154956A1/en

Links

Images

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

Definitions

  • the present invention relates to the field of communication technology, and in particular to a device positioning method, system, positioning server and computer readable medium.
  • IoT devices With the continuous development and progress of computer technology and communication technology, different types of IoT devices are widely used in various fields of industrial production and daily life, such as wearable devices for health detection, environmental sensing and remote Internet of Things (IoT) equipment for data collection, etc.
  • Internet of Things devices usually communicate with corresponding communication devices based on short-range wireless communication.
  • Short-range wireless communication refers to the transmission of communication information through radio waves within a relatively short distance. The effective communication distance is usually within tens of meters.
  • Wireless communication mainly includes near field communication (NFC), wireless fidelity (WIreless-Fidelity, Wi-Fi) communication, and Bluetooth communication.
  • the IoT device When the IoT device is successfully connected to the corresponding communication device for the first time, as long as the distance between the IoT device and the communication device meets the distance requirements of the corresponding short-range wireless communication, the IoT device can automatically connect with the communication device.
  • the communication device can locate the IoT device. However, if the distance between the IoT device and the communication device does not meet the corresponding short-range wireless communication distance requirements, the communication device cannot be connected to the IoT device at this time, and the IoT device cannot be located.
  • the Internet of Things device cannot be found, and the distance between the Internet of Things device and the first device does not meet the distance requirements of the corresponding short-range wireless communication, it is difficult to locate the Internet of Things device.
  • the device positioning method, system, positioning server, and computer readable medium provided by the present invention can conveniently locate IoT devices.
  • an embodiment of the present invention provides a device positioning method, including:
  • the second device After receiving the positioning request from the first device, send a search request to at least one second device according to the connection information included in the positioning request, so that the second device can try to establish a short-range wireless connection with the target device according to the connection information included in the search request.
  • at least one third device that has established a short-range wireless communication connection with the target device is determined from each second device, and then the target device is located according to the determined position of the at least one third device to obtain the In order to indicate the first location information of the current location of the target device, the obtained first location information is finally sent to the first device.
  • the first device After the first device submits a positioning request for positioning the target device, it can include a search request with connection information to multiple second devices, so that the second device can try to establish a short-range wireless communication connection with the target device based on the connection information.
  • the second device that establishes a short-range wireless communication connection with the target device is located near the target device, so that the target device can be located according to the location of the second device that can successfully establish a short-range wireless communication connection with the target device. Limited by the distance between the target device and the first device, the target device can be easily located, and the Internet of Things device can be conveniently located by using the IoT device as the target device.
  • a fourth device when positioning the target device according to the location of the at least one third device, a fourth device may be selected from the at least one third device, and then the coordinates of the location of the fourth device may be determined as The first location information indicating the current location of the target device.
  • a third device can be selected as the fourth device from each third device that has established a short-range wireless communication connection with the target device, and then the first Fourth, the coordinates of the location of the device are determined as the first location information used to indicate the current location of the target device. In this case, the efficiency of locating the target device can be improved.
  • the target device when locating the target device according to the location of at least one third device, communication signal strength information from each third device may be received, and the communication signal strength information characterizes the communication between the corresponding third device and the target device.
  • the signal strength of the short-distance wireless communication connection, and then the coordinates of the current location of the target device can be determined according to the coordinates of the location of each third device and the communication signal strength information from the third device, and finally the coordinates will be determined As the first location information indicating the current location of the target device.
  • the signal strength of the short-distance wireless communication between the third device and the target device is related to the distance between the two, so if the distance between the third device and the target device is different, the corresponding communication signal strength information is different, according to the communication signal strength information
  • the distance between the third device and the target device can be determined, and the coordinates of the location of the third device can be combined to calculate the coordinates of the location of the target device, and the calculated coordinates can be used as the first position indicating the current location of the target device Information can ensure the accuracy of positioning the target device.
  • the second device when sending a search request to the second device, first determine at least one second device that can perform a short-range wireless communication connection with the target device according to the type of the target device, and then obtain the knowledge that the target device last communicated with the first device The second location information of the location of the target device during communication, and then set the priority for the second device based on the distance between the location of the second device and the location indicated by the second location information, so that the location of the second device The smaller the distance between the locations indicated by the second location information, the higher the priority of the second device, and then the search request is sent to each second device in sequence from high to low corresponding to the priority.
  • the second location information indicates the location of the target device when communicating with the first device in sequence recently.
  • the target device is more likely to be located at the location indicated by the second location information.
  • the distance between the indicated positions sets a priority for the second device, and then a search request may be sent to the second device that is closer to the position indicated by the second position information according to the priority. After the second device closer to the location indicated by the second location information cannot establish a short-range wireless communication connection with the target device, sending a search request to the second device farther from the location indicated by the second location information can further improve The efficiency of locating the target device.
  • determining the third device from the second device determine each second device that has established a short-range wireless communication connection with the target device as a third device in turn, and determine whether the number of third devices reaches A preset target number.
  • a stop search request is sent to all second devices, so that second devices that have not yet established a short-range wireless communication connection with the target device stop trying to establish a short-range connection with the target device.
  • Distance wireless communication connection when determining the third device from the second device, determine each second device that has established a short-range wireless communication connection with the target device as a third device in turn, and determine whether the number of third devices reaches A preset target number.
  • the second device that successfully establishes a short-range wireless communication connection with the target device is determined as the third device in turn, and the determination is determined each time a third device is determined Whether the number of third devices out of the list reaches the preset target number, when the number of third devices reaches the target number, send a stop search request to each second device so that the short-range wireless communication connection with the target device has not yet been established
  • the second device stops trying to establish a short-range wireless communication connection with the target device. In this way, on the premise that the number of third devices can meet the positioning demand, the time required for positioning can be shortened and computing resources can be saved.
  • a data collection request can be sent to one or more third devices, so that the third device collects data from the target device within a preset time period according to the data collection request.
  • Type target data and then receive the target data returned by each third device, and send the received target data to the first device.
  • the third device Since the third device has established a short-range wireless communication connection with the target device, the third device can communicate with the target device normally. By sending a data collection request to the third device, the third device can collect the required data from the target device. Data can be easily collected from the target device, which is suitable for situations where it is inconvenient to set up a data collection communication base station for the target device.
  • the location request from the first device, the search request sent to the second device, the first location information sent to the first device, and the target data from the third device All forwarded in the form of ciphertext.
  • the location request, search request, first location information, and target data are transmitted in the form of cipher text, which can avoid sensitive data leakage during the data transmission process and ensure the security of the location process.
  • an embodiment of the present invention also provides a positioning server, including:
  • a request receiving module for receiving a positioning request from a first device, where the positioning request includes connection information, and the connection information is used to establish a short-range wireless communication connection with the target device to be located;
  • a request sending module for sending a search request to at least one second device, where the search request includes connection information received by the request receiving module, and the search request is used to instruct at least one second device to try to establish with the target device according to the connection information Short-range wireless communication connection;
  • a device screening module for determining at least one third device, where the third device is a device in the at least one second device that has established a short-range wireless communication connection with the target device according to the search request sent by the request sending module;
  • a device positioning module configured to locate the target device according to the location of at least one third device determined by the device screening module, and obtain first location information indicating the current location of the target device;
  • An information sending module is used to send the first location information obtained by the device positioning module to the first device.
  • the request sending module sends a search request including the connection information included in the positioning request to at least one second device, and the device screening module will contact the target according to the connection information included in the search request.
  • the second device that the device establishes a short-range wireless communication connection is determined to be the third device, and the device positioning module locates the target device according to the location of at least one third device determined by the device screening module to obtain an indication of the current location of the target device.
  • the information sending module sends the first location information obtained by the device positioning module to the first device.
  • the device positioning module locates the target device according to the location of each third device, and obtains the first knowledge of the current location of the target device. Location information, because different second devices are distributed in different locations and can be moved, the second device that can communicate with the target device in a short distance is used to locate the target device, and the positioning process is no longer limited between the target device and the first device It is convenient to locate the target device, and then use the IoT device as the target device to easily locate the IoT device.
  • the device positioning module includes:
  • a first positioning unit is used to determine the coordinates of the location of the fourth device selected by the device selection unit as the first location information used to indicate the current location of the target device.
  • the short-range wireless communication connection Since the short-range wireless communication connection is successfully established between the third device and the target device, it indicates that the distance between the target device and the third device is less than the limited communication distance of short-range wireless communication, that is, the target device is located near the third device, so the device
  • the selection unit can select a third device from each third device as the fourth device, and the first positioning unit can use the coordinates of the location of the fourth device selected by the device selection unit as the first indication of the location of the target device.
  • the location information does not require complicated positioning calculations, and can provide the efficiency of positioning the target device.
  • the positioning server may further include a first information receiving module, and the device positioning module may include a coordinate calculation unit and a second positioning unit;
  • the first information receiving module is configured to receive the communication signal strength information of each third device determined by the device screening module, wherein the communication signal strength information is used to characterize the short-range wireless communication between the corresponding third device and the target device Signal strength;
  • a coordinate calculation unit for determining the coordinates of the current location of the target device based on the coordinates of the location of each third device and the communication signal strength information from the corresponding third device received by the first information receiving module;
  • a second positioning unit is used to determine the coordinates of the current location of the target device determined by the coordinate calculation unit as the first location information.
  • the coordinate calculation unit can use the coordinates of each third device's location and the information received by the first information receiving module from the third device.
  • the communication signal strength information determines the coordinates of the current location of the target device
  • the second positioning unit determines the coordinates determined by the coordinate calculation unit as the first location information.
  • the coordinate calculation unit calculates the coordinates of the location of the target device according to the coordinates of the location of the third device and the corresponding communication signal strength information
  • the second positioning unit determines the coordinates calculated by the coordinate calculation unit to indicate the current location of the target device
  • the first location information of the location ensures the accuracy of positioning the target device.
  • the request sending module includes:
  • a device acquisition unit for determining at least one second device that can perform short-range wireless communication with the target device according to the type of the target device;
  • a location acquiring unit configured to acquire second location information further included in the positioning request, where the second location information is used to indicate the location where the target device was in the last communication with the first device;
  • a priority setting unit for determining the distance between the second device and the location indicated by the second location information obtained by the location obtaining unit for each second device determined by the device obtaining unit, and determining the distance according to the determined The distance sets the priority of the second device, where the smaller the distance, the higher the priority of the second device;
  • a first sending unit configured to send the connection information including connection information to the at least one second device in sequence according to the priority set by the priority setting unit for the at least one second device, in descending order of the corresponding priority Search request.
  • the location acquiring unit acquires the second location information indicating the location of the target device when the target device communicated with the first device last time, preferably
  • the level setting unit sets the priority for each second device acquired by the device acquiring unit according to the distance between the location of the second device and the location indicated by the second location information acquired by the location acquiring unit, and the first sending unit.
  • a search request is sent to the second device that is closer to the location indicated by the second location information, and the target device is located between the location indicated by the second location information
  • the second device that is closer is more likely to be nearby, so that the efficiency of locating the target device can be improved.
  • the device screening module includes:
  • a device identification unit for sequentially determining each second device that has established a short-range wireless communication connection with the target device as a third device
  • a judging unit for judging whether the number of third devices determined by the identification unit reaches a preset target number
  • a second sending unit is used to send a stop search request to all second devices when the judging unit determines that the number of third devices reaches the target number, so that the second devices that have not established short-range wireless communication connections with the target device stop Try to establish a short-range wireless communication connection with the target device.
  • the device identification unit sequentially determines the second device that has successfully established a short-range wireless communication connection with the target device as the third device.
  • the period judgment unit judges whether the number of third devices has reached the preset target number, and when the judgment unit judges the first After the number of three devices has reached the target number, the second sending unit sends a stop search request to all second devices, so that the second device that has not yet established a short-range wireless communication connection with the target device stops trying to establish short-range wireless communication with the target device Communication connection, stop searching for the target device in time after the number of third devices meets the requirements for node positioning of the target device, which can improve the positioning efficiency and avoid the waste of computing resources.
  • the positioning server further includes: a second information receiving module
  • the request sending module is further configured to send a data collection request to at least one third device, where the data collection request is used to instruct the third device to collect target data of a preset type formed within a preset time period from the target device;
  • the second information receiving module is configured to receive target data collected from the third device according to the data collection request sent by the request sending module;
  • the information sending module is further configured to send the target data received by the second information receiving module to the first device.
  • the request sending module can send a data collection request to the third device, and the second information receiving module can receive the target data collected from the target device by the third device according to the data collection request sent by the request sending module.
  • the information sending module can send the first Second, the target data received by the information receiving module is sent to the first device, so that the third device can be used to collect the required data from the target device, and the data can be collected from the target device conveniently, which is suitable for inconvenient setting data for the target device Collect the situation of the communication base station.
  • an embodiment of the present invention also provides a positioning server, including: at least one memory and at least one processor;
  • At least one memory for storing machine-readable programs
  • At least one processor is configured to invoke a machine-readable program to execute the foregoing first aspect or the method provided in any possible implementation manner of the first aspect.
  • a machine-readable program is stored in the memory, and the processor can execute the method provided in the first aspect or any implementable manner of the first aspect by calling the machine-readable program stored in the memory, and the first device proposes to After the target device performs a positioning request, it can include a search request with connection information to multiple second devices, so that the second device can try to establish a short-range wireless communication connection with the target device according to the connection information, and can establish a short-range wireless communication connection with the target device
  • the second device connected by wireless communication is located near the target device, so that the target device can be located according to the position of the second device that can successfully establish a short-range wireless communication connection with the target device, and the positioning process is no longer limited to the target device
  • an embodiment of the present invention also provides a positioning system, including: a first device, at least one second device, and one of the foregoing second aspect, any possible implementation manner of the second aspect, and the third aspect Or any positioning server provided by any possible implementation of the third aspect;
  • the first device is configured to send a positioning request to the positioning server, where the positioning request includes connection information, and the connection information is used to establish a short-range wireless communication connection with the target device to be located;
  • Each second device is configured to try to establish a short-range wireless communication connection with the target device according to the connection information included in the search request after receiving the search request from the positioning server.
  • the positioning server After the first device sends a positioning request to the positioning server, the positioning server generates a search request including connection information according to the connection information included in the positioning request, and then sends the search request to at least one second device.
  • the second device that receives the search request
  • the connection information included in the search request attempts to establish a short-range wireless communication connection with the target device.
  • the positioning server determines the second device that has established a short-range wireless communication connection with the target device as the third device, and according to the location of each third device The location is used to locate the target device, obtain first location information indicating the current location of the target device, and finally the positioning server sends the first location information to the first device.
  • the positioning process is no longer limited by the distance between the target device and the first device, so that the target device can be easily located, and then the IoT device is the target The device can easily locate the IoT device.
  • the embodiments of the present invention also provide a computer-readable medium on which computer instructions are stored.
  • the processor executes the first aspect or the first aspect described above. The method provided by any possible implementation.
  • a device submits a positioning request for positioning the target device, it can include search requests with connection information to multiple second devices, so that the second device can try to establish a short-range wireless communication connection with the target device based on the connection information, and be able to communicate with the target device.
  • the second device that the device establishes a short-range wireless communication connection is located near the target device, so that the target device can be located according to the location of the second device that can successfully establish a short-range wireless communication connection with the target device.
  • the positioning process is no longer affected.
  • the distance between the target device and the first device is limited, so that the target device can be conveniently located, and the Internet of Things device can be conveniently located by using the Internet of Things device as the target device.
  • FIG. 1 is a schematic diagram of a device positioning system provided by an embodiment of the present invention
  • Figure 2 is a schematic diagram of another device positioning system provided by an embodiment of the present invention.
  • Figure 3 is a flowchart of a device positioning method provided by an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for determining first location information according to an embodiment of the present invention
  • FIG. 5 is a flowchart of another method for determining first position information according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for obtaining coordinates of the current location of a target device according to an embodiment of the present invention
  • FIG. 7 is a flowchart of a method for calculating a distance between a third device and a target device according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for sending a search request according to an embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for determining a third device according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of a data collection method according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a positioning server provided by an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a device positioning module according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another device positioning module provided by an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of a request sending module according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of a device screening module according to an embodiment of the present invention.
  • FIG. 16 is a schematic diagram of another positioning server provided by an embodiment of the present invention.
  • Fig. 17 is a schematic diagram of another positioning server provided by an embodiment of the present invention.
  • Positioning server 20 Second device 30: Target device
  • Information sending module 106 First information receiving module
  • the communication between IoT devices and communication devices is based on short-range wireless communication
  • short-range wireless communication requires that the distance between the two communicating parties be within a short effective communication distance.
  • the distance is greater than the effective communication distance of short-range wireless communication and the IoT device cannot be found, it is difficult to locate the IoT device because the communication device cannot communicate with the IoT device and cannot locate the IoT device.
  • the first device that has previously performed short-range wireless communication with the target device sends a location request including connection information, and then can send to at least one second device
  • the search request including connection information allows the second device to try to establish a short-range wireless communication connection with the target device according to the connection information, and determine at least one second device that has established short-range wireless communication with the target device as the third device, and then
  • the target device can be located according to the location of each third device, the first location information used to indicate the current location of the target device is obtained, and then the first location information is sent to the first device, and the user can determine where the target device is.
  • the location of the target device can be easily achieved. It can be seen that using the IoT device as the target device in the embodiment of the present invention can conveniently locate the IoT device.
  • the target device may be an Internet of Things device that performs short-range wireless communication based on NFC, Wi-Fi, Bluetooth, or the like.
  • an embodiment of the present invention provides a device positioning system, including: a positioning server 10, at least one second device 20, and a first device 40;
  • the first device 40 is configured to send a positioning request to the positioning server 10, where the positioning request includes connection information, and the connection information is used to establish a distanceless wireless communication connection with the target device to be positioned;
  • the positioning server 10 is configured to send a search request including connection information to at least one second device 20;
  • the second device 20 is configured to try to establish a short-range wireless communication connection with the target device to be located according to the connection information included in the received search request;
  • the positioning server 10 is further configured to determine at least one second device 20 that has established a short-range wireless communication connection with the target device as a third device, and locate the target device according to the location of each third device, and obtain instructions for The first location information of the current location of the target device, and the first location information is sent to the first device 40.
  • the positioning server 10 sends a search request to one or more second devices 20, and the second device 20 can try to contact the target according to the search request.
  • the device establishes a short-range wireless communication connection.
  • the third device is the second device 20 that has successfully established a short-range wireless communication connection with the target device. Since the third device can establish a short-range wireless communication connection with the target device, it indicates that the third device and the target device The distance between them is smaller than the effective communication distance of short-range wireless communication, so the positioning server 10 can locate the target device according to the position of the third device.
  • the positioning server 10 can use the second device 20 located in a different location to try to establish a short-range wireless communication connection with the target device, and then determine the location of the second device 20 that has successfully established a short-range wireless communication connection with the target device.
  • the realization of positioning is no longer limited by the distance between the first device 40 and the target device. Even if the distance between the first device 40 and the target device is long, the target device can be positioned, so that Conveniently locate the target device.
  • the positioning system may further include: a target device 30 to be positioned;
  • the positioning server 10 After the positioning server 10 determines that at least one second device 20 that has established a short-distance wireless communication connection with the target device is the third device 50, the positioning server 10 can be based on where each third device 50 communicates with the target device 30. The location locates the target device 30, and then obtains first location information indicating the current location of the target device 30, and sends the obtained first location information to the first device 40.
  • the positioning server involved in these methods can be the aforementioned positioning server 10
  • the second device involved in these methods can be the aforementioned second device 20
  • the third device involved in these methods can be the aforementioned first device.
  • the third device 50, the target device involved in these methods may be the aforementioned target device 30, and the first device involved in these methods may be the aforementioned first device 40.
  • the second device by sending search requests to multiple second devices, the second device attempts to establish a short-range wireless communication connection with the target device, and then according to the short-range wireless communication connection that has been established with the target device
  • the second device is used to locate the target device.
  • the method may specifically include the following steps:
  • Step 301 Receive a location request from a first device, where the location request includes connection information, and the connection information is used to establish a short-range wireless communication connection with the target device to be located;
  • Step 302 Send a search request including connection information to at least one second device, where the search request is used to instruct at least one second device to try to establish a short-range wireless communication connection with the target device according to the connection information;
  • Step 303 Determine at least one third device, where the third device is a device that has established a short-range wireless communication connection with the target device among the at least one second device;
  • Step 304 Position the target device according to the location of the at least one third device, and obtain first location information indicating the current location of the target device;
  • Step 305 Send the first location information to the first device.
  • the device positioning method After receiving a positioning request from a first device, it sends a search request to at least one second device, and the second device that has received the search request can try to communicate with the connection information included in the search request.
  • the corresponding target device establishes a short-range wireless communication connection.
  • locate the target device according to the location of each third device Acquire first location information that is used to indicate the current location of the target device, and then send the acquired first location information to the first device.
  • the first device can send search requests to multiple second devices, so that the second device tries to establish a short-range wireless communication connection with the target device, and then can establish a short-range wireless communication connection with the target device according to The location of the second device connected by short-range wireless communication is used to locate the target device. Since multiple second devices can be located in different locations, the positioning process is no longer limited by the distance between the target device and the first device In this way, the target device can be conveniently located, and the IoT device can be conveniently located by using the IoT device as the target device.
  • the first device is a device that has previously performed short-range wireless communication with the target device.
  • the first device can obtain the connection information of the target device , And store the connection information locally in the first device.
  • the connection information is the information necessary for the short-range wireless communication connection with the target device.
  • the connection information includes different content.
  • the connection information can include the target device Name, MAC address, device type, PIN authentication name, communication interface information, etc.
  • step 304 locates the target device according to the location of at least one third device, and obtains first location information indicating the current location of the target device, According to different positioning accuracy requirements, the first location information indicating the current location of the target device can be obtained in the following two ways:
  • Manner 1 Use the coordinates of the location of one of the third devices as the first location information for indicating the current location of the target device;
  • Manner 2 Determine the first location information indicating the current location of the target device based on the coordinates of the location of the third device and the signal strength of the short-range wireless communication between the third device and the target device.
  • step 304 can be implemented through the following sub-steps:
  • Step 401 Select a fourth device from at least one third device
  • Step 402 Determine the coordinates of the location of the fourth device as the first location information of the current location of the target device.
  • the fourth device After determining at least one third device that has established a short-range wireless communication connection with the target device, you can select a third device from each third device as the fourth device, and then use the coordinates of the fourth device as an indication The first location information of the current location of the target device. Since the third device and the target device have successfully established a short-range wireless communication connection, the distance between the target device and the third device is less than the effective communication distance of short-range wireless communication, and the limited communication distance of short-range wireless communication is usually shorter Therefore, when the positioning accuracy is low, the coordinates of the location of one of the third devices can be used to indicate the current location of the target device. At this time, after sending the coordinates of the location of a third device to the first device as the first location information, the user can obtain the first location information from the first device, and can be at the location indicated by the first location information. The target device is found nearby.
  • the third device is directly determined as the fourth device. If at least two third devices are determined, a third device needs to be selected from a plurality of third devices as the fourth device. Specifically, one method can be selected from each third device through a preset random algorithm A third device is randomly selected as the fourth device. In another way, the third device with the highest reliability among the third devices can be used as the fourth device.
  • the coordinates of the location of the fourth device are sent by the fourth device. Furthermore, the coordinates of the location of the fourth device may be located by the GPS positioning module set on the fourth device through GPS satellites. And get.
  • the process of acquiring the communication signal strength information and determining the first location information can be specifically implemented through the following steps:
  • Step 501 Receive communication signal strength information from each third device, where the communication signal strength information is used to characterize the signal strength of the short-range wireless communication between the corresponding third device and the target device;
  • Step 502 Determine the coordinates of the current location of the target device according to the coordinates of the location of each third device and the communication signal strength information from the corresponding third device;
  • Step 503 Determine the coordinates of the current location of the target device as the first location information used to identify the current location of the target device.
  • the third device After the third device establishes a short-range wireless communication connection with the target device, the third device can perform short-range wireless communication with the target device, and the third device can collect communication signal strength information when it performs short-range wireless communication with the target device. And return the collected communication signal strength information. Since the communication signal strength information represents the signal strength of the short-range wireless communication between the third device and the target device, the signal strength of the short-range wireless communication between the third device and the target device and the signal strength between the third device and the target device The distance is related, so the distance between the third device and the target device can be determined according to the communication signal strength information from the third device.
  • the current location of the target device can be calculated by the geometric positioning method according to the distance between each third device and the target device and the coordinates of the location of each third device.
  • the coordinates of the current location, and then the calculated coordinates are used as the first location information indicating the current location of the target device.
  • a corresponding communication request can be sent to the third device, so that the third device can perform short-range wireless communication with the target device according to the communication request And return the communication signal strength information.
  • the communication signal strength information of the communication performed when the third device establishes a short-range wireless communication connection with the target device can be directly obtained.
  • the communication signal strength information from the third device is used to characterize the signal strength of the short-range wireless communication between the corresponding third device and the target device, and the signal strength may specifically be the signal strength of the wireless communication signal received by the third device. Stream, or may also be the strength of the wireless communication signal received by the third device.
  • a coordinate acquisition request may be sent to each third device, so that each third device sends the coordinates of its location according to the coordinate acquisition request. Furthermore, each third device can use the GPS positioning module to obtain the coordinates of its location through GPS satellite positioning.
  • the coordinates of the location of the target device may be determined according to the communication signal strength information from one, two, or three third devices, specifically:
  • Method (1) Determine the first location information according to the communication signal strength information from a third device
  • any third device obtain three communication signal strength information from the third device, and these three communication signal strength information represent the signal strength of the third device for short-range wireless communication with the target device at three different locations , And then can calculate the target device when the third device is used as a reference based on the three acquired communication signal strength information and the coordinates of the position where the third device communicates with the target device corresponding to each communication signal strength information The coordinates of the current location.
  • Method (2) Determine the first location information according to the communication signal strength information from the two third devices
  • any two third devices obtain one piece of communication signal strength information from the third device X of the two third devices, and obtain the first one from the two third devices
  • the two communication signal strength information of the three devices Y where the two communication signal strength information from the third device Y represents the signal strength of the third device Y in short-range wireless communication with the target device at two different locations, and can then be obtained according to
  • the three received three communication signal strength information and the three communication signal strength information correspond to the coordinates of one location where the third device X communicates and the coordinates of the two locations where the third device Y communicates to calculate this
  • Method (3) Determine the first location information according to the communication signal strength information from the three third devices
  • one piece of communication signal strength information from each of the three third devices is obtained, and then the three pieces of communication signal strength information obtained and the three third devices’
  • the coordinates of the location where the target device is in communication are used to calculate the coordinates of the current location of the target device when the three third devices are used as a reference.
  • the method for calculating the position coordinates of the target device is the same for the three acquired communication signal strength information.
  • the method for calculating the coordinates of the current location of the target device when the third device A is used as a reference will be described in detail by taking the three communication signal strength information obtained from a third device A as an example. As shown in Figure 6, the method may include the following steps:
  • Step 601 Obtain the coordinates of three search positions corresponding to the three communication signal strength information, where the three search positions are three different positions where the third device A performs short-range wireless communication with the target device, and are from the third The three communication signal strength information of device A respectively represent the signal strength of the third device A when communicating with the target device at the three search positions;
  • Step 602 Determine the communication distance between the search location corresponding to the communication signal strength information and the target device according to each communication signal strength information;
  • Step 603 According to the determined three communication distances and the coordinates of the three search positions, the coordinates of the current location of the target device when the third device A is used as a reference are calculated through the following equations;
  • (x, y) represents the coordinates of the current position of the target device when the needle is referenced by the third device A, (x A , y A ), (x B , y B ) and (x C , y C ) respectively Characterize the coordinates of the three search positions where the target device is located.
  • the d A , d B and d C respectively characterize the three communication distances between the three search positions and the target device.
  • the three communication distances between the three search positions of the third device A and the target setting can be calculated based on the three communication signal strength information, and then the three calculated based on the triangular positioning method
  • the communication distance and the coordinates of the three search locations can calculate the coordinates of the current location of the target device. Since the calculated coordinates are based on the communication signal strength information from the third device A and the location of the third device A, the calculated coordinates are defined as the current location of the target device when the third device A is used as a reference coordinate.
  • the third device is a mobile device, such as a mobile phone, a notebook computer, a tablet computer, etc.
  • the third device is used to perform short-range wireless communication with the target device in three different locations.
  • the signal strength of the device during communication can calculate the distance between the three locations where the third device is located and the target device, and then combine the coordinates of the three locations where the third device is located to calculate the coordinates of the target device to achieve the target
  • the device is positioned.
  • the third equation in the above equations since the acquired communication signal strength information and the coordinates of the search position may have errors, if the third equation in the above equations also adopts the same equation form as the first two equations, the above may be caused The equations are misunderstood, so the third process in the above equations adopts an inequality form to ensure that the appropriate (x, y) can be solved as the coordinates of the target device through the above equations.
  • step 602 determines the communication distance between the corresponding search location and the target device according to each communication signal strength information.
  • this step can be specifically The following sub-steps are implemented:
  • Step 701 Obtain signal strength level data from the communication signal strength information, where the signal strength level data specifically represents the strength of the communication signal;
  • Step 702 Substitute the signal strength level data into the following formula to calculate the communication distance between the search location corresponding to the communication signal strength information and the target device;
  • d represents the communication distance between the search location corresponding to the communication signal strength information and the target device
  • RSSI represents signal strength level data
  • A represents the signal strength data per unit distance from the search location
  • N represents the signal attenuation index.
  • the signal strength level data of is substituted into the above formula to calculate the distance between the corresponding search location and the target device.
  • the value range of the signal strength data A at a unit distance from the search position may be 45-49
  • the value range of the signal attenuation index N may be 3.25-4.5.
  • different methods may be used to determine the first location information indicating the current location of the target device according to the number of third devices, specifically:
  • the calculated coordinates of the current location of the target device when the third device is used as a reference are determined as the first location information
  • At least two third devices obtain the abscissa and ordinate values of the current location coordinates of the target device when each third device is used as a reference, and then calculate the average of the obtained abscissa values Value as the average abscissa value, and calculate the average value of each ordinate value obtained as the average ordinate value, and then use the average abscissa value and average ordinate value as the abscissa and ordinate to obtain a new coordinate, The new coordinates are determined as the first position information.
  • third device 1 two third devices are determined by statistics, namely third device 1 and third device 2.
  • the coordinates of the current location of the target device when the third device 1 is used as a reference are calculated as ( x 1 , y 1 ), and calculate the coordinates of the current location of the target device when the third device 2 is used as a reference to (x 2 , y 2 ), then set the coordinates Determined as the first location information used to indicate the current location of the target device.
  • a coordinate indicating the location of the target device can be obtained.
  • the average value of the horizontal coordinate and the average value of the vertical coordinate of each coordinate obtained are calculated, and then the The calculated average value of the abscissa and the average value of the ordinate are respectively used as the abscissa and the ordinate of the new coordinate, and then the new coordinate is used as the first position information.
  • the coordinates obtained by referring to each third device are integrated to ensure that the finally obtained first position information can more accurately indicate the location of the target device, and the accuracy of positioning the target device is improved.
  • step 302 when step 302 sends a search request including connection information to at least one second device, as shown in FIG. 8, it can be specifically implemented through the following sub-steps:
  • Step 801 According to the type of the target device, determine at least one second device that can perform a short-range wireless communication connection with the target device;
  • Step 802 Acquire second location information further included in the positioning request, where the second location information is used to indicate the location of the target device when the target device communicated with the first device last time;
  • Step 803 For each second device, determine the distance between the second device and the position indicated by the second location information, and set the priority of the second device according to the determined distance, where the determined distance The smaller the value, the higher the priority of the second device;
  • Step 804 Send a search request including connection information to each second device in sequence from high to low corresponding priority.
  • the location request from the first device may include not only the connection information, but also the type of the target device and the second location information used to indicate the location of the target device when the first device communicated with the target device for the last time.
  • the type of the target device multiple second devices that can perform short-range wireless communication with the target device can be determined, and each second device and the second location can be determined according to the coordinates of its location uploaded by each second device The distance between the locations indicated by the information.
  • the location indicated by the second location information is more likely to be the current location of the target device. Therefore, the priority of each second device can be set according to the distance between the second device and the location indicated by the second location information, so that The second device with the smaller distance from the location indicated by the second location information has a higher priority.
  • the search request is sent to the second device with higher priority first, which can improve the efficiency of locating the target device.
  • two different second devices when setting priorities for each second device, two different second devices may have the same priority.
  • multiple second devices with the same priority may be divided into one
  • the second device group may then sequentially send search requests to the second devices included in each second device group in descending order of the corresponding priority according to the priority corresponding to each second device group.
  • the second device when step 801 determines the second device that can perform short-range wireless communication with the target device according to the type of the target device, the second device may be determined according to the communication type of the target device or the device type of the target device. equipment. When determining the second device according to the communication type of the target device, select the device that supports communication using the communication type of the target device as the second device; when determining the second device according to the device type of the target device, select the same operation as the target device The device of the system is used as the second device. For example, if the target device is the Android system, the device of the Android system is selected as the second device, and if the target device is the IOS system, the device of the IOS system is selected as the second device. The second device is selected according to the communication type or device type of the target device to ensure that the selected second device can perform a short-range wireless communication connection with the target device, thereby ensuring the normal progress of the positioning process of the target device.
  • a target number of third devices can be preset, and when the number of third devices reaches the target number, a stop search request is sent to all second devices, so that The second device that has not established a short-range wireless communication connection with the target device stops trying to establish a short-range wireless communication connection with the target device.
  • the process of determining the third device in step 303 can be specifically implemented through the following substeps:
  • Step 901 sequentially determine each second device that has established a short-range wireless communication connection with the target device as a third device;
  • Step 902 Determine whether the number of third devices has reached the preset target number
  • Step 903 When the number of third devices reaches the target number, send a stop search request to all second devices, so that the second device located at the target device establishing a short-range wireless communication connection stops trying to establish short-range wireless communication with the target device connection.
  • the second device that has not yet established a short-range wireless communication connection with the target device stops trying to establish a short-range wireless communication connection with the target device. After ensuring that the target device can be positioned using the determined third device, stopping other second devices to continue searching for the target device can avoid waste of resources.
  • the third device may be used to collect the required target data from the target device.
  • the method of collecting target data from a target device may include the following steps:
  • Step 1001 Send a data collection request to at least one third device, where the data collection request is used to instruct the third device to collect target data of a preset type formed within a preset time period from the target device;
  • Step 1002 Receive target data from a third device
  • Step 1003 Send the target data to the first device.
  • the third device Since the third device is a device that has established a short-range wireless communication connection with the target device, the third device can normally perform wireless communication with the target device to transmit data. After at least one third device is determined, a data collection request can be sent to one or more of the third devices. The third device that receives the data collection request can collect data from the target device within a specified time period and be of a specified type. Target data, and return the collected target data. After receiving the target data returned by the third device, the received target data may be sent to the first device.
  • the third device can collect target data from the target device, so that a movable third device can be used to easily collect data from the target device.
  • the target device there is no need to specifically configure the target device.
  • Fixed communication base stations for data collection on the other hand, can easily collect data from moving target devices.
  • a data collection request when sending a data collection request to a third device, if multiple third devices are determined, a data collection request can be randomly sent to a third device, so as to obtain data from the target device through this third device. In order to collect data, it is also possible to send different data collection requests to at least two or all selected third devices, so that each third device is responsible for collecting different data from the target device.
  • the third device may collect security data from the target device, such as the security log generated by the target device within a specified time period, so as to analyze the security status of the target device based on the collected security log.
  • the positioning request, search request, first location information, and target data are all forwarded in the form of cipher text to avoid leakage of sensitive data during the positioning process and ensure Security of the positioning process.
  • the first device before sending the positioning request, the first device first encrypts the information included in the positioning request with a randomly generated session key to obtain the ciphertext of the positioning request, and at the same time, the first device uses its private key to pair the randomly generated session key Encryption is performed to obtain the session key cipher text, and then the location request cipher text and the session key cipher text are sent at the same time.
  • the location request ciphertext and the session key ciphertext After receiving the location request ciphertext and the session key ciphertext from the first device, first use the public key of the first device to decrypt the session key ciphertext to obtain the session key, and then use the decrypted session key pair The received ciphertext of the location request is decrypted to obtain the specific information included in the location request.
  • the second device after sending a search request to the second device, after the second device attempts to establish a short-range wireless communication connection with the target device, regardless of whether the second device successfully establishes a short-range wireless communication connection with the target device, the second device will The connection information included in the search request is deleted to avoid leakage of connection information.
  • the third device collects the target data from the target device, it directly returns the target data to the positioning server, and the third device does not store the target data locally, ensuring the security of the target data.
  • an embodiment of the present invention provides a positioning server 10, including:
  • a request receiving module 101 configured to receive a positioning request from a first device, where the positioning request includes connection information, and the connection information is used to establish a short-range wireless communication connection with a target device to be located;
  • a request sending module 102 is configured to send a search request to at least one second device, where the search request includes the connection information received by the request receiving module 101, and the search request is used to instruct at least one second device to try to contact the target according to the connection information.
  • the device establishes a short-range wireless communication connection;
  • a device screening module 103 is used to determine at least one third device, where the third device is a device in the at least one second device that has established a short-range wireless communication connection with the target device according to the search request sent by the request sending module 102;
  • a device positioning module 104 configured to locate the target device according to the location of at least one third device determined by the device screening module 103, and obtain first location information indicating the current location of the target device;
  • An information sending module 105 is used to send the first location information obtained by the device positioning module 104 to the first device.
  • the request receiving module 101 can be used to perform step 301 in the above method embodiment
  • the request sending module 102 can be used to perform step 302 in the above method embodiment
  • the device screening module 103 can be used to perform the above method embodiment.
  • the device positioning module 104 can be used to perform step 304 in the above method embodiment
  • the information sending module 105 can be used to perform step 305 in the above method embodiment.
  • the device positioning module 104 includes:
  • a device selection unit 1041 configured to select a fourth device from at least one third device
  • a first positioning unit 1042 is used to determine the coordinates of the location of the fourth device selected by the device selection unit 1041 as the first location information used to indicate the current location of the target device.
  • the device selection unit 1041 may be used to perform step 401 in the foregoing method embodiment, and the first positioning unit 1042 may be used to perform step 402 in the foregoing method embodiment.
  • the positioning server 10 further includes: a first information receiving module 106;
  • the first information receiving module 106 is configured to receive the communication signal strength information of each third device determined by the device screening module 103, where the communication signal strength information is used to characterize the short distance between the corresponding third device and the target device Signal strength of wireless communication;
  • the device positioning module 104 includes:
  • a coordinate calculation unit 1043 for determining the coordinates of the current location of the target device based on the coordinates of the location of each third device and the communication signal strength information from the corresponding third device received by the first information receiving module 106 ;
  • a second positioning unit 1044 is used to determine the coordinates of the current location of the target device determined by the coordinate calculation unit 1043 as the first location information.
  • the first information receiving module 106 can be used to perform step 501 in the above method embodiment, and the coordinate calculation unit 1043 can be used to perform step 502, steps 601 to 603, and steps 701 and 702 in the above method embodiment.
  • the second positioning unit 1044 may be used to execute step 503 in the foregoing method embodiment.
  • the request sending module 102 includes:
  • a device acquiring unit 1021 configured to determine at least one second device that can perform short-range wireless communication with the target device according to the type of the target device;
  • a location obtaining unit 1022 configured to obtain second location information further included in the positioning request, where the second location information is used to indicate the location where the target device was in the last communication with the first device;
  • a priority setting unit 1023 is used to determine the distance between the second device and the position indicated by the second location information obtained by the location obtaining unit 1022 for each second device determined by the device obtaining unit 1021, and according to The determined distance sets the priority of the second device, where the smaller the distance, the higher the priority of the second device;
  • a first sending unit 1024 is configured to send to the at least one second device in turn, according to the priority set by the priority setting unit 1023 for at least one second device, in descending order of the corresponding priority. Search request for connection information.
  • the device obtaining unit 1021 can be used to perform step 801 in the above method embodiment
  • the location obtaining unit 1022 can be used to perform step 802 in the above method embodiment
  • the priority setting unit 1023 can be used to perform the above method.
  • the first sending unit 1024 may be used to execute step 804 in the foregoing method embodiment.
  • the device screening module 103 includes:
  • a device identification unit 1031 configured to sequentially determine each second device that has established a short-range wireless communication connection with the target device as a third device;
  • a second sending unit 1033 is used to send a stop search request to all second devices when the judging unit 1032 judges that the number of third devices reaches the target number, so that the second device that has not established a short-range wireless communication connection with the target device The device stops trying to establish a short-range wireless communication connection with the target device.
  • the device identification unit 1031 can be used to perform step 901 in the above method embodiment
  • the judgment unit 1032 can be used to perform step 902 in the above method embodiment
  • the second sending unit 1033 can be used to perform the above method embodiment. In step 903.
  • the positioning server 10 further includes: a second information receiving module 107;
  • the request sending module 102 is further configured to send a data collection request to at least one third device, where the data collection request is used to instruct the third device to collect target data of a preset type formed within a preset time period from the target device;
  • the second information receiving module 107 is configured to receive target data collected from the third device according to the data collection request sent by the request sending module 102;
  • the information sending module 105 is further configured to send the target data received by the second information receiving module 107 to the first device.
  • the request sending module 102 can be used to perform step 1001 in the above method embodiment
  • the second information receiving module 107 can be used to perform step 1002 in the above method embodiment
  • the information sending module 105 can be used to perform the above method. Step 1003 in the embodiment.
  • an embodiment of the present invention provides a positioning server 10, including:
  • At least one memory 108 is configured to store executable instructions
  • At least one processor 109 coupled with the at least one memory 108, when executing the executable instructions, is configured to:
  • the positioning request includes connection information
  • the connection information is used to establish a short-range wireless communication connection with the target device 30 to be positioned
  • the third device 50 is a device in the at least one second device 20 that has established the short-range wireless communication connection with the target device 30;
  • the first location information is sent to the first device 40.
  • the at least one processor 109 is further configured to: when executing the executable instruction:
  • the coordinates of the location of the fourth device are determined as the first location information indicating the current location of the target device 30.
  • the at least one processor 109 is further configured to: when executing the executable instruction:
  • the coordinates of the current location of the target device 30 are determined as the first location information.
  • the at least one processor 109 is further configured to: when executing the executable instruction:
  • the target device 30 determine at least one second device 20 that can perform short-range wireless communication with the target device 30;
  • the search request including the connection information is sequentially sent to the at least one second device 20 in the descending order of the corresponding priority.
  • the at least one processor 109 is further configured to: when executing the executable instruction:
  • a search stop request is sent to all the second devices 20 so that the short-range wireless communication connection has not been established with the target device 30
  • the second device 20 stops trying to establish the short-range wireless communication connection with the target device 30.
  • the at least one processor 109 is further configured to: when executing the executable instruction:
  • the target data is sent to the first device 40.
  • the present invention also provides a computer-readable medium that stores instructions for making a computer execute the device positioning method described herein.
  • a system or device equipped with a storage medium may be provided, and the software program code for realizing the function of any of the above embodiments is stored on the storage medium, and the computer (or CPU or MPU of the system or device) ) Read and execute the program code stored in the storage medium.
  • the program code read from the storage medium itself can realize the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute a part of the present invention.
  • Examples of storage media used to provide program codes include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), Magnetic tape, non-volatile memory card and ROM.
  • the program code can be downloaded from the server computer via a communication network.
  • the program code read from the storage medium is written to the memory provided in the expansion board inserted into the computer or to the memory provided in the expansion unit connected to the computer, and then the program code is based on The instructions cause the CPU installed on the expansion board or the expansion unit to perform part or all of the actual operations, so as to realize the function of any one of the foregoing embodiments.
  • the hardware unit can be implemented mechanically or electrically.
  • a hardware unit may include a permanent dedicated circuit or logic (such as a dedicated processor, FPGA or ASIC) to complete the corresponding operation.
  • the hardware unit may also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which may be temporarily set by software to complete corresponding operations.
  • the specific implementation mode mechanical means, or dedicated permanent circuit, or temporarily set circuit

Abstract

Disclosed are a device positioning method and system, a positioning server (10) and a computer readable medium. The device positioning method is applied to the positioning server (10) and comprises the following steps: receiving a positioning request from a first device (40); sending a search request containing connection information to at least one second device (20), the search request being used for instructing at least one second device (20) to attempt to establish a short-range wireless communication connection with a target device (30) according to the connection information; determining the second device (20), in the at least one second device (20), which has established a short-range wireless communication connection with the target device (30) to be a third device (50); positioning the target device (30) according to the position where at least one third device (50) is located, so as to obtain first position information used for indicating the current position of the target device (30); and sending the first position information to the first device (40). The above method can conveniently position the Internet-of-Things devices, and can use the third device (50) to collect security data from the target device (30) after positioning is accomplished, thereby facilitating security analysis on the target device (30).

Description

设备定位方法、系统及定位服务器和计算机可读介质Device positioning method, system, positioning server and computer readable medium 技术领域Technical field
本发明涉及通信技术领域,尤其涉及设备定位方法、系统及定位服务器和计算机可读介质。The present invention relates to the field of communication technology, and in particular to a device positioning method, system, positioning server and computer readable medium.
背景技术Background technique
随着计算机技术和通信技术的不断发展与进步,不同类型的物联网设备被广泛应用于工业生产和日常生活的各个领域,比如用于健康状态检测的可穿戴设备、用于环境感测和远程数据采集的物联网(internet of thing,IoT)设备等。物联网设备通常基于短距离无线通信与相应的通信设备进行通信,短距离无线通信是指通信双方在较短距离内通过无线电波传输通信信息,有效的通信距离通常在几十米以内,短距离无线通信主要包括近场通信(near field communication,NFC)、无线保真(WIreless-Fidelity,Wi-Fi)通信和蓝牙通信等。With the continuous development and progress of computer technology and communication technology, different types of IoT devices are widely used in various fields of industrial production and daily life, such as wearable devices for health detection, environmental sensing and remote Internet of Things (IoT) equipment for data collection, etc. Internet of Things devices usually communicate with corresponding communication devices based on short-range wireless communication. Short-range wireless communication refers to the transmission of communication information through radio waves within a relatively short distance. The effective communication distance is usually within tens of meters. Wireless communication mainly includes near field communication (NFC), wireless fidelity (WIreless-Fidelity, Wi-Fi) communication, and Bluetooth communication.
当物联网设备首次与相应的通信设备成功连接后,只要物联网设备与该通信设备之间的距离满足相应短距离无线通信的距离要求,物联网设备便可以与该通信设备自动连接,此时该通信设备可以对物联网设备进行定位。但是,如果物联网设备与通信设备之间的距离不满足相应短距离无线通信的距离要求,此时通信设备无法连接至物联网设备,进而无法对物联网设备进行定位。When the IoT device is successfully connected to the corresponding communication device for the first time, as long as the distance between the IoT device and the communication device meets the distance requirements of the corresponding short-range wireless communication, the IoT device can automatically connect with the communication device. The communication device can locate the IoT device. However, if the distance between the IoT device and the communication device does not meet the corresponding short-range wireless communication distance requirements, the communication device cannot be connected to the IoT device at this time, and the IoT device cannot be located.
因此,如果物联网设备无法找到,且物联网设备与第一设备之间的距离不满足相应短距离无线通信的距离要求,则难以对物联网设备进行定位。Therefore, if the Internet of Things device cannot be found, and the distance between the Internet of Things device and the first device does not meet the distance requirements of the corresponding short-range wireless communication, it is difficult to locate the Internet of Things device.
发明内容Summary of the invention
有鉴于此,本发明提供的设备定位方法、系统及定位服务器和计算机可读介质,能够方便地对物联网设备进行定位。In view of this, the device positioning method, system, positioning server, and computer readable medium provided by the present invention can conveniently locate IoT devices.
第一方面,本发明实施例提供了一种设备定位方法,包括:In the first aspect, an embodiment of the present invention provides a device positioning method, including:
在接收到来自第一设备的定位请求后,根据定位请求所包括的连接信息向至少一个第二设备发送搜索请求,使得第二设备可以根据搜索请求包括的连接信息尝试与目标设备建立短距离无线通信连接,之后从各个第二设备中确定至少一个已经与目标设备建立短距离无线通信连接的第三设备,进而根据确定出的至少一个第三设备所处的位置对目标设备进行定位,获得用于指示目标设备当前所处位置的第一位置信息,最后将获得的第一位置信息发送给第 一设备。After receiving the positioning request from the first device, send a search request to at least one second device according to the connection information included in the positioning request, so that the second device can try to establish a short-range wireless connection with the target device according to the connection information included in the search request. After the communication connection, at least one third device that has established a short-range wireless communication connection with the target device is determined from each second device, and then the target device is located according to the determined position of the at least one third device to obtain the In order to indicate the first location information of the current location of the target device, the obtained first location information is finally sent to the first device.
在第一设备提出对目标设备进行定位的定位请求后,可以向多个第二设备包括有连接信息的搜索请求,使得第二设备可以根据连接信息尝试与目标设备建立短距离无线通信连接,能够与目标设备建立短距离无线通信连接的第二设备位于目标设备附近,从而可以根据能够成功与目标设备建立短距离无线通信连接的第二设备所处的位置来对目标设备进行定位,定位过程不再受限于目标设备与第一设备之间的距离,从而可以方便地对目标设备进行定位,进而将物联网设备作为目标设备便可以方便地对物联网设备进行定位。After the first device submits a positioning request for positioning the target device, it can include a search request with connection information to multiple second devices, so that the second device can try to establish a short-range wireless communication connection with the target device based on the connection information. The second device that establishes a short-range wireless communication connection with the target device is located near the target device, so that the target device can be located according to the location of the second device that can successfully establish a short-range wireless communication connection with the target device. Limited by the distance between the target device and the first device, the target device can be easily located, and the Internet of Things device can be conveniently located by using the IoT device as the target device.
可选地,在根据至少一个第三设备所处的位置对目标设备进行定位时,可以从至少一个第三设备中选择一个第四设备,进而将第四设备所处位置的坐标确定为用于指示目标设备当前所处位置的第一位置信息。Optionally, when positioning the target device according to the location of the at least one third device, a fourth device may be selected from the at least one third device, and then the coordinates of the location of the fourth device may be determined as The first location information indicating the current location of the target device.
根据对定位准确性的要求,当对定位准确性的要求较低时,可以从已经与目标设备建立短距离无线通信连接的各个第三设备中选择一个第三设备作为第四设备,进而将第四设备所处位置的坐标确定为用于指示目标设备当前所处位置的第一位置信息,此时可以提高对目标设备进行定位的效率。According to the requirements for positioning accuracy, when the requirements for positioning accuracy are low, a third device can be selected as the fourth device from each third device that has established a short-range wireless communication connection with the target device, and then the first Fourth, the coordinates of the location of the device are determined as the first location information used to indicate the current location of the target device. In this case, the efficiency of locating the target device can be improved.
可选地,在根据至少一个第三设备所处的位置对目标设备进行定位时,可以接收来自每一个第三设备的通信信号强度信息,而通信信号强度信息表征相应第三设备与目标设备进行短距离无线通信连接的信号强度,进而可以根据每一个第三设备所处位置的坐标以及来自该第三设备的通信信号强度信息来确定目标设备当前所处位置的坐标,最后将确定出来的坐标作为指示目标设备当前所处位置的第一位置信息。Optionally, when locating the target device according to the location of at least one third device, communication signal strength information from each third device may be received, and the communication signal strength information characterizes the communication between the corresponding third device and the target device. The signal strength of the short-distance wireless communication connection, and then the coordinates of the current location of the target device can be determined according to the coordinates of the location of each third device and the communication signal strength information from the third device, and finally the coordinates will be determined As the first location information indicating the current location of the target device.
第三设备与目标设备之间短距离无线通信的信号强度与两者之间的距离相关,因此第三设备与目标设备之间的距离不同则相应的通信信号强度信息不同,根据通信信号强度信息可以确定第三设备与目标设备之间的距离,进而结合第三设备所处位置的坐标可以计算目标设备所处位置的坐标,将计算出来的坐标作为指示目标设备当前所处位置的第一位置信息,可以保证对目标设备进行定位的准确性。The signal strength of the short-distance wireless communication between the third device and the target device is related to the distance between the two, so if the distance between the third device and the target device is different, the corresponding communication signal strength information is different, according to the communication signal strength information The distance between the third device and the target device can be determined, and the coordinates of the location of the third device can be combined to calculate the coordinates of the location of the target device, and the calculated coordinates can be used as the first position indicating the current location of the target device Information can ensure the accuracy of positioning the target device.
可选地,在向第二设备发送搜索请求时,首先根据目标设备的类型确定至少一个可以与目标设备进行短距离无线通信连接的第二设备,之后获取知识目标设备最近一次与第一设备进行通信时目标设备所处位置的第二位置信息,进而根据第二设备所处位置与第二位置信息所指示位置之间的距离为第二设备设定优先级,使得第二设备所处位置与第二位置信息所指示位置之间的距离越小则第二设备的优先级越高,之后按照对应优先级由高至低的顺序依次向各个第二设备发送搜索请求。Optionally, when sending a search request to the second device, first determine at least one second device that can perform a short-range wireless communication connection with the target device according to the type of the target device, and then obtain the knowledge that the target device last communicated with the first device The second location information of the location of the target device during communication, and then set the priority for the second device based on the distance between the location of the second device and the location indicated by the second location information, so that the location of the second device The smaller the distance between the locations indicated by the second location information, the higher the priority of the second device, and then the search request is sent to each second device in sequence from high to low corresponding to the priority.
第二位置信息指示了目标设备最近依次与第一设备进行通信时所处的位置,目标设备位 于第二位置信息所指示位置的可能性较大,根据第二设备所处位置与第二位置信息所指示位置之间的距离为第二设备设定优先级,进而可以根据优先级优先向距离第二位置信息所指示位置较近的第二设备发送搜索请求。在距离第二位置信息所指示位置较近的第二设备无法与目标设备建立短距离无线通信连接后,再向距离第二位置信息所指示位置较远的第二设备发送搜索请求,可以进一步提高对目标设备进行定位的效率。The second location information indicates the location of the target device when communicating with the first device in sequence recently. The target device is more likely to be located at the location indicated by the second location information. According to the location of the second device and the second location information The distance between the indicated positions sets a priority for the second device, and then a search request may be sent to the second device that is closer to the position indicated by the second position information according to the priority. After the second device closer to the location indicated by the second location information cannot establish a short-range wireless communication connection with the target device, sending a search request to the second device farther from the location indicated by the second location information can further improve The efficiency of locating the target device.
可选地,在从第二设备中确定第三设备时,依次将每一个已经与目标设备建立短距离无线通信连接的第二设备确定为一个第三设备,并且判断第三设备的数量是否达到预先设定的目标数量,当第三设备的数量达到目标数量后向所有第二设备发送停止搜索请求,使得还未与目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接。Optionally, when determining the third device from the second device, determine each second device that has established a short-range wireless communication connection with the target device as a third device in turn, and determine whether the number of third devices reaches A preset target number. When the number of third devices reaches the target number, a stop search request is sent to all second devices, so that second devices that have not yet established a short-range wireless communication connection with the target device stop trying to establish a short-range connection with the target device. Distance wireless communication connection.
在根据优先级向第二设备发送搜索请求的过程中,依次将成功与目标设备建立短距离无线通信连接的第二设备确定为第三设备,并且在每一次确定出一个第三设备后判断确定出的第三设备的数量是否达到预先设定的目标数量,当第三设备的数量达到目标数量后,向各个第二设备发送停止搜索请求,以使还未与目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接,这样在保证第三设备的数量可以满足定位需求的前提下,可以缩短定位所需的时间,并可以节约计算资源。In the process of sending a search request to the second device according to the priority, the second device that successfully establishes a short-range wireless communication connection with the target device is determined as the third device in turn, and the determination is determined each time a third device is determined Whether the number of third devices out of the list reaches the preset target number, when the number of third devices reaches the target number, send a stop search request to each second device so that the short-range wireless communication connection with the target device has not yet been established The second device stops trying to establish a short-range wireless communication connection with the target device. In this way, on the premise that the number of third devices can meet the positioning demand, the time required for positioning can be shortened and computing resources can be saved.
可选地,在确定出至少一个第三设备之后,可以向一个或多个第三设备发送数据采集请求,使得第三设备根据数据采集请求从目标设备上采集预设时间段内形成且预设类型的目标数据,之后接收各个第三设备返回的目标数据,并将接收到的目标数据发送给第一设备。Optionally, after at least one third device is determined, a data collection request can be sent to one or more third devices, so that the third device collects data from the target device within a preset time period according to the data collection request. Type target data, and then receive the target data returned by each third device, and send the received target data to the first device.
由于第三设备已经与目标设备建立了短距离无线通信连接,因此第三设备可以正常与目标设备进行通信,通过向第三设备发数据采集请求,利用第三设备从目标设备上采集所需的数据,可以方便地从目标设备上采集数据,适用于不便为目标设备专门设置数据采集通信基站的情况。Since the third device has established a short-range wireless communication connection with the target device, the third device can communicate with the target device normally. By sending a data collection request to the third device, the third device can collect the required data from the target device. Data can be easily collected from the target device, which is suitable for situations where it is inconvenient to set up a data collection communication base station for the target device.
可选地,在对目标设备进行定位的过程中,来至第一设备的定位请求、发送给第二设备的搜索请求、发送给第一设备的第一位置信息以及来自第三设备的目标数据均以密文的形式进行转发。Optionally, in the process of locating the target device, the location request from the first device, the search request sent to the second device, the first location information sent to the first device, and the target data from the third device All forwarded in the form of ciphertext.
以密文的形式对定位请求、搜索请求、第一位置信息和目标数据进行传输,可以避免数据传输过程中造成敏感数据泄露,保证定位过程的安全性。The location request, search request, first location information, and target data are transmitted in the form of cipher text, which can avoid sensitive data leakage during the data transmission process and ensure the security of the location process.
第二方面,本发明实施例还提供了一种定位服务器,包括:In the second aspect, an embodiment of the present invention also provides a positioning server, including:
一个请求接收模块,用于接收来自一个第一设备的定位请求,其中,定位请求包括连接 信息,连接信息用于与待定位的目标设备建立短距离无线通信连接;A request receiving module for receiving a positioning request from a first device, where the positioning request includes connection information, and the connection information is used to establish a short-range wireless communication connection with the target device to be located;
一个请求发送模块,用于向至少一个第二设备发送搜索请求,其中,搜索请求包括有请求接收模块接收到的连接信息,搜索请求用于指示至少一个第二设备根据连接信息尝试与目标设备建立短距离无线通信连接;A request sending module for sending a search request to at least one second device, where the search request includes connection information received by the request receiving module, and the search request is used to instruct at least one second device to try to establish with the target device according to the connection information Short-range wireless communication connection;
一个设备筛选模块,用于确定至少一个第三设备,其中,第三设备为至少一个第二设备中根据请求发送模块所发送的搜索请求已经与目标设备建立短距离无线通信连接的设备;A device screening module for determining at least one third device, where the third device is a device in the at least one second device that has established a short-range wireless communication connection with the target device according to the search request sent by the request sending module;
一个设备定位模块,用于根据设备筛选模块确定出的至少一个第三设备的所处位置对目标设备进行定位,获得用于指示目标设备当前所处位置的第一位置信息;A device positioning module, configured to locate the target device according to the location of at least one third device determined by the device screening module, and obtain first location information indicating the current location of the target device;
一个信息发送模块,用于将设备定位模块获取到的第一位置信息发送给第一设备。An information sending module is used to send the first location information obtained by the device positioning module to the first device.
请求接收模块接收到来自第一设备的定位请求后,请求发送模块向至少一个第二设备发送包括有定位请求所包括连接信息的搜索请求,设备筛选模块将根据搜索请求包括的连接信息已经与目标设备建立短距离无线通信连接的第二设备确定为第三设备,设备定位模块根据设备筛选模块确定出的至少一个第三设备所处的位置对目标设备进行定位,获得指示目标设备当前所处位置的第一位置信息,信息发送模块将设备定位模块获取到的第一位置信息发送给第一设备。设备筛选模块确定出已经与目标设备建立短距离无线通信连接的第三设备后,设备定位模块根据各个第三设备所处的位置对目标设备进行定位,获取知识目标设备当前所处位置的第一位置信息,由于不同的第二设备分布在不同位置且可以移动,利用能够与目标设备进行短距离通信的第二设备来定位目标设备,定位过程不再受限于目标设备与第一设备之间的距离,从而可以方便地对目标设备进行定位,进而将物联网设备作为目标设备便可以方便地对物联网设备进行定位。After the request receiving module receives the positioning request from the first device, the request sending module sends a search request including the connection information included in the positioning request to at least one second device, and the device screening module will contact the target according to the connection information included in the search request. The second device that the device establishes a short-range wireless communication connection is determined to be the third device, and the device positioning module locates the target device according to the location of at least one third device determined by the device screening module to obtain an indication of the current location of the target device The information sending module sends the first location information obtained by the device positioning module to the first device. After the device screening module determines the third device that has established a short-range wireless communication connection with the target device, the device positioning module locates the target device according to the location of each third device, and obtains the first knowledge of the current location of the target device. Location information, because different second devices are distributed in different locations and can be moved, the second device that can communicate with the target device in a short distance is used to locate the target device, and the positioning process is no longer limited between the target device and the first device It is convenient to locate the target device, and then use the IoT device as the target device to easily locate the IoT device.
可选地,设备定位模块包括:Optionally, the device positioning module includes:
一个设备选择单元,用于从至少一个第三设备中选择一个第四设备;A device selection unit for selecting a fourth device from at least one third device;
一个第一定位单元,用于将设备选择单元选择出的第四设备所处位置的坐标确定为用于指示目标设备当前所处位置的第一位置信息。A first positioning unit is used to determine the coordinates of the location of the fourth device selected by the device selection unit as the first location information used to indicate the current location of the target device.
由于第三设备与目标设备之间成功建立了短距离无线通信连接,说明目标设备与第三设备之间的距离小于短距离无线通信的有限通信距离,即目标设备位于第三设备附近,从而设备选择单元可以从各个第三设备中选择一个第三设备作为第四设备,而第一定位单元则可以将设备选择单元选择出的第四设备所处位置的坐标作为指示目标设备所处位置的第一位置信息,无需进行复杂的定位计算,可以提供对目标设备进行定位的效率。Since the short-range wireless communication connection is successfully established between the third device and the target device, it indicates that the distance between the target device and the third device is less than the limited communication distance of short-range wireless communication, that is, the target device is located near the third device, so the device The selection unit can select a third device from each third device as the fourth device, and the first positioning unit can use the coordinates of the location of the fourth device selected by the device selection unit as the first indication of the location of the target device. The location information does not require complicated positioning calculations, and can provide the efficiency of positioning the target device.
可选地,该定位服务器可以进一步包括一个第一信息接收模块,同时设备定位模块可以包括一个坐标计算单元和一个第二定位单元;Optionally, the positioning server may further include a first information receiving module, and the device positioning module may include a coordinate calculation unit and a second positioning unit;
第一信息接收模块,用于接收来自设备筛选模块确定出的每一个第三设备的通信信号强度信息,其中,通信信号强度信息用于表征相对应的第三设备与目标设备进行短距离无线通信的信号强度;The first information receiving module is configured to receive the communication signal strength information of each third device determined by the device screening module, wherein the communication signal strength information is used to characterize the short-range wireless communication between the corresponding third device and the target device Signal strength;
一个坐标计算单元,用于根据每一个第三设备所处位置的坐标和第一信息接收模块接收到的来自相对应第三设备的通信信号强度信息,确定目标设备当前所处位置的坐标;A coordinate calculation unit for determining the coordinates of the current location of the target device based on the coordinates of the location of each third device and the communication signal strength information from the corresponding third device received by the first information receiving module;
一个第二定位单元,用于将坐标计算单元确定出的目标设备当前所处位置的坐标确定为第一位置信息。A second positioning unit is used to determine the coordinates of the current location of the target device determined by the coordinate calculation unit as the first location information.
第一信息接收模块接收到来自各个第三设备的通信信号强度信息后,坐标计算单元可以根据每一个第三设备所处位置的坐标以及由第一信息接收模块接收到的来自该第三设备的通信信号强度信息确定目标设备当前所处位置的坐标,进而第二定位单元将坐标计算单元确定出的坐标确定为第一位置信息。坐标计算单元根据第三设备所处位置的坐标和相应的通信信号强度信息来计算目标设备所处位置的坐标,进而第二定位单元将坐标计算单元计算出来的坐标确定为指示目标设备当前所处位置的第一位置信息,保证了对目标设备进行定位的准确性。After the first information receiving module receives the communication signal strength information from each third device, the coordinate calculation unit can use the coordinates of each third device's location and the information received by the first information receiving module from the third device. The communication signal strength information determines the coordinates of the current location of the target device, and the second positioning unit determines the coordinates determined by the coordinate calculation unit as the first location information. The coordinate calculation unit calculates the coordinates of the location of the target device according to the coordinates of the location of the third device and the corresponding communication signal strength information, and the second positioning unit determines the coordinates calculated by the coordinate calculation unit to indicate the current location of the target device The first location information of the location ensures the accuracy of positioning the target device.
可选地,请求发送模块包括:Optionally, the request sending module includes:
一个设备获取单元,用于根据目标设备的类型,确定至少一个可以与目标设备进行短距离无线通信的第二设备;A device acquisition unit for determining at least one second device that can perform short-range wireless communication with the target device according to the type of the target device;
一个位置获取单元,用于获取定位请求进一步包括的第二位置信息,其中,第二位置信息用于指示目标设备最近一次与第一设备进行通信时所处的位置;A location acquiring unit, configured to acquire second location information further included in the positioning request, where the second location information is used to indicate the location where the target device was in the last communication with the first device;
一个优先级设定单元,用于针对设备获取单元确定的每一个第二设备,确定该第二设备与位置获取单元获取到的第二位置信息所指示位置之间的距离,并根据确定出的距离设定该第二设备的优先级,其中,距离越小该第二设备的优先级越高;A priority setting unit for determining the distance between the second device and the location indicated by the second location information obtained by the location obtaining unit for each second device determined by the device obtaining unit, and determining the distance according to the determined The distance sets the priority of the second device, where the smaller the distance, the higher the priority of the second device;
一个第一发送单元,用于根据优先级设定单元对至少一个第二设备所设定的优先级,按照对应优先级由高至低的顺序,依次向至少一个第二设备发送包括有连接信息的搜索请求。A first sending unit, configured to send the connection information including connection information to the at least one second device in sequence according to the priority set by the priority setting unit for the at least one second device, in descending order of the corresponding priority Search request.
设备获取单元获取到可以与目标设备进行短距离无线通信的第二设备后,位置获取单元获取用于指示目标设备最近一次与第一设备进行通信时目标设备所处位置的第二位置信息,优先级设定单元根据第二设备所处位置与位置获取单元获取到的第二位置信息所指示位置之间的距离分别为设备获取单元获取到的每一个第二设备设置优先级,第一发送单元则根据优先级设定单元为第二设备设定的优先级优先向与第二位置信息所指示位置较近的第二设备发送搜索请求,而目标设备位于与第二位置信息所指示位置之间距离较近的第二设备附近的概率更大,从而可以提升对目标设备进行定位的效率。After the device acquiring unit acquires the second device that can perform short-range wireless communication with the target device, the location acquiring unit acquires the second location information indicating the location of the target device when the target device communicated with the first device last time, preferably The level setting unit sets the priority for each second device acquired by the device acquiring unit according to the distance between the location of the second device and the location indicated by the second location information acquired by the location acquiring unit, and the first sending unit Then, according to the priority set by the priority setting unit for the second device, a search request is sent to the second device that is closer to the location indicated by the second location information, and the target device is located between the location indicated by the second location information The second device that is closer is more likely to be nearby, so that the efficiency of locating the target device can be improved.
可选地,设备筛选模块包括:Optionally, the device screening module includes:
一个设备识别单元,用于依次将每一个已经与目标设备建立短距离无线通信连接的第二设备确定为第三设备;A device identification unit for sequentially determining each second device that has established a short-range wireless communication connection with the target device as a third device;
一个判断单元,用于判断识别单元确定出的第三设备的数量是否达到预先设定的目标数量;A judging unit for judging whether the number of third devices determined by the identification unit reaches a preset target number;
一个第二发送单元,用于在判断单元判断第三设备的数量达到目标数量时,向所有的第二设备发送停止搜索请求,以使未与目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接。A second sending unit is used to send a stop search request to all second devices when the judging unit determines that the number of third devices reaches the target number, so that the second devices that have not established short-range wireless communication connections with the target device stop Try to establish a short-range wireless communication connection with the target device.
设备识别单元依次将成功与目标设备建立短距离无线通信连接的第二设备确定为第三设备,期间判断单元判断第三设备的数量是否已经达到预先设定的目标数量,当判断单元判断出第三设备的数量已经达到目标数量后,第二发送单元向所有第二设备发送停止搜索请求,以使还未与目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接,在第三设备的数量满足对目标设备节点定位的要求后及时停止继续搜索目标设备,既可以提升定位的效率又可以避免计算资源的浪费。The device identification unit sequentially determines the second device that has successfully established a short-range wireless communication connection with the target device as the third device. The period judgment unit judges whether the number of third devices has reached the preset target number, and when the judgment unit judges the first After the number of three devices has reached the target number, the second sending unit sends a stop search request to all second devices, so that the second device that has not yet established a short-range wireless communication connection with the target device stops trying to establish short-range wireless communication with the target device Communication connection, stop searching for the target device in time after the number of third devices meets the requirements for node positioning of the target device, which can improve the positioning efficiency and avoid the waste of computing resources.
可选地,该定位服务器进一步包括:一个第二信息接收模块;Optionally, the positioning server further includes: a second information receiving module;
请求发送模块,进一步用于向至少一个第三设备发送数据采集请求,其中,数据采集请求用于指示第三设备从目标设备上采集预设时间段内形成且为预设类型的目标数据;The request sending module is further configured to send a data collection request to at least one third device, where the data collection request is used to instruct the third device to collect target data of a preset type formed within a preset time period from the target device;
第二信息接收模块,用于接收来自第三设备根据请求发送模块发送的数据采集请求而采集到的目标数据;The second information receiving module is configured to receive target data collected from the third device according to the data collection request sent by the request sending module;
信息发送模块,进一步用于将第二信息接收模块接收到的目标数据发送给第一设备。The information sending module is further configured to send the target data received by the second information receiving module to the first device.
请求发送模块可以向第三设备发送数据采集请求,第二信息接收模块则可以接收第三设备根据请求发送模块所发送的数据采集请求从目标设备上采集到的目标数据,信息发送模块可以将第二信息接收模块接收到的目标数据发送给第一设备,从而可以利用第三设备从目标设备上采集所需的数据,可以方便地从目标设备上采集数据,适用于不便为目标设备专门设置数据采集通信基站的情况。The request sending module can send a data collection request to the third device, and the second information receiving module can receive the target data collected from the target device by the third device according to the data collection request sent by the request sending module. The information sending module can send the first Second, the target data received by the information receiving module is sent to the first device, so that the third device can be used to collect the required data from the target device, and the data can be collected from the target device conveniently, which is suitable for inconvenient setting data for the target device Collect the situation of the communication base station.
第三方面,本发明实施例还提供了一种定位服务器,包括:至少一个存储器和至少一个处理器;In a third aspect, an embodiment of the present invention also provides a positioning server, including: at least one memory and at least one processor;
至少一个存储器,用于存储机器可读程序;At least one memory for storing machine-readable programs;
至少一个处理器,用于调用机器可读程序,执行上述第一方面或第一方面的任一可能实现方式提供的方法。At least one processor is configured to invoke a machine-readable program to execute the foregoing first aspect or the method provided in any possible implementation manner of the first aspect.
其中,存储器中存储有机器可读程序,处理器通过调用存储中存储的机器可读程序,可以执行上述第一方面或第一方面的任意可实现方式所提供的方法,在第一设备提出对目标设备进行定位的定位请求后,可以向多个第二设备包括有连接信息的搜索请求,使得第二设备可以根据连接信息尝试与目标设备建立短距离无线通信连接,能够与目标设备建立短距离无线通信连接的第二设备位于目标设备附近,从而可以根据能够成功与目标设备建立短距离无线通信连接的第二设备所处的位置来对目标设备进行定位,定位过程不再受限于目标设备与第一设备之间的距离,从而可以方便地对目标设备进行定位,进而将物联网设备作为目标设备便可以方便地对物联网设备进行定位。Wherein, a machine-readable program is stored in the memory, and the processor can execute the method provided in the first aspect or any implementable manner of the first aspect by calling the machine-readable program stored in the memory, and the first device proposes to After the target device performs a positioning request, it can include a search request with connection information to multiple second devices, so that the second device can try to establish a short-range wireless communication connection with the target device according to the connection information, and can establish a short-range wireless communication connection with the target device The second device connected by wireless communication is located near the target device, so that the target device can be located according to the position of the second device that can successfully establish a short-range wireless communication connection with the target device, and the positioning process is no longer limited to the target device The distance from the first device, so that the target device can be conveniently located, and the Internet of Things device can be conveniently located by using the Internet of Things device as the target device.
第四方面,本发明实施例还提供了一种定位系统,包括:一个第一设备、至少一个第二设备和一个上述第二方面、第二方面的任一种可能的实现方式、第三方面或第三方面的任一种可能的实现方式提供的任意一种定位服务器;In a fourth aspect, an embodiment of the present invention also provides a positioning system, including: a first device, at least one second device, and one of the foregoing second aspect, any possible implementation manner of the second aspect, and the third aspect Or any positioning server provided by any possible implementation of the third aspect;
第一设备,用于向定位服务器发送定位请求,其中,定位请求包括连接信息,连接信息用于与待定位的目标设备建立短距离无线通信连接;The first device is configured to send a positioning request to the positioning server, where the positioning request includes connection information, and the connection information is used to establish a short-range wireless communication connection with the target device to be located;
每一个第二设备,用于在接收到来自定位服务器的搜索请求后,根据搜索请求包括的连接信息尝试与目标设备建立短距离无线通信连接。Each second device is configured to try to establish a short-range wireless communication connection with the target device according to the connection information included in the search request after receiving the search request from the positioning server.
第一设备向定位服务器发送定位请求后,定位服务器根据定位请求包括的连接信息生成包括有连接信息的搜索请求,之后将搜索请求发送给至少一个第二设备,接收到搜索请求的第二设备根据搜索请求包括的连接信息尝试与目标设备建立短距离无线通信连接,定位服务器根据将已经与目标设备建立短距离无线通信连接的第二设备确定为第三设备,并根据各个第三设备所处的位置来对目标设备进行定位,获得用于指示目标设备当前所处位置的第一位置信息,最后定位服务器将第一位置信息发送给第一设备。利用位于不同位置的第二设备来对目标设备进行定位,定位过程不再受限于目标设备与第一设备之间的距离,从而可以方便地对目标设备进行定位,进而将物联网设备作为目标设备便可以方便地对物联网设备进行定位。After the first device sends a positioning request to the positioning server, the positioning server generates a search request including connection information according to the connection information included in the positioning request, and then sends the search request to at least one second device. The second device that receives the search request The connection information included in the search request attempts to establish a short-range wireless communication connection with the target device. The positioning server determines the second device that has established a short-range wireless communication connection with the target device as the third device, and according to the location of each third device The location is used to locate the target device, obtain first location information indicating the current location of the target device, and finally the positioning server sends the first location information to the first device. Use the second device located in a different location to locate the target device, the positioning process is no longer limited by the distance between the target device and the first device, so that the target device can be easily located, and then the IoT device is the target The device can easily locate the IoT device.
第五方面,本发明实施例还提供了一种计算机可读介质,计算机可读介质上存储有计算机指令,计算机指令在被处理器执行时,使处理器执行上述第一方面或第一方面的任一种可能的实现方式所提供的方法。In the fifth aspect, the embodiments of the present invention also provide a computer-readable medium on which computer instructions are stored. When the computer instructions are executed by a processor, the processor executes the first aspect or the first aspect described above. The method provided by any possible implementation.
其中,机器可读介质上存储有计算机指令,当计算机指令被处理器执行时,处理器会执行上述第一方面以及第一方面的任意一种可能的实现方式所提供的设备定位方法,在第一设 备提出对目标设备进行定位的定位请求后,可以向多个第二设备包括有连接信息的搜索请求,使得第二设备可以根据连接信息尝试与目标设备建立短距离无线通信连接,能够与目标设备建立短距离无线通信连接的第二设备位于目标设备附近,从而可以根据能够成功与目标设备建立短距离无线通信连接的第二设备所处的位置来对目标设备进行定位,定位过程不再受限于目标设备与第一设备之间的距离,从而可以方便地对目标设备进行定位,进而将物联网设备作为目标设备便可以方便地对物联网设备进行定位。Wherein, computer instructions are stored on the machine-readable medium. When the computer instructions are executed by the processor, the processor will execute the device positioning method provided by the first aspect and any one of the possible implementations of the first aspect. After a device submits a positioning request for positioning the target device, it can include search requests with connection information to multiple second devices, so that the second device can try to establish a short-range wireless communication connection with the target device based on the connection information, and be able to communicate with the target device. The second device that the device establishes a short-range wireless communication connection is located near the target device, so that the target device can be located according to the location of the second device that can successfully establish a short-range wireless communication connection with the target device. The positioning process is no longer affected. The distance between the target device and the first device is limited, so that the target device can be conveniently located, and the Internet of Things device can be conveniently located by using the Internet of Things device as the target device.
附图说明Description of the drawings
图1是本发明一个实施例提供的一种设备定位系统的示意图;FIG. 1 is a schematic diagram of a device positioning system provided by an embodiment of the present invention;
图2是本发明一个实施例提供的另一种设备定位系统的示意图;Figure 2 is a schematic diagram of another device positioning system provided by an embodiment of the present invention;
图3是本发明一个实施例提供的一种设备定位方法的流程图;Figure 3 is a flowchart of a device positioning method provided by an embodiment of the present invention;
图4是本发明一个实施例提供的一种第一位置信息确定方法的流程图;4 is a flowchart of a method for determining first location information according to an embodiment of the present invention;
图5是本发明一个实施例提供的另一种第一位置信息确定方法的流程图;5 is a flowchart of another method for determining first position information according to an embodiment of the present invention;
图6是本发明一个实施例提供的一种目标设备当前所处位置坐标获取方法的流程图;FIG. 6 is a flowchart of a method for obtaining coordinates of the current location of a target device according to an embodiment of the present invention;
图7是本发明一个实施例提供的一种第三设备与目标设备之间距离计算方法的流程图;FIG. 7 is a flowchart of a method for calculating a distance between a third device and a target device according to an embodiment of the present invention;
图8是本发明一个实施例提供的一种搜索请求发送方法的流程图;FIG. 8 is a flowchart of a method for sending a search request according to an embodiment of the present invention;
图9是本发明一个实施例提供的一种第三设备确定方法的流程图;FIG. 9 is a flowchart of a method for determining a third device according to an embodiment of the present invention;
图10是本发明一个实施例提供的一种数据采集方法的流程图;FIG. 10 is a flowchart of a data collection method according to an embodiment of the present invention;
图11是本发明一个实施例提供的一种定位服务器的示意图;FIG. 11 is a schematic diagram of a positioning server provided by an embodiment of the present invention;
图12是本发明一个实施例提供的一种设备定位模块的示意图;FIG. 12 is a schematic diagram of a device positioning module according to an embodiment of the present invention;
图13是本发明一个实施例提供的另一种设备定位模块的示意图;FIG. 13 is a schematic diagram of another device positioning module provided by an embodiment of the present invention;
图14是本发明一个实施例提供的一种请求发送模块的示意图;FIG. 14 is a schematic diagram of a request sending module according to an embodiment of the present invention;
图15是本发明一个实施例提供的一种设备筛选模块的示意图;FIG. 15 is a schematic diagram of a device screening module according to an embodiment of the present invention;
图16是本发明一个实施例提供的另一种定位服务器的示意图;FIG. 16 is a schematic diagram of another positioning server provided by an embodiment of the present invention;
图17是本发明一个实施例提供的又一种定位服务器的示意图。Fig. 17 is a schematic diagram of another positioning server provided by an embodiment of the present invention.
附图标记列表:List of reference signs:
10:定位服务器           20:第二设备          30:目标设备10: Positioning server 20: Second device 30: Target device
40:第一设备             50:第三设备          101:请求接收模块40: the first device 50: the third device 101: request receiving module
102:请求发送模块        103:设备筛选模块     104:设备定位模块102: Request to send module 103: Device screening module 104: Device positioning module
105:信息发送模块        106:第一信息接收模块 107:第二信息接收模块105: Information sending module 106: First information receiving module 107: Second information receiving module
108:存储器   109:处理器108: Memory 109: Processor
301:接收来自第一设备的定位请求301: Receive a positioning request from the first device
302:向至少一个第二设备发送搜索请求302: Send a search request to at least one second device
303:确定至少一个第三设备303: Determine at least one third device
304:根据第三设备所处的位置获得用于指示目标设备当前所处位置的第一位置信息304: Obtain first location information indicating the current location of the target device according to the location of the third device
305:将第一位置信息发送给第一设备305: Send the first location information to the first device
401:从至少一个第三设备中选择一个第四设备401: Select a fourth device from at least one third device
402:将第四设备所处位置的坐标确定为第一位置信息402: Determine the coordinates of the location of the fourth device as the first location information
501:接收来自每一个第三设备的通信信号强度信息501: Receive communication signal strength information from each third device
502:根据第三设备的坐标以及各个通信信号强度信息确定目标设备所处位置的坐标502: Determine the coordinates of the location of the target device according to the coordinates of the third device and each communication signal strength information
503:将目标设备当前所处位置的坐标确定为第一位置信息503: Determine the coordinates of the current location of the target device as the first location information
601:获取与三个通信信号强度信息相对应的三个搜索位置的坐标601: Obtain the coordinates of the three search positions corresponding to the three communication signal strength information
602:确定与通信信号强度信息相对应的搜索位置和目标设备之间的通信距离602: Determine the communication distance between the search location corresponding to the communication signal strength information and the target device
603:根据三个通信距离和三个搜索位置的坐标计算目标设备当前所处位置的坐标603: Calculate the coordinates of the current location of the target device based on the coordinates of the three communication distances and the three search locations
701:从通信信号强度信息中获取信号强度等级数据701: Obtain signal strength level data from communication signal strength information
702:根据信号强度等级数据计算相对应搜索位置与目标设备之间的通信距离702: Calculate the communication distance between the corresponding search location and the target device based on the signal strength level data
801:根据目标设备的类型确定至少一个第二设备801: Determine at least one second device according to the type of the target device
802:获取定位请求进一步包括的第二位置信息802: Acquire second location information further included in the positioning request
803:根据第二设备与第二位置信息所指示位置之间的距离为第二设备803: Set the second device according to the distance between the second device and the location indicated by the second location information
804:按照对应优先级由高至低的顺序依次向各个第二设备发送搜索请求804: Send search requests to each second device in order of corresponding priority from high to low
901:依次将已经与目标设备建立短距离无线通信连接的第二设备确定为第三设备901: Determine in turn the second device that has established a short-range wireless communication connection with the target device as the third device
902:判断第三设备的数量是否已经达到预先设定的目标数量902: Determine whether the number of third devices has reached the preset target number
903:当第三设备的数量达到目标数量时向所有第二设备发送停止搜索请求903: Send a stop search request to all second devices when the number of third devices reaches the target number
1001:向至少一个第三设备发送数据采集请求1001: Send a data collection request to at least one third device
1002:接收来自第三设备的目标数据1002: Receive target data from the third device
1003:将目标数据发送给第一设备1003: Send the target data to the first device
具体实施方式detailed description
如前所述,由于物联网设备与通信设备之间基于短距离无线通信进行通信,而短距离无线通信要求通信双方之间的距离在较短的有效通信距离内,当物联网设备与通信设备之间的距离大于短距离无线通信的有效通信距离且物联网设备无法找到时,由于通信设备无法与物 联网设备进行通信而无法对物联网设备进行定位,因此难以对物联网设备进行定位。As mentioned above, because the communication between IoT devices and communication devices is based on short-range wireless communication, and short-range wireless communication requires that the distance between the two communicating parties be within a short effective communication distance. When the distance is greater than the effective communication distance of short-range wireless communication and the IoT device cannot be found, it is difficult to locate the IoT device because the communication device cannot communicate with the IoT device and cannot locate the IoT device.
本发明实施例中,当用户需要对目标设备进行定位时,通过此前曾经与目标设备进行过短距离无线通信的第一设备发送包括有连接信息的定位请求,进而可以向至少一个第二设备发送包括有连接信息的搜索请求,使得第二设备可以根据连接信息尝试与目标设备进行短距离无线通信连接,将已经与目标设备建立短距离无线通信的至少一个第二设备确定为第三设备,进而可以根据各个第三设备的位置对目标设备进行定位,获取用于指示目标设备当前所处位置的第一位置信息,进而将第一位置信息发送给第一设备后用户便可以确定目标设备所处的位置,方便地实现目标设备的定位。由此可见,将物联网设备作为本发明实施例中的目标设备,可以方便地对物联网设备进行定位。In the embodiment of the present invention, when the user needs to locate the target device, the first device that has previously performed short-range wireless communication with the target device sends a location request including connection information, and then can send to at least one second device The search request including connection information allows the second device to try to establish a short-range wireless communication connection with the target device according to the connection information, and determine at least one second device that has established short-range wireless communication with the target device as the third device, and then The target device can be located according to the location of each third device, the first location information used to indicate the current location of the target device is obtained, and then the first location information is sent to the first device, and the user can determine where the target device is. The location of the target device can be easily achieved. It can be seen that using the IoT device as the target device in the embodiment of the present invention can conveniently locate the IoT device.
下面结合符合对本发明实施例提供的设备定位方法、系统及定位服务器进行详细说明。需要说明的是,在下述各个实施例所提供的方法、系统以及定位服务器中,目标设备可以为基于NFC、Wi-Fi、蓝牙等进行短距离无线通信的物联网设备。The device positioning method, system, and positioning server provided in the embodiments of the present invention will be described in detail below in conjunction with compliance. It should be noted that in the methods, systems, and positioning servers provided in the following embodiments, the target device may be an Internet of Things device that performs short-range wireless communication based on NFC, Wi-Fi, Bluetooth, or the like.
如图1所示,本发明实施例提供了一种设备定位系统,包括:一个定位服务器10、至少一个第二设备20和一个第一设备40;As shown in FIG. 1, an embodiment of the present invention provides a device positioning system, including: a positioning server 10, at least one second device 20, and a first device 40;
第一设备40用于向定位服务器10发送定位请求,其中,定位请求包括有连接信息,连接信息用于与待定位的目标设备建立无距离无线通信连接;The first device 40 is configured to send a positioning request to the positioning server 10, where the positioning request includes connection information, and the connection information is used to establish a distanceless wireless communication connection with the target device to be positioned;
定位服务器10用于向至少一个第二设备20发送包括有连接信息的搜索请求;The positioning server 10 is configured to send a search request including connection information to at least one second device 20;
第二设备20用于根据接收到的搜索请求包括的连接信息尝试与待定位的目标设备建立短距离无线通信连接;The second device 20 is configured to try to establish a short-range wireless communication connection with the target device to be located according to the connection information included in the received search request;
定位服务器10进一步用于将已经与目标设备建立短距离无线通信连接的至少一个第二设备20确定为第三设备,并根据各个第三设备所处的位置对目标设备进行定位,获取用于指示目标设备当前所处位置的第一位置信息,以及将第一位置信息发送给第一设备40。The positioning server 10 is further configured to determine at least one second device 20 that has established a short-range wireless communication connection with the target device as a third device, and locate the target device according to the location of each third device, and obtain instructions for The first location information of the current location of the target device, and the first location information is sent to the first device 40.
本发明实施例提供的设备定位系统,第一设备40向定位服务器10发送定位请求后,定位服务器10向一个或多个第二设备20发送搜索请求,第二设备20根据搜索请求可以尝试与目标设备建立短距离无线通信连接,第三设备为成功与目标设备建立短距离无线通信连接的第二设备20,由于第三设备可以与目标设备建立短距离无线通信连接,说明第三设备与目标设备之间的距离小于短距离无线通信的有效通信距离,因此定位服务器10可以根据第三设备所处的位置来对目标设备进行定位。In the device positioning system provided by the embodiment of the present invention, after the first device 40 sends a positioning request to the positioning server 10, the positioning server 10 sends a search request to one or more second devices 20, and the second device 20 can try to contact the target according to the search request. The device establishes a short-range wireless communication connection. The third device is the second device 20 that has successfully established a short-range wireless communication connection with the target device. Since the third device can establish a short-range wireless communication connection with the target device, it indicates that the third device and the target device The distance between them is smaller than the effective communication distance of short-range wireless communication, so the positioning server 10 can locate the target device according to the position of the third device.
由此可见,定位服务器10可以利用位于不同位置的第二设备20尝试与目标设备建立短 距离无线通信连接,进而根据成功与目标设备建立短距离无线通信连接的第二设备20所处的位置来对目标设备进行定位,定位的实现不再受限于第一设备40与目标设备之间的距离,即使第一设备40与目标设备之间的距离较远也可以实现目标设备的定位,从而可以方便地对目标设备进行定位。It can be seen that the positioning server 10 can use the second device 20 located in a different location to try to establish a short-range wireless communication connection with the target device, and then determine the location of the second device 20 that has successfully established a short-range wireless communication connection with the target device. To locate the target device, the realization of positioning is no longer limited by the distance between the first device 40 and the target device. Even if the distance between the first device 40 and the target device is long, the target device can be positioned, so that Conveniently locate the target device.
可选地,在图1所示设备定位系统的基础上,如图2所示,该定位系统可以进一步包括:一个待定位的目标设备30;Optionally, based on the device positioning system shown in FIG. 1, as shown in FIG. 2, the positioning system may further include: a target device 30 to be positioned;
定位服务器10在将已经与目标设备建立短距离无线通信连接的至少一个第二设备20确定为第三设备50后,定位服务器10可以根据各个第三设备50与目标设备30进行通信时所处的位置对目标设备30进行定位,进而获取用于指示目标设备30当前所处位置的第一位置信息,并将获取到的第一位置信息发送给第一设备40。After the positioning server 10 determines that at least one second device 20 that has established a short-distance wireless communication connection with the target device is the third device 50, the positioning server 10 can be based on where each third device 50 communicates with the target device 30. The location locates the target device 30, and then obtains first location information indicating the current location of the target device 30, and sends the obtained first location information to the first device 40.
下面,介绍本发明实施例提供的设备定位方法,该方法可由前述的定位服务器10来执行。如无特别声明,这些方法中涉及的定位服务器可为前述的定位服务器10,这些方法中涉及的第二设备可为前述的第二设备20,这些方法中涉及的第三设备可为前述的第三设备50,这些方法中涉及的目标设备可为前述的目标设备30,这些方法中涉及的第一设备可为前述的第一设备40。The following describes a device positioning method provided by an embodiment of the present invention, which may be executed by the aforementioned positioning server 10. Unless otherwise stated, the positioning server involved in these methods can be the aforementioned positioning server 10, the second device involved in these methods can be the aforementioned second device 20, and the third device involved in these methods can be the aforementioned first device. The third device 50, the target device involved in these methods may be the aforementioned target device 30, and the first device involved in these methods may be the aforementioned first device 40.
本发明实施例提供的设备定位方法中,通过向多个第二设备发送搜索请求,使得第二设备尝试与目标设备建立短距离无线通信连接,进而根据已经与目标设备建立短距离无线通信连接的第二设备来对目标设备进行定位。如图3所示,该方法具体可以包括如下步骤:In the device positioning method provided by the embodiment of the present invention, by sending search requests to multiple second devices, the second device attempts to establish a short-range wireless communication connection with the target device, and then according to the short-range wireless communication connection that has been established with the target device The second device is used to locate the target device. As shown in Figure 3, the method may specifically include the following steps:
步骤301:接收来自一个第一设备的定位请求,其中,定位请求包括连接信息,连接信息用于与待定位的目标设备建立短距离无线通信连接;Step 301: Receive a location request from a first device, where the location request includes connection information, and the connection information is used to establish a short-range wireless communication connection with the target device to be located;
步骤302:向至少一个第二设备发送包括有连接信息的搜索请求,其中,搜索请求用于指示至少一个第二设备根据连接信息尝试与目标设备建立短距离无线通信连接;Step 302: Send a search request including connection information to at least one second device, where the search request is used to instruct at least one second device to try to establish a short-range wireless communication connection with the target device according to the connection information;
步骤303:确定至少一个第三设备,其中,第三设备为至少一个第二设备中已经与目标设备建立短距离无线通信连接的设备;Step 303: Determine at least one third device, where the third device is a device that has established a short-range wireless communication connection with the target device among the at least one second device;
步骤304:根据至少一个第三设备所处的位置对目标设备进行定位,获得用于指示目标设备当前所处位置的第一位置信息;Step 304: Position the target device according to the location of the at least one third device, and obtain first location information indicating the current location of the target device;
步骤305:将第一位置信息发送给第一设备。Step 305: Send the first location information to the first device.
本发明实施例提的设备定位方法,在接收到来自第一设备的定位请求后,向至少一个第二设备发送搜索请求,接收到搜索请求的第二设备可以根据搜索请求包括的连接信息尝试与相对应的目标设备建立短距离无线通信连接,在将已经与目标设备建立短距离无线通信连接 的第二设备确定为第三设备后,根据各个第三设备所处的位置对目标设备进行定位,获取用于指示目标设备当前所处位置的第一位置信息,进而将获取到的第一位置信息发送给第一设备。由此可见,在第一设备提出对目标设备的定位请求后,可以向多个第二设备发送搜索请求,使第二设备尝试与目标设备建立短距离无线通信连接,进而根据可以与目标设备建立短距离无线通信连接的第二设备所处的位置来对目标设备进行定位,由于多个第二设备可以位于不同的位置,因此定位过程不再受限于目标设备与第一设备之间的距离,从而可以方便地对目标设备进行定位,从而将物联网设备作为目标设备便可以方便地对物联网设备进行定位。In the device positioning method provided in the embodiment of the present invention, after receiving a positioning request from a first device, it sends a search request to at least one second device, and the second device that has received the search request can try to communicate with the connection information included in the search request. The corresponding target device establishes a short-range wireless communication connection. After determining the second device that has established a short-range wireless communication connection with the target device as the third device, locate the target device according to the location of each third device, Acquire first location information that is used to indicate the current location of the target device, and then send the acquired first location information to the first device. It can be seen that after the first device makes a location request for the target device, it can send search requests to multiple second devices, so that the second device tries to establish a short-range wireless communication connection with the target device, and then can establish a short-range wireless communication connection with the target device according to The location of the second device connected by short-range wireless communication is used to locate the target device. Since multiple second devices can be located in different locations, the positioning process is no longer limited by the distance between the target device and the first device In this way, the target device can be conveniently located, and the IoT device can be conveniently located by using the IoT device as the target device.
在本发明实施例中,第一设备是此前已经与目标设备进行过短距离无线通信的设备,在第一设备与目标设备进行短距离无线通信时,第一设备可以获取到目标设备的连接信息,并将连接信息存储在第一设备本地。连接信息为与目标设备连接短距离无线通信连接时所必须的信息,根据短距离无线通信的类型不同,连接信息包括有不同的内容,比如短距离无线通信为蓝牙时,连接信息可以包括目标设备的名称、MAC地址、设备类型、PIN认证名称、通信接口信息等。In the embodiment of the present invention, the first device is a device that has previously performed short-range wireless communication with the target device. When the first device performs short-range wireless communication with the target device, the first device can obtain the connection information of the target device , And store the connection information locally in the first device. The connection information is the information necessary for the short-range wireless communication connection with the target device. Depending on the type of short-range wireless communication, the connection information includes different content. For example, when the short-range wireless communication is Bluetooth, the connection information can include the target device Name, MAC address, device type, PIN authentication name, communication interface information, etc.
可选地,在图3所示设备定位方法的基础上,步骤304根据至少一个第三设备所处的位置对目标设备进行定位,获得用于指示目标设备当前所处位置的第一位置信息,根据定位精度需求的不同,可以通过如下两种方式来获取指示目标设备当前所处位置的第一位置信息:Optionally, based on the device positioning method shown in FIG. 3, step 304 locates the target device according to the location of at least one third device, and obtains first location information indicating the current location of the target device, According to different positioning accuracy requirements, the first location information indicating the current location of the target device can be obtained in the following two ways:
方式一:将其中一个第三设备所处位置的坐标作为用于指示目标设备当前所处位置的第一位置信息;Manner 1: Use the coordinates of the location of one of the third devices as the first location information for indicating the current location of the target device;
方式二:根据第三设备所处位置的坐标以及第三设备与目标设备之间进行短距离无线通信的信号强度来确定用于指示目标设备当前所处位置的第一位置信息。Manner 2: Determine the first location information indicating the current location of the target device based on the coordinates of the location of the third device and the signal strength of the short-range wireless communication between the third device and the target device.
下面对上述两种确定用于指示目标设备当前所处位置的第一位置信息的方法进行分别说明。The above two methods for determining the first location information used to indicate the current location of the target device will be separately described below.
针对方式一:For method one:
如图4所示,步骤304具体可以通过如下子步骤实现:As shown in FIG. 4, step 304 can be implemented through the following sub-steps:
步骤401:从至少一个第三设备中选择一个第四设备;Step 401: Select a fourth device from at least one third device;
步骤402:将第四设备所处位置的坐标确定为目标设备当前所处位置的第一位置信息。Step 402: Determine the coordinates of the location of the fourth device as the first location information of the current location of the target device.
将确定出至少一个已经与目标设备建立短距离无线通信连接的第三设备后,可以从各个第三设备中选择一个第三设备作为第四设备,进而将第四设备所处位置的坐标作为指示目标设备当前所处位置的第一位置信息。由于第三设备与目标设备已经成功建立了短距离无线通信连接,说明目标设备与第三设备之间的距离小于短距离无线通信的有效通信距离,而短距离无线通信的有限通信距离通常较短,因此在对定位精度要求较低时可以用其中一个第三设 备所处位置的坐标来指示目标设备当前所处的位置。此时,在将一个第三设备所处位置的坐标作为第一位置信息发送给第一设备后,用户可以从第一设备获取到第一位置信息,并可以在第一位置信息所指示位置的附近找到目标设备。After determining at least one third device that has established a short-range wireless communication connection with the target device, you can select a third device from each third device as the fourth device, and then use the coordinates of the fourth device as an indication The first location information of the current location of the target device. Since the third device and the target device have successfully established a short-range wireless communication connection, the distance between the target device and the third device is less than the effective communication distance of short-range wireless communication, and the limited communication distance of short-range wireless communication is usually shorter Therefore, when the positioning accuracy is low, the coordinates of the location of one of the third devices can be used to indicate the current location of the target device. At this time, after sending the coordinates of the location of a third device to the first device as the first location information, the user can obtain the first location information from the first device, and can be at the location indicated by the first location information. The target device is found nearby.
在本发明实施例中,如果只确定出一个第三设备,则直接该第三设备确定为第四设备。如果确定出至少两个第三设备,则需要从多个第三设备中选择出一个第三设备作为第四设备,具体地,一种方式可以通过预先设定的随机算法从各个第三设备中随机选择出一个第三设备作为第四设备,另一种方式可以将各个第三设备中可信度最高的一个第三设备作为第四设备。In this embodiment of the present invention, if only one third device is determined, the third device is directly determined as the fourth device. If at least two third devices are determined, a third device needs to be selected from a plurality of third devices as the fourth device. Specifically, one method can be selected from each third device through a preset random algorithm A third device is randomly selected as the fourth device. In another way, the third device with the highest reliability among the third devices can be used as the fourth device.
在本发明实施例中,第四设备所处位置的坐标由第四设备所发送,更进一步地,第四设备所处位置的坐标可以由设置在第四设备上的GPS定位模块通过GPS卫星定位而获得。In the embodiment of the present invention, the coordinates of the location of the fourth device are sent by the fourth device. Furthermore, the coordinates of the location of the fourth device may be located by the GPS positioning module set on the fourth device through GPS satellites. And get.
针对方式二:Targeting method two:
在步骤304获得用于指示目标设备当前所处位置的第一位置信息之前,首先需要获取每一个第三设备与目标设备进行短距离无线通信的通信信号强度信息,进而根据获取到的通信信号强度信息以及第三设备所处位置的坐标来确定第一位置信息。如图5所示,获取通信信号强度信息以及确定第一位置信息的过程具体可以通过如下步骤实现:Before obtaining the first position information indicating the current location of the target device in step 304, it is first necessary to obtain the communication signal strength information of each third device for short-range wireless communication with the target device, and then according to the obtained communication signal strength Information and the coordinates of the location of the third device to determine the first location information. As shown in FIG. 5, the process of acquiring the communication signal strength information and determining the first location information can be specifically implemented through the following steps:
步骤501:接收来自每一个第三设备的通信信号强度信息,其中,通信信号强度信息用于表征相对应的第三设备与目标设备进行短距离无线通信的信号强度;Step 501: Receive communication signal strength information from each third device, where the communication signal strength information is used to characterize the signal strength of the short-range wireless communication between the corresponding third device and the target device;
步骤502:根据每一个第三设备所处位置的坐标以及来自相对应的第三设备的通信信号强度信息,确定目标设备当前所处位置的坐标;Step 502: Determine the coordinates of the current location of the target device according to the coordinates of the location of each third device and the communication signal strength information from the corresponding third device;
步骤503:将目标设备当前所处位置的坐标确定为用于标识目标设备当前所处位置的第一位置信息。Step 503: Determine the coordinates of the current location of the target device as the first location information used to identify the current location of the target device.
当第三设备与目标设备建立短距离无线通信连接后,第三设备可以与目标设备进行短距离无线通信,进而第三设备可以采集其与目标设备进行短距离无线通信时的通信信号强度信息,并将采集到的通信信号强度信息返回。由于通信信号强度信息表征第三设备与目标设备之间进行短距离无线通信的信号强度,而第三设备与目标设备之间进行短距离无线通信的信号强度和第三设备与目标设备之间的距离有关,因此可以根据来自第三设备的通信信号强度信息确定该第三设备与目标设备之间的距离。在获取到各个第三设备与目标设备之间的距离后,可以根据各个第三设备与目标设备之间的距离以及各个第三设备所处位置的坐标,通过几何定位法来计算目标设备当前所处位置的坐标,进而将计算出的坐标作为指示目标设备当前所处位置的第一位置信息。After the third device establishes a short-range wireless communication connection with the target device, the third device can perform short-range wireless communication with the target device, and the third device can collect communication signal strength information when it performs short-range wireless communication with the target device. And return the collected communication signal strength information. Since the communication signal strength information represents the signal strength of the short-range wireless communication between the third device and the target device, the signal strength of the short-range wireless communication between the third device and the target device and the signal strength between the third device and the target device The distance is related, so the distance between the third device and the target device can be determined according to the communication signal strength information from the third device. After obtaining the distance between each third device and the target device, the current location of the target device can be calculated by the geometric positioning method according to the distance between each third device and the target device and the coordinates of the location of each third device. The coordinates of the current location, and then the calculated coordinates are used as the first location information indicating the current location of the target device.
在本发明实施例中,在第三设备与目标设备建立短距离无线通信连接后,可以向第三设备发送相对应的通信请求,以使第三设备根据通信请求与目标设备进行短距离无线通信并返 回通信信号强度信息。或者,可以直接获取第三设备与目标设备建立短距离无线通信连接时所进行通信的通信信号强度信息。需要说明的是,来自第三设备的通信信号强度信息用于表征相应第三设备与目标设备进行短距离无线通信的信号强度,而信号强度具体可以是第三设备所接收到无线通信信号的过流,或者还可以是第三设备所接收到无线通信信号的强度。In the embodiment of the present invention, after the third device establishes a short-range wireless communication connection with the target device, a corresponding communication request can be sent to the third device, so that the third device can perform short-range wireless communication with the target device according to the communication request And return the communication signal strength information. Alternatively, the communication signal strength information of the communication performed when the third device establishes a short-range wireless communication connection with the target device can be directly obtained. It should be noted that the communication signal strength information from the third device is used to characterize the signal strength of the short-range wireless communication between the corresponding third device and the target device, and the signal strength may specifically be the signal strength of the wireless communication signal received by the third device. Stream, or may also be the strength of the wireless communication signal received by the third device.
在本发明实施例中,可以向各个第三设备发送坐标获取请求,以使各个第三设备根据坐标获取请求发送其所处位置的坐标。更进一步地,每一个第三设备可以利用GPS定位模块通过GPS卫星定位而获得其所处位置的坐标。In the embodiment of the present invention, a coordinate acquisition request may be sent to each third device, so that each third device sends the coordinates of its location according to the coordinate acquisition request. Furthermore, each third device can use the GPS positioning module to obtain the coordinates of its location through GPS satellite positioning.
可选地,在图5所示第一位置信息获取方法的基础上,可以根据来自一个、两个或者三个第三设备的通信信号强度信息来确定目标设备所处位置的坐标,具体地:Optionally, on the basis of the first location information acquisition method shown in FIG. 5, the coordinates of the location of the target device may be determined according to the communication signal strength information from one, two, or three third devices, specifically:
方式(1):根据来自一个第三设备的通信信号强度信息来确定第一位置信息Method (1): Determine the first location information according to the communication signal strength information from a third device
针对任意一个第三设备,获取来自该第三设备的三个通信信号强度信息,而这三个通信信号强度信息表征该第三设备在三个不同位置与目标设备进行短距离无线通信的信号强度,进而可以根据获取到的三个通信信号强度信息以及每一个通信信号强度信息对应的该第三设备与目标设备进行通信时所处位置的坐标,来计算以该第三设备为参考时目标设备当前所处位置的坐标。For any third device, obtain three communication signal strength information from the third device, and these three communication signal strength information represent the signal strength of the third device for short-range wireless communication with the target device at three different locations , And then can calculate the target device when the third device is used as a reference based on the three acquired communication signal strength information and the coordinates of the position where the third device communicates with the target device corresponding to each communication signal strength information The coordinates of the current location.
方式(2):根据来自两个第三设备的通信信号强度信息来确定第一位置信息Method (2): Determine the first location information according to the communication signal strength information from the two third devices
针对任意两个第三设备(第三设备X和第三设备Y),获取来自这两个第三设备中第三设备X的一个通信信号强度信息,并获取来自这两个第三设备中第三设备Y的两个通信信号强度信息,其中来自第三设备Y的两个通信信号强度信息表征第三设备Y在两个不同位置与目标设备进行短距离无线通信的信号强度,进而可以根据获取到的三个通信信号强度信息以及三个通信信号强度信息对应的第三设备X通信时所处的一个位置的坐标和第三设备Y通信时所处的两个位置的坐标,来计算以这两个第三设备为参考时目标设备当前所处位置的坐标。For any two third devices (the third device X and the third device Y), obtain one piece of communication signal strength information from the third device X of the two third devices, and obtain the first one from the two third devices The two communication signal strength information of the three devices Y, where the two communication signal strength information from the third device Y represents the signal strength of the third device Y in short-range wireless communication with the target device at two different locations, and can then be obtained according to The three received three communication signal strength information and the three communication signal strength information correspond to the coordinates of one location where the third device X communicates and the coordinates of the two locations where the third device Y communicates to calculate this The coordinates of the current location of the target device when the two third devices are the reference.
方式(3):根据来自三个第三设备的通信信号强度信息来确定第一位置信息Method (3): Determine the first location information according to the communication signal strength information from the three third devices
针对任意三个第三设备,分别获取来自这三个第三设备中每一个第三设备的一个通信信号强度信息,进而可以根据获取到的三个通信信号强度信息以及这三个第三设备与目标设备通信时所处位置的坐标来计算以这三个第三设备为参考时目标设备当前所处位置的坐标。For any three third devices, one piece of communication signal strength information from each of the three third devices is obtained, and then the three pieces of communication signal strength information obtained and the three third devices’ The coordinates of the location where the target device is in communication are used to calculate the coordinates of the current location of the target device when the three third devices are used as a reference.
在以上三种目标设备所处位置坐标确定方式中,仅是通信信号强度信息的来源不同,在获取到与第三设备所处的三个不同位置相对应的三个通信信号强度信息之后,根据获取到的三个通信信号强度信息计算目标设备所处位置坐标的方法是相同的。下面针对上述方式(1),以从一个第三设备A获取到三个通信信号强度信息为例,对计算以该第三设备A为参考时目标设备当前所处位置的坐标的方法进行详细说明,如图6所示,该方法可以包括以下步骤:In the above three methods for determining the location coordinates of the target device, only the source of the communication signal strength information is different. After obtaining the three communication signal strength information corresponding to the three different locations of the third device, according to The method of calculating the position coordinates of the target device is the same for the three acquired communication signal strength information. For the above method (1), the method for calculating the coordinates of the current location of the target device when the third device A is used as a reference will be described in detail by taking the three communication signal strength information obtained from a third device A as an example. As shown in Figure 6, the method may include the following steps:
步骤601:获取与三个通信信号强度信息相对应的三个搜索位置的坐标,其中,三个搜索位置为第三设备A与目标设备进行短距离无线通信的三个不同位置,且来自第三设备A的三个通信信号强度信息分别表征第三设备A在三个搜索位置与目标设备进行通信时的信号强度;Step 601: Obtain the coordinates of three search positions corresponding to the three communication signal strength information, where the three search positions are three different positions where the third device A performs short-range wireless communication with the target device, and are from the third The three communication signal strength information of device A respectively represent the signal strength of the third device A when communicating with the target device at the three search positions;
步骤602:根据每一个通信信号强度信息,确定与该通信信号强度信息相对应的搜索位置与目标设备之间的通信距离;Step 602: Determine the communication distance between the search location corresponding to the communication signal strength information and the target device according to each communication signal strength information;
步骤603:根据确定出的三个通信距离以及三个搜索位置的坐标,通过如下方程组计算以第三设备A为参考时目标设备当前所处位置的坐标;Step 603: According to the determined three communication distances and the coordinates of the three search positions, the coordinates of the current location of the target device when the third device A is used as a reference are calculated through the following equations;
Figure PCTCN2019073925-appb-000001
Figure PCTCN2019073925-appb-000001
其中,(x,y)表征针以第三设备A为参考时目标设备当前所处位置的坐标,(x A,y A)、(x B,y B)和(x C,y C)分别表征目标设备所处的三个搜索位置的坐标,所述d A、d B和d C分别表征三个搜索位置与目标设备之间的三个通信距离。 Among them, (x, y) represents the coordinates of the current position of the target device when the needle is referenced by the third device A, (x A , y A ), (x B , y B ) and (x C , y C ) respectively Characterize the coordinates of the three search positions where the target device is located. The d A , d B and d C respectively characterize the three communication distances between the three search positions and the target device.
在本发明实施例中,根据三个通信信号强度信息可以计算出第三设备A所处的三个搜索位置与目标设置之间的三个通信距离,进而基于三角形定位法根据计算出的三个通信距离以及三个搜索位置的坐标可以计算出目标设备当前所处位置的坐标。由于计算出的坐标是根据来自第三设备A的通信信号强度信息以及第三设备A所处的位置,因此将计算出的坐标定义为以第三设备A为参考时时目标设备当前所处位置的坐标。In the embodiment of the present invention, the three communication distances between the three search positions of the third device A and the target setting can be calculated based on the three communication signal strength information, and then the three calculated based on the triangular positioning method The communication distance and the coordinates of the three search locations can calculate the coordinates of the current location of the target device. Since the calculated coordinates are based on the communication signal strength information from the third device A and the location of the third device A, the calculated coordinates are defined as the current location of the target device when the third device A is used as a reference coordinate.
由于第三设备是可以移动的设备,比如手机、笔记本电脑、平板电脑等,利用第三设备在三个不同位置与目标设备进行短距离无线通信,根据该第三设备在三个不同位置与目标设备进行通信时的信号强度可以计算出该第三设备所在的三个位置与目标设备之间的距离,进而结合该第三设备所在的三个位置的坐标可以计算目标设备的坐标,实现对目标设备进行定位。利用可以移动的第三设备对目标设备进行定位,只要第三设备能够与目标设备进行短距离无线通信便可以实现目标设备的定位,解决了固定基站可能无法与目标设备进行通信而无法完成定位的问题。Since the third device is a mobile device, such as a mobile phone, a notebook computer, a tablet computer, etc., the third device is used to perform short-range wireless communication with the target device in three different locations. The signal strength of the device during communication can calculate the distance between the three locations where the third device is located and the target device, and then combine the coordinates of the three locations where the third device is located to calculate the coordinates of the target device to achieve the target The device is positioned. Use a movable third device to locate the target device. As long as the third device can perform short-range wireless communication with the target device, the target device can be positioned. This solves the problem that the fixed base station may not be able to communicate with the target device and cannot complete the positioning. problem.
在本发明实施例中,由于获取到的通信信号强度信息和搜索位置的坐标可能存在误差,如果上述方程组中第三个方程也采用与前两个方程相同的等式形式,则可能造成上述方程组误解,因此上述方程组中第三方程采用不等式形式,以保证通过上述方程组能够解出合适的(x,y)作为目标设备的坐标。In the embodiment of the present invention, since the acquired communication signal strength information and the coordinates of the search position may have errors, if the third equation in the above equations also adopts the same equation form as the first two equations, the above may be caused The equations are misunderstood, so the third process in the above equations adopts an inequality form to ensure that the appropriate (x, y) can be solved as the coordinates of the target device through the above equations.
可选地,在图6所示坐标计算方法的基础上,步骤602根据每一个通信信号强度信息确定相对应搜索位置与目标设备之间的通信距离,如图7所示,该步骤具体可以通过如下子步骤实现:Optionally, on the basis of the coordinate calculation method shown in FIG. 6, step 602 determines the communication distance between the corresponding search location and the target device according to each communication signal strength information. As shown in FIG. 7, this step can be specifically The following sub-steps are implemented:
步骤701:从通信信号强度信息中获取信号强度等级数据,其中,信号强度等级数据具体表征通信信号的强弱;Step 701: Obtain signal strength level data from the communication signal strength information, where the signal strength level data specifically represents the strength of the communication signal;
步骤702:将信号强度等级数据代入如下公式,计算该通信信号强度信息所对应的搜索位置与目标设备之间的通信距离;Step 702: Substitute the signal strength level data into the following formula to calculate the communication distance between the search location corresponding to the communication signal strength information and the target device;
Figure PCTCN2019073925-appb-000002
Figure PCTCN2019073925-appb-000002
其中,所述d表征通信信号强度信息所对应的搜索位置与目标设备之间的通信距离,RSSI表征信号强度等级数据,A表征距离搜索位置单位距离处的信号强度数据,N表征信号衰减指数。Wherein, d represents the communication distance between the search location corresponding to the communication signal strength information and the target device, RSSI represents signal strength level data, A represents the signal strength data per unit distance from the search location, and N represents the signal attenuation index.
第三设备与目标设备之间的距离越远,则第三设备接收到目标设备所发送通信信号的强度越弱,相应的第三设备所获取到的信号强度等级数据越小,因此将获取到的信号强度等级数据代入上述公式便可以计算出相应搜索位置与目标设备之间的距离。需要说明的是,在上述公式中,距离搜索位置单位距离处的信号强度数据A的取值范围可以是45~49,信号衰减指数N的取值范围可以是3.25~4.5。The longer the distance between the third device and the target device, the weaker the strength of the communication signal received by the third device from the target device, and the smaller the signal strength level data obtained by the corresponding third device, so it will get The signal strength level data of is substituted into the above formula to calculate the distance between the corresponding search location and the target device. It should be noted that, in the above formula, the value range of the signal strength data A at a unit distance from the search position may be 45-49, and the value range of the signal attenuation index N may be 3.25-4.5.
可选地,在图6所示坐标计算方法的基础上,根据第三设备数量的不同可以采用不同的方式来确定用于指示目标设备当前所处位置的第一位置信息,具体为:Optionally, on the basis of the coordinate calculation method shown in FIG. 6, different methods may be used to determine the first location information indicating the current location of the target device according to the number of third devices, specifically:
如果仅确定出一个第三设备,则将计算出的以该第三设备为参考时目标设备当前所处位置的坐标确定为第一位置信息;If only one third device is determined, the calculated coordinates of the current location of the target device when the third device is used as a reference are determined as the first location information;
如果确定出至少两个第三设备,则分别获取以每一个第三设备为参考时目标设备当前所处位置坐标包括的横坐标值和纵坐标值,之后计算获取到的各个横坐标值的平均值作为平均横坐标值,并计算获取到的各个纵坐标值的平均值作为平均纵坐标值,进而以平均横坐标值和平均纵坐标值分别作为横坐标和纵坐标获得一个新的坐标,将该新的坐标确定为第一位置信息。If at least two third devices are determined, obtain the abscissa and ordinate values of the current location coordinates of the target device when each third device is used as a reference, and then calculate the average of the obtained abscissa values Value as the average abscissa value, and calculate the average value of each ordinate value obtained as the average ordinate value, and then use the average abscissa value and average ordinate value as the abscissa and ordinate to obtain a new coordinate, The new coordinates are determined as the first position information.
例如,统计确定出2个第三设备,分别为第三设备1和第三设备2,按照图5所示的方法计算出以第三设备1为参考时目标设备当前所处位置的坐标为(x 1,y 1),并计算出以第三设备2为参考时目标设备当前所处位置的坐标为(x 2,y 2),则将坐标
Figure PCTCN2019073925-appb-000003
确定为用于指示目标设备当前所处位置的第一位置信息。
For example, two third devices are determined by statistics, namely third device 1 and third device 2. According to the method shown in Figure 5, the coordinates of the current location of the target device when the third device 1 is used as a reference are calculated as ( x 1 , y 1 ), and calculate the coordinates of the current location of the target device when the third device 2 is used as a reference to (x 2 , y 2 ), then set the coordinates
Figure PCTCN2019073925-appb-000003
Determined as the first location information used to indicate the current location of the target device.
参考每一个第三设备可以获取到一个指示目标设备所处位置的坐标,当确定出多个第三 设备时,计算获取到的各个坐标的横坐标的平均值和纵坐标的平均值,进而将计算出的横坐标的平均值和纵坐标的平均值分别作为新坐标的横坐标和纵坐标,之后将新坐标作为第一位置信息。这样,综合了参考各个第三设备所获取到的坐标,保证最终获取到的第一位置信息能够更加准确地指示目标设备所处的位置,提升对目标设备进行定位的准确性。With reference to each third device, a coordinate indicating the location of the target device can be obtained. When multiple third devices are determined, the average value of the horizontal coordinate and the average value of the vertical coordinate of each coordinate obtained are calculated, and then the The calculated average value of the abscissa and the average value of the ordinate are respectively used as the abscissa and the ordinate of the new coordinate, and then the new coordinate is used as the first position information. In this way, the coordinates obtained by referring to each third device are integrated to ensure that the finally obtained first position information can more accurately indicate the location of the target device, and the accuracy of positioning the target device is improved.
可选地,在图3所示设备定位方法的基础上,步骤302向至少一个第二设备发送包括有连接信息的搜索请求时,如图8所示,具体可以通过如下子步骤实现:Optionally, based on the device positioning method shown in FIG. 3, when step 302 sends a search request including connection information to at least one second device, as shown in FIG. 8, it can be specifically implemented through the following sub-steps:
步骤801:根据目标设备的类型,确定至少一个可以与目标设备进行短距离无线通信连接的第二设备;Step 801: According to the type of the target device, determine at least one second device that can perform a short-range wireless communication connection with the target device;
步骤802:获取定位请求进一步包括的第二位置信息,其中,第二位置信息用于指示目标设备最近一次与第一设备进行通信时目标设备所处的位置;Step 802: Acquire second location information further included in the positioning request, where the second location information is used to indicate the location of the target device when the target device communicated with the first device last time;
步骤803:针对每一个第二设备,确定该第二设备与第二位置信息所指示位置之间的距离,并根据确定出的距离设定该第二设备的优先级,其中,确定出的距离越小则该第二设备的优先级越高;Step 803: For each second device, determine the distance between the second device and the position indicated by the second location information, and set the priority of the second device according to the determined distance, where the determined distance The smaller the value, the higher the priority of the second device;
步骤804:按照对应优先级由高至低的顺序,依次向各个第二设备发送包括有连接信息的搜索请求。Step 804: Send a search request including connection information to each second device in sequence from high to low corresponding priority.
来自第一设备的定位请求不仅可以包括连接信息,还可以包括目标设备的类型以及用于指示第一设备最后一次与目标设备进行通信时目标设备所处位置的第二位置信息。根据目标设备的类型可以确定出多个可以与目标设备进行短距离无线通信的第二设备,根据每一个第二设备所上传的其所处位置的坐标可以确定每一个第二设备与第二位置信息所指示位置之间的距离。而第二位置信息所指示位置为目标设备当前所处位置的可能性较大,因此可以按照第二设备与第二位置信息所指示位置之间的距离为各个第二设备设定优先级,使得与第二位置信息所指示位置之间距离越小的第二设备具有较高的优先级。根据各个第二设备的优先级,优先向优先级较高的第二设备发送搜索请求,可以提升对目标设备进行定位的效率。The location request from the first device may include not only the connection information, but also the type of the target device and the second location information used to indicate the location of the target device when the first device communicated with the target device for the last time. According to the type of the target device, multiple second devices that can perform short-range wireless communication with the target device can be determined, and each second device and the second location can be determined according to the coordinates of its location uploaded by each second device The distance between the locations indicated by the information. The location indicated by the second location information is more likely to be the current location of the target device. Therefore, the priority of each second device can be set according to the distance between the second device and the location indicated by the second location information, so that The second device with the smaller distance from the location indicated by the second location information has a higher priority. According to the priority of each second device, the search request is sent to the second device with higher priority first, which can improve the efficiency of locating the target device.
在本发明实施例中,在为各个第二设备设定优先级时,不同的两个第二设备可能具有相同的优先级,此时可以将具有相同优先级的多个第二设备划分为一个第二设备组,之后可以根据每一个第二设备组所对应的优先级,按照对应优先级由高至低的顺序依次向各个第二设备组包括的第二设备发送搜索请求。In this embodiment of the present invention, when setting priorities for each second device, two different second devices may have the same priority. In this case, multiple second devices with the same priority may be divided into one The second device group may then sequentially send search requests to the second devices included in each second device group in descending order of the corresponding priority according to the priority corresponding to each second device group.
在本发明实施例中,步骤801根据目标设备的类型确定可以与目标设备进行短距离无线通信连接的第二设备时,具体可以根据目标设备的通信类型或根据目标设备的设备类型来确定第二设备。在根据目标设备的通信类型确定第二设备时,选择支持采用目标设备的通信类型进行通信的设备作为第二设备;在根据目标设备的设备类型确定第二设备时,选择与目标 设备具有相同操作系统的设备作为第二设备,比如,如果目标设备为Android系统则选择Android系统的设备作为第二设备,如果目标设备为IOS系统则选择IOS系统的设备作为第二设备。根据目标设备的通信类型或设备类型来选择第二设备,保证所选择出的第二设备能够与目标设备进行短距离无线通信连接,进而保证对目标设备进行定位过程的正常进行。In the embodiment of the present invention, when step 801 determines the second device that can perform short-range wireless communication with the target device according to the type of the target device, the second device may be determined according to the communication type of the target device or the device type of the target device. equipment. When determining the second device according to the communication type of the target device, select the device that supports communication using the communication type of the target device as the second device; when determining the second device according to the device type of the target device, select the same operation as the target device The device of the system is used as the second device. For example, if the target device is the Android system, the device of the Android system is selected as the second device, and if the target device is the IOS system, the device of the IOS system is selected as the second device. The second device is selected according to the communication type or device type of the target device to ensure that the selected second device can perform a short-range wireless communication connection with the target device, thereby ensuring the normal progress of the positioning process of the target device.
可选地,在图8所示搜索请求发送方法的基础上,可以预先设定第三设备的目标数量,当第三设备的数量达到目标数量时向所有第二设备发送停止搜索请求,以使未与目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接。如图9所示,步骤303确定第三设备的过程具体可以通过如下子步骤实现:Optionally, based on the search request sending method shown in FIG. 8, a target number of third devices can be preset, and when the number of third devices reaches the target number, a stop search request is sent to all second devices, so that The second device that has not established a short-range wireless communication connection with the target device stops trying to establish a short-range wireless communication connection with the target device. As shown in Figure 9, the process of determining the third device in step 303 can be specifically implemented through the following substeps:
步骤901:依次将每一个已经与目标设备建立短距离无线通信连接的第二设备确定为第三设备;Step 901: sequentially determine each second device that has established a short-range wireless communication connection with the target device as a third device;
步骤902:判断第三设备的数量是否已经达到预先设定的目标数量;Step 902: Determine whether the number of third devices has reached the preset target number;
步骤903:当第三设备的数量达到目标数量时,向所有的第二设备发送停止搜索请求,以使位于目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接。Step 903: When the number of third devices reaches the target number, send a stop search request to all second devices, so that the second device located at the target device establishing a short-range wireless communication connection stops trying to establish short-range wireless communication with the target device connection.
根据需求预先设定目标数量,在开始向第二设备发送搜索请求后,将每一个已经与目标设备建立短距离无线通信连接的第二设备确定为一个第三设备,同时通过计数器统计第三设备的数量,当第三设备的数量达到目标数量后,停止向第二设备发送搜索请求,并向所有第二设备发送停止搜索请求,使得还未与目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接。Set the target number in advance according to requirements. After starting to send a search request to the second device, determine each second device that has established a short-range wireless communication connection with the target device as a third device, and count the third devices through a counter When the number of third devices reaches the target number, stop sending search requests to the second device, and send stop search requests to all second devices, so that the second device that has not established a short-range wireless communication connection with the target device Stop trying to establish a short-range wireless communication connection with the target device.
通过预先设定目标数量,当确定出的第三设备的数量达到目标数量后,使得还未与目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接,在保证利用已经确定出的第三设备能够完成对目标设备进行定位后,停止其他第二设备继续对目标设备进行搜索,能够避免资源的浪费。By pre-setting the target number, when the determined number of third devices reaches the target number, the second device that has not yet established a short-range wireless communication connection with the target device stops trying to establish a short-range wireless communication connection with the target device. After ensuring that the target device can be positioned using the determined third device, stopping other second devices to continue searching for the target device can avoid waste of resources.
可选地,在图3所示设备定位方法的基础上,步骤303确定出至少一个第三设备之后,可以利用第三设备从目标设备上采集所需要的目标数据。如图10所示,从目标设备上采集目标数据的方法可以包括以下步骤:Optionally, based on the device positioning method shown in FIG. 3, after determining at least one third device in step 303, the third device may be used to collect the required target data from the target device. As shown in Figure 10, the method of collecting target data from a target device may include the following steps:
步骤1001:向至少一个第三设备发送数据采集请求,其中,数据采集请求用于指示第三设备从目标设备上采集预设时间段内形成且为预设类型的目标数据;Step 1001: Send a data collection request to at least one third device, where the data collection request is used to instruct the third device to collect target data of a preset type formed within a preset time period from the target device;
步骤1002:接收来自第三设备的目标数据;Step 1002: Receive target data from a third device;
步骤1003:将目标数据发送给第一设备。Step 1003: Send the target data to the first device.
由于第三设备是已经与目标设备建立短距离无线通信连接的设备,因此第三设备可以与 目标设备正常进行无线通信,以传输数据。在确定出至少一个第三设备后,可以向其中一个或多个第三设备发送数据采集请求,接收到数据采集请求的第三设备可以才目标设备上采集指定时间段内形成且为指定类型的目标数据,并将采集到的目标数据返回。在接收到第三设备返回的目标数据之后,可以将接收到的目标数据发送给第一设备。Since the third device is a device that has established a short-range wireless communication connection with the target device, the third device can normally perform wireless communication with the target device to transmit data. After at least one third device is determined, a data collection request can be sent to one or more of the third devices. The third device that receives the data collection request can collect data from the target device within a specified time period and be of a specified type. Target data, and return the collected target data. After receiving the target data returned by the third device, the received target data may be sent to the first device.
通过向第三设备发送数据采集请求,使得第三设备可以从目标设备上采集目标数据,从而可以利用可移动的第三设备方便地从目标设备上采集数据,一方面无需专门为目标设备配置用于数据采集的固定式通信基站,另一方面可以方便地从运动的目标设备上采集数据。By sending a data collection request to the third device, the third device can collect target data from the target device, so that a movable third device can be used to easily collect data from the target device. On the one hand, there is no need to specifically configure the target device. Fixed communication base stations for data collection, on the other hand, can easily collect data from moving target devices.
在本发明实施例中,在向第三设备发送数据采集请求时,如果确定出多个第三设备,可以随机地向一个第三设备发送数据采集请求,以通过这一个第三设备从目标设备上采集数据,还可以分别向选择出的至少两个或全部的第三设备发送不同数据采集请求,使得各个第三设备负责从目标设备上采集不同的数据。In the embodiment of the present invention, when sending a data collection request to a third device, if multiple third devices are determined, a data collection request can be randomly sent to a third device, so as to obtain data from the target device through this third device. In order to collect data, it is also possible to send different data collection requests to at least two or all selected third devices, so that each third device is responsible for collecting different data from the target device.
在本发明实施例中,可以通过第三设备从目标设备上采集安全数据,比如指定时间段内目标设备所产生的安全日志,以便于根据采集到的安全日志对目标设备的安全状况进行分析。In the embodiment of the present invention, the third device may collect security data from the target device, such as the security log generated by the target device within a specified time period, so as to analyze the security status of the target device based on the collected security log.
可选地,在上述各个实施例所提供设备定位方法的基础上,定位请求、搜索请求、第一位置信息以及目标数据均通过密文的形式进行转发,避免定位过程中敏感数据的泄露,保证定位过程的安全性。Optionally, on the basis of the device positioning methods provided in the foregoing embodiments, the positioning request, search request, first location information, and target data are all forwarded in the form of cipher text to avoid leakage of sensitive data during the positioning process and ensure Security of the positioning process.
具体地,第一设备在发送定位请求之前,首先通过随机生成的会话密钥对定位请求所包括的信息进行加密获得定位请求密文,同时第一设备利用其私钥对随机生成的会话密钥进行加密获得会话密钥密文,之后同时对定位请求密文和会话密钥密文进行发送。在接收到来自第一设备的定位请求密文和会话密钥密文后,首先利用第一设备的公钥对会话密钥密文进行解密获得会话密钥,之后利用解密出的会话密钥对接收到的定位请求密文进行解密,获得定位请求所包括的具体信息。Specifically, before sending the positioning request, the first device first encrypts the information included in the positioning request with a randomly generated session key to obtain the ciphertext of the positioning request, and at the same time, the first device uses its private key to pair the randomly generated session key Encryption is performed to obtain the session key cipher text, and then the location request cipher text and the session key cipher text are sent at the same time. After receiving the location request ciphertext and the session key ciphertext from the first device, first use the public key of the first device to decrypt the session key ciphertext to obtain the session key, and then use the decrypted session key pair The received ciphertext of the location request is decrypted to obtain the specific information included in the location request.
另外,在向第二设备发送搜索请求之后,在第二设备尝试与目标设备建立短距离无线通信连接之后,无论第二设备是否成功与目标设备建立短距离无线通信连接,均使第二设备将搜索请求包括的连接信息删除,避免连接信息泄露。同时,第三设备从目标设备上采集到目标数据之后,直接将目标数据返回给定位服务器,第三设备本地不会存储目标数据,保证了目标数据的安全性。In addition, after sending a search request to the second device, after the second device attempts to establish a short-range wireless communication connection with the target device, regardless of whether the second device successfully establishes a short-range wireless communication connection with the target device, the second device will The connection information included in the search request is deleted to avoid leakage of connection information. At the same time, after the third device collects the target data from the target device, it directly returns the target data to the positioning server, and the third device does not store the target data locally, ensuring the security of the target data.
如图11所示,本发明一个实施例提供了一种定位服务器10,包括:As shown in FIG. 11, an embodiment of the present invention provides a positioning server 10, including:
一个请求接收模块101,用于接收来自一个第一设备的定位请求,其中,定位请求包括连接信息,连接信息用于与待定位的目标设备建立短距离无线通信连接;A request receiving module 101, configured to receive a positioning request from a first device, where the positioning request includes connection information, and the connection information is used to establish a short-range wireless communication connection with a target device to be located;
一个请求发送模块102,用于向至少一个第二设备发送搜索请求,其中,搜索请求包括有请求接收模块101接收到的连接信息,搜索请求用于指示至少一个第二设备根据连接信息尝试与目标设备建立短距离无线通信连接;A request sending module 102 is configured to send a search request to at least one second device, where the search request includes the connection information received by the request receiving module 101, and the search request is used to instruct at least one second device to try to contact the target according to the connection information. The device establishes a short-range wireless communication connection;
一个设备筛选模块103,用于确定至少一个第三设备,其中,第三设备为至少一个第二设备中根据请求发送模块102所发送的搜索请求已经与目标设备建立短距离无线通信连接的设备;A device screening module 103 is used to determine at least one third device, where the third device is a device in the at least one second device that has established a short-range wireless communication connection with the target device according to the search request sent by the request sending module 102;
一个设备定位模块104,用于根据设备筛选模块103确定出的至少一个第三设备的所处位置对目标设备进行定位,获得用于指示目标设备当前所处位置的第一位置信息;A device positioning module 104, configured to locate the target device according to the location of at least one third device determined by the device screening module 103, and obtain first location information indicating the current location of the target device;
一个信息发送模块105,用于将设备定位模块104获取到的第一位置信息发送给第一设备。An information sending module 105 is used to send the first location information obtained by the device positioning module 104 to the first device.
在本发明实施例中,请求接收模块101可用于执行上述方法实施例中的步骤301,请求发送模块102可用于执行上述方法实施例中的步骤302,设备筛选模块103可用于执行上述方法实施例中的步骤303,设备定位模块104可用于执行上述方法实施例中的步骤304,信息发送模块105可用于执行上述方法实施例中的步骤305。In the embodiment of the present invention, the request receiving module 101 can be used to perform step 301 in the above method embodiment, the request sending module 102 can be used to perform step 302 in the above method embodiment, and the device screening module 103 can be used to perform the above method embodiment. In step 303 in the above method, the device positioning module 104 can be used to perform step 304 in the above method embodiment, and the information sending module 105 can be used to perform step 305 in the above method embodiment.
可选地,在图11所述定位服务器10的基础上,如图12所示,设备定位模块104包括:Optionally, based on the positioning server 10 described in FIG. 11, as shown in FIG. 12, the device positioning module 104 includes:
一个设备选择单元1041,用于从至少一个第三设备中选择一个第四设备;A device selection unit 1041, configured to select a fourth device from at least one third device;
一个第一定位单元1042,用于将设备选择单元1041选择出的第四设备所处位置的坐标确定为用于指示目标设备当前所处位置的第一位置信息。A first positioning unit 1042 is used to determine the coordinates of the location of the fourth device selected by the device selection unit 1041 as the first location information used to indicate the current location of the target device.
在本发明实施例中,设备选择单元1041可用于执行上述方法实施例中的步骤401,第一定位单元1042可用于执行上述方法实施例中的步骤402。In the embodiment of the present invention, the device selection unit 1041 may be used to perform step 401 in the foregoing method embodiment, and the first positioning unit 1042 may be used to perform step 402 in the foregoing method embodiment.
可选地,在图11所述定位服务器10的基础上,如图13所示,该定位服务器10进一步包括:一个第一信息接收模块106;Optionally, on the basis of the positioning server 10 described in FIG. 11, as shown in FIG. 13, the positioning server 10 further includes: a first information receiving module 106;
第一信息接收模块106,用于接收来自设备筛选模块103确定出的每一个第三设备的通信信号强度信息,其中,通信信号强度信息用于表征相对应的第三设备与目标设备进行短距离无线通信的信号强度;The first information receiving module 106 is configured to receive the communication signal strength information of each third device determined by the device screening module 103, where the communication signal strength information is used to characterize the short distance between the corresponding third device and the target device Signal strength of wireless communication;
设备定位模块104包括:The device positioning module 104 includes:
一个坐标计算单元1043,用于根据每一个第三设备所处位置的坐标和第一信息接收模块106接收到的来自相对应第三设备的通信信号强度信息,确定目标设备当前所处位置的坐标;A coordinate calculation unit 1043 for determining the coordinates of the current location of the target device based on the coordinates of the location of each third device and the communication signal strength information from the corresponding third device received by the first information receiving module 106 ;
一个第二定位单元1044,用于将坐标计算单元1043确定出的目标设备当前所处位置的坐标确定为第一位置信息。A second positioning unit 1044 is used to determine the coordinates of the current location of the target device determined by the coordinate calculation unit 1043 as the first location information.
在本发明实施例中,第一信息接收模块106可用于执行上述方法实施例中的步骤501, 坐标计算单元1043可用于执行上述方法实施例中的步骤502、步骤601至603以及步骤701和702,第二定位单元1044可用于执行上述方法实施例中的步骤503。In the embodiment of the present invention, the first information receiving module 106 can be used to perform step 501 in the above method embodiment, and the coordinate calculation unit 1043 can be used to perform step 502, steps 601 to 603, and steps 701 and 702 in the above method embodiment. The second positioning unit 1044 may be used to execute step 503 in the foregoing method embodiment.
可选地,在图11-13中任一附图所示定位服务器10的基础上,如图14所示,所述请求发送模块102包括:Optionally, on the basis of the positioning server 10 shown in any one of FIGS. 11-13, as shown in FIG. 14, the request sending module 102 includes:
一个设备获取单元1021,用于根据目标设备的类型,确定至少一个可以与目标设备进行短距离无线通信的第二设备;A device acquiring unit 1021, configured to determine at least one second device that can perform short-range wireless communication with the target device according to the type of the target device;
一个位置获取单元1022,用于获取定位请求进一步包括的第二位置信息,其中,第二位置信息用于指示目标设备最近一次与第一设备进行通信时所处的位置;A location obtaining unit 1022, configured to obtain second location information further included in the positioning request, where the second location information is used to indicate the location where the target device was in the last communication with the first device;
一个优先级设定单元1023,用于针对设备获取单元1021确定的每一个第二设备,确定该第二设备与位置获取单元1022获取到的第二位置信息所指示位置之间的距离,并根据确定出的距离设定该第二设备的优先级,其中,距离越小该第二设备的优先级越高;A priority setting unit 1023 is used to determine the distance between the second device and the position indicated by the second location information obtained by the location obtaining unit 1022 for each second device determined by the device obtaining unit 1021, and according to The determined distance sets the priority of the second device, where the smaller the distance, the higher the priority of the second device;
一个第一发送单元1024,用于根据优先级设定单元1023对至少一个第二设备所设定的优先级,按照对应优先级由高至低的顺序,依次向至少一个第二设备发送包括有连接信息的搜索请求。A first sending unit 1024 is configured to send to the at least one second device in turn, according to the priority set by the priority setting unit 1023 for at least one second device, in descending order of the corresponding priority. Search request for connection information.
在本发明实施例中,设备获取单元1021可用于执行上述方法实施例中的步骤801,位置获取单元1022可用于执行上述方法实施例中的步骤802,优先级设定单元1023可用于执行上述方法实施例中的步骤803,第一发送单元1024可用于执行上述方法实施例中的步骤804。In the embodiment of the present invention, the device obtaining unit 1021 can be used to perform step 801 in the above method embodiment, the location obtaining unit 1022 can be used to perform step 802 in the above method embodiment, and the priority setting unit 1023 can be used to perform the above method. In step 803 in the embodiment, the first sending unit 1024 may be used to execute step 804 in the foregoing method embodiment.
可选地,在图14所示定位服务器10的基础上,如图15所示,设备筛选模块103包括:Optionally, on the basis of the positioning server 10 shown in FIG. 14, as shown in FIG. 15, the device screening module 103 includes:
一个设备识别单元1031,用于依次将每一个已经与目标设备建立短距离无线通信连接的第二设备确定为第三设备;A device identification unit 1031, configured to sequentially determine each second device that has established a short-range wireless communication connection with the target device as a third device;
一个判断单元1032,用于判断识别单元1031确定出的第三设备的数量是否达到预先设定的目标数量;A judging unit 1032 for judging whether the number of third devices determined by the identifying unit 1031 reaches a preset target number;
一个第二发送单元1033,用于在判断单元1032判断第三设备的数量达到目标数量时,向所有的第二设备发送停止搜索请求,以使未与目标设备建立短距离无线通信连接的第二设备停止尝试与目标设备建立短距离无线通信连接。A second sending unit 1033 is used to send a stop search request to all second devices when the judging unit 1032 judges that the number of third devices reaches the target number, so that the second device that has not established a short-range wireless communication connection with the target device The device stops trying to establish a short-range wireless communication connection with the target device.
在本发明实施例中,设备识别单元1031可用于执行上述方法实施例中的步骤901,判断单元1032可用于执行上述方法实施例中的步骤902,第二发送单元1033可用于执行上述方法实施例中的步骤903。In the embodiment of the present invention, the device identification unit 1031 can be used to perform step 901 in the above method embodiment, the judgment unit 1032 can be used to perform step 902 in the above method embodiment, and the second sending unit 1033 can be used to perform the above method embodiment. In step 903.
可选地,在图11-15中任一附图所示定位服务器10的基础上,如图16所示,该定位服务器10进一步包括::一个第二信息接收模块107;Optionally, on the basis of the positioning server 10 shown in any one of the drawings in FIGS. 11-15, as shown in FIG. 16, the positioning server 10 further includes: a second information receiving module 107;
请求发送模块102,进一步用于向至少一个第三设备发送数据采集请求,其中,数据采 集请求用于指示第三设备从目标设备上采集预设时间段内形成且为预设类型的目标数据;The request sending module 102 is further configured to send a data collection request to at least one third device, where the data collection request is used to instruct the third device to collect target data of a preset type formed within a preset time period from the target device;
第二信息接收模块107,用于接收来自第三设备根据请求发送模块102发送的数据采集请求而采集到的目标数据;The second information receiving module 107 is configured to receive target data collected from the third device according to the data collection request sent by the request sending module 102;
信息发送模块105,进一步用于将第二信息接收模块107接收到的目标数据发送给第一设备。The information sending module 105 is further configured to send the target data received by the second information receiving module 107 to the first device.
在本发明实施例中,请求发送模块102可用于执行上述方法实施例中的步骤1001,第二信息接收模块107可用于执行上述方法实施例中的步骤1002,信息发送模块105可用于执行上述方法实施例中的步骤1003。In the embodiment of the present invention, the request sending module 102 can be used to perform step 1001 in the above method embodiment, the second information receiving module 107 can be used to perform step 1002 in the above method embodiment, and the information sending module 105 can be used to perform the above method. Step 1003 in the embodiment.
如图17所示,本发明一个实施例提供了一种定位服务器10,包括:As shown in FIG. 17, an embodiment of the present invention provides a positioning server 10, including:
至少一个存储器108,被配置为存储可执行指令;At least one memory 108 is configured to store executable instructions;
至少一个处理器109,与所述至少一个存储器108耦合,当执行所述可执行指令时,被配置为:At least one processor 109, coupled with the at least one memory 108, when executing the executable instructions, is configured to:
接收来自一个第一设备40的定位请求,其中,所述定位请求包括连接信息,所述连接信息用于与待定位的目标设备30建立短距离无线通信连接;Receiving a positioning request from a first device 40, where the positioning request includes connection information, and the connection information is used to establish a short-range wireless communication connection with the target device 30 to be positioned;
向至少一个第二设备20发送包括有所述连接信息的搜索请求,其中,所述搜索请求用于指示所述至少一个第二设备20根据所述连接信息尝试与所述目标设备30建立所述短距离无线通信连接;Send a search request including the connection information to at least one second device 20, where the search request is used to instruct the at least one second device 20 to try to establish the connection with the target device 30 according to the connection information. Short-range wireless communication connection;
确定至少一个第三设备50,其中,所述第三设备50为所述至少一个第二设备20中已经与所述目标设备30建立所述短距离无线通信连接的设备;Determine at least one third device 50, where the third device 50 is a device in the at least one second device 20 that has established the short-range wireless communication connection with the target device 30;
根据所述至少一个第三设备50所处的位置对所述目标设备30进行定位,获得用于指示所述目标设备30当前所处位置的第一位置信息;Locate the target device 30 according to the location of the at least one third device 50, and obtain first location information used to indicate the current location of the target device 30;
将所述第一位置信息发送给所述第一设备40。The first location information is sent to the first device 40.
可选地,在图17所示定位服务器10的基础上,所述至少一个处理器109进一步在执行所述可执行指令时,被配置为:Optionally, on the basis of the positioning server 10 shown in FIG. 17, the at least one processor 109 is further configured to: when executing the executable instruction:
从所述至少一个第三设备50中选择一个第四设备;Selecting a fourth device from the at least one third device 50;
将所述第四设备所处位置的坐标确定为用于指示所述目标设备30当前所处位置的所述第一位置信息。The coordinates of the location of the fourth device are determined as the first location information indicating the current location of the target device 30.
可选地,在图17所示定位服务器10的基础上,所述至少一个处理器109进一步在执行所述可执行指令时,被配置为:Optionally, on the basis of the positioning server 10 shown in FIG. 17, the at least one processor 109 is further configured to: when executing the executable instruction:
接收来自每一个所述第三设备50的通信信号强度信息,其中,所述通信信号强度信息用 于表征相对应的所述第三设备50与所述目标设备30进行短距离无线通信的信号强度;Receive communication signal strength information from each of the third devices 50, where the communication signal strength information is used to characterize the signal strength of the corresponding short-range wireless communication between the third device 50 and the target device 30 ;
根据每一个所述第三设备50所处位置的坐标和来自相对应的所述第三设备50的所述通信信号强度信息,确定所述目标设备30当前所处位置的坐标;Determine the coordinates of the current location of the target device 30 according to the coordinates of the location of each third device 50 and the communication signal strength information from the corresponding third device 50;
将所述目标设备30当前所处位置的坐标确定为所述第一位置信息。The coordinates of the current location of the target device 30 are determined as the first location information.
可选地,在图17所示定位服务器10的基础上,所述至少一个处理器109进一步在执行所述可执行指令时,被配置为:Optionally, on the basis of the positioning server 10 shown in FIG. 17, the at least one processor 109 is further configured to: when executing the executable instruction:
根据所述目标设备30的类型,确定至少一个可以与所述目标设备30进行短距离无线通信的所述第二设备20;According to the type of the target device 30, determine at least one second device 20 that can perform short-range wireless communication with the target device 30;
获取所述定位请求进一步包括的第二位置信息,其中,所述第二位置信息用于指示所述目标设备30最近一次与所述第一设备40进行通信时所处的位置;Acquiring second location information further included in the positioning request, where the second location information is used to indicate the location where the target device 30 was in the last communication with the first device 40;
针对每一个所述第二设备20,确定该第二设备20与所述第二位置信息所指示位置之间的距离,并根据确定出的所述距离设定该第二设备20的优先级,其中,所述距离越小该第二设备20的优先级越高;For each of the second devices 20, determine the distance between the second device 20 and the position indicated by the second location information, and set the priority of the second device 20 according to the determined distance, Wherein, the smaller the distance, the higher the priority of the second device 20;
按照对应优先级由高至低的顺序,依次向所述至少一个第二设备20发送包括有所述连接信息的所述搜索请求。The search request including the connection information is sequentially sent to the at least one second device 20 in the descending order of the corresponding priority.
可选地,在图17所示定位服务器10的基础上,所述至少一个处理器109进一步在执行所述可执行指令时,被配置为:Optionally, on the basis of the positioning server 10 shown in FIG. 17, the at least one processor 109 is further configured to: when executing the executable instruction:
依次将每一个已经与所述目标设备30建立所述短距离无线通信连接的所述第二设备20确定为所述第三设备50;Sequentially determine each second device 20 that has established the short-range wireless communication connection with the target device 30 as the third device 50;
判断所述第三设备50的数量是否达到预先设定的目标数量;Determine whether the number of the third devices 50 reaches a preset target number;
当所述第三设备50的数量达到所述目标数量时,向所有的所述第二设备20发送停止搜索请求,以使未与所述目标设备30建立所述短距离无线通信连接的所述第二设备20停止尝试与所述目标设备30建立所述短距离无线通信连接。When the number of the third device 50 reaches the target number, a search stop request is sent to all the second devices 20 so that the short-range wireless communication connection has not been established with the target device 30 The second device 20 stops trying to establish the short-range wireless communication connection with the target device 30.
可选地,在图17所示定位服务器10的基础上,所述至少一个处理器109进一步在执行所述可执行指令时,被配置为:Optionally, on the basis of the positioning server 10 shown in FIG. 17, the at least one processor 109 is further configured to: when executing the executable instruction:
向至少一个所述第三设备50发送数据采集请求,其中,所述数据采集请求用于指示所述第三设备50从所述目标设备30上采集预设时间段内形成且为预设类型的目标数据;Send a data collection request to at least one of the third devices 50, where the data collection request is used to instruct the third device 50 to collect data from the target device 30 that are formed within a preset time period and are of a preset type Target data
接收来自所述第三设备50的所述目标数据;Receiving the target data from the third device 50;
将所述目标数据发送给所述第一设备40。The target data is sent to the first device 40.
本实施例中,定位服务器10的其他可选实现方式可参考前述方法,这里不再赘述。In this embodiment, for other optional implementation manners of the positioning server 10, reference may be made to the foregoing method, which will not be repeated here.
本发明还提供了一种计算机可读介质,存储用于使一计算机执行如本文所述的设备定位方法的指令。具体地,可以提供配有存储介质的系统或者装置,在该存储介质上存储着实现上述实施例中任一实施例的功能的软件程序代码,且使该系统或者装置的计算机(或CPU或MPU)读出并执行存储在存储介质中的程序代码。The present invention also provides a computer-readable medium that stores instructions for making a computer execute the device positioning method described herein. Specifically, a system or device equipped with a storage medium may be provided, and the software program code for realizing the function of any of the above embodiments is stored on the storage medium, and the computer (or CPU or MPU of the system or device) ) Read and execute the program code stored in the storage medium.
在这种情况下,从存储介质读取的程序代码本身可实现上述实施例中任何一项实施例的功能,因此程序代码和存储程序代码的存储介质构成了本发明的一部分。In this case, the program code read from the storage medium itself can realize the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute a part of the present invention.
用于提供程序代码的存储介质实施例包括软盘、硬盘、磁光盘、光盘(如CD-ROM、CD-R、CD-RW、DVD-ROM、DVD-RAM、DVD-RW、DVD+RW)、磁带、非易失性存储卡和ROM。可选择地,可以由通信网络从服务器计算机上下载程序代码。Examples of storage media used to provide program codes include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), Magnetic tape, non-volatile memory card and ROM. Alternatively, the program code can be downloaded from the server computer via a communication network.
此外,应该清楚的是,不仅可以通过执行计算机所读出的程序代码,而且可以通过基于程序代码的指令使计算机上操作的操作系统等来完成部分或者全部的实际操作,从而实现上述实施例中任意一项实施例的功能。In addition, it should be clear that not only the program code read by the computer can be executed, but also the operating system operating on the computer can be used to complete part or all of the actual operations through instructions based on the program code, so as to implement the above-mentioned embodiments. Function of any one of the embodiments.
此外,可以理解的是,将由存储介质读出的程序代码写到插入计算机内的扩展板中所设置的存储器中或者写到与计算机相连接的扩展单元中设置的存储器中,随后基于程序代码的指令使安装在扩展板或者扩展单元上的CPU等来执行部分和全部实际操作,从而实现上述实施例中任一实施例的功能。In addition, it can be understood that the program code read from the storage medium is written to the memory provided in the expansion board inserted into the computer or to the memory provided in the expansion unit connected to the computer, and then the program code is based on The instructions cause the CPU installed on the expansion board or the expansion unit to perform part or all of the actual operations, so as to realize the function of any one of the foregoing embodiments.
需要说明的是,上述各流程和各系统结构图中不是所有的步骤和模块都是必须的,可以根据实际的需要忽略某些步骤或模块。各步骤的执行顺序不是固定的,可以根据需要进行调整。上述各实施例中描述的系统结构可以是物理结构,也可以是逻辑结构,即,有些模块可能由同一物理实体实现,或者,有些模块可能分由多个物理实体实现,或者,可以由多个独立设备中的某些部件共同实现。It should be noted that not all steps and modules in the above processes and system structure diagrams are necessary, and some steps or modules can be omitted according to actual needs. The order of execution of each step is not fixed and can be adjusted as needed. The system structure described in the foregoing embodiments may be a physical structure or a logical structure. That is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or may be implemented by multiple physical entities. Some components in independent devices are implemented together.
以上各实施例中,硬件单元可以通过机械方式或电气方式实现。例如,一个硬件单元可以包括永久性专用的电路或逻辑(如专门的处理器,FPGA或ASIC)来完成相应操作。硬件单元还可以包括可编程逻辑或电路(如通用处理器或其它可编程处理器),可以由软件进行临时的设置以完成相应操作。具体的实现方式(机械方式、或专用的永久性电路、或者临时设置的电路)可以基于成本和时间上的考虑来确定。In the above embodiments, the hardware unit can be implemented mechanically or electrically. For example, a hardware unit may include a permanent dedicated circuit or logic (such as a dedicated processor, FPGA or ASIC) to complete the corresponding operation. The hardware unit may also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which may be temporarily set by software to complete corresponding operations. The specific implementation mode (mechanical means, or dedicated permanent circuit, or temporarily set circuit) can be determined based on cost and time considerations.
上文通过附图和优选实施例对本发明进行了详细展示和说明,然而本发明不限于这些已揭示的实施例,基与上述多个实施例本领域技术人员可以知晓,可以组合上述不同实施例中的代码审核手段得到本发明更多的实施例,这些实施例也在本发明的保护范围之内。The present invention has been shown and described in detail through the drawings and preferred embodiments above. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the above different embodiments can be combined. The code review method in, obtains more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.

Claims (16)

  1. 设备定位方法,应用于定位服务器(10),其特征在于,包括:The device positioning method, applied to a positioning server (10), is characterized in that it includes:
    接收来自一个第一设备(40)的定位请求,其中,所述定位请求包括连接信息,所述连接信息用于与待定位的目标设备(30)建立短距离无线通信连接;Receiving a positioning request from a first device (40), wherein the positioning request includes connection information, and the connection information is used to establish a short-range wireless communication connection with the target device (30) to be positioned;
    向至少一个第二设备(20)发送包括有所述连接信息的搜索请求,其中,所述搜索请求用于指示所述至少一个第二设备(20)根据所述连接信息尝试与所述目标设备(30)建立所述短距离无线通信连接;Send a search request including the connection information to at least one second device (20), wherein the search request is used to instruct the at least one second device (20) to try to contact the target device according to the connection information. (30) Establish the short-range wireless communication connection;
    确定至少一个第三设备(50),其中,所述第三设备(50)为所述至少一个第二设备(20)中已经与所述目标设备(30)建立所述短距离无线通信连接的设备;Determine at least one third device (50), where the third device (50) is one of the at least one second device (20) that has established the short-range wireless communication connection with the target device (30) equipment;
    根据所述至少一个第三设备(50)所处的位置对所述目标设备(30)进行定位,获得用于指示所述目标设备(30)当前所处位置的第一位置信息;Positioning the target device (30) according to the location of the at least one third device (50), and obtaining first location information indicating the current location of the target device (30);
    将所述第一位置信息发送给所述第一设备(40)。The first location information is sent to the first device (40).
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述至少一个第三设备(50)所处的位置对所述目标设备(30)进行定位,获得用于指示所述目标设备(30)当前所处位置的第一位置信息,包括:The method according to claim 1, characterized in that the positioning of the target device (30) according to the location of the at least one third device (50) is obtained to indicate the target device ( 30) The first location information of the current location, including:
    从所述至少一个第三设备(50)中选择一个第四设备;Selecting a fourth device from the at least one third device (50);
    将所述第四设备所处位置的坐标确定为用于指示所述目标设备(30)当前所处位置的所述第一位置信息。The coordinates of the location of the fourth device are determined as the first location information used to indicate the current location of the target device (30).
  3. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, wherein:
    在所述确定至少一个第三设备(50)之后,进一步包括:After the at least one third device (50) is determined, it further includes:
    接收来自每一个所述第三设备(50)的通信信号强度信息,其中,所述通信信号强度信息用于表征相对应的所述第三设备(50)与所述目标设备(30)进行短距离无线通信的信号强度;Receive communication signal strength information from each of the third devices (50), where the communication signal strength information is used to characterize the communication between the corresponding third device (50) and the target device (30). Signal strength of distance wireless communication;
    所述根据所述至少一个第三设备(50)所处的位置对所述目标设备(30)进行定位,获得用于指示所述目标设备(30)当前所处位置的第一位置信息,包括:The positioning the target device (30) according to the location of the at least one third device (50) to obtain first location information indicating the current location of the target device (30) includes :
    根据每一个所述第三设备(50)所处位置的坐标和来自相对应的所述第三设备(50)的所述通信信号强度信息,确定所述目标设备(30)当前所处位置的坐标;According to the coordinates of the location of each third device (50) and the communication signal strength information from the corresponding third device (50), determine the current location of the target device (30) coordinate;
    将所述目标设备(30)当前所处位置的坐标确定为所述第一位置信息。The coordinates of the current location of the target device (30) are determined as the first location information.
  4. 根据权利要求1至3中任一所述的方法,其特征在于,所述向至少一个第二设备(20)发送包括有所述连接信息的搜索请求,包括:The method according to any one of claims 1 to 3, wherein the sending a search request including the connection information to at least one second device (20) comprises:
    根据所述目标设备(30)的类型,确定至少一个可以与所述目标设备(30)进行短距离无线通信的所述第二设备(20);According to the type of the target device (30), determine at least one second device (20) that can perform short-range wireless communication with the target device (30);
    获取所述定位请求进一步包括的第二位置信息,其中,所述第二位置信息用于指示所述目标设备(30)最近一次与所述第一设备(40)进行通信时所处的位置;Acquiring second location information further included in the positioning request, where the second location information is used to indicate the location where the target device (30) last communicated with the first device (40);
    针对每一个所述第二设备(20),确定该第二设备(20)与所述第二位置信息所指示位置之间的距离,并根据确定出的所述距离设定该第二设备(20)的优先级,其中,所述距离越小该第二设备(20)的优先级越高;For each second device (20), determine the distance between the second device (20) and the location indicated by the second location information, and set the second device (20) according to the determined distance. 20) priority, wherein the smaller the distance, the higher the priority of the second device (20);
    按照对应优先级由高至低的顺序,依次向所述至少一个第二设备(20)发送包括有所述连接信息的所述搜索请求。The search request including the connection information is sent to the at least one second device (20) in sequence in descending order of corresponding priority.
  5. 根据权利要求4所述的方法,其特征在于,所述确定至少一个第三设备(50),包括:The method according to claim 4, characterized in that said determining at least one third device (50) comprises:
    依次将每一个已经与所述目标设备(30)建立所述短距离无线通信连接的所述第二设备(20)确定为所述第三设备(50);Sequentially determine each second device (20) that has established the short-range wireless communication connection with the target device (30) as the third device (50);
    判断所述第三设备(50)的数量是否达到预先设定的目标数量;Determine whether the number of the third devices (50) reaches a preset target number;
    当所述第三设备(50)的数量达到所述目标数量时,向所有的所述第二设备(20)发送停止搜索请求,以使未与所述目标设备(30)建立所述短距离无线通信连接的所述第二设备(20)停止尝试与所述目标设备(30)建立所述短距离无线通信连接。When the number of the third device (50) reaches the target number, send a stop search request to all the second devices (20) so that the short distance is not established with the target device (30) The second device (20) connected in wireless communication stops trying to establish the short-range wireless communication connection with the target device (30).
  6. 根据权利要求1至5中任一所述的方法,其特征在于,在所述确定至少一个第三设备(50)之后,进一步包括:The method according to any one of claims 1 to 5, characterized in that, after said determining at least one third device (50), further comprising:
    向至少一个所述第三设备(50)发送数据采集请求,其中,所述数据采集请求用于指示所述第三设备(50)从所述目标设备(30)上采集预设时间段内形成且为预设类型的目标数据;Send a data collection request to at least one of the third devices (50), where the data collection request is used to instruct the third device (50) to collect data from the target device (30) within a preset time period. And it is the target data of the preset type;
    接收来自所述第三设备(50)的所述目标数据;Receiving the target data from the third device (50);
    将所述目标数据发送给所述第一设备(40)。The target data is sent to the first device (40).
  7. 根据权利要求6所述的方法,其特征在于,The method according to claim 6, wherein:
    所述定位请求、所述搜索请求、所述第一位置信息和所述目标数据均以密文的形式进行转发。The positioning request, the search request, the first location information, and the target data are all forwarded in the form of cipher text.
  8. 定位服务器(10),其特征在于,包括:The positioning server (10) is characterized in that it includes:
    一个请求接收模块(101),用于接收来自一个第一设备(40)的定位请求,其中,所述定位请求包括连接信息,所述连接信息用于与待定位的目标设备(30)建立短距离无线通信连接;A request receiving module (101) for receiving a positioning request from a first device (40), wherein the positioning request includes connection information, and the connection information is used to establish a short message with the target device (30) to be positioned. Distance wireless communication connection;
    一个请求发送模块(102),用于向至少一个第二设备(20)发送搜索请求,其中,所述搜索请求包括有所述请求接收模块(101)接收到的所述连接信息,所述搜索请求用于指示所 述至少一个第二设备(20)根据所述连接信息尝试与所述目标设备(30)建立所述短距离无线通信连接;A request sending module (102) for sending a search request to at least one second device (20), wherein the search request includes the connection information received by the request receiving module (101), and the search The request is used to instruct the at least one second device (20) to try to establish the short-range wireless communication connection with the target device (30) according to the connection information;
    一个设备筛选模块(103),用于确定至少一个第三设备(50),其中,所述第三设备(50)为所述至少一个第二设备(20)中根据所述请求发送模块(102)所发送的所述搜索请求已经与所述目标设备(30)建立所述短距离无线通信连接的设备;A device screening module (103) is used to determine at least one third device (50), where the third device (50) is the sending module (102) of the at least one second device (20) according to the request ) A device that has already established the short-range wireless communication connection with the target device (30) in the search request sent;
    一个设备定位模块(104),用于根据所述设备筛选模块(103)确定出的所述至少一个第三设备(50)的所处位置对所述目标设备(30)进行定位,获得用于指示所述目标设备(30)当前所处位置的第一位置信息;A device positioning module (104) for positioning the target device (30) according to the location of the at least one third device (50) determined by the device screening module (103) to obtain First location information indicating the current location of the target device (30);
    一个信息发送模块(105),用于将所述设备定位模块(104)获取到的所述第一位置信息发送给所述第一设备(40)。An information sending module (105) is used to send the first location information acquired by the device positioning module (104) to the first device (40).
  9. 根据权利要求8所述的定位服务器(10),其特征在于,所述设备定位模块(104)包括:The positioning server (10) according to claim 8, wherein the device positioning module (104) comprises:
    一个设备选择单元(1041),用于从所述至少一个第三设备(50)中选择一个第四设备;A device selection unit (1041), configured to select a fourth device from the at least one third device (50);
    一个第一定位单元(1042),用于将所述设备选择单元(1041)选择出的所述第四设备所处位置的坐标确定为用于指示所述目标设备(30)当前所处位置的所述第一位置信息。A first positioning unit (1042) for determining the coordinates of the location of the fourth device selected by the device selection unit (1041) as the coordinates for indicating the current location of the target device (30) The first location information.
  10. 根据权利要求8所述的定位服务器(10),其特征在于,进一步包括:一个第一信息接收模块(106);The positioning server (10) according to claim 8, further comprising: a first information receiving module (106);
    所述第一信息接收模块(106),用于接收来自所述设备筛选模块(103)确定出的每一个所述第三设备(50)的通信信号强度信息,其中,所述通信信号强度信息用于表征相对应的所述第三设备(50)与所述目标设备(30)进行短距离无线通信的信号强度;The first information receiving module (106) is configured to receive the communication signal strength information of each third device (50) determined by the device screening module (103), wherein the communication signal strength information Used to characterize the signal strength of the short-range wireless communication between the corresponding third device (50) and the target device (30);
    所述设备定位模块(104)包括:The device positioning module (104) includes:
    一个坐标计算单元(1043),用于根据每一个所述第三设备(50)所处位置的坐标和所述第一信息接收模块(106)接收到的来自相对应所述第三设备(50)的所述通信信号强度信息,确定所述目标设备(30)当前所处位置的坐标;A coordinate calculation unit (1043) is used to calculate the coordinates of each third device (50) and the information received by the first information receiving module (106) from the corresponding third device (50). ) To determine the coordinates of the current location of the target device (30);
    一个第二定位单元(1044),用于将所述坐标计算单元(1043)确定出的所述目标设备(30)当前所处位置的坐标确定为所述第一位置信息。A second positioning unit (1044) is used to determine the coordinates of the current location of the target device (30) determined by the coordinate calculation unit (1043) as the first location information.
  11. 根据权利要求8至10中任一所述的定位服务器(10),其特征在于,所述请求发送模块(102)包括:The positioning server (10) according to any one of claims 8 to 10, wherein the request sending module (102) comprises:
    一个设备获取单元(1021),用于根据所述目标设备(30)的类型,确定至少一个可以与所述目标设备(30)进行短距离无线通信的所述第二设备(20);A device acquisition unit (1021), configured to determine at least one second device (20) that can perform short-range wireless communication with the target device (30) according to the type of the target device (30);
    一个位置获取单元(1022),用于获取所述定位请求进一步包括的第二位置信息,其中, 所述第二位置信息用于指示所述目标设备(30)最近一次与所述第一设备(40)进行通信时所处的位置;A location acquiring unit (1022), configured to acquire second location information further included in the positioning request, where the second location information is used to indicate that the target device (30) communicated with the first device ( 40) The location when communicating;
    一个优先级设定单元(1023),用于针对所述设备获取单元(1021)确定的每一个所述第二设备(20),确定该第二设备(20)与所述位置获取单元(1022)获取到的所述第二位置信息所指示位置之间的距离,并根据确定出的所述距离设定该第二设备(20)的优先级,其中,所述距离越小该第二设备(20)的优先级越高;A priority setting unit (1023) for determining the relationship between the second device (20) and the location acquiring unit (1022) for each of the second devices (20) determined by the device acquiring unit (1021) ) The obtained distance between the positions indicated by the second position information, and the priority of the second device (20) is set according to the determined distance, wherein the smaller the distance, the second device (20) The higher the priority;
    一个第一发送单元(1024),用于根据所述优先级设定单元(1023)对所述至少一个第二设备(20)所设定的优先级,按照对应优先级由高至低的顺序,依次向所述至少一个第二设备(20)发送包括有所述连接信息的所述搜索请求。A first sending unit (1024), which is configured to follow the priority set by the priority setting unit (1023) for the at least one second device (20) in descending order of the corresponding priority And send the search request including the connection information to the at least one second device (20) in sequence.
  12. 根据权利要求11所述的定位服务器(10),其特征在于,所述设备筛选模块(103)包括:The positioning server (10) according to claim 11, wherein the device screening module (103) comprises:
    一个设备识别单元(1031),用于依次将每一个已经与所述目标设备(30)建立所述短距离无线通信连接的所述第二设备(20)确定为所述第三设备(50);A device identification unit (1031), configured to sequentially determine each of the second devices (20) that have established the short-range wireless communication connection with the target device (30) as the third device (50) ;
    一个判断单元(1032),用于判断所述识别单元确定出的所述第三设备(50)的数量是否达到预先设定的目标数量;A judging unit (1032) for judging whether the number of the third devices (50) determined by the identification unit reaches a preset target number;
    一个第二发送单元(1033),用于在所述判断单元(1032)判断所述第三设备(50)的数量达到所述目标数量时,向所有的所述第二设备(20)发送停止搜索请求,以使未与所述目标设备(30)建立所述短距离无线通信连接的所述第二设备(20)停止尝试与所述目标设备(30)建立所述短距离无线通信连接。A second sending unit (1033) for sending stop to all the second devices (20) when the judging unit (1032) judges that the number of the third devices (50) reaches the target number Searching for a request to make the second device (20) that has not established the short-range wireless communication connection with the target device (30) to stop trying to establish the short-range wireless communication connection with the target device (30).
  13. 根据权利要求8至12中任一所述的定位服务器(10),其特征在于,进一步包括:一个第二信息接收模块(107);The positioning server (10) according to any one of claims 8 to 12, further comprising: a second information receiving module (107);
    所述请求发送模块(102),进一步用于向至少一个所述第三设备(50)发送数据采集请求,其中,所述数据采集请求用于指示所述第三设备(50)从所述目标设备(30)上采集预设时间段内形成且为预设类型的目标数据;The request sending module (102) is further configured to send a data collection request to at least one of the third devices (50), wherein the data collection request is used to instruct the third device (50) to send data from the target The device (30) collects target data of a preset type formed within a preset time period;
    所述第二信息接收模块(107),用于接收来自所述第三设备(50)根据所述请求发送模块(102)发送的所述数据采集请求而采集到的所述目标数据;The second information receiving module (107) is configured to receive the target data collected from the third device (50) according to the data collection request sent by the request sending module (102);
    所述信息发送模块(105),进一步用于将所述第二信息接收模块(107)接收到的所述目标数据发送给所述第一设备(40)。The information sending module (105) is further configured to send the target data received by the second information receiving module (107) to the first device (40).
  14. 定位服务器(10),其特征在于,包括:至少一个存储器(108)和至少一个处理器(109);The positioning server (10) is characterized by comprising: at least one memory (108) and at least one processor (109);
    所述至少一个存储器(108),用于存储机器可读程序;The at least one memory (108), used for storing machine-readable programs;
    所述至少一个处理器(109),用于调用所述机器可读程序,执行权利要求1至7中任一所述的方法。The at least one processor (109) is configured to invoke the machine-readable program to execute the method according to any one of claims 1 to 7.
  15. 设备定位系统,其特征在于,包括:一个第一设备(40)、至少一个第二设备(20)和一个权利要求5至14中任一所述的定位服务器(10);A device positioning system, characterized by comprising: a first device (40), at least one second device (20) and a positioning server (10) according to any one of claims 5 to 14;
    所述第一设备(40),用于向所述定位服务器(10)发送定位请求,其中,所述定位请求包括连接信息,所述连接信息用于与一个待定位的目标设备(30)建立短距离无线通信连接;The first device (40) is configured to send a positioning request to the positioning server (10), wherein the positioning request includes connection information, and the connection information is used to establish a connection with a target device (30) to be positioned Short-range wireless communication connection;
    每一个所述第二设备(20),用于在接收到来自所述定位服务器(10)的搜索请求后,根据所述搜索请求包括的所述连接信息尝试与所述目标设备(30)建立所述短距离无线通信连接。Each of the second devices (20) is configured to, after receiving a search request from the positioning server (10), try to establish a connection with the target device (30) according to the connection information included in the search request The short-range wireless communication connection.
  16. 计算机可读介质,其特征在于,所述计算机可读介质上存储有计算机指令,所述计算机指令在被处理器执行时,使所述处理器执行权利要求1至7中任一所述的方法。A computer-readable medium, wherein computer instructions are stored on the computer-readable medium, and when the computer instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 7 .
PCT/CN2019/073925 2019-01-30 2019-01-30 Device positioning method and system, positioning server and computer readable medium WO2020154956A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/073925 WO2020154956A1 (en) 2019-01-30 2019-01-30 Device positioning method and system, positioning server and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/073925 WO2020154956A1 (en) 2019-01-30 2019-01-30 Device positioning method and system, positioning server and computer readable medium

Publications (1)

Publication Number Publication Date
WO2020154956A1 true WO2020154956A1 (en) 2020-08-06

Family

ID=71840722

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/073925 WO2020154956A1 (en) 2019-01-30 2019-01-30 Device positioning method and system, positioning server and computer readable medium

Country Status (1)

Country Link
WO (1) WO2020154956A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735783A (en) * 2015-04-21 2015-06-24 北京云迹科技有限公司 Method, device and server for querying locations
CN105093178A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Terminal positioning method, apparatus and system
CN105472731A (en) * 2015-10-12 2016-04-06 北京奇虎科技有限公司 Positioning method, auxiliary positioning device and geographical position monitoring device and system
CN106412819A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for positioning device
US20170142681A1 (en) * 2014-05-13 2017-05-18 Heuawei Technologies Co., Ltd. Positioning method and communications device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170142681A1 (en) * 2014-05-13 2017-05-18 Heuawei Technologies Co., Ltd. Positioning method and communications device
CN104735783A (en) * 2015-04-21 2015-06-24 北京云迹科技有限公司 Method, device and server for querying locations
CN105093178A (en) * 2015-07-20 2015-11-25 小米科技有限责任公司 Terminal positioning method, apparatus and system
CN106412819A (en) * 2015-07-31 2017-02-15 腾讯科技(深圳)有限公司 Method and device for positioning device
CN105472731A (en) * 2015-10-12 2016-04-06 北京奇虎科技有限公司 Positioning method, auxiliary positioning device and geographical position monitoring device and system

Similar Documents

Publication Publication Date Title
US9723585B2 (en) Method and apparatus for position determination in a cellular communications system
JP6694952B2 (en) Generate and publish verified location information
CN102783188B (en) For locating in LTE, the signaling support of enabling QoS otherness of position and location Based service
US8548495B2 (en) System and method for determining a position of a mobile wireless device by accessing access points alamanacs database
CN113796099A (en) Finding target device using augmented reality
US20140211691A1 (en) System and method for choosing suitable access points in quips autarkic deployment
US8929924B2 (en) Screening terminal positions at a terminal
RU2010129843A (en) IDENTIFICATION OF THE POSITION USING THE IMPROVED ALARM SIGNAL
JP2015531054A (en) Method, node and computer program for device location confirmation
JP2011158459A (en) Estimating whether wireless terminal is indoors using pattern classification
KR101696508B1 (en) Enhancement of positioning quality of service
TWI767414B (en) Progressive global positioning system and method thereof
TW201301918A (en) Method for using geographic signal fingerprint cluster to implement end-to-end message push
US9288626B2 (en) System and method for determining precise geo-location of a fixed-location radio device
EP2928245A1 (en) A wireless access point, a transmitter-implemented method, a mobile user device and a user-implemented method for localization
US9877295B2 (en) Method and apparatus for recording information from a plurality of mobile devices in an area
CN105101089B (en) Method, related device and system for realizing positioning
CN104081220B (en) For utilizing and promoting that geodetic triangulation is to judge the mechanism of the global location of calculating equipment
WO2019100334A1 (en) Data processing method and apparatus
KR20120087472A (en) Position estimating system and method of portable terminal
WO2020154956A1 (en) Device positioning method and system, positioning server and computer readable medium
TWI565963B (en) Positioning device and positioning method thereof
CN105338487B (en) Techniques for multi-pass geolocation
CN110856113A (en) Method, device and system for searching and identifying nearby equipment
Rahimi et al. Indoor geo-fencing and access control for wireless networks

Legal Events

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

Ref document number: 19913530

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19913530

Country of ref document: EP

Kind code of ref document: A1