CN110688441A - Positioning method, positioning device, electronic equipment and computer readable storage medium - Google Patents

Positioning method, positioning device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN110688441A
CN110688441A CN201910945553.7A CN201910945553A CN110688441A CN 110688441 A CN110688441 A CN 110688441A CN 201910945553 A CN201910945553 A CN 201910945553A CN 110688441 A CN110688441 A CN 110688441A
Authority
CN
China
Prior art keywords
wireless network
network information
positioning data
positioning
preset
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.)
Granted
Application number
CN201910945553.7A
Other languages
Chinese (zh)
Other versions
CN110688441B (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201910945553.7A priority Critical patent/CN110688441B/en
Publication of CN110688441A publication Critical patent/CN110688441A/en
Application granted granted Critical
Publication of CN110688441B publication Critical patent/CN110688441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Abstract

The embodiment of the invention provides a positioning method, a positioning device, electronic equipment and a computer readable storage medium. The method comprises the following steps: acquiring wireless network information identified by first electronic equipment as first wireless network information; searching second wireless network information matched with the first wireless network information in a first preset positioning database, and searching second positioning data having a mapping relation with the second wireless network information; wherein, record has in the first preset positioning database: the mapping relation between the second wireless network information and second positioning data, wherein the second positioning data are accurate positioning data of the first electronic equipment; and taking the searched second positioning data as the positioning data of the first electronic equipment. Therefore, the accurate positioning data corresponding to the first electronic equipment can be quickly obtained, and the positioning speed and accuracy are improved.

Description

Positioning method, positioning device, electronic equipment and computer readable storage medium
Technical Field
The present invention relates to the field of indoor positioning technologies, and in particular, to a positioning method, an apparatus, an electronic device, and a computer-readable storage medium.
Background
Since the electronic device located indoors cannot be located by a GPS (Global Positioning System), the current commonly used locating method is: the position data of the electronic device is estimated as positioning data by using wireless network information (such as mobile hotspot WiFi information) identified by the electronic device and position information of a wireless network transmitting device corresponding to the wireless network information.
The inventors have found in the course of the realisation of the invention that positioning data calculated in this way often has a positioning offset of 50 to 200 metres. That is, this positioning method cannot obtain accurate positioning data.
Disclosure of Invention
Embodiments of the present invention provide a positioning method, an apparatus, an electronic device, and a computer-readable storage medium, so as to quickly obtain accurate positioning data corresponding to the electronic device. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a positioning method, where the method may include:
acquiring wireless network information identified by first electronic equipment as first wireless network information;
searching second wireless network information matched with the first wireless network information in a first preset positioning database, and searching second positioning data having a mapping relation with the second wireless network information; wherein, record has in the first preset positioning database: the mapping relation between the second wireless network information and second positioning data, wherein the second positioning data are accurate positioning data of the first electronic equipment;
and taking the searched second positioning data as the positioning data of the first electronic equipment.
Optionally, before searching for the second wireless network information matching the first wireless network information in the first preset location database, the method may further include:
acquiring wireless network information identified by the second electronic equipment as second wireless network information;
acquiring accurate positioning data corresponding to second electronic equipment input by a user as second positioning data;
when the times of inputting the second wireless network information and the second positioning data by the user are larger than a preset threshold value, constructing a mapping relation between the second wireless network information and the second positioning data;
and storing the mapping relation into a first preset positioning database.
Optionally, after storing the mapping relationship in the first preset location database, the method may further include:
detecting whether the updating time of a first preset positioning database is reached;
and if so, deleting the mapping relation stored in the first preset positioning database, and triggering to acquire the wireless network information identified by the second electronic equipment as the second wireless network information.
Optionally, the first wireless network information includes: the physical address of the wireless network transmitting equipment, the target sequence ordered according to the identification sequence of the wireless network identification and the signal intensity corresponding to the wireless network identification;
searching the second wireless network information matched with the first wireless network information in the first preset location database may include:
and searching whether second wireless network information comprising a physical address, target sequencing and signal strength exists in a first preset positioning database.
Optionally, in an embodiment of the present invention, the method may further include:
when the second positioning data cannot be found in the first preset positioning database, obtaining base station information identified by the first electronic equipment as first base station information;
searching second base station information matched with the first base station information in a second preset positioning database, and searching second positioning data having a mapping relation with the second base station information; wherein, the second preset positioning database records: mapping relation between the second base station information and the second positioning data;
and taking the second positioning data searched in the second preset positioning database as the positioning data of the first electronic equipment.
Optionally, in an embodiment of the present invention, the method may further include:
when the second positioning data cannot be found in the second preset positioning database, obtaining the global positioning system information received by the first electronic equipment;
and taking the global positioning system information as the positioning data of the first electronic equipment.
Optionally, in this embodiment of the present invention, after obtaining the wireless network information identified by the first electronic device as the first wireless network information, the method may further include:
judging whether the first wireless network information contains a wireless network identifier;
if the wireless network identification is contained, judging whether the wireless network identification is stored in a wireless network identification library; the wireless network identification library records wireless network identifications existing in a preset safety area;
if the wireless network identification is stored, determining that the security state of the first electronic equipment is the state of entering the security area;
and if the wireless network identification is not stored, determining that the security state of the first electronic equipment is the state without entering the security area.
Optionally, in an embodiment of the present invention, the method may further include:
if the first wireless network information does not contain the wireless network identifier, after the searched second positioning data is used as the positioning data of the first electronic device, judging whether the position information contained in the second positioning data is located in a preset safety area;
if the first electronic equipment is located in the preset safe area, determining that the safe state of the first electronic equipment is the state of entering the safe area;
and if the first electronic equipment is not located in the preset safe area, determining that the safe state of the first electronic equipment is the state of not entering the safe area.
In a second aspect, an embodiment of the present invention further provides a positioning apparatus, where the apparatus may include:
the first obtaining module is used for obtaining the wireless network information identified by the first electronic equipment as first wireless network information;
the first searching module is used for searching second wireless network information matched with the first wireless network information in a first preset positioning database and searching second positioning data which has a mapping relation with the second wireless network information; wherein, record has in the first preset positioning database: the mapping relation between the second wireless network information and second positioning data, wherein the second positioning data are accurate positioning data of the first electronic equipment;
and the first determining module is used for taking the searched second positioning data as the positioning data of the first electronic equipment.
Optionally, in the embodiment of the present invention, the method may further include:
the second obtaining module is used for obtaining the wireless network information identified by the second electronic equipment as second wireless network information before searching the second wireless network information matched with the first wireless network information in the first preset positioning database;
the second determining module is used for obtaining accurate positioning data corresponding to second electronic equipment input by a user as second positioning data;
the building module is used for building a mapping relation between the second wireless network information and the second positioning data when the times of inputting the second wireless network information and the second positioning data by the user are larger than a preset threshold value;
and the first storage module is used for storing the mapping relation into a first preset positioning database.
Optionally, in the embodiment of the present invention, the method may further include:
the detection module is used for detecting whether the updating time of the first preset positioning database is reached or not after the mapping relation is stored in the first preset positioning database;
and the deleting module is used for deleting the mapping relation stored in the first preset positioning database when the update time is detected to be reached, and triggering the second obtaining module to execute the operation of obtaining the wireless network information identified by the second electronic equipment as the second wireless network information.
Optionally, in this embodiment of the present invention, the first wireless network information includes: the physical address of the wireless network transmitting equipment, the target sequence ordered according to the identification sequence of the wireless network identification and the signal intensity corresponding to the wireless network identification;
the first lookup module is specifically configured to:
and searching whether second wireless network information comprising a physical address, target sequencing and signal strength exists in a first preset positioning database.
Optionally, in an embodiment of the present invention, the apparatus may further include:
the third obtaining module is configured to obtain, when the second positioning data cannot be found in the first preset positioning database, base station information identified by the first electronic device as the first base station information;
the second searching module is used for searching second base station information matched with the first base station information in a second preset positioning database and searching second positioning data which has a mapping relation with the second base station information; wherein, the second preset positioning database records: mapping relation between the second base station information and the second positioning data;
and the third determining module is used for taking the second positioning data searched in the second preset positioning database as the positioning data of the first electronic device.
Optionally, in an embodiment of the present invention, the apparatus may further include:
the fourth obtaining module is used for obtaining the global positioning system information received by the first electronic equipment when the second positioning data cannot be found in the second preset positioning database;
and the fourth determining module is used for taking the global positioning system information as the positioning data of the first electronic equipment.
Optionally, in the embodiment of the present invention, the method may further include:
the first judging module is used for judging whether the first wireless network information contains a wireless network identifier or not after the wireless network information identified by the first electronic equipment is obtained as the first wireless network information;
the second judging module is used for judging whether the wireless network identification is stored in the wireless network identification library or not when the first wireless network information contains the wireless network identification; the wireless network identification library records wireless network identifications existing in a preset safety area;
a fifth determining module, configured to determine that the security state of the first electronic device is a security area entered state when the wireless network identifier is stored in the wireless network identifier repository;
and the sixth determining module is used for determining that the security state of the first electronic device is the security region state which is not entered when the wireless network identifier is not stored in the wireless network identifier library.
Optionally, in an embodiment of the present invention, the apparatus may further include:
the third judging module is used for judging whether the position information included in the second positioning data is located in the preset safety area or not when the first wireless network information does not include the wireless network identification and the searched second positioning data is used as the positioning data of the first electronic equipment;
the seventh determining module is used for determining that the safety state of the first electronic device is the safety region state when the first electronic device is located in the preset safety region;
the eighth determining module is configured to determine that the security state of the first electronic device is a security area state that is not entered when the first electronic device is not located in the preset security area.
In a third aspect, an embodiment of the present invention further provides a server, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the above first aspects when executing a program stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method steps in any one of the above first aspects are implemented.
In the embodiment of the present invention, when the first electronic device needs to be located, the wireless network information identified by the first electronic device may be obtained as the first wireless network information. Then, the second wireless network information matching with the first wireless network information can be searched in the first preset positioning database, and the second positioning data having a mapping relation with the second wireless network information can be searched. Wherein, the record has in this first preset position database: the mapping relationship between the second wireless network information and the second positioning data is the accurate positioning data of the first electronic device. Therefore, the accurate positioning data corresponding to the first wireless network information can be searched through the first preset positioning data which is constructed in advance. Therefore, the accurate positioning data corresponding to the first electronic equipment can be quickly obtained, and the positioning speed and accuracy are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a positioning method according to an embodiment of the present invention;
fig. 2 is a flowchart of another positioning method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a positioning device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a positioning method, an apparatus, an electronic device, and a computer-readable storage medium.
The following describes a positioning method provided by an embodiment of the present invention with reference to fig. 1.
It is to be understood that the positioning method provided by the embodiment of the present invention may be applied to a server, and is not limited thereto.
Referring to fig. 1, a positioning method provided by an embodiment of the present invention may include the following steps:
s101: acquiring wireless network information identified by first electronic equipment as first wireless network information;
it is understood that the first electronic device includes, but is not limited to: the intelligent wearable device comprises a smart phone, a learning machine and intelligent wearable devices such as a smart watch and a smart bracelet which are wearable on a user.
In addition, when the first electronic device is located in an area, the first electronic device can recognize wireless network information corresponding to the wireless network transmitting devices in the area. Wherein the wireless network transmitting device includes, but is not limited to, a router.
For example, the first electronic device may recognize a Media Access Control (MAC) corresponding to a router in the school zone, that is, obtain a physical address corresponding to the router. In addition, the wireless network identifier corresponding to the wireless network signal transmitted by the router and the signal strength corresponding to the wireless network identifier can also be identified, but the invention is not limited thereto.
After identifying the wireless network information, the first electronic device may report the wireless network information to the server. Therefore, the server can obtain the wireless network information reported by the first electronic device as the first wireless network information.
S102: searching second wireless network information matched with the first wireless network information in a first preset positioning database, and searching second positioning data having a mapping relation with the second wireless network information; wherein, record has in the first preset positioning database: the mapping relation between the second wireless network information and second positioning data, wherein the second positioning data are accurate positioning data of the first electronic equipment;
it is understood that the server may construct the first preset location database before performing the operation of S102. The method for constructing the first preset location database may be as follows:
acquiring wireless network information identified by the second electronic equipment as second wireless network information; acquiring accurate positioning data corresponding to second electronic equipment input by a user as second positioning data; when the times of inputting the second wireless network information and the second positioning data by the user are larger than a preset threshold value, constructing a mapping relation between the second wireless network information and the second positioning data; and storing the mapping relation into a first preset positioning database.
It is understood that the second electronic device includes, but is not limited to: the intelligent wearable device comprises a smart phone, a learning machine and intelligent wearable devices such as a smart watch and a smart bracelet which are wearable on a user. It is reasonable that the second electronic device is the same electronic device as the first electronic device, or may be a different electronic device.
In addition, when the second electronic device is located in an area, the second electronic device can also recognize wireless network information corresponding to the wireless network transmitting device in the area. And, the wireless network information may be reported to the server. Therefore, the server can obtain the wireless network information reported by the second electronic device as the second wireless network information.
Moreover, after the server obtains the second wireless network information reported by the second electronic device, the server can also obtain accurate positioning data corresponding to the second electronic device, which is input by the user, as second positioning data. Therefore, when the user knows the accurate positioning data of the second electronic device, the data correction can be carried out on the positioning data of the second electronic device, and then the server can obtain the accurate positioning data of the second electronic device.
When the server obtains the second wireless network information and the second positioning data corresponding to the second electronic device, a mapping relationship between the second wireless network information and the second positioning data can be constructed, and the mapping relationship is stored in the first preset positioning database. In order to ensure that the second positioning data recorded in the first preset positioning database is accurate and real positioning data, the server can also construct a mapping relation between the second wireless network information and the second positioning data when detecting that the times of inputting the second wireless network information and the second positioning data by the user is greater than a preset threshold value. Therefore, the first preset positioning database recorded with the mapping relation between the second wireless network information and the accurate positioning data can be constructed in advance, and the first preset positioning database is conveniently and subsequently utilized for accurate and quick positioning.
The value of the preset threshold may be 10, but is not limited thereto.
In addition, in order to accurately perform positioning, after the mapping relationship is stored in the first preset positioning database, whether the update time of the first preset positioning database is reached or not can be detected. When the update time is reached, the mapping relation stored in the first preset location database may be deleted, and an operation of obtaining the wireless network information identified by the second electronic device as the second wireless network information may be triggered. Therefore, the mapping relation stored in the first preset positioning database can be updated, and the second positioning data searched based on the first preset positioning database is the latest and accurate positioning data.
In the embodiment of the present invention, when the first wireless network information includes: the physical address of the wireless network transmitting device, the target sequence ordered according to the identification sequence of the wireless network identifier, and the operation of searching the second wireless network information matched with the first wireless network information in the first preset location database when the signal strength corresponding to the wireless network identifier is reached may specifically be: and searching whether second wireless network information comprising a physical address, target sequencing and signal strength exists in a first preset positioning database.
In this way, it is possible to find out whether there is second wireless network information matching the first wireless network information in the first preset positioning data based on the physical address, the target rank and the signal strength. Therefore, the searched second wireless network information is information matched with the physical address, the target sequence and the signal intensity, namely the environment where the first electronic equipment is located is more similar to the second positioning data corresponding to the second wireless network information. That is, more accurate positioning data can be found. It can be understood that, when the wireless network information identified by the two electronic devices is the same, the two electronic devices are assumed to be located at the same geographic location.
In addition, when the second positioning data cannot be found in the first preset positioning database, the second positioning data of the first electronic device can be determined through the base station information. Specifically, the server may obtain, as the first base station information, base station information identified by the first electronic device. And then, searching second base station information matched with the first base station information in a second preset positioning database, and searching second positioning data having a mapping relation with the second base station information. Wherein, the second preset positioning database records: and the mapping relation between the second base station information and the second positioning data. Then, the second positioning data found in the second preset positioning database may be used as the positioning data of the first electronic device.
It can be understood that, when the base station information identified by the two electronic devices is the same, the two electronic devices are considered to be located at the same geographical location. The base station information may also be referred to as a base station signal. In this way, the server may determine the positioning data of the first electronic device by using the base station information when the positioning data of the first electronic device cannot be determined by the first wireless network information.
In addition, it can be understood that when the second positioning data cannot be found in the second preset positioning database, the global positioning system information received by the first electronic device can be obtained. In this way, when the global positioning system information received by the first electronic device can be acquired, the global positioning system information can be used as the positioning data of the first electronic device. In this way, when the first electronic device cannot be located through the wireless network information and the base station information, the first electronic device can also be located through the global positioning system information.
S103: and taking the searched second positioning data as the positioning data of the first electronic equipment.
In the embodiment of the present invention, when the first electronic device needs to be located, the wireless network information identified by the first electronic device may be obtained as the first wireless network information. Then, the second wireless network information matching with the first wireless network information can be searched in the first preset positioning database, and the second positioning data having a mapping relation with the second wireless network information can be searched. Wherein, the record has in this first preset position database: the mapping relationship between the second wireless network information and the second positioning data is the accurate positioning data of the first electronic device. Therefore, the accurate positioning data corresponding to the first wireless network information can be searched through the first preset positioning data which is constructed in advance. Therefore, the accurate positioning data corresponding to the first electronic equipment can be quickly obtained, and the positioning speed and accuracy are improved.
After the server obtains the wireless network information identified by the first electronic device as the first wireless network information, it may further determine whether the first wireless network information includes a wireless network identifier. If the wireless network identification is contained, whether the wireless network identification is stored in the wireless network identification library or not can be judged. The wireless network identification library records wireless network identifications existing in a preset safety area.
If the wireless network identifier is stored, it indicates that the first electronic device is in the preset security area, and at this time, it may be determined that the security state of the first electronic device is the security area state. In addition, if the wireless network identifier is not stored, it indicates that the first electronic device is not in the preset security area, and at this time, it may be determined that the security state of the first electronic device is the state of not entering the security area.
In this way, it may be determined whether the first electronic device enters a preset security zone and the security status may be transmitted to a supervising user device (e.g., a parent user device) associated with the first electronic device, thereby alerting a user of the first electronic device to be in or out of the preset security zone.
In addition, if the first wireless network information does not include the wireless network identifier, the server may determine whether the location information included in the second positioning data is located in the preset security area after the found second positioning data is used as the positioning data of the first electronic device.
If the first electronic device is located in the preset safe area, it indicates that the position information included in the second positioning data is located in the position area corresponding to the preset safe area, and at this time, it may be determined that the safe state of the first electronic device is the safe area state. In addition, if the first electronic device is not located in the preset safe area, it indicates that the position information included in the second positioning data does not fall within the position area corresponding to the preset safe area, and at this time, it may be determined that the safe state of the first electronic device is not entered into the safe area state. Thus, whether the first electronic device enters the preset safe area can be determined through the positioning data of the first electronic device. Further, whether the security state corresponding to the preset security zone is entered or not may be sent to a monitoring user device (e.g., a teacher user device) associated with the first electronic device, so as to prompt a user of the first electronic device to be in the preset security zone or not.
The following describes a positioning method provided by an embodiment of the present invention with reference to fig. 2. Referring to fig. 2, the positioning method may include the steps of:
s1: acquiring wireless network information identified by the electronic equipment, and determining positioning data of the electronic equipment based on the wireless network information;
the positioning data of the electronic device can be obtained by the above-mentioned method for obtaining the positioning data of the first electronic device, which is not described herein any further.
S2: detecting whether the wireless network information contains a wireless network identifier; if yes, go to step S3; if not, go to step S6;
s3: judging whether the wireless network identifier is a wireless network identifier in a preset safety area; if yes, go to step S4; if not, go to step S8;
s4: judging whether the safety state of the electronic equipment is a safe area state; if so, ending the operation; if not, executing the step S5, and then ending the operation;
s5: modifying the security state of the electronic device to be a state that the electronic device enters a security zone;
in step S5, a notification message may also be sent to the associated device of the electronic device: the electronic device enters the preset safe area, but is not limited thereto.
S6: judging whether the positioning data is position data in a preset safety area or not; if yes, go to step S4; if not, go to step S7;
s7: judging whether the safety state of the electronic equipment is a safe area state; if yes, go to step S9; if not, ending the operation;
s8: judging whether the safety state of the electronic equipment is a state of not entering a safety region; if yes, go to step S9; if not, go to step S6;
s9: informing a monitoring user equipment of the electronic equipment that the electronic equipment leaves a preset safe area, and executing step S10;
s10: and modifying the safety state of the electronic equipment into a state of not entering a safety region.
In summary, by applying the positioning method provided in the embodiments of the present invention, the accurate positioning data corresponding to the first wireless network information can be searched through the pre-established first preset positioning data. Therefore, the accurate positioning data corresponding to the first electronic equipment can be quickly obtained, and the positioning speed and accuracy are improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a positioning apparatus, referring to fig. 3, the apparatus includes:
a first obtaining module 301, configured to obtain wireless network information identified by a first electronic device as first wireless network information;
a first searching module 302, configured to search, in a first preset location database, second wireless network information that matches the first wireless network information, and search second location data that has a mapping relationship with the second wireless network information; wherein, record has in the first preset positioning database: the mapping relation between the second wireless network information and second positioning data, wherein the second positioning data are accurate positioning data of the first electronic equipment;
the first determining module 303 is configured to use the found second positioning data as the positioning data of the first electronic device.
By applying the device provided by the embodiment of the invention, when the first electronic equipment needs to be positioned, the wireless network information identified by the first electronic equipment can be obtained as the first wireless network information. Then, the second wireless network information matching with the first wireless network information can be searched in the first preset positioning database, and the second positioning data having a mapping relation with the second wireless network information can be searched. Wherein, the record has in this first preset position database: the mapping relationship between the second wireless network information and the second positioning data is the accurate positioning data of the first electronic device. Therefore, the accurate positioning data corresponding to the first wireless network information can be searched through the first preset positioning data which is constructed in advance. Therefore, the accurate positioning data corresponding to the first electronic equipment can be quickly obtained, and the positioning speed and accuracy are improved.
Optionally, in the embodiment of the present invention, the method may further include:
the second obtaining module is used for obtaining the wireless network information identified by the second electronic equipment as second wireless network information before searching the second wireless network information matched with the first wireless network information in the first preset positioning database;
the second determining module is used for obtaining accurate positioning data corresponding to second electronic equipment input by a user as second positioning data;
the building module is used for building a mapping relation between the second wireless network information and the second positioning data when the times of inputting the second wireless network information and the second positioning data by the user are larger than a preset threshold value;
and the first storage module is used for storing the mapping relation into a first preset positioning database.
Optionally, in the embodiment of the present invention, the method may further include:
the detection module is used for detecting whether the updating time of the first preset positioning database is reached or not after the mapping relation is stored in the first preset positioning database;
and the deleting module is used for deleting the mapping relation stored in the first preset positioning database when the update time is detected to be reached, and triggering the second obtaining module to execute the operation of obtaining the wireless network information identified by the second electronic equipment as the second wireless network information.
Optionally, in this embodiment of the present invention, the first wireless network information includes: the physical address of the wireless network transmitting equipment, the target sequence ordered according to the identification sequence of the wireless network identification and the signal intensity corresponding to the wireless network identification;
the first lookup module 302 is specifically configured to:
and searching whether second wireless network information comprising a physical address, target sequencing and signal strength exists in a first preset positioning database.
Optionally, in an embodiment of the present invention, the apparatus may further include:
the third obtaining module is configured to obtain, when the second positioning data cannot be found in the first preset positioning database, base station information identified by the first electronic device as the first base station information;
the second searching module is used for searching second base station information matched with the first base station information in a second preset positioning database and searching second positioning data which has a mapping relation with the second base station information; wherein, the second preset positioning database records: mapping relation between the second base station information and the second positioning data;
and the third determining module is used for taking the second positioning data searched in the second preset positioning database as the positioning data of the first electronic device.
Optionally, in an embodiment of the present invention, the apparatus may further include:
the fourth obtaining module is used for obtaining the global positioning system information received by the first electronic equipment when the second positioning data cannot be found in the second preset positioning database;
and the fourth determining module is used for taking the global positioning system information as the positioning data of the first electronic equipment.
Optionally, in the embodiment of the present invention, the method may further include:
the first judging module is used for judging whether the first wireless network information contains a wireless network identifier or not after the wireless network information identified by the first electronic equipment is obtained as the first wireless network information;
the second judging module is used for judging whether the wireless network identification is stored in the wireless network identification library or not when the first wireless network information contains the wireless network identification; the wireless network identification library records wireless network identifications existing in a preset safety area;
a fifth determining module, configured to determine that the security state of the first electronic device is a security area entered state when the wireless network identifier is stored in the wireless network identifier repository;
and the sixth determining module is used for determining that the security state of the first electronic device is the security region state which is not entered when the wireless network identifier is not stored in the wireless network identifier library.
Optionally, in the embodiment of the present invention, the method may further include:
the third judging module is used for judging whether the position information included in the second positioning data is located in the preset safety area or not when the first wireless network information does not include the wireless network identification and the searched second positioning data is used as the positioning data of the first electronic equipment;
the seventh determining module is used for determining that the safety state of the first electronic device is the safety region state when the first electronic device is located in the preset safety region;
the eighth determining module is configured to determine that the security state of the first electronic device is a security area state that is not entered when the first electronic device is not located in the preset security area.
Corresponding to the method embodiment, the embodiment of the invention also provides a server. Referring to fig. 4, the system comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete communication with each other through the communication bus 404;
a memory 403 for storing a computer program;
the processor 401 is configured to implement the method steps of any of the above-described positioning methods when executing the program stored in the memory 403.
In the embodiment of the present invention, when the first electronic device needs to be located, the server may obtain the wireless network information identified by the first electronic device as the first wireless network information. Then, the second wireless network information matching with the first wireless network information can be searched in the first preset positioning database, and the second positioning data having a mapping relation with the second wireless network information can be searched. Wherein, the record has in this first preset position database: the mapping relationship between the second wireless network information and the second positioning data is the accurate positioning data of the first electronic device. Therefore, the accurate positioning data corresponding to the first wireless network information can be searched through the first preset positioning data which is constructed in advance. Therefore, the accurate positioning data corresponding to the first electronic equipment can be quickly obtained, and the positioning speed and accuracy are improved.
Corresponding to the above method embodiments, the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any of the above positioning methods.
After the computer program stored in the computer-readable storage medium provided by the embodiment of the present invention is executed by the processor of the server, when the first electronic device needs to be located, the server may obtain the wireless network information identified by the first electronic device as the first wireless network information. Then, the second wireless network information matching with the first wireless network information can be searched in the first preset positioning database, and the second positioning data having a mapping relation with the second wireless network information can be searched. Wherein, the record has in this first preset position database: the mapping relationship between the second wireless network information and the second positioning data is the accurate positioning data of the first electronic device. Therefore, the accurate positioning data corresponding to the first wireless network information can be searched through the first preset positioning data which is constructed in advance. Therefore, the accurate positioning data corresponding to the first electronic equipment can be quickly obtained, and the positioning speed and accuracy are improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer program product, which when run on an electronic device, causes the electronic device to perform: method steps of any of the above methods of localization.
After the computer program product provided by the embodiment of the present invention is executed by the processor of the server, when the first electronic device needs to be located, the server may obtain the wireless network information identified by the first electronic device as the first wireless network information. Then, the second wireless network information matching with the first wireless network information can be searched in the first preset positioning database, and the second positioning data having a mapping relation with the second wireless network information can be searched. Wherein, the record has in this first preset position database: the mapping relationship between the second wireless network information and the second positioning data is the accurate positioning data of the first electronic device. Therefore, the accurate positioning data corresponding to the first wireless network information can be searched through the first preset positioning data which is constructed in advance. Therefore, the accurate positioning data corresponding to the first electronic equipment can be quickly obtained, and the positioning speed and accuracy are improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the server, the readable storage medium and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to the description, reference may be made to some of the description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method of positioning, the method comprising:
acquiring wireless network information identified by first electronic equipment as first wireless network information;
searching second wireless network information matched with the first wireless network information in a first preset positioning database, and searching second positioning data having a mapping relation with the second wireless network information; wherein, record has in the first preset positioning database: the mapping relation between the second wireless network information and the second positioning data is the accurate positioning data of the first electronic equipment;
and taking the found second positioning data as the positioning data of the first electronic equipment.
2. The method of claim 1, wherein before searching for the second wireless network information matching the first wireless network information in the first predetermined location database, further comprising:
acquiring wireless network information identified by the second electronic equipment as second wireless network information;
acquiring accurate positioning data corresponding to the second electronic equipment input by a user as second positioning data;
when the times of inputting the second wireless network information and the second positioning data by the user are larger than a preset threshold value, constructing a mapping relation between the second wireless network information and the second positioning data;
and storing the mapping relation into the first preset positioning database.
3. The method according to claim 2, further comprising, after storing the mapping relationship in the first preset location database:
detecting whether the updating time of the first preset positioning database is reached;
and if so, deleting the mapping relation stored in the first preset positioning database, and triggering the operation of obtaining the wireless network information identified by the second electronic equipment as second wireless network information.
4. The method of claim 1, wherein the first wireless network information comprises: the physical address of the wireless network transmitting equipment, the target sequence ordered according to the identification sequence of the wireless network identification and the signal intensity corresponding to the wireless network identification;
the searching for the second wireless network information matched with the first wireless network information in the first preset location database comprises:
and searching whether second wireless network information comprising the physical address, the target sequence and the signal strength exists in a first preset positioning database.
5. The method of claim 1, further comprising:
when the second positioning data cannot be found in the first preset positioning database, obtaining base station information identified by the first electronic equipment as first base station information;
searching second base station information matched with the first base station information in a second preset positioning database, and searching second positioning data having a mapping relation with the second base station information; wherein, record has in the second preset positioning database: a mapping relationship between the second base station information and the second positioning data;
and taking the second positioning data searched in the second preset positioning database as the positioning data of the first electronic equipment.
6. The method of claim 5, further comprising:
when the second positioning data cannot be found in the second preset positioning database, obtaining global positioning system information received by the first electronic equipment;
and taking the global positioning system information as the positioning data of the first electronic equipment.
7. The method of claim 6, further comprising, after obtaining the wireless network information identified by the first electronic device as the first wireless network information:
judging whether the first wireless network information contains a wireless network identifier;
if the wireless network identification is contained, judging whether the wireless network identification is stored in a wireless network identification library; the wireless network identification library records wireless network identifications existing in a preset safety area;
if the wireless network identification is stored, determining that the security state of the first electronic device is a security area entered state;
and if the wireless network identification is not stored, determining that the security state of the first electronic equipment is a state without entering a security area.
8. The method of claim 7, further comprising:
if the first wireless network information does not include the wireless network identifier, after the found second positioning data is used as the positioning data of the first electronic device, judging whether the position information included in the second positioning data is located in the preset safety area;
if the first electronic device is located in the preset safe area, determining that the safe state of the first electronic device is a state of entering the safe area;
and if the first electronic equipment is not located in the preset safe area, determining that the safe state of the first electronic equipment is a state of not entering the safe area.
9. A positioning device, the device comprising:
the first obtaining module is used for obtaining the wireless network information identified by the first electronic equipment as first wireless network information;
the first searching module is used for searching second wireless network information matched with the first wireless network information in a first preset positioning database and searching second positioning data which has a mapping relation with the second wireless network information; wherein, record has in the first preset positioning database: the mapping relation between the second wireless network information and the second positioning data is the accurate positioning data of the first electronic equipment;
and the first determining module is used for taking the found second positioning data as the positioning data of the first electronic equipment.
10. A server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 8 when executing a program stored in the memory.
CN201910945553.7A 2019-09-30 2019-09-30 Positioning method, positioning device, electronic equipment and computer readable storage medium Active CN110688441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910945553.7A CN110688441B (en) 2019-09-30 2019-09-30 Positioning method, positioning device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910945553.7A CN110688441B (en) 2019-09-30 2019-09-30 Positioning method, positioning device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110688441A true CN110688441A (en) 2020-01-14
CN110688441B CN110688441B (en) 2022-07-22

Family

ID=69111294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910945553.7A Active CN110688441B (en) 2019-09-30 2019-09-30 Positioning method, positioning device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110688441B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063589A1 (en) * 2001-09-28 2003-04-03 Haines Robert E. Locating and mapping wireless network devices via wireless gateways
CN103347278A (en) * 2013-06-25 2013-10-09 百度在线网络技术(北京)有限公司 Method and device for renewing fingerprint database in wireless positioning
CN104618869A (en) * 2015-02-16 2015-05-13 百度在线网络技术(北京)有限公司 Indoor positioning method and device
CN105163275A (en) * 2015-07-31 2015-12-16 腾讯科技(深圳)有限公司 Data sending method, related device and system
CN105376705A (en) * 2014-08-22 2016-03-02 中兴通讯股份有限公司 WiFi signal-based positioning method, device and system
CN106060774A (en) * 2016-05-10 2016-10-26 湖南基石通信技术有限公司 Communication terminal and positioning method
CN106455050A (en) * 2016-09-23 2017-02-22 微梦创科网络科技(中国)有限公司 Bluetooth and Wifi-based indoor positioning method, apparatus and system
CN106851556A (en) * 2016-12-08 2017-06-13 广东小天才科技有限公司 A kind of positioning correction method and system, handheld device, wearable device
CN109379700A (en) * 2018-11-23 2019-02-22 维沃移动通信有限公司 Localization method and mobile terminal
CN109874112A (en) * 2017-12-05 2019-06-11 华为技术有限公司 A kind of method and terminal of positioning
CN110166943A (en) * 2018-02-02 2019-08-23 腾讯科技(深圳)有限公司 The processing method of terminal positional information

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063589A1 (en) * 2001-09-28 2003-04-03 Haines Robert E. Locating and mapping wireless network devices via wireless gateways
CN103347278A (en) * 2013-06-25 2013-10-09 百度在线网络技术(北京)有限公司 Method and device for renewing fingerprint database in wireless positioning
CN105376705A (en) * 2014-08-22 2016-03-02 中兴通讯股份有限公司 WiFi signal-based positioning method, device and system
CN104618869A (en) * 2015-02-16 2015-05-13 百度在线网络技术(北京)有限公司 Indoor positioning method and device
CN105163275A (en) * 2015-07-31 2015-12-16 腾讯科技(深圳)有限公司 Data sending method, related device and system
CN106060774A (en) * 2016-05-10 2016-10-26 湖南基石通信技术有限公司 Communication terminal and positioning method
CN106455050A (en) * 2016-09-23 2017-02-22 微梦创科网络科技(中国)有限公司 Bluetooth and Wifi-based indoor positioning method, apparatus and system
CN106851556A (en) * 2016-12-08 2017-06-13 广东小天才科技有限公司 A kind of positioning correction method and system, handheld device, wearable device
CN109874112A (en) * 2017-12-05 2019-06-11 华为技术有限公司 A kind of method and terminal of positioning
CN110166943A (en) * 2018-02-02 2019-08-23 腾讯科技(深圳)有限公司 The processing method of terminal positional information
CN109379700A (en) * 2018-11-23 2019-02-22 维沃移动通信有限公司 Localization method and mobile terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BINHEE KIM: "A Novel Indoor Positioning Technique Using Magnetic Fingerprint Difference", 《 IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT》 *
杨广龙等: "基于多模指纹匹配的室内定位系统设计与实现", 《计算机工程与设计》 *
雷雨伟: "WiFi与MEMS-IMU融合定位方法在室内定位中的应用", 《导航定位学报》 *

Also Published As

Publication number Publication date
CN110688441B (en) 2022-07-22

Similar Documents

Publication Publication Date Title
EP3440851B1 (en) Proactive actions on mobile device using uniquely-identifiable and unlabeled locations
US20160105769A1 (en) Adding Geo-Fences Based On Time
CN111062013B (en) Account filtering method and device, electronic equipment and machine-readable storage medium
CN108834077B (en) Tracking area division method and device based on user movement characteristics and electronic equipment
US20170013435A1 (en) Automated proximate location association mechanism for wireless emergency services
CN110619027B (en) House source information recommendation method and device, terminal equipment and medium
CN104699764A (en) Information pushing method and equipment
CN110335399B (en) Bluetooth access control method, computer terminal and computer readable storage medium
US9699296B1 (en) Voice assisted requests between user devices
CN108282843B (en) Network query method, device and server
WO2017107682A1 (en) Wireless network-based positioning method, device, and intelligent terminal
US9954966B2 (en) Method and apparatus for disaster notification
CN107884795B (en) Method and system for judging entering and exiting areas based on GPS
CN105371849A (en) Object search method and server
CN110688441B (en) Positioning method, positioning device, electronic equipment and computer readable storage medium
JP2018125572A (en) Position detection system, server device thereof, portable terminal
CN109976828B (en) Method and device for configuring file
CN111565356A (en) Base station position detection method and device
CN107357797A (en) A kind of information-pushing method and device
CN111950431B (en) Object searching method and device
CN111741526B (en) Positioning method, positioning device, electronic equipment and computer storage medium
CN109831737B (en) Bluetooth positioning method, device, equipment and system based on confidence degree
CN111222056B (en) Matching method, device, equipment and medium of related users
CN113326269A (en) Asset identification method, equipment, device and computer readable storage medium
JP6975948B2 (en) Management device, management system, and position correction method

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