WO2021254261A1 - Device positioning method and apparatus - Google Patents

Device positioning method and apparatus Download PDF

Info

Publication number
WO2021254261A1
WO2021254261A1 PCT/CN2021/099600 CN2021099600W WO2021254261A1 WO 2021254261 A1 WO2021254261 A1 WO 2021254261A1 CN 2021099600 W CN2021099600 W CN 2021099600W WO 2021254261 A1 WO2021254261 A1 WO 2021254261A1
Authority
WO
WIPO (PCT)
Prior art keywords
location information
preset
trusted location
trusted
subset
Prior art date
Application number
PCT/CN2021/099600
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 支付宝(杭州)信息技术有限公司
Publication of WO2021254261A1 publication Critical patent/WO2021254261A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • the embodiments of this specification relate to the field of Internet application technologies, and in particular, to a device positioning method and device.
  • the device manager In an application scenario where terminal devices are distributed in different geographic locations, the device manager usually has a requirement for locating the terminal device. However, in some cases, the administrator may not be able to accurately obtain the geographic location of the terminal device, making it difficult to implement subsequent operations.
  • a large number of settlement devices are distributed in different geographical locations, and these settlement devices have on-site maintenance requirements.
  • the management party needs to determine the location of the settlement equipment before arranging staff to operate on site.
  • some settlement devices themselves do not have the positioning function, or the settlement device is not authorized to open the location information, so that the server of the management party cannot obtain the location information of the device, and it is difficult to provide on-site maintenance services.
  • this specification discloses a device positioning method and device.
  • the technical solution is as follows: a device positioning method, applied to a server, the server having the ability to obtain trusted location information of the device, the method comprising: the server receiving the identification of at least one associated device sent by the device to be positioned;
  • the device to be located is: a device whose trusted location information cannot be obtained by the server;
  • the associated device is: a device that has a preset association behavior with the device to be located, and the preset association behavior is when the devices are close to each other.
  • the generated behavior according to the received identification of at least one associated device, respectively obtain the trusted location information of the associated device; in the obtained trusted location information set of the associated device, determine at least a subset that meets the preset conditions, so
  • the preset conditions include at least: the difference between any two trusted location information in the subset is less than the preset difference requirement, and the number of trusted location information in the subset is greater than the preset number requirement; according to the at least one subset containing To determine the reference position of the device to be located.
  • a device locating device is configured on a server, the server has the ability to obtain the trusted location information of the device, the device includes: an identification receiving unit for receiving the identification of at least one associated device sent by the device to be positioned;
  • the device to be located is: a device whose trusted location information cannot be obtained by the server;
  • the associated device is: a device that has a preset association behavior with the device to be located, and the preset association behavior is when the devices are close to each other.
  • the location information obtaining unit is used to obtain the trusted location information of the associated device according to the received identification of at least one associated device;
  • the subset determining unit is used to set the obtained trusted location information of the associated device At least one subset that meets the preset conditions is determined, and the preset conditions include at least: the difference between any two trusted location information in the subset is less than the preset difference requirement, and the number of trusted location information in the subset is greater than A preset quantity requirement; a device positioning unit, configured to determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
  • a trusted location information set can be obtained through an associated device that has a preset associated behavior with the device to be located, and then the reference location of the device to be located can be determined according to a subset of the trusted location set that meets the preset conditions. This enables the server to locate the device to be located.
  • FIG. 1 is a schematic flowchart of a device positioning method provided by an embodiment of this specification
  • FIG. 2 is a schematic diagram of the principle of a device positioning method provided by an embodiment of this specification.
  • FIG. 3 is a schematic structural diagram of a device positioning device provided by an embodiment of this specification.
  • Fig. 4 is a schematic structural diagram of a device for configuring the method of the embodiment of this specification.
  • the device manager In an application scenario where terminal devices are distributed in different geographic locations, the device manager usually has a requirement for locating the terminal device.
  • the device manager in order to facilitate routine maintenance, recycling, and prevention of theft, the device manager usually needs to locate the shared terminal device and obtain the current location information of the shared terminal device.
  • the device manager Due to the positioning requirements of the terminal device, the device manager usually has the ability to obtain the location information of the terminal device.
  • the terminal device itself can have a positioning function and can obtain its own location information through the method of base station positioning; the device manager can establish a connection with the terminal device through the server, and obtain the location information when the terminal device is authorized for the location information.
  • the management party has the ability to obtain the location information of terminal devices, this does not mean that the management party can obtain the location information of all terminal devices. In some cases, the administrator may not be able to obtain the location information of some terminal devices, making it difficult to implement subsequent operations.
  • the terminal device itself does not have a positioning function and cannot obtain its own location information; or the terminal device is not authorized for location information, which causes the server to be unable to obtain location information; or the positioning function of the terminal device fails, and the acquisition of its own location information is inaccurate .
  • the embodiment of this specification discloses a device positioning method.
  • the location information of some devices can be directly obtained, and these devices can be regarded as trusted devices, and the location information of the trusted devices can be regarded as trusted location information.
  • Some devices whose location information cannot be obtained by the administrator can be used as devices to be located.
  • the device positioning method disclosed in the embodiment of this specification is to locate the device to be located. Specifically, the device positioning method uses the trusted location information that can be obtained by the administrator to determine the trusted device that is close to the location of the device to be located through filtering and statistics, and uses the determined trusted device to be trusted. The location information further narrows the current location range of the device to be located.
  • the manager when the manager cannot directly obtain the location information of the device to be located, it can determine the current location range of the device to be located by obtaining the trusted location information of other trusted devices that are close to the location of the device to be located. It is convenient to find the equipment to be located.
  • the device to be located and other trusted devices that can obtain location information may be the same device or not.
  • the device to be located may be a shared car to be located, and the trusted device may be
  • the device can be a mobile phone; the form of the location information is also not limited, and it can be location coordinates, such as latitude and longitude coordinates, or address text, such as a street in a certain community.
  • FIG. 1 it is a schematic flowchart of a device positioning method disclosed in an embodiment of this specification.
  • the method is applied to the server, and the device manager obtains the location information of the device through the server, and the server has the ability to obtain the trusted location information of the device.
  • the method may specifically include:
  • the server receives the identification of at least one associated device sent by the device to be positioned.
  • S102 According to the received identification of the at least one associated device, respectively obtain the trusted location information of the associated device.
  • S103 Determine at least a subset that meets a preset condition from the acquired set of trusted location information of the associated device.
  • S104 Determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
  • the associated device is first determined by the device to be located, and the associated device may specifically be a device that has been in close proximity to the device to be located, or a device that is currently in close proximity to the device to be located.
  • the server obtains the trusted location information of the trusted device in the associated device, and uses statistical methods to determine the relatively concentrated range of the trusted location information based on the acquired set of trusted location information, which serves as the reference location of the device to be located.
  • the associated devices determined for the device to be located are all devices that are likely to be close to the device to be located. Although for any associated device, it is not necessarily close to the location of the device to be located, by counting the distribution positions of these associated devices, if you can find an area where more associated devices are gathered, it means that the device to be located also has It is highly likely to be located in this area, and this area can then be determined as the location of the device to be located.
  • FIG. 2 it is a schematic diagram of the principle of a device positioning method provided in this specification.
  • the triangle represents the device to be located, and the circle represents the trusted device among the associated devices.
  • the triangular position in the figure represents the actual position of the device to be located, but the server cannot obtain it directly.
  • the server determines the position of each circle in the figure by obtaining the trusted position information of the associated device.
  • a range can be determined by statistical means, that is, the dotted circle in the figure. If more related devices are gathered, it means that the device to be located has a high probability of being located in this area. Then the range can be used as The reference position of the device to be located.
  • the server receives the identification of at least one associated device sent by the device to be located
  • the detailed explanation is as follows: the device to be located may be a device for which the server cannot obtain trusted location information.
  • the associated device may be a device that has a preset associated behavior with the device to be located, and the preset associated behavior may be a behavior that occurs when the devices are close to each other.
  • the associated device can be a device that has a preset associated behavior with the device to be located for a preset period of time, it can also be a device that currently has a preset associated behavior with the device to be located, or it can be a device that has a preset association with the device to be located. Behavioral equipment.
  • Associated devices may specifically include: devices that have a network connection relationship with the device to be located, devices that have a history of interaction with the device to be located, devices that have a binding relationship with the device to be located, and have been sensed by the device to be located within a preset sensing range At least one of the four types of equipment.
  • preset association behaviors such as network connection, device interaction, device binding, and perception are behaviors that may occur when the devices are close to each other.
  • the occurrence time of these preset association behaviors is also not limited in this embodiment.
  • associated devices may include: mobile phone devices that have shown the payment code to the device to be located, server devices that have a network connection with the device to be located, and the same that is perceived by the device to be located within 10 meters through the Bluetooth function.
  • a mobile phone device with Bluetooth enabled a mobile phone device that has a binding relationship after scanning the code to turn on the device to be located.
  • the device to be located can obtain and store the device identification of the associated device through a preset association behavior, so that it can be sent to the server later.
  • the device identification can be obtained; by device interaction, the device identification can be obtained.
  • the device to be located can store the device identification of the associated device, the preset time when the associated behavior occurs does not affect the implementation of this embodiment.
  • the identification of the associated device may include the identification of the device itself and/or the identification of the user on the device.
  • the identification of the device itself for example, the device identification code or the IP address or MAC address of the device.
  • the user ID of the device on the device for example, the user ID of a login user of an application on the device, or the user ID of the device login user bound to the device.
  • the same identification of the same associated device may exist.
  • S102 According to the received identification of the at least one associated device, respectively obtain the trusted location information of the associated device.
  • the server can obtain the current trusted location information of the associated device in real time according to the received identifier of the at least one associated device.
  • the server Since the server has the ability to obtain the trusted location information of the device, after obtaining the identifier of the associated device, the server can instantly obtain the current trusted location information of the associated device according to the identifier.
  • the server After obtaining the identification IP address of the associated mobile phone device, the server establishes a network connection with the associated mobile phone device through the IP address, and after the associated mobile phone device opens the authorization of location information, it obtains the data stored by the associated mobile phone device and uses the GPS positioning method to obtain The current latitude and longitude coordinate position of is used as the current credible position information.
  • Another example is that after obtaining the identifying IP address of the server device, the address text stored when registering the IP address can be determined according to the IP address, and the address text information is used as the trusted location information of the server device.
  • the server may also search for the trusted location information corresponding to the identifier of the associated device in the set of correspondences between the device identifier and the trusted location information stored in advance, according to the received identifier of the at least one associated device.
  • the server Since the server has pre-stored a set of correspondences between the device identification and the trusted location information, the server has the ability to obtain the trusted location information of the device, and can use the device identification to find the corresponding trusted location information in the set of correspondences.
  • Table 1 An example of the set of correspondence between device identification and trusted location information is shown in Table 1 below, where the device identification is the mobile phone number of the logged-in user identification of a certain payment application, and the trusted location information is saved by the logged-in user in the payment application The shipping address. The user's mobile phone number of the payment application and the corresponding user's delivery address are stored on the application server.
  • Equipment Identity Trusted location information 135 ******** No. 1, First Community, First Street, Weiming District, Weiming City 184******** No. 2, First Community, First Street, Weiming District, Weiming City ... ... 156******** No. 10, Second Community, Second Street, Weiming District, Weiming City
  • the server can search for the corresponding trusted location information in the correspondence table of Table 1 according to the acquired identification of the at least one associated device.
  • the server may not be able to obtain the trusted location information of all devices, there may be cases where the server cannot obtain the trusted location information of some associated devices.
  • the server separately obtains the trusted location information of the associated device with respect to the identification of the at least one associated device, and this embodiment does not limit the acquisition result of each trusted location information.
  • the trusted location information is relatively close to the specific location of the device to be located to a certain extent.
  • Utilizing as many trusted location information of associated devices as possible can facilitate the execution of subsequent steps and further narrow the location range of the device to be located.
  • S103 Determine at least a subset that meets a preset condition from the acquired set of trusted location information of the associated device.
  • the preset conditions include at least: the difference between any two trusted location information in the subset is less than the preset difference requirement, and the number of trusted location information in the subset is greater than the preset number requirement.
  • the preset conditions at least include: the distance between any two position coordinates in the subset is less than the preset distance threshold, and the number of trusted location information in the subset is greater than the preset quantity requirement.
  • the distance between the position coordinates can be Euclidean distance or cosine distance. This embodiment does not limit the calculation method of the distance.
  • the preset conditions include at least: the text similarity between any address text in the subset and any other address text in the subset is not less than the preset similarity threshold, and the number of trusted location information in the subset is greater than the preset quantity requirement.
  • this embodiment does not limit the calculation method of text similarity.
  • the first method convert the two sets of address texts to be compared into character sets; calculate the ratio of the number of characters in the intersection of the two character sets to the number of characters in the union, and determine the two sets of address texts to be compared based on the ratio The text similarity between.
  • the second method Calculate the ratio of the number of repeated characters to the sum of the total number of characters in the two sets of address texts to be compared, and determine the text similarity between the two sets of address texts to be compared based on the ratio.
  • the ratio is 0.9 calculated by any of the above methods, and according to the correspondence between the prestored address text and the text similarity weight, the first address text is The text similarity weight is 1, and the text similarity weight of the second address text is 0.5.
  • the text similarity corresponding to the first address text and the second address text is 0.9; the text similarity corresponding to the second address text and the first address text is 0.45.
  • the determining factor of the text similarity weight is not limited in this embodiment. For example, if the device to be located sends multiple identical identifiers of the same associated device in S101, it means that the associated device often appears near the device to be located. You can appropriately add the address text corresponding to the associated device identifier when comparing with other address texts. Text similarity weight.
  • the address text can be converted into coordinate positions according to the geographic location
  • the preset conditions in the above coordinate position can be used to determine the subset that meets the preset conditions .
  • the subset that meets the preset conditions determined in S103 removes credible location information with large differences, and the number of credible location information with small differences is also large enough to be able to determine to a large extent the position to be located The scope of the device.
  • S104 Determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
  • a range can be determined as the reference location of the device to be located.
  • trusted location information is coordinate location
  • the center point of all coordinate positions is calculated, and then the coordinate position with the largest distance from the center point in the subset is determined.
  • the center point is the center of the circle, and the distance between the determined coordinate position and the center point is taken as the radius. round.
  • the range in the circle is the reference position of the device to be located.
  • the part with the most overlap is determined as the reference position of the device to be located. For example, for all the address texts in the subset "No. 1, First Community, First Street, Weiming District, Weiming City", “No. 3, First Community, First Street, Weiming District, Weiming City,” and “Weiming City, Weiming District, No. 5, the first neighborhood of the first street”, it can be determined that the reference location of the device to be positioned is “the first neighborhood of the first neighborhood of the unnamed city, unnamed district”.
  • the trusted location information of other associated devices that are close to the location of the device to be located can be obtained, and then filtered, to determine the trusted location information that meets the preset conditions , Further remove the large difference of trusted location information, reduce the range of the device to be located, and finally determine a range as the reference position of the device to be located, so that the server can use a new device positioning method to locate the device to be located Bit device.
  • the positioning method of the device to be located is not accurate (for example, using mobile network base station positioning), resulting in insufficient device location information, or inaccurate location information stored on the server, or the address entered by the user during registration is " When a certain district of a certain city" is not specific to a specific street or community, you can also use the technical solution provided in this manual to use the new device positioning method to determine a range as the reference position of the device to be located, to a certain extent It can improve the accuracy of the location information of the device positioning.
  • the management party of the device needs to dispatch maintenance personnel to perform daily on-site maintenance of the facial payment devices.
  • the location information obtained by the server is not accurate enough, and the error range is more than 1 km. This makes it difficult for maintenance personnel to find the face payment device, and the efficiency is low.
  • Associated equipment specifically includes:
  • the WIFI device with the face payment device connected to the network the device of the staff in the mall to which the face payment device is bound, the mobile phone device of the user who has used the face payment device for payment, and the device near the face payment device with the Bluetooth function turned on Mobile device.
  • a user uses a face payment device, he does not need to carry a mobile device for payment, and the face payment device can only obtain the user's user ID on the payment application corresponding to the face payment device. Later, when positioning is performed, the user cannot be located directly, and the device where the user's payment application is logged in is still located.
  • the server saves the user's delivery address text and the address text of the network device. Therefore, the trusted location information set can be obtained according to the above-mentioned associated device, where the trusted location information is in the form of address text.
  • FIG. 3 it is a schematic structural diagram of a device positioning device provided in this specification.
  • the device locating device is configured on a server, and the server has the ability to obtain trusted location information of the device.
  • the device may include:
  • Identification receiving unit 201 used to receive the identification of at least one associated device sent by the device to be positioned.
  • the location information acquiring unit 202 is configured to respectively acquire the trusted location information of the associated device according to the received identifier of the at least one associated device.
  • the subset determining unit 203 is configured to determine at least one subset that meets the preset condition from the acquired trusted location information set of the associated device.
  • the device positioning unit 204 is configured to determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
  • the device to be located is: a device whose trusted location information cannot be obtained by the server;
  • the associated device is: a device that has a preset associated behavior with the device to be located, and the preset associated behavior It is the behavior that occurs when the devices are close to each other.
  • Devices that have a preset association behavior with the device to be located include: devices that have a network connection relationship with the device to be located, and/or devices that have a history of interaction with the device to be located, and/or devices that have a binding relationship with the device to be located A device, and/or a device that has been sensed by the device to be located within a preset sensing range.
  • the location information obtaining unit 202 may be specifically configured to obtain the current trusted location information of the associated device in real time according to the received identification of the at least one associated device.
  • the location information acquiring unit 202 may also be used to set the correspondence between the device identification and the trusted location information according to the received at least An identification of an associated device, respectively, to find the trusted location information corresponding to the identification of the associated device.
  • the preset conditions include at least: the difference between any two trusted location information in the subset is less than a preset difference requirement, and the number of trusted location information in the subset is greater than the preset number requirement .
  • the difference between any two trusted position information is less than the preset difference requirement, including: the distance between any two position coordinates is less than the preset distance threshold.
  • the difference between any two trusted location information is less than the preset difference requirement, including: the difference between any address text and any other address text in the subset
  • the text similarity is not less than the preset similarity threshold.
  • the method for calculating text similarity includes: converting the two sets of address texts to be compared into character sets; calculating the ratio of the number of characters in the intersection of the two character sets to the number of characters in the union, and determining the to-be-compared The text similarity between the two sets of address texts to be compared.
  • the embodiments of this specification also provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements a device positioning method when the program is executed.
  • FIG. 4 shows a more specific hardware structure diagram of a computing device provided by an embodiment of this specification.
  • the device may include a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050.
  • the processor 1010, the memory 1020, the input/output interface 1030, and the communication interface 1040 realize the communication connection between each other in the device through the bus 1050.
  • the processor 1010 may be implemented by a general CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits for execution related Program to realize the technical solutions provided in the embodiments of this specification.
  • a general CPU Central Processing Unit, central processing unit
  • a microprocessor an application specific integrated circuit (Application Specific Integrated Circuit, ASIC)
  • ASIC Application Specific Integrated Circuit
  • the memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory, random access memory), static storage device, dynamic storage device, etc.
  • the memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, related program codes are stored in the memory 1020 and called and executed by the processor 1010.
  • the input/output interface 1030 is used to connect an input/output module to realize information input and output.
  • the input/output/module can be configured in the device as a component (not shown in the figure), or can be connected to the device to provide corresponding functions.
  • the input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and an output device may include a display, a speaker, a vibrator, an indicator light, and the like.
  • the communication interface 1040 is used to connect a communication module (not shown in the figure) to realize the communication interaction between the device and other devices.
  • the communication module can realize communication through wired means (such as USB, network cable, etc.), or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
  • the bus 1050 includes a path to transmit information between various components of the device (for example, the processor 1010, the memory 1020, the input/output interface 1030, and the communication interface 1040).
  • the device may also include the necessary components for normal operation. Other components.
  • the above-mentioned device may also include only the components necessary to implement the solutions of the embodiments of the present specification, and not necessarily include all the components shown in the figures.
  • the embodiment of this specification also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, a device positioning method is implemented.
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cartridges, disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • CD-ROM compact disc
  • a typical implementation device is a computer.
  • the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game control A console, a tablet computer, a wearable device, or a combination of any of these devices.
  • the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments.
  • the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment.
  • the device embodiments described above are merely illustrative, and the modules described as separate components may or may not be physically separated.
  • the functions of the modules can be combined in the same way when implementing the solutions of the embodiments of this specification. Or multiple software and/or hardware implementations. Some or all of the modules can also be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement without creative work.

