[go: up one dir, main page]

CN109511166B - Positioning method and positioning device of equipment - Google Patents

Positioning method and positioning device of equipment Download PDF

Info

Publication number
CN109511166B
CN109511166B CN201811625678.3A CN201811625678A CN109511166B CN 109511166 B CN109511166 B CN 109511166B CN 201811625678 A CN201811625678 A CN 201811625678A CN 109511166 B CN109511166 B CN 109511166B
Authority
CN
China
Prior art keywords
position information
location information
database
equipment
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811625678.3A
Other languages
Chinese (zh)
Other versions
CN109511166A (en
Inventor
李洪伟
张德魁
鲁雪林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811625678.3A priority Critical patent/CN109511166B/en
Publication of CN109511166A publication Critical patent/CN109511166A/en
Application granted granted Critical
Publication of CN109511166B publication Critical patent/CN109511166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Landscapes

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

Abstract

The application discloses a positioning method of equipment, which comprises the following steps: receiving a network connection request sent by first equipment, wherein the network connection request carries identification information representing the identity of gateway equipment; inquiring first target position information corresponding to the identification information in a first database in a first mode to obtain a first inquiry result; the first database stores a mapping relation between the identification information and the position information; and determining the first target position information as the first position information of the first device when the first query result representation queries the first target position information in the first database through a first mode. Meanwhile, the application also discloses a positioning device.

Description

Positioning method and positioning device of equipment
Technical Field
The present disclosure relates to positioning technologies, and in particular, to a positioning method and a positioning device for a device.
Background
In the field of internet of things, because of various kinds of devices, different functions and different computing capacities, users want to be able to obtain the position of the device when using the device such as a smart speaker and a smart television.
However, locating these devices is not possible in the prior art.
Disclosure of Invention
In order to achieve the above purpose, the technical solution of the embodiments of the present application is implemented as follows:
according to an aspect of an embodiment of the present invention, there is provided a positioning method of a device, the method including:
receiving a network connection request sent by first equipment, wherein the network connection request carries identification information representing the identity of gateway equipment;
inquiring first target position information corresponding to the identification information in a first database in a first mode to obtain a first inquiry result; the first database stores a mapping relation between the identification information and the position information;
and determining the first target position information as the first position information of the first device when the first query result representation queries the first target position information in the first database through a first mode.
In the above solution, after the obtaining the first query result, the method further includes:
when the first query result representation does not query the first target position information in the first database through a first mode, acquiring first position information of the first device through a second mode; wherein the second mode is different from the first mode.
In the above scheme, the connection request also carries an internet protocol address; the obtaining, by the second manner, the first location information of the first device includes:
inquiring second target position information corresponding to the Internet protocol address in a second database in a second mode to obtain a second inquiry result; the second database stores the mapping relation between the Internet protocol address field and the position information;
determining the second target location information as the first location information of the first device when the second query result characterizes that the second target location information is queried in the second database in a second mode;
wherein the accuracy of the second mode is lower than the accuracy of the first mode.
In the above aspect, after the determining the first target location information as the first location information of the first device, the method further includes:
and establishing a mapping relation between the first target position information and the identification information representing the first equipment identity in the first database.
In the above aspect, after the determining the second target location information as the first location information of the first device, the method further includes:
And establishing a mapping relation between the second target position information and the identification information representing the identity of the first equipment in the first database.
In the above solution, before the receiving the connection request of the first device, the method further includes:
receiving identification information corresponding to at least one gateway device sent by a second device;
acquiring second position information of the second equipment;
taking the second location information as third location information of the at least one gateway device;
and establishing a mapping relation between the third position information and the identification information corresponding to the at least one gateway device in the first database.
In the above scheme, the connection request also carries an internet protocol address;
after the determining the first target location information as the first location information of the first device, the method further comprises:
inquiring second target position information corresponding to the Internet protocol address in a second database in a second mode to obtain a second inquiry result; the second database stores the mapping relation between the Internet protocol address field and the position information;
and determining the second target position information as the first position information of the first device when the second query result representation queries the second target position information in the second database in a second mode.
In the above aspect, after the determining the second target location information as the first location information of the first device, the method further includes:
respectively outputting first position information of the first equipment;
the first location information of the first device includes first location information of the first device determined by the first target location information; and first location information of the first device determined from the second target location information.
According to another aspect of an embodiment of the present invention, there is provided a positioning device including:
the receiving unit is used for receiving a network connection request of the first equipment, wherein the network connection request carries identification information representing the identity of the gateway equipment;
the searching unit is used for searching first target position information corresponding to the identification information in a first database through a first mode to obtain a first searching result; the first database stores mapping relations between each piece of identification information and each piece of position information;
and the determining unit is used for determining the first target position information as the first position information of the first device when the first query result characterizes that the first target position information is queried in the first database through a first mode.
According to a third aspect of embodiments of the present invention, there is provided a positioning device, the device comprising: a memory, a processor and an executable program stored in the memory for movement by the processor, wherein the processor performs the steps of any one of the positioning methods of the device described above when the executable program is run.
According to the equipment positioning method and the equipment positioning device, a network connection request sent by first equipment is received, and the network connection request carries identification information representing the identity of gateway equipment; inquiring first target position information corresponding to the identification information in a first database in a first mode to obtain a first inquiry result; mapping relation between each piece of identification information and each piece of position information stored in the first database; and determining the first target position information as the first position information of the first device when the first query result representation queries the first target position information in the first database through a first mode. In this way, the mapping relation between the identification information and the position information of the device is characterized, and the target position information corresponding to the target identification information is determined as the position information of the first device to be positioned, so that the first device can be positioned.
Drawings
Fig. 1 is a flow chart of a positioning method of a device in an embodiment of the present application;
FIG. 2 is a schematic diagram showing the structural components of a positioning device according to an embodiment of the present invention;
fig. 3 is a schematic diagram showing a structural composition of a positioning device according to an embodiment of the invention.
Detailed Description
So that the manner in which the features and aspects of the present application can be understood in more detail, a more particular description of the invention, briefly summarized above, may be had by reference to the appended drawings, which are not intended to be limiting of the present application.
Fig. 1 is a flow chart of a positioning method of a device in an embodiment of the present application, as shown in fig. 1, where the method includes:
step 101, receiving a network connection request sent by a first device, wherein the network connection request carries identification information representing the identity of gateway equipment;
in the embodiment of the invention, the first device at least comprises an intelligent sound box, an intelligent television, a desktop computer, an intelligent household humidifier, an intelligent air purifier and the like.
When the first device is a device with a screen, the first device may complete the network configuration through the screen.
Specifically, the first device may implement a gateway device query operation through a screen to view service set identification (SSID, service Set Identifier) information of each gateway device in the current area. Here, the SSID information characterizes the name of the gateway device in the local area network. When the user performs the network connection operation on the SSID of the target gateway device in the current area, the background server of the first device may receive a network connection request generated by the network connection operation, and the network connection request carries identification information characterizing the identity of the gateway device.
Here, the identification information characterizing the identity of the gateway device includes an internet protocol address (IP, internet Protocol Address) address of the gateway device and a basic service set identifier (BSSID, basic Service Set Identifier).
Where the IP address is a digital label assigned to the device of the network protocol used by the user to surf the internet, and the BSSID is a media access control (MAC, media Access Control) address corresponding to the SSID, which is an address uniquely characterizing the identity of the gateway device.
Although the IP address also has uniqueness, the uniqueness of the IP address and the uniqueness of the MAC address are different.
Specifically, the IP address is generated based on the network topology, and the uniqueness of the IP address means that the IP address on the same device is unique, and the IP address can be modified, and the modified IP address must also be unique. While MAC addresses are manufacturer-based, each device has only one unique MAC address and cannot be modified. Because in an enterprise, multiple gateway devices are typically combined into a roaming wireless Access node (AP), users can connect to gateway devices in different locations using the same SSID and password, but the locations of the gateway devices are typically different, and the location of each gateway device can be more precisely located by the BSSID. Therefore, the embodiment of the invention can preferentially select the BSSID of the gateway equipment as the identification information of the identity of the gateway equipment so as to improve the positioning accuracy of the equipment.
In the embodiment of the invention, the first device can also be a device without a screen.
When the first device is a device without a screen, the first device may be network-configured by the second device. The second device may be a smart phone or other device with a screen, and an application corresponding to the first device is installed on the second device.
Specifically, the user may obtain, from the version database corresponding to the application program, identification information characterizing the first device identity, for example, the identification information characterizing the first device identity is development version information (DevA) of the first device, through the application program on the second device. The user can determine the identity of the first device through the development version information. When the first device needs to be configured in a network, the application program can send the SSID and the password of the gateway device to be connected to the background server of the first device, and at this time, the background server receives a network connection request carrying the SSID and the password of the gateway device, and the network connection request also carries identification information (IP address or BSSID) representing the identity of the gateway device.
Then, the background server acquires a target SSID corresponding to the password from a first database according to the password carried in the network connection request, matches the acquired target SSID with the SSID carried in the network connection request to obtain a matching result, and when the matching result represents that the target SSID is successfully matched with the SSID carried in the network connection request, represents that the first equipment is successfully connected to the target gateway equipment; and when the matching result indicates that the matching between the target SSID and the SSID carried in the network connection request fails, the first equipment is characterized as not being successfully connected to the target gateway equipment. Or, acquiring a target password corresponding to the SSID from a first database according to the SSID carried in the network connection request, and matching the acquired target password with the password carried in the network connection request to obtain a matching result, wherein when the matching result represents that the matching of the target password and the password carried in the network connection request is successful, the first equipment is successfully connected to the target gateway equipment; and when the matching result indicates that the matching of the target password and the password carried in the network connection request fails, the first equipment is characterized as not being successfully connected to the target gateway equipment.
In the embodiment of the invention, the first device can also be directly connected with the target gateway device through the network cable.
Specifically, when the first device is connected to the network interface of the target gateway device through the network cable, the background server corresponding to the first device may receive the network connection request sent by the first device, and the network connection request carries identification information representing the identity of the gateway device.
Here, the gateway device includes a wireless router and an Access Point (AP).
Step 102, inquiring first target position information corresponding to the identification information in a first database in a first mode to obtain a first inquiry result; the first database stores a mapping relation between the identification information and the position information;
in the embodiment of the invention, when receiving the network connection request sent by the first device, the background server can take the identification information carried in the network connection request as an index, and then inquire first target position information corresponding to the identification information in the first database in a form inquiry mode to obtain a first inquiry result.
Here, a mapping relationship between the identification information and the location information is stored in the first database, and the mapping relationship may be stored in the form of a table. Examples of data stores in a particular first database are shown in table 1.
TABLE 1
As shown in table 1, the mapping relationship between two pieces of identification information and the positional information is distinguished by a number 1 and a number 2, respectively. Wherein, the mapping relation stored in the sequence number 1 is: BSSID: d8:32:14:b3:ec:a1; SSID: leno; password: xxx; positioning: { "longitude": "116.305957", "latitude": "40.059673" }; the mapping relation stored in the sequence number 2 is that the BSSID:20:76:93:26:7b:d4; SSID: iot loud; password: xxx; positioning: { "longitude": "116.305957", "latitude": "40.059673" }.
In the embodiment of the invention, when the background server establishes the mapping relationship between the identification information and the position information in the first database, the mapping relationship can be specifically established according to the identification information of at least one gateway device and the second position information of the second device, which are sent by the second device periodically.
Here, the second device has a global positioning system (GPS, global Positioning System), and periodically scans the SSIDs of all gateway devices in the current area and transmits the scanned SSIDs of the gateway devices and the corresponding BSSIDs to the background server. For example, the SSID and corresponding BSSID of the gateway device scanned by the second device are: { SSID, password (null), BSSID, location }.
When the background server receives the SSID and BSSID information of at least one gateway device sent by the second device, the background server obtains the current location= { GPS longitude, GPS latitude } information of the second device through the GPS of the second device, so as to obtain second Location information of the second device. Then, the second location information is used as third location information of at least one gateway device, and a mapping relation between the third location information and SSID and BSSID of the at least one gateway device is established in a first database.
Step 103, determining the first target location information as the first location information of the first device when the first query result characterizes that the first target location information is queried in the first database through a first mode.
In the embodiment of the invention, when the first query result characterizes that the first target position information is queried in the first database through the first mode, the background server acquires the first target position information from the first database, and takes the acquired first target position information as the first position information of the first device. Therefore, the position of the equipment to be positioned is positioned in a form query mode, so that the positioning speed is high, and the electric quantity of the equipment can be saved.
In the embodiment of the invention, after the background server obtains the first position information of the first device, the mapping relation between the first target position information and the identification information representing the identity of the first device can be established in the first database.
For example, the mapping relationship between the established first target location information and the identification information characterizing the first equipment identity is: devA location= { DevA ID, location }. Therefore, more corresponding relations between the position information and the equipment can be stored in the first database, and the data integrity of the first database is improved.
In the embodiment of the invention, after obtaining the first query result, if the first query result characterizes that the first target position information is not queried in the first database through the first mode, the background server can also obtain the first position information of the first device through the second mode; wherein the second mode is different from the first mode.
For example, the second mode is a GPS acquisition mode.
When the background server acquires first position information of a first device in a GPS acquisition mode, the first device is a device which is configured through a second device in a network mode, for example, the first device is an intelligent sound box without a screen; and the second device is a GPS enabled device, e.g., the second device is a smart phone; and installing an application program corresponding to the first device on the second device. The background server can acquire the GPS information of the second device through the application program, wherein the GPS information is used as the second position information of the second device. Then, the background server gives the second location information to the first device and the gateway device to which the current first device is connected, that is, the background server takes the second location information as the first location information of the first device and the third location information of the current gateway device, respectively. And establishing a mapping relation between each device and the position information in the first database.
Here, the position accuracy obtained by the GPS is higher than that obtained by the form lookup.
In the embodiment of the present invention, the second mode may also be an IP address query mode.
When the background server acquires the first position information of the first device in an IP address query mode, the connection request also carries the IP address, so that the second target position information corresponding to the IP address can be queried in a second database according to the IP address, and a second query result is obtained. And determining the second target position information as the first position information of the first device when the second query result characterizes that the second target position information is queried in the second database.
Here, the second database may specifically be a database of a public information institution in the cloud, and a mapping relationship between an internet protocol address field (IP address field) and the location information is stored in the second database.
Here, the positional accuracy obtained by the IP address query method is lower than the positional accuracy obtained by the table query method. This is because only location information within a few kilometers or within a city can be obtained by the IP address query method. And the positions obtained by the form query mode are all position information obtained based on the GPS.
In the embodiment of the present invention, after determining the second target location information as the first location information of the first device, the background server may further establish a mapping relationship between the second target location information and the identification information characterizing the identity of the first device in the first database. Therefore, the data stored in the first database can be more perfect, and the positioning requirement of the equipment can be improved.
In the embodiment of the invention, after the background server determines the first position information of the first device through the first mode, the background server can acquire the first position information of the first device through the second mode. For example, the second target location information corresponding to the internet protocol address carried in the connection request is queried in the second database through an IP address query mode, so as to obtain a second query result, and when the second query result characterizes that the second target location information is queried in the second database through the second mode, the second target location information is determined to be the first location information of the first device.
Here, a mapping relationship between the internet protocol address field and the location information is stored in the second database. For example, the internet protocol address field refers specifically to an IP address field.
The position accuracy obtained by the IP address query mode is lower than the position accuracy obtained by the table query mode. Therefore, by acquiring one piece of highly accurate position information and one piece of highly accurate position information, different demands of users can be satisfied.
In the embodiment of the invention, the background server can also output the first position information of the first device to the first device after determining the first position information of the first device.
Here, the first location information of the first device includes first location information of the first device determined with the first target location information; and first location information of the first device determined with the second target location information. Therefore, the user can conveniently and freely select the position information with different precision to the first equipment according to different requirements, and the user experience degree when positioning the equipment is greatly facilitated.
Fig. 2 is a schematic structural diagram of a positioning device according to an embodiment of the present invention, as shown in fig. 2, the positioning device includes:
a receiving unit 201, configured to receive a network connection request of a first device, where the network connection request carries identification information that characterizes an identity of a gateway device;
An obtaining unit 202, configured to query, in a first database, first target location information corresponding to the identification information through a first manner, to obtain a first query result; the first database stores mapping relations between each piece of identification information and each piece of position information;
a determining unit 203, configured to determine the first target location information as first location information of the first device when the first query result indicates that the first target location information is queried in the first database by a first manner.
In the embodiment of the invention, the device can be an intelligent sound box, an intelligent television, intelligent wearable equipment, intelligent glasses and the like.
In the embodiment of the present invention, the obtaining unit 202 is further configured to obtain, when the first query result indicates that the first target location information is not queried in the first database by the first method, the first location information of the first device by the second method; wherein the second mode is different from the first mode.
In the embodiment of the present invention, the connection request also carries an internet protocol address.
The obtaining unit 202 is specifically configured to query, in a second database, second target location information corresponding to the internet protocol address in a second manner, to obtain a second query result; the second database stores the mapping relation between the Internet protocol address field and the position information;
The determining unit 203 is further configured to determine, when the second query result indicates that the second target location information is queried in the second database by the second manner, the second target location information as the first location information of the first device; wherein the accuracy of the second mode is lower than the accuracy of the first mode.
In an embodiment of the present invention, the apparatus further includes: a setup unit 204;
the establishing unit 204 is configured to establish a mapping relationship between the first target location information and identification information characterizing the first equipment identity in the first database. And the mapping relation between the second target position information and the identification information representing the first equipment identity is established in the first database.
In the embodiment of the present invention, the receiving unit 201 is further configured to receive identification information corresponding to at least one gateway device sent by the second device;
the acquiring unit 202 is further configured to acquire second location information of the second device;
the determining unit 203 is further configured to take the second location information as third location information of the at least one gateway device;
the establishing unit 204 is further configured to establish, in the first database, a mapping relationship between the third location information and the identification information corresponding to the at least one gateway device.
In this embodiment of the present invention, the obtaining unit 202 is further configured to query, after the determining the first target location information as the first location information of the first device, second target location information corresponding to the internet protocol address in a second database in a second manner, to obtain a second query result; the second database stores the mapping relation between the Internet protocol address field and the position information;
the determining unit 203 is further configured to determine the second target location information as the first location information of the first device when the second query result indicates that the second target location information is queried in the second database in the second manner.
In an embodiment of the present invention, the apparatus further includes:
an output unit 205 configured to output first location information of the first device;
the first location information of the first device includes first location information of the first device determined by the first target location information; and first location information of the first device determined from the second target location information.
It should be noted that: in the positioning device provided in the above embodiment, when the positioning device is used for positioning the equipment, only the division of the program modules is used for illustration, in practical application, the processing allocation can be completed by different program modules according to needs, that is, the internal structure of the positioning device is divided into different program modules to complete all or part of the processing described above. In addition, the positioning device provided in the above embodiment and the positioning method embodiment of the device belong to the same concept, and the specific implementation process of the positioning device is detailed in the method embodiment, which is not repeated herein.
Fig. 3 is a schematic diagram of a second structural component of a positioning device according to an embodiment of the present invention, and as shown in fig. 3, the positioning device 300 may be a smart speaker, a mobile phone, a smart pen, a smart watch, a smart ring, a smart bracelet, a smart glove, a smart television, a tablet computer, a video camera, a recorder, etc. The positioning device 300 shown in fig. 3 includes: at least one processor 301, a memory 302, at least one network interface 304, and a user interface 303. The various components in the positioning device 300 are coupled together by a bus system 305. It is understood that the bus system 305 is used to enable connected communications between these components. The bus system 305 includes a power bus, a control bus, and a status signal bus in addition to the data bus. But for clarity of illustration the various buses are labeled as bus system 305 in fig. 3.
The user interface 303 may include, among other things, a display, keyboard, mouse, trackball, click wheel, keys, buttons, touch pad, or touch screen, etc.
It is to be appreciated that memory 302 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Wherein the nonvolatile Memory may be Read Only Memory (ROM), programmable Read Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read Only Memory (EPROM, erasable Programmable Read-Only Memory), electrically erasable programmable Read Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic random access Memory), flash Memory (Flash Memory), magnetic surface Memory, optical disk, or compact disk Read Only Memory (CD-ROM, compact Disc Read-Only Memory); the magnetic surface memory may be a disk memory or a tape memory. The volatile memory may be random access memory (RAM, random Access Memory), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as static random access memory (SRAM, static Random Access Memory), synchronous static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory 302 described in embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 302 in embodiments of the present invention is used to store various types of data to support the operation of the positioning device 300. Examples of such data include: any computer programs for operating on the positioning device 300, such as an operating system 3021 and application programs 3022. The operating system 3021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 3022 may include various applications such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program 3022.
The method disclosed in the above embodiment of the present invention may be applied to the processor 301 or implemented by the processor 301. The processor 301 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry of hardware in the processor 301 or instructions in the form of software. The processor 4301 may be a general purpose processor, a digital signal processor (DSP, digital Signal Processor), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 301 may implement or perform the methods, steps and logic blocks disclosed in embodiments of the present invention. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiment of the invention can be directly embodied in the hardware of the decoding processor or can be implemented by combining hardware and software modules in the decoding processor. The software module may be located in a storage medium located in the memory 302, the processor 301 reading information in the memory 302, in combination with its hardware performing the steps of the method described above.
In an exemplary embodiment, the positioning device 300 may be implemented by one or more application specific integrated circuits (ASIC, application Specific Integrated Circuit), DSPs, programmable logic devices (PLD, programmable Logic Device), complex programmable logic devices (CPLD, complex Programmable Logic Device), field-programmable gate arrays (FPGA, field-Programmable Gate Array), general purpose processors, controllers, microcontrollers (MCU, micro Controller Unit), microprocessors (Microprocessor), or other electronic components for performing the aforementioned methods.
In particular, when the processor 301 runs the computer program, it executes: receiving a network connection request sent by first equipment, wherein the network connection request carries identification information representing the identity of gateway equipment; inquiring first target position information corresponding to the identification information in a first database in a first mode to obtain a first inquiry result; the first database stores a mapping relation between the identification information and the position information; and determining the first target position information as the first position information of the first device when the first query result representation queries the first target position information in the first database through a first mode.
The processor 301, when running the computer program, further performs: when the first query result representation does not query the first target position information in the first database through a first mode, acquiring first position information of the first device through a second mode; wherein the second mode is different from the first mode.
The processor 301, when running the computer program, further performs: inquiring second target position information corresponding to the Internet protocol address in a second database in a second mode to obtain a second inquiry result; the second database stores the mapping relation between the Internet protocol address field and the position information; determining the second target location information as the first location information of the first device when the second query result characterizes that the second target location information is queried in the second database in a second mode; wherein the accuracy of the second mode is lower than the accuracy of the first mode.
The processor 301, when running the computer program, further performs: and establishing a mapping relation between the first target position information and the identification information representing the first equipment identity in the first database.
The processor 301, when running the computer program, further performs: and establishing a mapping relation between the second target position information and the identification information representing the identity of the first equipment in the first database.
The processor 301, when running the computer program, further performs: receiving identification information corresponding to at least one gateway device sent by a second device; acquiring second position information of the second equipment; taking the second location information as third location information of the at least one gateway device; and establishing a mapping relation between the third position information and the identification information corresponding to the at least one gateway device in the first database.
The processor 301, when running the computer program, further performs: after the determining the first target location information as the first location information of the first device, the method further comprises: inquiring second target position information corresponding to the Internet protocol address in a second database in a second mode to obtain a second inquiry result; the second database stores the mapping relation between the Internet protocol address field and the position information; and determining the second target position information as the first position information of the first device when the second query result representation queries the second target position information in the second database in a second mode.
The processor 301, when running the computer program, further performs: respectively outputting first position information of the first equipment; the first location information of the first device includes first location information of the first device determined by the first target location information; and first location information of the first device determined from the second target location information.
In an exemplary embodiment, the present invention also provides a computer readable storage medium, e.g. a memory 302 comprising a computer program executable by the processor 301 of the positioning device 300 for performing the steps of the method described above. The computer readable storage medium may be FRAM, ROM, PROM, EPROM, EEPROM, flash Memory, magnetic surface Memory, optical disk, or CD-ROM; but may be a variety of devices including one or any combination of the above-described memories, such as a mobile phone, computer, tablet device, personal digital assistant, or the like.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs: receiving a network connection request sent by first equipment, wherein the network connection request carries identification information representing the identity of gateway equipment; inquiring first target position information corresponding to the identification information in a first database in a first mode to obtain a first inquiry result; the first database stores a mapping relation between the identification information and the position information; and determining the first target position information as the first position information of the first device when the first query result representation queries the first target position information in the first database through a first mode.
The computer program, when executed by the processor, further performs: when the first query result representation does not query the first target position information in the first database through a first mode, acquiring first position information of the first device through a second mode; wherein the second mode is different from the first mode.
The computer program, when executed by the processor, further performs: inquiring second target position information corresponding to the Internet protocol address in a second database in a second mode to obtain a second inquiry result; the second database stores the mapping relation between the Internet protocol address field and the position information; determining the second target location information as the first location information of the first device when the second query result characterizes that the second target location information is queried in the second database in a second mode; wherein the accuracy of the second mode is lower than the accuracy of the first mode.
The computer program, when executed by the processor, further performs: and establishing a mapping relation between the first target position information and the identification information representing the first equipment identity in the first database.
The computer program, when executed by the processor, further performs: and establishing a mapping relation between the second target position information and the identification information representing the identity of the first equipment in the first database.
The computer program, when executed by the processor, further performs: receiving identification information corresponding to at least one gateway device sent by a second device; acquiring second position information of the second equipment; taking the second location information as third location information of the at least one gateway device; and establishing a mapping relation between the third position information and the identification information corresponding to the at least one gateway device in the first database.
The computer program, when executed by the processor, further performs: after the determining the first target location information as the first location information of the first device, the method further comprises: inquiring second target position information corresponding to the Internet protocol address in a second database in a second mode to obtain a second inquiry result; the second database stores the mapping relation between the Internet protocol address field and the position information; and determining the second target position information as the first position information of the first device when the second query result representation queries the second target position information in the second database in a second mode.
The computer program, when executed by the processor, further performs: respectively outputting first position information of the first equipment; the first location information of the first device includes first location information of the first device determined by the first target location information; and first location information of the first device determined from the second target location information.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of locating a device, the method comprising:
receiving a network connection request sent by first equipment, wherein the network connection request carries identification information representing the identity of gateway equipment;
inquiring first target position information corresponding to the identification information in a first database in a first mode to obtain a first inquiry result; the first database stores a mapping relation between the identification information and the position information; the location information includes location information of a second device, the second device being a device that provides network configuration for the first device, and the second device being a device that installs an application corresponding to the first device; executing network configuration through the second equipment, and simultaneously running an application program corresponding to the first equipment; the position information of the second equipment is used as the position information of the first equipment and a gateway connected with the first equipment;
And determining the first target position information as the first position information of the first device when the first query result representation queries the first target position information in the first database through a first mode.
2. The method of claim 1, after the obtaining the first query result, the method further comprising:
when the first query result representation does not query the first target position information in the first database through a first mode, acquiring first position information of the first device through a second mode; wherein the second mode is different from the first mode.
3. The method of claim 2, wherein the connection request further carries an internet protocol address; the obtaining, by the second manner, the first location information of the first device includes:
inquiring second target position information corresponding to the Internet protocol address in a second database in a second mode to obtain a second inquiry result; the second database stores the mapping relation between the Internet protocol address field and the position information;
determining the second target location information as the first location information of the first device when the second query result characterizes that the second target location information is queried in the second database in a second mode;
Wherein the accuracy of the second mode is lower than the accuracy of the first mode.
4. The method of claim 1, after the determining the first target location information as the first location information of the first device, the method further comprising:
and establishing a mapping relation between the first target position information and the identification information representing the first equipment identity in the first database.
5. The method of claim 3, after the determining the second target location information as the first location information of the first device, the method further comprising:
and establishing a mapping relation between the second target position information and the identification information representing the identity of the first equipment in the first database.
6. The method of claim 1, prior to the receiving the connection request of the first device, the method further comprising:
receiving identification information corresponding to at least one gateway device sent by a second device;
acquiring second position information of the second equipment;
taking the second location information as third location information of the at least one gateway device;
and establishing a mapping relation between the third position information and the identification information corresponding to the at least one gateway device in the first database.
7. The method of claim 1, wherein the connection request further carries an internet protocol address;
after the determining the first target location information as the first location information of the first device, the method further comprises:
inquiring second target position information corresponding to the Internet protocol address in a second database in a second mode to obtain a second inquiry result; the second database stores the mapping relation between the Internet protocol address field and the position information;
and determining the second target position information as the first position information of the first device when the second query result representation queries the second target position information in the second database in a second mode.
8. The method of claim 7, after the determining the second target location information as the first location information of the first device, the method further comprising:
respectively outputting first position information of the first equipment;
the first location information of the first device includes first location information of the first device determined by the first target location information; and first location information of the first device determined from the second target location information.
9. A positioning device, the device comprising:
the receiving unit is used for receiving a network connection request of the first equipment, wherein the network connection request carries identification information representing the identity of the gateway equipment;
the searching unit is used for searching first target position information corresponding to the identification information in a first database through a first mode to obtain a first searching result; the first database stores mapping relations between each piece of identification information and each piece of position information; the location information includes location information of a second device, the second device being a device that provides network configuration for the first device, and the second device being a device that installs an application corresponding to the first device; executing network configuration through the second equipment, and simultaneously running an application program corresponding to the first equipment; the position information of the second equipment is used as the position information of the first equipment and a gateway connected with the first equipment;
and the determining unit is used for determining the first target position information as the first position information of the first device when the first query result characterizes that the first target position information is queried in the first database through a first mode.
10. A positioning device, the device comprising: memory, a processor and an executable program stored in the memory for movement by the processor, wherein the processor performs the steps of the positioning method according to any of claims 1 to 8 when running the executable program.
CN201811625678.3A 2018-12-28 2018-12-28 Positioning method and positioning device of equipment Active CN109511166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811625678.3A CN109511166B (en) 2018-12-28 2018-12-28 Positioning method and positioning device of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811625678.3A CN109511166B (en) 2018-12-28 2018-12-28 Positioning method and positioning device of equipment

Publications (2)

Publication Number Publication Date
CN109511166A CN109511166A (en) 2019-03-22
CN109511166B true CN109511166B (en) 2023-07-21

Family

ID=65756736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811625678.3A Active CN109511166B (en) 2018-12-28 2018-12-28 Positioning method and positioning device of equipment

Country Status (1)

Country Link
CN (1) CN109511166B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278135B (en) * 2019-06-18 2021-11-16 深圳绿米联创科技有限公司 Equipment position searching method, device, gateway and storage medium
CN112312319A (en) * 2019-07-23 2021-02-02 西安中兴新软件有限责任公司 Device positioning method, terminal, server and storage medium
CN113950143B (en) * 2021-09-17 2022-10-11 北京交通大学 Internet of things equipment positioning method and device, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2144460A1 (en) * 2008-07-10 2010-01-13 TeliaSonera AB Method, system, packet data gateway and computer program for providing connection for data delivery
CN107123300A (en) * 2017-05-23 2017-09-01 奇酷互联网络科技(深圳)有限公司 Server and its methods, devices and systems for carrying out vehicle location
CN107396299A (en) * 2017-06-01 2017-11-24 北京三快在线科技有限公司 Localization method and device, the method for building up and device of database

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8494554B2 (en) * 2011-06-03 2013-07-23 Apple Inc. Mobile device location estimation
US8805405B2 (en) * 2011-07-27 2014-08-12 Unwired Planet, Llc System and method for providing location information for communications through an access network
KR20130094947A (en) * 2012-02-17 2013-08-27 삼성전자주식회사 Method and apparatus for positioning wireless access point location
CN103118327A (en) * 2013-01-25 2013-05-22 无锡万事通科技有限公司 WiFi-based (wireless fidelity-based) information transmission system and WiFi-based information transmission method
WO2017173595A1 (en) * 2016-04-06 2017-10-12 吴鹏 Air conditioner address identification method and system
CN107968800A (en) * 2016-10-19 2018-04-27 佛山市顺德区美的电热电器制造有限公司 Electric heating cooking equipment, server, information processing method and system
ES2934258T3 (en) * 2017-04-20 2023-02-20 Beijing Xiaomi Mobile Software Co Ltd Method and device for equipment management
CN108171350A (en) * 2017-12-19 2018-06-15 四川智信九鼎科学技术评估有限公司 Point of interest preordering method based on user preference information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2144460A1 (en) * 2008-07-10 2010-01-13 TeliaSonera AB Method, system, packet data gateway and computer program for providing connection for data delivery
CN107123300A (en) * 2017-05-23 2017-09-01 奇酷互联网络科技(深圳)有限公司 Server and its methods, devices and systems for carrying out vehicle location
CN107396299A (en) * 2017-06-01 2017-11-24 北京三快在线科技有限公司 Localization method and device, the method for building up and device of database