Abstract

The present description discloses a device positioning method and apparatus. Said method comprises: a serving end receiving the identifier of at least one associated device sent by a device to be positioned, the device to be positioned being a device of which trusted position information cannot be acquired by the serving end, the associated device being a device having a preset association behavior with the device to be positioned, the preset association behavior being a behavior generated when positions of devices approach; according to the received identifier of the at least one associated device, acquiring trusted position information of the associated device respectively; in an acquired trusted position information set of the associated device, determining at least one subset meeting preset conditions, the preset conditions at least including: the difference between any two pieces of trusted position information in the subset being less than a preset difference requirement, and the number of pieces of trusted position information in the subset being greater than a preset number requirement; and according to the trusted position information contained in the at least one subset, determining a reference position of the device to be positioned.

Description

一种设备定位方法及装置Equipment positioning method and device 技术领域Technical field
本说明书实施例涉及互联网应用技术领域,尤其涉及一种设备定位方法及装置。The embodiments of this specification relate to the field of Internet application technologies, and in particular, to a device positioning method and device.
背景技术Background technique
在终端设备分散配置于不同地理位置的应用场景中,设备的管理方通常具有对终端设备进行定位的需求。但是在某些情况下,管理方可能无法准确获取到终端设备的地理位置,导致难以实施后续操作。In an application scenario where terminal devices are distributed in different geographic locations, the device manager usually has a requirement for locating the terminal device. However, in some cases, the administrator may not be able to accurately obtain the geographic location of the terminal device, making it difficult to implement subsequent operations.
以金额结算系统为例,大量结算设备分布于不同的地理位置,这些结算设备具有现场维护的需求。管理方需要先确定结算设备的位置才能安排工作人员现场操作。然而一些结算设备本身并不具备定位功能、或者结算设备没有开启位置信息的授权,导致管理方的服务端无法获得设备的位置信息,进而难以提供现场维护服务。Taking the amount settlement system as an example, a large number of settlement devices are distributed in different geographical locations, and these settlement devices have on-site maintenance requirements. The management party needs to determine the location of the settlement equipment before arranging staff to operate on site. However, some settlement devices themselves do not have the positioning function, or the settlement device is not authorized to open the location information, so that the server of the management party cannot obtain the location information of the device, and it is difficult to provide on-site maintenance services.
发明内容Summary of the invention
为了使服务端能够获取到设备的位置信息,本说明书公开了一种设备定位方法及装置。技术方案如下:一种设备定位方法,应用于服务端,所述服务端具有获取设备可信位置信息的能力,所述方法包括:服务端接收待定位设备发送的至少一个关联设备的标识;所述待定位设备为:服务端无法获取可信位置信息的设备;所述关联设备为:与待定位设备存在预设关联行为的设备,所述预设关联行为是在设备间位置接近的情况下产生的行为;根据接收到的至少一个关联设备的标识,分别获取关联设备的可信位置信息;在获取到的关联设备可信位置信息集合中,确定符合预设条件的至少一个子集,所述预设条件至少包括:子集中任意两个可信位置信息之间的差异小于预设的差异要求、子集中的可信位置信息数量大于预设的数量要求;根据所述至少一个子集中包含的可信位置信息,确定所述待定位设备的参考位置。In order to enable the server to obtain the location information of the device, this specification discloses a device positioning method and device. The technical solution is as follows: a device positioning method, applied to a server, the server having the ability to obtain trusted location information of the device, the method comprising: the server receiving the identification of at least one associated device sent by the device to be positioned; The device to be located is: a device whose trusted location information cannot be obtained by the server; the associated device is: a device that has a preset association behavior with the device to be located, and the preset association behavior is when the devices are close to each other. The generated behavior; according to the received identification of at least one associated device, respectively obtain the trusted location information of the associated device; in the obtained trusted location information set of the associated device, determine at least a subset that meets the preset conditions, so The preset conditions include at least: the difference between any two trusted location information in the subset is less than the preset difference requirement, and the number of trusted location information in the subset is greater than the preset number requirement; according to the at least one subset containing To determine the reference position of the device to be located.
一种设备定位装置,配置于服务端,所述服务端具有获取设备可信位置信息的能力,所述装置包括:标识接收单元,用于接收待定位设备发送的至少一个关联设备的标识;所述待定位设备为:服务端无法获取可信位置信息的设备;所述关联设备为:与待定位设备存在预设关联行为的设备,所述预设关联行为是在设备间位置接近的情况下产生的行为;位置信息获取单元,用于根据接收到的至少一个关联设备的标识,分别获取关联 设备的可信位置信息;子集确定单元,用于在获取到的关联设备可信位置信息集合中,确定符合预设条件的至少一个子集,所述预设条件至少包括:子集中任意两个可信位置信息之间的差异小于预设的差异要求、子集中的可信位置信息数量大于预设的数量要求;设备定位单元,用于根据所述至少一个子集中包含的可信位置信息,确定所述待定位设备的参考位置。A device locating device is configured on a server, the server has the ability to obtain the trusted location information of the device, the device includes: an identification receiving unit for receiving the identification of at least one associated device sent by the device to be positioned; The device to be located is: a device whose trusted location information cannot be obtained by the server; the associated device is: a device that has a preset association behavior with the device to be located, and the preset association behavior is when the devices are close to each other. The generated behavior; the location information obtaining unit is used to obtain the trusted location information of the associated device according to the received identification of at least one associated device; the subset determining unit is used to set the obtained trusted location information of the associated device At least one subset that meets the preset conditions is determined, and the preset conditions include at least: the difference between any two trusted location information in the subset is less than the preset difference requirement, and the number of trusted location information in the subset is greater than A preset quantity requirement; a device positioning unit, configured to determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
利用上述技术方案,可以通过与待定位设备存在预设关联行为的关联设备,获取到可信位置信息集合,再根据符合预设条件的可信位置集合子集,确定待定位设备的参考位置,从而能够使服务端定位到待定位设备。Using the above technical solution, a trusted location information set can be obtained through an associated device that has a preset associated behavior with the device to be located, and then the reference location of the device to be located can be determined according to a subset of the trusted location set that meets the preset conditions. This enables the server to locate the device to be located.
附图说明Description of the drawings
为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书实施例中记载的一些实施例,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some of the embodiments described in the embodiments of this specification. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.
图1是本说明书实施例提供的一种设备定位方法的流程示意图;FIG. 1 is a schematic flowchart of a device positioning method provided by an embodiment of this specification;
图2是本说明书实施例提供的一种设备定位方法的原理示意图;2 is a schematic diagram of the principle of a device positioning method provided by an embodiment of this specification;
图3是本说明书实施例提供的一种设备定位装置的结构示意图;FIG. 3 is a schematic structural diagram of a device positioning device provided by an embodiment of this specification;
图4是用于配置本说明书实施例方法的一种设备的结构示意图。Fig. 4 is a schematic structural diagram of a device for configuring the method of the embodiment of this specification.
具体实施方式detailed description
为了使本领域技术人员更好地理解本说明书实施例中的技术方案,下面将结合本说明书实施例中的附图,对本说明书实施例中的技术方案进行详细地描述,显然,所描述的实施例仅仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the embodiments of this specification, the technical solutions in the embodiments of this specification will be described in detail below in conjunction with the drawings in the embodiments of this specification. Obviously, the described implementation The examples are only a part of the embodiments in this specification, not all the embodiments. Based on the embodiments in this specification, all other embodiments obtained by a person of ordinary skill in the art should fall within the scope of protection.
在终端设备分散配置于不同地理位置的应用场景中,设备的管理方通常具有对终端设备进行定位的需求。In an application scenario where terminal devices are distributed in different geographic locations, the device manager usually has a requirement for locating the terminal device.
例如,对于共享终端设备,例如共享单车、共享汽车等,为了便于日常维护、回收投放和防止盗取,设备的管理方通常需要对共享终端设备进行定位,获取到共享终端设备当前的位置信息。For example, for shared terminal devices, such as shared bicycles, shared cars, etc., in order to facilitate routine maintenance, recycling, and prevention of theft, the device manager usually needs to locate the shared terminal device and obtain the current location information of the shared terminal device.
由于具有终端设备的定位需求,设备的管理方通常具有获取终端设备位置信息的能力。例如,终端设备本身可以具有定位功能,可以通过基站定位的方法获取自身的位置信息;设备的管理方可以通过服务器与终端设备建立连接,在终端设备开启位置信息的授权的情况下获取位置信息。Due to the positioning requirements of the terminal device, the device manager usually has the ability to obtain the location information of the terminal device. For example, the terminal device itself can have a positioning function and can obtain its own location information through the method of base station positioning; the device manager can establish a connection with the terminal device through the server, and obtain the location information when the terminal device is authorized for the location information.
值得注意的是,虽然管理方具有获取终端设备位置信息的能力,但这并不意味着管理方可以获取到全部终端设备的位置信息。在某些情况下,管理方可能无法获取到部分终端设备的位置信息,导致难以实施后续操作。It is worth noting that although the management party has the ability to obtain the location information of terminal devices, this does not mean that the management party can obtain the location information of all terminal devices. In some cases, the administrator may not be able to obtain the location information of some terminal devices, making it difficult to implement subsequent operations.
例如,终端设备本身没有定位功能,无法获取自身的位置信息;或者终端设备并未开启位置信息的授权,导致服务器无法获取位置信息;或者终端设备的定位功能出现故障,获取自身的位置信息不准确。For example, the terminal device itself does not have a positioning function and cannot obtain its own location information; or the terminal device is not authorized for location information, which causes the server to be unable to obtain location information; or the positioning function of the terminal device fails, and the acquisition of its own location information is inaccurate .
为了便于理解,再以金额结算系统为例,大量结算设备分布于不同的地理位置,这些结算设备具有现场维护的需求。管理方需要先确定结算设备的位置才能安排工作人员现场操作。然而一些结算设备本身并不具备定位功能、或者结算设备没有开启位置信息的授权,导致管理方的服务端无法获得设备的位置信息,进而难以提供现场维护服务。For ease of understanding, take the amount settlement system as an example. A large number of settlement devices are distributed in different geographic locations, and these settlement devices have on-site maintenance requirements. The management party needs to determine the location of the settlement equipment before arranging staff to operate on site. However, some settlement devices themselves do not have the positioning function, or the settlement device is not authorized to open the location information, so that the server of the management party cannot obtain the location information of the device, and it is difficult to provide on-site maintenance services.
为了解决上述问题,本说明书实施例公开了一种设备定位方法。实际应用中,从管理方的角度,能够直接获取部分设备的位置信息,将这部分设备作为可信设备,将可信设备的位置信息作为可信位置信息。而管理方无法获取位置信息的部分设备,可以作为待定位设备。In order to solve the above-mentioned problem, the embodiment of this specification discloses a device positioning method. In practical applications, from the perspective of the administrator, the location information of some devices can be directly obtained, and these devices can be regarded as trusted devices, and the location information of the trusted devices can be regarded as trusted location information. Some devices whose location information cannot be obtained by the administrator can be used as devices to be located.
本说明书实施例所公开的设备定位方法,就是为了定位待定位设备。具体而言,该设备定位方法利用管理方能够获取到的可信位置信息,经过筛选、统计等方式,确定出与待定位设备位置相近的可信设备,利用确定出的可信设备的可信位置信息,进一步缩小待定位设备当前所在的位置范围。The device positioning method disclosed in the embodiment of this specification is to locate the device to be located. Specifically, the device positioning method uses the trusted location information that can be obtained by the administrator to determine the trusted device that is close to the location of the device to be located through filtering and statistics, and uses the determined trusted device to be trusted. The location information further narrows the current location range of the device to be located.
通过上述方法,在管理方无法直接获取待定位设备的位置信息时,可以通过获取与待定位设备位置相近的其他可信设备的可信位置信息,确定出待定位设备当前所在的位置范围,从而方便查找到待定位设备。Through the above method, when the manager cannot directly obtain the location information of the device to be located, it can determine the current location range of the device to be located by obtaining the trusted location information of other trusted devices that are close to the location of the device to be located. It is convenient to find the equipment to be located.
值得说明的是,在本说明书实施例中,待定位设备与可以获取位置信息的其他可信设备可以是同一种设备,也可以不是,例如待定位设备可以是待定位的共享汽车,而可信设备可以是手机设备;位置信息的形式也并不限定,可以是位置坐标,例如经纬度坐标;也可以是地址文本,例如某社区某街道。It is worth noting that in the embodiments of this specification, the device to be located and other trusted devices that can obtain location information may be the same device or not. For example, the device to be located may be a shared car to be located, and the trusted device may be The device can be a mobile phone; the form of the location information is also not limited, and it can be location coordinates, such as latitude and longitude coordinates, or address text, such as a street in a certain community.
如图1所示,为本说明书实施例公开的一种设备定位方法的流程示意图。所述方法应用于服务端,设备管理方通过服务端获取设备的位置信息,所述服务端具有获取设备可信位置信息的能力。As shown in FIG. 1, it is a schematic flowchart of a device positioning method disclosed in an embodiment of this specification. The method is applied to the server, and the device manager obtains the location information of the device through the server, and the server has the ability to obtain the trusted location information of the device.
所述方法具体可以包括:The method may specifically include:
S101:服务端接收待定位设备发送的至少一个关联设备的标识。S101: The server receives the identification of at least one associated device sent by the device to be positioned.
S102:根据接收到的至少一个关联设备的标识,分别获取关联设备的可信位置信息。S102: According to the received identification of the at least one associated device, respectively obtain the trusted location information of the associated device.
S103:在获取到的关联设备可信位置信息集合中,确定符合预设条件的至少一个子集。S103: Determine at least a subset that meets a preset condition from the acquired set of trusted location information of the associated device.
S104:根据至少一个子集中包含的可信位置信息,确定待定位设备的参考位置。S104: Determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
简单来说,上述方法中首先由待定位设备确定出关联设备,关联设备具体可以是曾经与待定位设备位置相近的设备,或者当下与待定位设备位置相近的设备。服务端获取关联设备中可信设备的可信位置信息,根据获取到的可信位置信息集合,利用统计的手段确定出可信位置信息比较集中的范围,作为待定位设备的参考位置。To put it simply, in the above method, the associated device is first determined by the device to be located, and the associated device may specifically be a device that has been in close proximity to the device to be located, or a device that is currently in close proximity to the device to be located. The server obtains the trusted location information of the trusted device in the associated device, and uses statistical methods to determine the relatively concentrated range of the trusted location information based on the acquired set of trusted location information, which serves as the reference location of the device to be located.
根据关联设备的含义,针对待定位设备所确定出的关联设备,都是有可能与待定位设备位置接近的设备。虽然对于任一关联设备而言,并不一定与待定位设备位置接近,但是通过对这些关联设备的分布位置进行统计,如果能够找到一个聚集了较多关联设备的区域,则说明待定位设备也有很大概率位于该区域,进而可以将这个区域确定为待定位设备的位置。According to the meaning of the associated device, the associated devices determined for the device to be located are all devices that are likely to be close to the device to be located. Although for any associated device, it is not necessarily close to the location of the device to be located, by counting the distribution positions of these associated devices, if you can find an area where more associated devices are gathered, it means that the device to be located also has It is highly likely to be located in this area, and this area can then be determined as the location of the device to be located.
为了便于理解,如图2所示,为本说明书提供的一种设备定位方法的原理示意图。For ease of understanding, as shown in FIG. 2, it is a schematic diagram of the principle of a device positioning method provided in this specification.
其中,三角形代表待定位设备,圆形代表关联设备中的可信设备。Among them, the triangle represents the device to be located, and the circle represents the trusted device among the associated devices.
图中的三角形位置代表待定位设备的实际位置,但服务端无法直接获取。服务端通过获取关联设备的可信位置信息,确定出图中各个圆形的位置。The triangular position in the figure represents the actual position of the device to be located, but the server cannot obtain it directly. The server determines the position of each circle in the figure by obtaining the trusted position information of the associated device.
如图中所示,可以通过统计的手段确定出一个范围,即为图中的虚线圆,聚集了较多关联设备,则说明待定位设备也有很大概率位于该区域,进而可以将该范围作为待定位设备的参考位置。As shown in the figure, a range can be determined by statistical means, that is, the dotted circle in the figure. If more related devices are gathered, it means that the device to be located has a high probability of being located in this area. Then the range can be used as The reference position of the device to be located.
显然,从实际情况来看,该范围中确实包含了待定位设备的实际位置。Obviously, from the actual situation, the actual location of the device to be located is indeed included in the range.
具体而言,对于S101:服务端接收待定位设备发送的至少一个关联设备的标识,详细解释如下:待定位设备可以是服务端无法获取可信位置信息的设备。Specifically, for S101: the server receives the identification of at least one associated device sent by the device to be located, the detailed explanation is as follows: the device to be located may be a device for which the server cannot obtain trusted location information.
关联设备可以是与待定位设备存在预设关联行为的设备,预设关联行为可以是在设备间位置接近的情况下产生的行为。The associated device may be a device that has a preset associated behavior with the device to be located, and the preset associated behavior may be a behavior that occurs when the devices are close to each other.
其中,本实施例并不限定预设关联行为的发生时间。关联设备可以是与待定位设备在预设时间段内存在预设关联行为的设备,也可以是当下与待定位设备存在预设关联行为的设备,也可以是与待定位设备存在过预设关联行为的设备。Among them, this embodiment does not limit the occurrence time of the preset association behavior. The associated device can be a device that has a preset associated behavior with the device to be located for a preset period of time, it can also be a device that currently has a preset associated behavior with the device to be located, or it can be a device that has a preset association with the device to be located. Behavioral equipment.
关联设备可以具体包括:与待定位设备存在网络连接关系的设备、与待定位设备存在交互历史的设备、与待定位设备存在绑定关系的设备、被待定位设备在预设感知范围内感知过的设备四种设备中的至少一种设备。Associated devices may specifically include: devices that have a network connection relationship with the device to be located, devices that have a history of interaction with the device to be located, devices that have a binding relationship with the device to be located, and have been sensed by the device to be located within a preset sensing range At least one of the four types of equipment.
当然,网络连接、设备交互、设备绑定和感知等预设关联行为是在设备间位置接近的情况下可能产生的行为。这些预设关联行为的发生时间本实施例也并不限定。Of course, preset association behaviors such as network connection, device interaction, device binding, and perception are behaviors that may occur when the devices are close to each other. The occurrence time of these preset association behaviors is also not limited in this embodiment.
作为具体的示例,关联设备可以包括:向待定位设备出示过付款码的手机设备、与待定位设备存在网络连接关系的服务器设备、被待定位设备通过蓝牙功能在10米范围内感知到的同样开启了蓝牙功能的手机设备、扫码开启待定位设备后产生绑定关系的手机设备。As a specific example, associated devices may include: mobile phone devices that have shown the payment code to the device to be located, server devices that have a network connection with the device to be located, and the same that is perceived by the device to be located within 10 meters through the Bluetooth function. A mobile phone device with Bluetooth enabled, a mobile phone device that has a binding relationship after scanning the code to turn on the device to be located.
通过对上述关联设备的描述,待定位设备可以通过预设关联行为获取到关联设备的设备标识并存储,以便于后续发送到服务端。Through the description of the above-mentioned associated device, the device to be located can obtain and store the device identification of the associated device through a preset association behavior, so that it can be sent to the server later.
例如,通过建立网络连接,可以获取设备标识;通过设备交互,可以获取设备标识。For example, by establishing a network connection, the device identification can be obtained; by device interaction, the device identification can be obtained.
由于待定位设备可以存储关联设备的设备标识,因此预设关联行为发生的时间并不会影响本实施例的实现。Since the device to be located can store the device identification of the associated device, the preset time when the associated behavior occurs does not affect the implementation of this embodiment.
而关联设备的标识可以包括:设备本身的标识、和/或设备上用户的标识。The identification of the associated device may include the identification of the device itself and/or the identification of the user on the device.
设备本身的标识例如,设备标识码或者设备的IP地址或MAC地址。设备上用户的标识例如,设备上某一应用登录用户的用户标识,或者设备上绑定的设备登录用户的用户标识。The identification of the device itself, for example, the device identification code or the IP address or MAC address of the device. The user ID of the device on the device, for example, the user ID of a login user of an application on the device, or the user ID of the device login user bound to the device.
此外,待定位设备发送的关联设备的标识中,可以存在相同关联设备的相同标识。In addition, in the identification of the associated device sent by the device to be positioned, the same identification of the same associated device may exist.
S102:根据接收到的至少一个关联设备的标识,分别获取关联设备的可信位置信息。S102: According to the received identification of the at least one associated device, respectively obtain the trusted location information of the associated device.
服务端可以根据接收到的至少一个关联设备的标识,分别即时获取关联设备当前可信位置信息。The server can obtain the current trusted location information of the associated device in real time according to the received identifier of the at least one associated device.
由于服务端具有获取设备可信位置信息的能力,因此,服务端在获取到关联设备的 标识后,可以根据标识分别即时获取关联设备当前的可信位置信息。Since the server has the ability to obtain the trusted location information of the device, after obtaining the identifier of the associated device, the server can instantly obtain the current trusted location information of the associated device according to the identifier.
例如,在获取到关联手机设备的标识IP地址后,服务端通过IP地址与关联手机设备建立网络连接,在关联手机设备开启位置信息的授权后,获取关联手机设备存储的、利用GPS定位方法获取的当前经纬度坐标位置,作为当前的可信位置信息。For example, after obtaining the identification IP address of the associated mobile phone device, the server establishes a network connection with the associated mobile phone device through the IP address, and after the associated mobile phone device opens the authorization of location information, it obtains the data stored by the associated mobile phone device and uses the GPS positioning method to obtain The current latitude and longitude coordinate position of is used as the current credible position information.
另一种示例为,在获取到服务器设备的标识IP地址后,根据IP地址可以确定在注册IP地址时存储的地址文本,将该地址文本信息作为服务器设备的可信位置信息。Another example is that after obtaining the identifying IP address of the server device, the address text stored when registering the IP address can be determined according to the IP address, and the address text information is used as the trusted location information of the server device.
此外,服务端还可以在预存的设备标识和可信位置信息的对应关系集合中,根据接收到的至少一个关联设备的标识,分别查找关联设备的标识对应的可信位置信息。In addition, the server may also search for the trusted location information corresponding to the identifier of the associated device in the set of correspondences between the device identifier and the trusted location information stored in advance, according to the received identifier of the at least one associated device.
由于服务端预存有设备标识和可信位置信息的对应关系集合,因此服务端具有获取设备可信位置信息的能力,可以利用设备标识查找对应关系集合中对应的可信位置信息。Since the server has pre-stored a set of correspondences between the device identification and the trusted location information, the server has the ability to obtain the trusted location information of the device, and can use the device identification to find the corresponding trusted location information in the set of correspondences.
设备标识和可信位置信息的对应关系集合的一种示例如下表表1所示,其中设备标识为某一付款应用的登录用户标识手机号,可信位置信息是登录用户在该付款应用中保存的收货地址。该付款应用的用户手机号和对应的用户收货地址都保存在应用服务端。An example of the set of correspondence between device identification and trusted location information is shown in Table 1 below, where the device identification is the mobile phone number of the logged-in user identification of a certain payment application, and the trusted location information is saved by the logged-in user in the payment application The shipping address. The user's mobile phone number of the payment application and the corresponding user's delivery address are stored on the application server.
设备标识Equipment Identity 可信位置信息Trusted location information
135********135******** 未名市未名区第一街道第一小区1号No. 1, First Community, First Street, Weiming District, Weiming City
184********184******** 未名市未名区第一街道第一小区2号No. 2, First Community, First Street, Weiming District, Weiming City
...... ......
156********156******** 未名市未名区第二街道第二小区10号No. 10, Second Community, Second Street, Weiming District, Weiming City
表1.设备标识和可信位置信息的对应关系表Table 1. Correspondence table of device identification and trusted location information
服务端可以根据获取到的至少一个关联设备的标识,在表1的对应关系表中查找对应的可信位置信息。The server can search for the corresponding trusted location information in the correspondence table of Table 1 according to the acquired identification of the at least one associated device.
需要说明的是,由于服务端并不一定能获取全部设备的可信位置信息,可能存在服务端获取不到部分关联设备的可信位置信息的情况。It should be noted that since the server may not be able to obtain the trusted location information of all devices, there may be cases where the server cannot obtain the trusted location information of some associated devices.
因此,服务端针对至少一个关联设备的标识,分别获取关联设备的可信位置信息,本实施例并不限定每个可信位置信息的获取结果。Therefore, the server separately obtains the trusted location information of the associated device with respect to the identification of the at least one associated device, and this embodiment does not limit the acquisition result of each trusted location information.
通过S102,可以获取到尽可能多的关联设备的可信位置信息,由于关联设备都与待定位设备存在预设关联行为,即在设备键位置接近的情况下可能产生的行为,因此关联 设备的可信位置信息与待定位设备的具体位置在一定程度上比较接近。Through S102, it is possible to obtain the trusted location information of as many associated devices as possible. Since the associated devices have preset associated behaviors with the device to be located, that is, the behavior that may occur when the device key position is close, the associated device’s The trusted location information is relatively close to the specific location of the device to be located to a certain extent.
利用尽可能多的关联设备的可信位置信息,可以方便执行后续的步骤,进一步缩小待定位设备的位置范围。Utilizing as many trusted location information of associated devices as possible can facilitate the execution of subsequent steps and further narrow the location range of the device to be located.
S103:在获取到的关联设备可信位置信息集合中,确定符合预设条件的至少一个子集。S103: Determine at least a subset that meets a preset condition from the acquired set of trusted location information of the associated device.
预设条件至少包括:子集中任意两个可信位置信息之间的差异小于预设的差异要求、子集中的可信位置信息数量大于预设的数量要求。The preset conditions include at least: the difference between any two trusted location information in the subset is less than the preset difference requirement, and the number of trusted location information in the subset is greater than the preset number requirement.
由于不同形式的可信位置信息,差异要求也互不相同。因此,以位置坐标和地址文本两种形式作为示例,对预设条件进行解释:Due to different forms of trusted location information, the difference requirements are also different from each other. Therefore, two forms of location coordinates and address text are used as examples to explain the preset conditions:
1)在可信位置信息的形式为位置坐标的情况下:1) When the form of the trusted position information is position coordinates:
预设条件至少包括:子集中任意两个位置坐标间的距离小于预设距离阈值、子集中的可信位置信息数量大于预设的数量要求。The preset conditions at least include: the distance between any two position coordinates in the subset is less than the preset distance threshold, and the number of trusted location information in the subset is greater than the preset quantity requirement.
其中,位置坐标间的距离可以是欧氏距离,也可以是余弦距离。本实施例对距离的计算方式并不限定。Among them, the distance between the position coordinates can be Euclidean distance or cosine distance. This embodiment does not limit the calculation method of the distance.
2)在可信位置信息的形式为地址文本的情况下:2) When the form of trusted location information is address text:
预设条件至少包括:子集中任意一个地址文本与子集中其他任一地址文本间的文本相似度不小于预设相似度阈值、子集中的可信位置信息数量大于预设的数量要求。The preset conditions include at least: the text similarity between any address text in the subset and any other address text in the subset is not less than the preset similarity threshold, and the number of trusted location information in the subset is greater than the preset quantity requirement.
其中,本实施例并不限定文本相似度的计算方法。Among them, this embodiment does not limit the calculation method of text similarity.
以下是本实施例公开的两种文本相似度的计算方法:The following are two methods for calculating text similarity disclosed in this embodiment:
第一种方法:将待比较的两组地址文本分别转化为字符集合;计算两个字符集合的交集中字符数量与并集中字符数量的比值,根据该比值确定所述待比较的两组地址文本之间的文本相似度。The first method: convert the two sets of address texts to be compared into character sets; calculate the ratio of the number of characters in the intersection of the two character sets to the number of characters in the union, and determine the two sets of address texts to be compared based on the ratio The text similarity between.
第二种方法:计算待比较的两组地址文本中重复的字符数量与全部字符数量之和的比值,根据该比值确定所述待比较的两组地址文本之间的文本相似度。The second method: Calculate the ratio of the number of repeated characters to the sum of the total number of characters in the two sets of address texts to be compared, and determine the text similarity between the two sets of address texts to be compared based on the ratio.
例如,针对两组地址文本“未名市未名区第一街道第一小区1号”和“未名市未名区第一街道第一小区3号”,利用第二种方法,重复的字符数量为30个,全部的字符数量为32个,因此,比值为30/32,也就是0.9375。For example, for the two sets of address texts "No. 1, No. 1 Community, No. 1 Street, Weiming District, Weiming City" and "No. 3, No. 1 Community, No. 1 Street, Weiming District, Weiming City", the second method is used to repeat characters The number is 30, and the total number of characters is 32. Therefore, the ratio is 30/32, which is 0.9375.
当然,在根据该比值确定所述待比较的两组地址文本之间的文本相似度时,可以考虑增加权重的影响。Of course, when determining the text similarity between the two sets of address texts to be compared according to the ratio, the influence of increasing the weight can be considered.
例如,在针对第一地址文本和第二地址文本计算文本相似度时,通过上述任一方法计算出比值为0.9,而根据预存的地址文本和文本相似度权重的对应关系,第一地址文本的文本相似度权重为1,第二地址文本的文本相似度权重为0.5。For example, when calculating the text similarity for the first address text and the second address text, the ratio is 0.9 calculated by any of the above methods, and according to the correspondence between the prestored address text and the text similarity weight, the first address text is The text similarity weight is 1, and the text similarity weight of the second address text is 0.5.
因此,第一地址文本对应的、与第二地址文本的文本相似度为0.9;第二地址文本对应的、与第一地址文本的文本相似度为0.45。Therefore, the text similarity corresponding to the first address text and the second address text is 0.9; the text similarity corresponding to the second address text and the first address text is 0.45.
而文本相似度权重的确定因素,本实施例并不限定。例如,待定位设备在S101中发送了多个相同关联设备的相同标识,则说明该关联设备经常出现在待定位设备附近,可以适当增加该关联设备标识对应的地址文本与其他地址文本比较时的文本相似度权重。The determining factor of the text similarity weight is not limited in this embodiment. For example, if the device to be located sends multiple identical identifiers of the same associated device in S101, it means that the associated device often appears near the device to be located. You can appropriately add the address text corresponding to the associated device identifier when comparing with other address texts. Text similarity weight.
此外,由于根据地理位置,可以将地址文本转换为坐标位置,因此,在利用地理位置将地址文本转换为坐标位置后,可以利用上述坐标位置情况下的预设条件确定符合预设条件的子集。In addition, since the address text can be converted into coordinate positions according to the geographic location, after the address text is converted into coordinate positions by the geographic location, the preset conditions in the above coordinate position can be used to determine the subset that meets the preset conditions .
显然,在S103中所确定的符合预设条件的子集,去除了差异较大的可信位置信息,且差异较小的可信位置信息的数量也足够多,能够很大程度上确定待定位设备的所在范围。Obviously, the subset that meets the preset conditions determined in S103 removes credible location information with large differences, and the number of credible location information with small differences is also large enough to be able to determine to a large extent the position to be located The scope of the device.
S104:根据至少一个子集中包含的可信位置信息,确定待定位设备的参考位置。S104: Determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
根据S103中确定的子集中包含的可信位置信息,可以确定出一个范围,作为待定位设备的参考位置。According to the trusted location information contained in the subset determined in S103, a range can be determined as the reference location of the device to be located.
而具体的确定范围的方法本实施例不作限定,给出两个示例如下:The specific method for determining the scope is not limited in this embodiment, and two examples are given as follows:
1)可信位置信息的形式是坐标位置1) The form of trusted location information is coordinate location
针对一个子集中的全部坐标位置,计算出所有坐标位置的中心点,再确定子集中与中心点距离最大的坐标位置,以中心点为圆心,以确定的坐标位置与中心点的距离为半径作圆。圆中的范围即为待定位设备的参考位置。For all coordinate positions in a subset, the center point of all coordinate positions is calculated, and then the coordinate position with the largest distance from the center point in the subset is determined. The center point is the center of the circle, and the distance between the determined coordinate position and the center point is taken as the radius. round. The range in the circle is the reference position of the device to be located.
2)可信位置信息的形式是地址文本2) The form of trusted location information is address text
针对一个子集中全部的地址文本,确定重合最多的部分为待定位设备的参考位置。例如,对于子集中全部的地址文本“未名市未名区第一街道第一小区1号”、“未名市未 名区第一街道第一小区3号”和“未名市未名区第一街道第一小区5号”,可以确定待定位设备的参考位置为“未名市未名区第一街道第一小区”。For all address texts in a subset, the part with the most overlap is determined as the reference position of the device to be located. For example, for all the address texts in the subset "No. 1, First Community, First Street, Weiming District, Weiming City", "No. 3, First Community, First Street, Weiming District, Weiming City," and "Weiming City, Weiming District, No. 5, the first neighborhood of the first street", it can be determined that the reference location of the device to be positioned is “the first neighborhood of the first neighborhood of the unnamed city, unnamed district”.
通过上述方法实施例,在服务端无法定位待定位设备时,可以通过获取其他与待定位设备位置相近的关联设备的可信位置信息,再进行筛选,确定出符合预设条件的可信位置信息,进一步去除差异较大的可信位置信息,缩小待定位设备的所在范围,最终确定出一个范围作为待定位设备的参考位置,以使得服务端使用一种新的设备定位方法,能够定位到待定位设备。Through the above method embodiments, when the server cannot locate the device to be located, the trusted location information of other associated devices that are close to the location of the device to be located can be obtained, and then filtered, to determine the trusted location information that meets the preset conditions , Further remove the large difference of trusted location information, reduce the range of the device to be located, and finally determine a range as the reference position of the device to be located, so that the server can use a new device positioning method to locate the device to be located Bit device.
此外,在待定位设备的定位方法不精确(例如使用移动网络基站定位),导致获取到的设备位置信息不够精确、或者服务端存储的位置信息不精确,或者用户在注册时输入的地址为“某某市某某区”而没有具体到具体街道或小区时,也可以使用本说明书所提供的技术方案,利用新的设备定位方法,确定出一个范围作为待定位设备的参考位置,在一定程度上能够提高设备定位的位置信息的精度。In addition, the positioning method of the device to be located is not accurate (for example, using mobile network base station positioning), resulting in insufficient device location information, or inaccurate location information stored on the server, or the address entered by the user during registration is " When a certain district of a certain city" is not specific to a specific street or community, you can also use the technical solution provided in this manual to use the new device positioning method to determine a range as the reference position of the device to be located, to a certain extent It can improve the accuracy of the location information of the device positioning.
为了方便进一步理解,下面采用一个具体的应用实施例进行解释。In order to facilitate further understanding, a specific application embodiment is used for explanation below.
对于商场中的人脸支付设备,设备的管理方需要派遣维护人员对人脸支付设备进行日常的现场维护。For facial payment devices in shopping malls, the management party of the device needs to dispatch maintenance personnel to perform daily on-site maintenance of the facial payment devices.
但人脸支付设备自身的定位方法的限制,服务端所获取的位置信息不够精确,误差范围在1公里以上,这造成维护人员难以找到人脸支付设备,效率较低。However, due to the limitation of the positioning method of the face payment device itself, the location information obtained by the server is not accurate enough, and the error range is more than 1 km. This makes it difficult for maintenance personnel to find the face payment device, and the efficiency is low.
为了解决这一问题,利用上述方法实施例,可以获取人脸支付设备的关联设备的标识。关联设备具体包括:In order to solve this problem, by using the above method embodiments, the identification of the associated device of the face payment device can be obtained. Associated equipment specifically includes:
人脸支付设备连接网络的WIFI设备、人脸支付设备所绑定的商场的工作人员的设备、使用过人脸支付设备进行付款的用户的手机设备、在人脸支付设备附近且开启蓝牙功能的手机设备。The WIFI device with the face payment device connected to the network, the device of the staff in the mall to which the face payment device is bound, the mobile phone device of the user who has used the face payment device for payment, and the device near the face payment device with the Bluetooth function turned on Mobile device.
其中,需要注意的是,用户在使用人脸支付设备时,可以不携带手机设备进行付款,人脸支付设备只能获取到用户在人脸支付设备对应的付款应用上的用户标识。之后进行定位时,无法直接对用户进行定位,依然是对登录有该用户的付款应用所在的设备进行定位。Among them, it should be noted that when a user uses a face payment device, he does not need to carry a mobile device for payment, and the face payment device can only obtain the user's user ID on the payment application corresponding to the face payment device. Later, when positioning is performed, the user cannot be located directly, and the device where the user's payment application is logged in is still located.
服务端保存有用户的收货地址文本,以及网络设备的地址文本,因此,根据上述关联设备可以获取到可信位置信息集合,其中,可信位置信息的形式是地址文本。The server saves the user's delivery address text and the address text of the network device. Therefore, the trusted location information set can be obtained according to the above-mentioned associated device, where the trusted location information is in the form of address text.
再根据文本相似度,确定出“某某街道”,作为人脸支付设备的参考地址。维护人员可以逐一检查“某某街道”上的商场,从而找到人脸支付设备进行维护。Then, according to the text similarity, "XX Street" is determined as the reference address of the facial payment device. The maintenance staff can check the shopping malls on the "Xu-Xu Street" one by one, and find the facial payment device for maintenance.
如图3所示,为本说明书提供的一种设备定位装置的结构示意图。该设备定位装置,配置于服务端,所述服务端具有获取设备可信位置信息的能力。As shown in Fig. 3, it is a schematic structural diagram of a device positioning device provided in this specification. The device locating device is configured on a server, and the server has the ability to obtain trusted location information of the device.
该装置可以包括:The device may include:
标识接收单元201:用于接收待定位设备发送的至少一个关联设备的标识。Identification receiving unit 201: used to receive the identification of at least one associated device sent by the device to be positioned.
位置信息获取单元202:用于根据接收到的至少一个关联设备的标识,分别获取关联设备的可信位置信息。The location information acquiring unit 202 is configured to respectively acquire the trusted location information of the associated device according to the received identifier of the at least one associated device.
子集确定单元203:用于在获取到的关联设备可信位置信息集合中,确定符合预设条件的至少一个子集。The subset determining unit 203 is configured to determine at least one subset that meets the preset condition from the acquired trusted location information set of the associated device.
设备定位单元204:用于根据所述至少一个子集中包含的可信位置信息,确定所述待定位设备的参考位置。The device positioning unit 204 is configured to determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
其中,标识接收单元201中,所述待定位设备为:服务端无法获取可信位置信息的设备;所述关联设备为:与待定位设备存在预设关联行为的设备,所述预设关联行为是在设备间位置接近的情况下产生的行为。Wherein, in the identification receiving unit 201, the device to be located is: a device whose trusted location information cannot be obtained by the server; the associated device is: a device that has a preset associated behavior with the device to be located, and the preset associated behavior It is the behavior that occurs when the devices are close to each other.
与待定位设备存在预设关联行为的设备,包括:与待定位设备存在网络连接关系的设备、和/或与待定位设备存在交互历史的设备、和/或与待定位设备存在绑定关系的设备、和/或被待定位设备在预设感知范围内感知过的设备。Devices that have a preset association behavior with the device to be located include: devices that have a network connection relationship with the device to be located, and/or devices that have a history of interaction with the device to be located, and/or devices that have a binding relationship with the device to be located A device, and/or a device that has been sensed by the device to be located within a preset sensing range.
位置信息获取单元202,具体可以用于根据接收到的至少一个关联设备的标识,分别即时获取关联设备当前可信位置信息。The location information obtaining unit 202 may be specifically configured to obtain the current trusted location information of the associated device in real time according to the received identification of the at least one associated device.
在服务端预存有设备标识和可信位置信息的对应关系集合的情况下,位置信息获取单元202还可以用于在所述设备标识和可信位置信息的对应关系集合中,根据接收到的至少一个关联设备的标识,分别查找关联设备的标识对应的可信位置信息。In the case that the server has pre-stored a set of correspondences between the device identification and the trusted location information, the location information acquiring unit 202 may also be used to set the correspondence between the device identification and the trusted location information according to the received at least An identification of an associated device, respectively, to find the trusted location information corresponding to the identification of the associated device.
在子集确定单元203中,所述预设条件至少包括:子集中任意两个可信位置信息之间的差异小于预设的差异要求、子集中的可信位置信息数量大于预设的数量要求。In the subset determining unit 203, the preset conditions include at least: the difference between any two trusted location information in the subset is less than a preset difference requirement, and the number of trusted location information in the subset is greater than the preset number requirement .
在可信位置信息的形式为位置坐标的情况下:所述任意两个可信位置信息之间的差异小于预设的差异要求,包括:任意两个位置坐标间的距离小于预设距离阈值。In the case where the form of the trusted position information is position coordinates: the difference between any two trusted position information is less than the preset difference requirement, including: the distance between any two position coordinates is less than the preset distance threshold.
在可信位置信息的形式为地址文本的情况下:所述任意两个可信位置信息之间的差 异小于预设的差异要求,包括:任意一个地址文本与子集中其他任一地址文本间的文本相似度不小于预设相似度阈值。In the case where the trusted location information is in the form of address text: the difference between any two trusted location information is less than the preset difference requirement, including: the difference between any address text and any other address text in the subset The text similarity is not less than the preset similarity threshold.
所述文本相似度的计算方法,包括:将待比较的两组地址文本分别转化为字符集合;计算两个字符集合的交集中字符数量与并集中字符数量的比值,根据该比值确定所述待比较的两组地址文本之间的文本相似度。The method for calculating text similarity includes: converting the two sets of address texts to be compared into character sets; calculating the ratio of the number of characters in the intersection of the two character sets to the number of characters in the union, and determining the to-be-compared The text similarity between the two sets of address texts to be compared.
关于装置实施例的具体解释可以参见上述方法实施例。For specific explanations of the device embodiments, reference may be made to the foregoing method embodiments.
本说明书实施例还提供一种计算机设备,其至少包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,处理器执行所述程序时实现一种设备定位方法。The embodiments of this specification also provide a computer device, which at least includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements a device positioning method when the program is executed.
图4示出了本说明书实施例所提供的一种更为具体的计算设备硬件结构示意图,该设备可以包括:处理器1010、存储器1020、输入/输出接口1030、通信接口1040和总线1050。其中处理器1010、存储器1020、输入/输出接口1030和通信接口1040通过总线1050实现彼此之间在设备内部的通信连接。FIG. 4 shows a more specific hardware structure diagram of a computing device provided by an embodiment of this specification. The device may include a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input/output interface 1030, and the communication interface 1040 realize the communication connection between each other in the device through the bus 1050.
处理器1010可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本说明书实施例所提供的技术方案。The processor 1010 may be implemented by a general CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits for execution related Program to realize the technical solutions provided in the embodiments of this specification.
存储器1020可以采用ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器1020可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器1020中,并由处理器1010来调用执行。The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory, random access memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, related program codes are stored in the memory 1020 and called and executed by the processor 1010.
输入/输出接口1030用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。The input/output interface 1030 is used to connect an input/output module to realize information input and output. The input/output/module can be configured in the device as a component (not shown in the figure), or can be connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and an output device may include a display, a speaker, a vibrator, an indicator light, and the like.
通信接口1040用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize the communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.), or through wireless means (such as mobile network, WIFI, Bluetooth, etc.).
总线1050包括一通路,在设备的各个组件(例如处理器1010、存储器1020、输入/输出接口1030和通信接口1040)之间传输信息。The bus 1050 includes a path to transmit information between various components of the device (for example, the processor 1010, the memory 1020, the input/output interface 1030, and the communication interface 1040).
需要说明的是,尽管上述设备仅示出了处理器1010、存储器1020、输入/输出接口1030、通信接口1040以及总线1050,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本说明书实施例方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the above device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040, and the bus 1050, in the specific implementation process, the device may also include the necessary components for normal operation. Other components. In addition, those skilled in the art can understand that the above-mentioned device may also include only the components necessary to implement the solutions of the embodiments of the present specification, and not necessarily include all the components shown in the figures.
本说明书实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现一种设备定位方法。The embodiment of this specification also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, a device positioning method is implemented.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cartridges, disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到本说明书实施例可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本说明书实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本说明书实施例各个实施例或者实施例的某些部分所述的方法。From the description of the foregoing implementation manners, it can be understood that those skilled in the art can clearly understand that the embodiments of this specification can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solutions of the embodiments of this specification can be embodied in the form of software products, which can be stored in storage media, such as ROM/RAM, Magnetic disks, optical disks, etc., include several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in the various embodiments or some parts of the embodiments of this specification.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The systems, devices, modules, or units explained in the foregoing embodiments may be specifically implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. The specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game control A console, a tablet computer, a wearable device, or a combination of any of these devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部 分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,在实施本说明书实施例方案时可以把各模块的功能在同一个或多个软件和/或硬件中实现。也可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the part of the description of the method embodiment. The device embodiments described above are merely illustrative, and the modules described as separate components may or may not be physically separated. The functions of the modules can be combined in the same way when implementing the solutions of the embodiments of this specification. Or multiple software and/or hardware implementations. Some or all of the modules can also be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement without creative work.
以上所述仅是本说明书实施例的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本说明书实施例原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本说明书实施例的保护。The above are only specific implementations of the embodiments of this specification. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the embodiments of this specification, several improvements and modifications can be made. These Improvements and retouching should also be regarded as the protection of the embodiments of this specification.

Claims (15)

  1. 一种设备定位方法,应用于服务端,所述服务端具有获取设备可信位置信息的能力,所述方法包括:A device positioning method, applied to a server, the server having the ability to obtain trusted location information of a device, and the method includes:
    服务端接收待定位设备发送的至少一个关联设备的标识;所述待定位设备为:服务端无法获取可信位置信息的设备;所述关联设备为:与待定位设备存在预设关联行为的设备,所述预设关联行为是在设备间位置接近的情况下产生的行为;The server receives the identification of at least one associated device sent by the device to be located; the device to be located is: a device whose trusted location information cannot be obtained by the server; the associated device is: a device that has a preset associated behavior with the device to be located , The preset association behavior is a behavior generated when the devices are close to each other;
    根据接收到的至少一个关联设备的标识,分别获取关联设备的可信位置信息;According to the received identification of the at least one associated device, respectively obtain the trusted location information of the associated device;
    在获取到的关联设备可信位置信息集合中,确定符合预设条件的至少一个子集,所述预设条件至少包括:子集中任意两个可信位置信息之间的差异小于预设的差异要求、子集中的可信位置信息数量大于预设的数量要求;In the acquired set of trusted location information of associated devices, at least one subset that meets a preset condition is determined, and the preset condition includes at least: the difference between any two trusted location information in the subset is less than a preset difference Requirements, the number of trusted location information in the subset is greater than the preset number requirements;
    根据所述至少一个子集中包含的可信位置信息,确定所述待定位设备的参考位置。Determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
  2. 根据权利要求1所述的方法,所述与待定位设备存在预设关联行为的设备,包括以下中至少一个:The method according to claim 1, wherein the device that has a preset association behavior with the device to be located includes at least one of the following:
    与待定位设备存在网络连接关系的设备、Devices that have a network connection with the device to be located,
    与待定位设备存在交互历史的设备、Devices with a history of interaction with the device to be located,
    与待定位设备存在绑定关系的设备、The device that has a binding relationship with the device to be located,
    被待定位设备在预设感知范围内感知过的设备。A device that has been sensed by the device to be located within the preset sensing range.
  3. 根据权利要求1所述的方法,所述根据接收到的至少一个关联设备的标识,分别获取关联设备的可信位置信息,包括:The method according to claim 1, wherein the respectively obtaining the trusted location information of the associated device according to the received identification of the at least one associated device comprises:
    根据接收到的至少一个关联设备的标识,分别即时获取关联设备当前可信位置信息。According to the received identification of the at least one associated device, the current trusted location information of the associated device is obtained in real time, respectively.
  4. 根据权利要求1所述的方法,所述服务端预存有设备标识和可信位置信息的对应关系集合;The method according to claim 1, wherein the server prestores a set of correspondences between device identification and trusted location information;
    所述根据接收到的至少一个关联设备的标识,分别获取关联设备的可信位置信息,包括:According to the received identification of at least one associated device, respectively obtaining the trusted location information of the associated device includes:
    在所述设备标识和可信位置信息的对应关系集合中,根据接收到的至少一个关联设备的标识,分别查找关联设备的标识对应的可信位置信息。In the set of correspondences between the device identifier and the trusted location information, according to the received identifier of at least one associated device, the trusted location information corresponding to the identifier of the associated device is respectively searched.
  5. 根据权利要求1至4任一项所述的方法,在可信位置信息的形式为位置坐标的情况下:The method according to any one of claims 1 to 4, when the form of the trusted position information is position coordinates:
    所述任意两个可信位置信息之间的差异小于预设的差异要求,包括:The difference between any two pieces of trusted location information is less than a preset difference requirement, including:
    任意两个位置坐标间的距离小于预设距离阈值。The distance between any two position coordinates is less than the preset distance threshold.
  6. 根据权利要求1至4任一项所述的方法,在可信位置信息的形式为地址文本的 情况下:The method according to any one of claims 1 to 4, when the trusted location information is in the form of address text:
    所述任意两个可信位置信息之间的差异小于预设的差异要求,包括:The difference between any two pieces of trusted location information is less than a preset difference requirement, including:
    任意一个地址文本与子集中其他任一地址文本间的文本相似度不小于预设相似度阈值。The text similarity between any address text and any other address text in the subset is not less than the preset similarity threshold.
  7. 根据权利要求6所述的方法,所述文本相似度的计算方法,包括:The method according to claim 6, wherein the method for calculating text similarity comprises:
    将待比较的两组地址文本分别转化为字符集合;Convert the two sets of address texts to be compared into character sets respectively;
    计算两个字符集合的交集中字符数量与并集中字符数量的比值,根据该比值确定所述待比较的两组地址文本之间的文本相似度。The ratio of the number of characters in the intersection of the two character sets to the number of characters in the union is calculated, and the text similarity between the two sets of address texts to be compared is determined according to the ratio.
  8. 一种设备定位装置,配置于服务端,所述服务端具有获取设备可信位置信息的能力,所述装置包括:A device positioning device is configured on a server, the server has the ability to obtain trusted location information of a device, and the device includes:
    标识接收单元,用于接收待定位设备发送的至少一个关联设备的标识;所述待定位设备为:服务端无法获取可信位置信息的设备;所述关联设备为:与待定位设备存在预设关联行为的设备,所述预设关联行为是在设备间位置接近的情况下产生的行为;The identification receiving unit is configured to receive the identification of at least one associated device sent by the device to be located; the device to be located is: a device whose trusted location information cannot be obtained by the server; and the associated device is: a preset with the device to be located Devices with associated behaviors, where the preset associated behaviors are behaviors that occur when the devices are close to each other;
    位置信息获取单元,用于根据接收到的至少一个关联设备的标识,分别获取关联设备的可信位置信息;The location information acquiring unit is configured to respectively acquire the trusted location information of the associated device according to the received identifier of the at least one associated device;
    子集确定单元,用于在获取到的关联设备可信位置信息集合中,确定符合预设条件的至少一个子集,所述预设条件至少包括:子集中任意两个可信位置信息之间的差异小于预设的差异要求、子集中的可信位置信息数量大于预设的数量要求;The subset determining unit is configured to determine at least one subset that meets a preset condition from the acquired trusted location information set of the associated device, and the preset condition includes at least: between any two trusted location information in the subset The difference is less than the preset difference requirement, and the number of trusted location information in the subset is greater than the preset quantity requirement;
    设备定位单元,用于根据所述至少一个子集中包含的可信位置信息,确定所述待定位设备的参考位置。The device positioning unit is configured to determine the reference location of the device to be located according to the trusted location information contained in the at least one subset.
  9. 根据权利要求8所述的装置,所述与待定位设备存在预设关联行为的设备,包括以下中至少一个:The apparatus according to claim 8, wherein the device that has a preset association behavior with the device to be located includes at least one of the following:
    与待定位设备存在网络连接关系的设备、Devices that have a network connection with the device to be located,
    与待定位设备存在交互历史的设备、Devices with a history of interaction with the device to be located,
    与待定位设备存在绑定关系的设备、The device that has a binding relationship with the device to be located,
    被待定位设备在预设感知范围内感知过的设备。A device that has been sensed by the device to be located within the preset sensing range.
  10. 根据权利要求8所述的装置,所述位置信息获取单元用于:The device according to claim 8, wherein the location information acquiring unit is configured to:
    根据接收到的至少一个关联设备的标识,分别即时获取关联设备当前可信位置信息。According to the received identification of the at least one associated device, the current trusted location information of the associated device is obtained in real time, respectively.
  11. 根据权利要求8所述的装置,所述服务端预存有设备标识和可信位置信息的对应关系集合;The device according to claim 8, wherein the server prestores a set of correspondences between device identification and trusted location information;
    所述位置信息获取单元用于:The location information acquiring unit is used to:
    在所述设备标识和可信位置信息的对应关系集合中,根据接收到的至少一个关联设备的标识,分别查找关联设备的标识对应的可信位置信息。In the set of correspondences between the device identifier and the trusted location information, according to the received identifier of at least one associated device, the trusted location information corresponding to the identifier of the associated device is respectively searched.
  12. 根据权利要求8至11任一项所述的装置,在可信位置信息的形式为位置坐标的情况下:The device according to any one of claims 8 to 11, when the form of the trusted position information is position coordinates:
    所述任意两个可信位置信息之间的差异小于预设的差异要求,包括:The difference between any two pieces of trusted location information is less than a preset difference requirement, including:
    任意两个位置坐标间的距离小于预设距离阈值。The distance between any two position coordinates is less than the preset distance threshold.
  13. 根据权利要求8至11任一项所述的装置,在可信位置信息的形式为地址文本的情况下:The device according to any one of claims 8 to 11, when the form of the trusted location information is an address text:
    所述任意两个可信位置信息之间的差异小于预设的差异要求,包括:The difference between any two pieces of trusted location information is less than a preset difference requirement, including:
    任意一个地址文本与子集中其他任一地址文本间的文本相似度不小于预设相似度阈值。The text similarity between any address text and any other address text in the subset is not less than the preset similarity threshold.
  14. 根据权利要求13所述的装置,所述文本相似度的计算方法,包括:The device according to claim 13, wherein said method for calculating text similarity comprises:
    将待比较的两组地址文本分别转化为字符集合;Convert the two sets of address texts to be compared into character sets respectively;
    计算两个字符集合的交集中字符数量与并集中字符数量的比值,根据该比值确定所述待比较的两组地址文本之间的文本相似度。The ratio of the number of characters in the intersection of the two character sets to the number of characters in the union is calculated, and the text similarity between the two sets of address texts to be compared is determined according to the ratio.
  15. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述程序时实现如权利要求1至7任一项所述的方法。A computer device, comprising a memory, a processor, and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program as described in any one of claims 1 to 7 method.
PCT/CN2021/099600 2020-06-18 2021-06-11 Device positioning method and apparatus WO2021254261A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010562072.0 2020-06-18
CN202010562072.0A CN111787075A (en) 2020-06-18 2020-06-18 Equipment positioning method and device

Publications (1)

Publication Number Publication Date
WO2021254261A1 true WO2021254261A1 (en) 2021-12-23

Family

ID=72757197

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/099600 WO2021254261A1 (en) 2020-06-18 2021-06-11 Device positioning method and apparatus

Country Status (2)

Country Link
CN (1) CN111787075A (en)
WO (1) WO2021254261A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788523A (en) * 2020-12-29 2021-05-11 上海钧正网络科技有限公司 Positioning method of sharing equipment and server
CN114399850A (en) * 2021-12-27 2022-04-26 四川领歌智谷科技有限公司 Attendance checking method based on voice and position recognition, electronic student identity card and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111787075A (en) * 2020-06-18 2020-10-16 支付宝(杭州)信息技术有限公司 Equipment positioning method and device
CN112380230B (en) * 2020-12-03 2021-07-06 腾讯科技(深圳)有限公司 Position parameter updating method and device, computer equipment and storage medium
CN115250428A (en) * 2021-04-28 2022-10-28 花瓣云科技有限公司 Positioning method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130122851A1 (en) * 2011-11-14 2013-05-16 Avaya Inc. Determination by psaps of caller location based on the wifi hot spots detected and reported by the caller's device(s)
CN106455056A (en) * 2016-11-14 2017-02-22 百度在线网络技术(北京)有限公司 Positioning method and device
CN107302793A (en) * 2016-04-15 2017-10-27 华为技术有限公司 A kind of localization method based on wireless signal, server, terminal and system
CN107872764A (en) * 2017-10-19 2018-04-03 北京三快在线科技有限公司 A kind of localization method and device
CN111787075A (en) * 2020-06-18 2020-10-16 支付宝(杭州)信息技术有限公司 Equipment positioning method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160149775A1 (en) * 2014-11-23 2016-05-26 Dennis Cheung Determining physical location of a networked computing device
CN107197518B (en) * 2016-03-14 2020-01-17 中国移动通信集团河南有限公司 Method and device for determining terminal position

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130122851A1 (en) * 2011-11-14 2013-05-16 Avaya Inc. Determination by psaps of caller location based on the wifi hot spots detected and reported by the caller's device(s)
CN107302793A (en) * 2016-04-15 2017-10-27 华为技术有限公司 A kind of localization method based on wireless signal, server, terminal and system
CN106455056A (en) * 2016-11-14 2017-02-22 百度在线网络技术(北京)有限公司 Positioning method and device
CN107872764A (en) * 2017-10-19 2018-04-03 北京三快在线科技有限公司 A kind of localization method and device
CN111787075A (en) * 2020-06-18 2020-10-16 支付宝(杭州)信息技术有限公司 Equipment positioning method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112788523A (en) * 2020-12-29 2021-05-11 上海钧正网络科技有限公司 Positioning method of sharing equipment and server
CN112788523B (en) * 2020-12-29 2022-11-22 上海钧正网络科技有限公司 Positioning method of sharing equipment and server
CN114399850A (en) * 2021-12-27 2022-04-26 四川领歌智谷科技有限公司 Attendance checking method based on voice and position recognition, electronic student identity card and storage medium

Also Published As

Publication number Publication date
CN111787075A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
WO2021254261A1 (en) Device positioning method and apparatus
US9838840B1 (en) Detecting proximity using WiFi hotspots
US9031579B2 (en) Method and system for providing location services
WO2016101749A1 (en) Method and device for configuring communication groups
US9451397B1 (en) Detecting proximity using WiFi hotspots
AU2007349233B2 (en) System and method for automated analysis comparing a wireless device location with another geographic location
TWI687877B (en) User matching method, message client, server and system of location-based service (LBS)
RU2704750C2 (en) Mobile device identification systems and methods
WO2016101750A1 (en) Method and device for pushing information on the basis of communication groups
WO2014161433A1 (en) System and method for positioning terminal
US8301684B2 (en) User challenge using information based on geography or user identity
TW201543859A (en) Method, apparatus, and system for determining a location of a terminal
US20120329484A1 (en) Locating mobile devices utilizing wi-fi information
CN104580325A (en) User pairing method and device, as well as data exchange method, device and system
US20200050759A1 (en) Enhancing security using anomaly detection
CN104244174A (en) Method for obtaining geographical location information of terminals and server
CN108684044A (en) A kind of user behavior detecting system, method and device
US20210141824A1 (en) Geolocation restricted content registration and publication
US20180160392A1 (en) Method and equipment for distinguishing homonymic wireless access points
US11122437B2 (en) Detection of GPS spoofing using wireless network visibility to mobile devices
CN110363648B (en) Multi-dimensional attribute verification method and device based on same geographic type and electronic equipment
US11963128B2 (en) Evaluating IP location on a client device
CN108616886B (en) Method and equipment for generating wireless access point topological network
US10789347B1 (en) Identification preprocessing
CN113111047B (en) Data processing method and device and electronic equipment

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: 21826678

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: 21826678

Country of ref document: EP

Kind code of ref document: A1