Also Published As

Publication number Publication date
CN109511166A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
US9544721B2 (en) Address point data mining
RU2486586C1 (en) Method and device for integration of data on point provided by group of suppliers
EP2862397B1 (en) Indoor location server provision and discovery using a proxy location server
CN103563415B (en) Systems and methods for over-the-air device configuration
CN111628897B (en) A method, device and system for initializing an intelligent device
CN112400346B (en) Server device and method for collecting location information of other devices
AU2013230105A1 (en) Automatic input signal recognition using location based language modeling
TW202102020A (en) BLE communication method, device and equipment and storage medium
CN109511166B (en) Positioning method and positioning device of equipment
TWI490523B (en) Information processing methods, server device and mobile terminal device
CN109996185B (en) Terminal positioning method and device, storage medium and electronic device
WO2015117396A1 (en) Wi-fi signal-based positioning method, device, and system
US12349233B2 (en) Method to manage wireless device profiles
KR20200007608A (en) Electronic device, server device and method for determining location of electronic device
CN106027693B (en) IP address-based localization method and device
CN116074908A (en) Control method, device and storage medium of unmanned aerial vehicle
CN106686587A (en) A wireless fidelity Wi-Fi connection method and mobile terminal
JP7412505B2 (en) Visible network attachment for synchronous local search results
WO2018023937A1 (en) Method and device for identifying wireless access point
CN111833862A (en) Control method of equipment, control equipment and storage medium
CN113038361B (en) Position information acquisition method, device, equipment and storage medium
CN107507094A (en) A kind of information processing method, device and storage medium
JP2006285357A (en) Information processing apparatus, access management method, and access management program
CN109495464A (en) Track method, apparatus, equipment and the system of application access
CN113891300A (en) Roaming service processing method and system, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant