CN110095792B - Method and device for positioning terminal - Google Patents

Method and device for positioning terminal Download PDF

Info

Publication number
CN110095792B
CN110095792B CN201810082355.8A CN201810082355A CN110095792B CN 110095792 B CN110095792 B CN 110095792B CN 201810082355 A CN201810082355 A CN 201810082355A CN 110095792 B CN110095792 B CN 110095792B
Authority
CN
China
Prior art keywords
terminal
network
height information
information
positioning
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
CN201810082355.8A
Other languages
Chinese (zh)
Other versions
CN110095792A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810082355.8A priority Critical patent/CN110095792B/en
Publication of CN110095792A publication Critical patent/CN110095792A/en
Application granted granted Critical
Publication of CN110095792B publication Critical patent/CN110095792B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C5/00Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels
    • G01C5/06Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels by using barometric means
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a method and a device for positioning a terminal, and belongs to the field of computers. The method comprises the following steps: receiving a positioning request sent by a target terminal, wherein the positioning request carries a first network identifier of at least one wireless network station scanned by the target terminal; acquiring network height information corresponding to the first network identifier, wherein the network height information is used for representing the height corresponding to the wireless network station; and determining the height information of the target terminal according to the network height information. Because the positioning service provided by the server can determine the height information of the target terminal, the three-dimensional positioning information can be provided for the target terminal without the function of determining the height information in a network positioning mode, and the accuracy of the positioning information provided by the server can be improved.

Description

Method and device for positioning terminal
Technical Field
The embodiment of the application relates to the field of computers, in particular to a method and a device for positioning a terminal.
Background
In order to make the user know the current geographical position, the terminal usually has a positioning function.
Currently, typical ways of locating a terminal include: and determining the latitude and longitude information of the terminal in a network positioning mode. The network positioning mode includes base station-based positioning and Wireless-Fidelity (Wi-Fi) network-based positioning.
However, the terminal can only obtain the current longitude and latitude information in a network positioning manner, the longitude and latitude information is a two-dimensional geographic coordinate, and the space where the terminal is actually located is a three-dimensional space, so the method has the problem that the height of the terminal cannot be positioned.
Disclosure of Invention
The embodiment of the application provides a method and a device for positioning a terminal, which can solve the problem that the height of the terminal cannot be positioned in a network positioning mode. The technical scheme is as follows:
in one aspect, a method for positioning a terminal is provided, and the method includes:
receiving a positioning request sent by a target terminal, wherein the positioning request carries a first network identifier of at least one wireless network station scanned by the target terminal;
acquiring network height information corresponding to the first network identifier, wherein the network height information is used for representing the height corresponding to the wireless network station;
and determining the height information of the target terminal according to the network height information.
In another aspect, a method for positioning a terminal is provided, the method comprising:
receiving a positioning operation, wherein the positioning operation is used for triggering a target terminal to position the current geographic position;
scanning wireless network stations according to the positioning operation to obtain a first network identifier of at least one wireless network station;
generating a positioning request according to the first network identifier;
sending the positioning request to a server, wherein the positioning request is used for triggering the server to determine network height information corresponding to the first network identifier, and determining height information of the target terminal according to the network height information;
and displaying the height information fed back by the server.
In another aspect, a method for positioning a terminal is provided, the method comprising:
acquiring an information reporting instruction;
scanning the wireless network stations according to the information reporting instruction to obtain a second network identifier of at least one wireless network station;
determining terminal height information according to the information reporting instruction;
the second network identification and the terminal height information are sent to the server, and the second network identification and the terminal height information are used for determining corresponding network height information when the server receives the first network identification sent by the target terminal; and determining the height information of the target terminal according to the network height information.
In another aspect, a method for positioning a terminal is provided, the method comprising:
displaying a positioning control in a first display interface;
receiving a positioning operation acting on the positioning control, wherein the positioning operation is used for triggering a target terminal to position the current geographic position;
and displaying positioning information in a second display interface according to the positioning operation, wherein the positioning information comprises longitude and latitude information and height information, and the height information is determined by the server according to the network height information.
In another aspect, an apparatus for locating a terminal is provided, the apparatus comprising:
the system comprises a request receiving module, a positioning module and a processing module, wherein the request receiving module is used for receiving a positioning request sent by a target terminal, and the positioning request carries a first network identifier of at least one wireless network station scanned by the target terminal;
the information acquisition module is used for acquiring network height information corresponding to the first network identifier, and the network height information is used for representing the height corresponding to the wireless network station;
and the height determining module is used for determining the height information of the target terminal according to the network height information.
In another aspect, an apparatus for locating a terminal is provided, the apparatus including:
the operation receiving module is used for receiving positioning operation, and the positioning operation is used for triggering the target terminal to position the current geographic position;
the network scanning module is used for scanning the wireless network stations according to the positioning operation to obtain a first network identifier of at least one wireless network station;
a request generating module, configured to generate a location request according to the first network identifier;
a request sending module, configured to send the location request to a server, where the location request is used to trigger the server to determine network altitude information corresponding to the first network identifier, and determine altitude information of the target terminal according to the network altitude information;
and the information display module is used for displaying the height information fed back by the server.
In another aspect, an apparatus for locating a terminal is provided, the apparatus comprising:
the instruction acquisition module is used for acquiring an information reporting instruction;
the network scanning module is used for scanning the wireless network stations according to the information reporting instruction to obtain a second network identifier of at least one wireless network station;
the height determining module is used for determining the height information of the terminal according to the information reporting instruction;
the information sending module is used for sending the second network identifier and the terminal height information to the server, and the second network identifier and the terminal height information are used for determining corresponding network height information when the server receives the first network identifier sent by the target terminal; and determining the height information of the target terminal according to the network height information.
In another aspect, an apparatus for locating a terminal is provided, the apparatus comprising:
the first display module is used for displaying the positioning control in the first display interface;
the operation receiving module is used for receiving a positioning operation acted on the positioning control, and the positioning operation is used for triggering the target terminal to position the current geographic position;
and the second display module is used for displaying positioning information in a second display interface according to the positioning operation, wherein the positioning information comprises longitude and latitude information and height information, and the height information is determined by the server according to the network height information.
In another aspect, a server is provided, and the server includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded by the processor and executed to implement the method for positioning a terminal provided in the first aspect.
In another aspect, a terminal is provided, which includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the method for positioning a terminal provided in any one of the second to fourth aspects.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the method for positioning a terminal provided in any one of the first to fourth aspects;
the technical scheme provided by the embodiment of the application has the following beneficial effects:
acquiring corresponding network height information according to a first network identifier of at least one wireless network station sent by a target terminal; then, determining the height information of the target terminal according to the network height information; the problem that the positioning information provided by the server is not accurate enough due to the fact that only the longitude and latitude information of the terminal can be positioned in a network positioning mode can be solved; because the positioning service provided by the server can determine the height information of the target terminal, the three-dimensional positioning information is provided for the target terminal without the function of determining the height information, and the accuracy of the positioning information provided by the server can be improved.
Drawings
Fig. 1 is a schematic structural diagram of a system for locating a terminal according to an exemplary embodiment of the present application;
fig. 2 is a flowchart of a method for locating a terminal according to an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of a receive positioning operation provided by an exemplary embodiment of the present application;
FIG. 4 is a schematic illustration of a receive positioning operation provided by another exemplary embodiment of the present application;
FIG. 5 is a schematic diagram of a network fingerprint provided by another example embodiment of the present application;
FIG. 6 is a schematic illustration of displaying height information provided by another exemplary embodiment of the present application;
fig. 7 is a flowchart of a method for locating a terminal according to another exemplary embodiment of the present application;
fig. 8 is a schematic diagram of a correspondence relationship between a network fingerprint and terminal altitude information provided by another exemplary embodiment of the present application;
FIG. 9 is a flow chart of determining network altitude information as provided by an exemplary embodiment of the present application;
fig. 10 is a flowchart of a method for locating a terminal according to another exemplary embodiment of the present application;
fig. 11 is a schematic diagram of a correspondence relationship between a second network identifier and network altitude information provided by another exemplary embodiment of the present application;
fig. 12 is a flowchart of a method for locating a terminal according to another exemplary embodiment of the present application;
fig. 13 is a flowchart of a method for locating a terminal according to another exemplary embodiment of the present application;
fig. 14 is a schematic diagram of a positioning terminal provided in another exemplary embodiment of the present application;
fig. 15 is a schematic structural diagram of an apparatus for locating a terminal according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of an apparatus for locating a terminal according to an embodiment of the present application;
fig. 17 is a schematic structural diagram of an apparatus for locating a terminal according to an embodiment of the present application;
fig. 18 is a schematic structural diagram of an apparatus for locating a terminal according to an embodiment of the present application;
fig. 19 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 20 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, several terms referred to in the present application will be explained.
Network fingerprint: refers to at least one set of data identifying wireless network stations, each set of data describing the status of one wireless network station.
Each set of network fingerprints includes network identifications of at least one wireless network station scanned by the terminal, including but not limited to: at least one of a name of a wireless network provided by the wireless network station, a Media Access Control (MAC) address of the wireless network station, and a Basic Service Set Identifier (BSSID).
Optionally, the network fingerprint further comprises at least one of a signal strength of the at least one wireless network station and a frequency of the at least one wireless network station. The Signal Strength of the wireless network station may be represented by a Received Signal Strength Indication (RSSI).
Alternatively, the network fingerprint may also be referred to by other names, such as: a Wireless-Fidelity (Wi-Fi) fingerprint, etc., which is not limited in this embodiment.
Optionally, the wireless network provided by the wireless network station in the present application may be a Wi-Fi network; alternatively, other types of networks are possible, such as: a network realized by the ZigBee technology, and the like.
Network positioning information: for indicating a geographical location of a wireless network station transmitting signals of a wireless network; or, in other words, the deployment location of the wireless network station. Optionally, the network positioning information includes network longitude and latitude information and/or network altitude information of the wireless network station. Alternatively, the wireless network station may be a router, a terminal with a function of sharing a wireless network, a base station, or the like.
Optionally, the network positioning information is estimated from terminal positioning information of at least one other terminal.
Terminal positioning information: for indicating the geographical location of the terminal. Optionally, the terminal positioning information includes longitude and latitude information and/or altitude information of the terminal.
Referring to fig. 1, a schematic structural diagram of a system for positioning a terminal according to an embodiment of the present application is shown, where the system includes: at least one target terminal 110, a server 120, and at least one other terminal 130.
The target terminal 110 and the other terminals 130 are mobile phones, tablet computers, wearable devices, Virtual Reality (VR) devices, Augmented Reality (AR) devices, smart home devices, laptop portable computers, desktop computers, and other electronic devices having a function of identifying a wireless network site.
Alternatively, when the target terminal 110 does not have the function of determining the height information, the other terminal 130 has the function of determining the height information; and/or, when the target terminal 110 does not have the function of determining the latitude and longitude information, the other terminal 130 has the function of determining the latitude and longitude information.
The target terminal 110 is connected to the server 120 through a wired network or a wireless network.
The target terminal 110 is used to request a location service from the server 120. Optionally, the target terminal 110 is in the coverage area of at least one wireless network station, at which point the target terminal 110 may scan for at least one wireless network station. When the target terminal 110 needs to locate the current geographic location, the target network fingerprint of at least one wireless network station may be scanned, and a location request may be generated according to the target network fingerprint, so as to trigger the server 120 to determine location information of the target terminal 110 according to the target network fingerprint. The positioning information includes latitude and longitude information and/or altitude information of the target terminal 110.
The server 120 may be a standalone server host; or a server cluster consisting of a plurality of server hosts. The server 120 is configured to provide a location service for the target terminal 110 according to the target network fingerprint sent by the target terminal 110.
Illustratively, the server 120 determines network location information from the target network fingerprint in the location request; then, altitude information of the target terminal 110 is determined according to the network location information. Of course, the server 120 may also determine the latitude and longitude information of the target terminal 110 according to the network positioning information.
Illustratively, the server 120 determines terminal location information from the target network fingerprint; then, the latitude and longitude information of the target terminal 110 is determined according to the terminal location information. Of course, the server 120 may also determine the altitude information of the target terminal 110 according to the terminal location information.
Before the server 120 determines the altitude information of the target terminal 110 according to the network positioning information, it is further required to obtain the terminal positioning information reported by the other terminal 130 and the network fingerprint of the wireless network station scanned by the other terminal 130.
The server 120 is connected to other terminals 130 through a wired network or a wireless network.
The other terminal 130 is configured to report the terminal location information and the network fingerprint of the scanned wireless network station to the server 120. Optionally, the other terminal 130 is in the coverage area of at least one wireless network station, at which time the other terminal 130 may scan for at least one wireless network station. The other terminal 130 transmits the scanned network fingerprint and its own terminal location information to the server 120. Alternatively, the other terminal 130 may transmit the network fingerprint and the terminal location information at the same time; alternatively, the network fingerprint and the terminal location information may be sent separately, which is not limited in this embodiment.
The terminal positioning information includes longitude and latitude information and/or altitude information of other terminals 130.
In the present application, the number of the target terminal 110 and the number of the other terminals 130 are both described as an example, and in actual implementation, the number of the target terminal 110 may be multiple, and the number of the other terminals 130 may also be multiple, which is not limited in this embodiment.
Referring to fig. 2, a flowchart of a method for positioning a terminal according to an embodiment of the present application is shown, where the embodiment takes the case that the method for positioning a terminal is applied to the system for positioning a terminal shown in fig. 1 as an example, and the method includes:
step 201, a target terminal receives a positioning operation, where the positioning operation is used to trigger the target terminal to position a current geographic location.
Optionally, a client requesting a positioning service is installed in the target terminal, and the target terminal receives the positioning operation through a positioning control displayed by the client. Optionally, the client may be an application program installed in the operating system by default when shipped from a factory; or an application program installed in the operating system during use. Optionally, the client may also have other functions, such as: an instant messaging function, an electronic payment function, etc., which are not limited in this embodiment.
Optionally, the target terminal positions the current geographic position in real time; or, the target terminal is only positioned at the geographical position where the positioning operation is received.
Optionally, the target terminal receives a positioning operation, including: displaying a positioning control in a first display interface; and receiving a positioning operation acting on the positioning control. Such as: the target terminal receives the positioning operation through the positioning control 31 shown in fig. 3; for another example: the target terminal receives the positioning operation through the positioning control 41 shown in fig. 4.
Step 202, the target terminal scans the wireless network stations according to the positioning operation to obtain a first network identifier of at least one wireless network station.
Optionally, the target terminal scans the wireless network stations to obtain a target network fingerprint, where the target network fingerprint includes a first network identifier of at least one wireless network station.
Optionally, the target terminal is located in a coverage area of at least one wireless network station, and at this time, the target terminal scans the wireless network station through a function of identifying a wireless network to obtain a target network fingerprint of the at least one wireless network station.
Optionally, the target network fingerprint further includes at least one of a signal strength of the wireless network station and a frequency of the wireless network station. Optionally, the first network identification of the wireless network station is at least one of a name of the wireless network provided for the wireless station and a MAC address, SSID, and BSSID of the wireless network station.
Illustratively, the target network fingerprint scanned by the target terminal is shown in fig. 5, and in fig. 5, the target network fingerprint includes the MAC address of the wireless network station and the signal strength of the wireless network station.
Step 203, the target terminal generates a positioning request according to the first network identifier.
Optionally, the positioning request is used to trigger the server to determine network height information corresponding to the first network identifier, and determine height information of the target terminal according to the network height information.
Optionally, the target terminal adds the first network identifier to the positioning request generated according to the positioning operation.
Step 204, the target terminal sends a positioning request to the server.
In step 205, the server receives a positioning request sent by the target terminal, where the positioning request includes a first network identifier of at least one wireless network station scanned by the target terminal.
In step 206, the server obtains network height information corresponding to the first network identifier.
Optionally, the server stores a corresponding relationship between the network identifier and the network height information, and the server may determine the network height information corresponding to the first network identifier according to the corresponding relationship.
Optionally, the server may determine the network height information corresponding to the first network identifier according to terminal height information sent by other terminals, where the other terminals are terminals that scan a wireless network station having the first network identifier.
And step 207, the server determines the height information of the target terminal according to the network height information.
In step 208, the server sends the altitude information of the target terminal to the target terminal.
In step 209, the target terminal receives the altitude information sent by the server.
Optionally, after the target terminal receives the height information, the height information is displayed in the second display interface.
Optionally, the first display interface is different from the second display interface; or the first display interface is the same as the second display interface.
Optionally, displaying the height information in a second display interface, including: displaying the geographical position indicated by the height information in the electronic map displayed on the second display interface; the electronic map is one of a real scene map, a two-dimensional map and a three-dimensional map.
Schematically, referring to the positioning information shown in fig. 6, a geographical position 61 indicated by the altitude information is displayed in the electronic map of the second display interface.
Optionally, the height information may also be described in the second display interface in a text form; and/or, the height information is described in a form of voice, which is not limited in this embodiment.
In summary, in the method for positioning a terminal provided in this embodiment, the corresponding network height information is obtained according to the first network identifier of the at least one wireless network station sent by the target terminal; then, determining the height information of the target terminal according to the network height information; the problem that the positioning information provided by the server is not accurate enough due to the fact that only the longitude and latitude information of the terminal can be positioned in a network positioning mode can be solved; because the positioning service provided by the server can determine the height information of the target terminal, the three-dimensional positioning information can be provided for the target terminal without the function of determining the height information in a network positioning mode, and the accuracy of the positioning information provided by the server can be improved.
In addition, the network height information of the wireless network station is determined according to the terminal positioning information sent by other terminals, and the user does not need to set the network height information of the wireless network station by himself, so that the convenience of the server for acquiring the network height information can be improved.
In addition, since the target terminal may be only close to the height indicated by the network height information, rather than located at the height indicated by the network height information, in this embodiment, the height information of the target terminal is determined according to the network positioning information corresponding to the plurality of first network identifiers, so that the server may determine the height of the target terminal with reference to the geographic locations of the plurality of wireless network stations, and the accuracy of determining the height information of the target terminal by the server may be improved.
Optionally, in this embodiment, steps 201, 204 and 209 may be implemented separately as a method embodiment on the target terminal side; steps 205-208 may be implemented separately as a server-side method embodiment.
Optionally, before step 206, the server needs to obtain network height information corresponding to the first network identifier, where the network height information may be set by the user when laying out a wireless network site; or the server can determine the terminal height information according to the terminal height information reported by other terminals. The method and the device take the example that the server determines the network height information according to the terminal height information reported by other terminals.
Referring to fig. 7, which shows a flowchart of a method for positioning a terminal according to an embodiment of the present application, the present application is described by taking as an example that the method for positioning a terminal is applied to the system for positioning a terminal shown in fig. 1, based on the embodiment shown in fig. 2, before step 206, the method further includes the following steps:
and step 701, other terminals acquire the information reporting instruction.
Optionally, the information reporting instruction is generated when the other terminal receives the positioning operation; or, the information reporting instruction is generated by other terminals every other preset time; or the information reporting instruction is sent to other terminals by the server.
In this embodiment, for example, the information reporting instruction is generated when the other terminal receives the positioning operation, the other terminal is installed with a client requesting the positioning service, and the other terminal receives the positioning operation through the positioning control displayed by the client; and after receiving the positioning operation, generating an information reporting instruction. Optionally, the client may be an application program installed in the operating system by default when shipped from a factory; or an application program installed in the operating system during use. Optionally, the client may also have other functions, such as: an instant messaging function, an electronic payment function, etc., which are not limited in this embodiment.
Illustratively, the other terminal receives positioning operations including: displaying a positioning control in a first display interface; and receiving a positioning operation acting on the positioning control.
Referring to fig. 3, a positioning control 31 is displayed in a session interface (first display interface) of the client, and the other terminal receives a positioning operation acting on the positioning control 31.
Referring to fig. 4, a positioning control 41 is displayed in a session interface (first display interface) of the client, and the other terminal receives a positioning operation acting on the positioning control 41.
It should be added that the manner of receiving the positioning operation shown in fig. 3 and fig. 4 is only schematic, and in actual implementation, other terminals may also receive the positioning operation in other manners, which is not limited in this embodiment.
And step 702, other terminals scan the wireless network stations according to the information reporting instruction to obtain a second network identifier of at least one wireless network station.
Optionally, the other terminal scans the wireless network stations to obtain a network fingerprint of at least one wireless network station, where the network fingerprint includes a second network identifier of each wireless network station in the at least one wireless network station.
Optionally, the information reporting instruction is used to instruct other terminals to report the network fingerprint and the terminal positioning information to the server. At this time, after acquiring the information reporting instruction, the other terminals need to acquire the network fingerprint and the terminal positioning information.
And the other terminals are in the coverage range of at least one wireless network station, and the other terminals scan the wireless network station through the function of identifying the wireless network station to obtain the network fingerprint.
And step 703, other terminals determine the height information of the terminal according to the information reporting instruction.
Optionally, when the other terminal further has a function of determining the latitude and longitude information of the terminal, the other terminal further determines the latitude and longitude information of the terminal according to the information reporting instruction.
Illustratively, other terminals mounted with the air pressure measuring assembly have a function of determining height information; other terminals equipped with a Global Positioning System (GPS) module have a function of determining latitude and longitude information. Alternatively, the air pressure measuring component may be a barometer, an air pressure sensor, or the like. The air pressure measuring component is used for obtaining a current measured air pressure value, and the measured air pressure value is used for determining current terminal height information.
Optionally, the other terminal determines terminal height information in the terminal positioning information, including: acquiring a current measured air pressure value through an installed air pressure measuring assembly; and determining the current terminal height information according to the measured air pressure value.
In one example, the other terminal determines current terminal altitude information from the measured air pressure value, including: acquiring a standard height of a weather monitoring station and a reference air pressure value issued by the weather monitoring station; determining the relative height between the reference air pressure value and the measured air pressure value according to the difference value between the reference air pressure value and the measured air pressure value; and determining the height information of the terminal according to the standard height and the relative height.
In the example, the other terminals are in communication connection with the weather monitoring station, and the weather monitoring station can provide the standard height of the other terminals and the currently monitored reference air pressure value to the other terminals according to the requests of the other terminals; and correspondingly, the other terminals acquire the standard height and the reference air pressure value transmitted by the weather monitoring station.
Optionally, after acquiring the standard height and the reference air pressure value, the other terminals calculate a difference between the reference air pressure value and the measured air pressure value; then, substituting the difference into an air pressure-altitude conversion formula to obtain the relative height between other terminals and a weather monitoring station; and then, adding the standard height and the relative height of the weather monitoring station to obtain the height information of the terminal.
Alternatively, the process of calculating the terminal height information by the other terminal is represented by the following formula:
Figure BDA0001561379770000121
Figure BDA0001561379770000122
Δh=h1-h2
h’=h+Δh
wherein, P1Measured air pressure values obtained for other terminals; p2Obtaining a reference air pressure value for a weather monitoring station; delta h is the relative height between the other terminals and the weather monitoring station; h' is terminal height information of other terminals; h is the standard height of the meteorological monitoring station; p0Atmospheric pressure at sea level under standard atmospheric conditions, typically 1013.25 pascals (hPa); t is0Is the temperature at sea level under standard atmospheric conditions, typically 288.15 degrees celsius (° c); r is a general gas constant and can be set to 287.052 per square meter (m)2) Per square second(s)2) (ii) a k is the vertical atmospheric temperature decrement rate which can be set to 0.0065 ℃/m; g is a gravitational constant, typically 9.82m/s2(ii) a Substituting the above constants into equations (1) and (2) yields equations (3) and (4) below.
h1=44330*(1-(P1/1013.25)0.19) (3)
h2=44330*(1-(P2/1013.25)0.19) (4)
In another example, the other terminal may calculate the terminal height information according to the barometric pressure-altitude conversion formula (as in the above formula 1) and the measured barometric pressure value.
Optionally, when the other terminal further determines the latitude and longitude information of the terminal, the other terminal determines the latitude and longitude information of the terminal, including: and acquiring the current longitude and latitude information of the terminal through the installed GPS assembly.
Of course, other terminals may determine the latitude and longitude information in other manners, such as: positioning through a mobile base station; assisted Global Positioning System (AGPS), etc., which are not limited in this embodiment.
Alternatively, step 703 may be performed after step 702; alternatively, it may be performed before step 702; alternatively, it may also be performed simultaneously with step 702.
In step 704, the other terminal sends the second network identifier and the terminal altitude information to the server.
Optionally, the second network identification is carried in a network fingerprint.
The second network identifier and the terminal height information are used for the server to determine corresponding network height information when receiving the first network identifier sent by the target terminal; and determining the height information of the target terminal according to the network height information. The target terminal is a terminal which requests the server for positioning service.
Step 705, the server receives the second network identifier and the terminal height information sent by at least one other terminal.
Optionally, the server receives a network fingerprint and the terminal altitude information, the network fingerprint including the second network identification. The terminal height information is calculated by other terminals according to the measured air pressure value.
Optionally, the server may also receive latitude and longitude information of the terminal sent by other terminals.
Optionally, the server structurally stores the second network identification and the terminal altitude information. Schematically, the correspondence between the second network identification and the terminal height information shown in fig. 8 is referred to.
Step 706, the server determines the network height information corresponding to each second network identifier according to the m pieces of terminal height information.
Optionally, after receiving the terminal height information, the server further calculates network positioning information corresponding to each second network identifier according to the terminal height information of at least one other terminal; and storing the corresponding relationship between the second network identification and the network positioning information.
Illustratively, the server obtains m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by at least one other terminal; and determining network height information corresponding to each second network identifier according to the m pieces of terminal height information, wherein m is a positive integer. At this time, referring to fig. 9, for m pieces of terminal height information corresponding to each second network identifier, the server determining the network positioning information according to the m pieces of terminal positioning information includes the following steps:
step 91, determining the maximum value and the minimum value in the m pieces of terminal height information.
And step 92, determining a data extraction interval according to the minimum value and the maximum value.
The data extraction interval comprises a minimum value and a maximum value.
Optionally, the server determines the data extraction interval according to the minimum value and the maximum value, including: rounding the minimum value downwards to obtain a rounded value downwards, and rounding the maximum value upwards to obtain a rounded value upwards; and taking the lower rounded value as the lower limit value of the data extraction interval and the upper rounded value as the upper limit value of the data extraction interval to obtain the data extraction interval. Of course, the server may also determine the data extraction interval in other manners, such as: determining the minimum value as the lower limit value of the data extraction interval, and taking the maximum value as the upper limit value of the data extraction interval to obtain the data extraction interval; the present embodiment does not limit the manner in which the server determines the data extraction interval.
And step 93, extracting n interval data from the data extraction interval, wherein n is an integer greater than 1.
Optionally, the server extracts n interval data in the data extraction interval, including: in the data extraction interval, taking the lower limit value of the data extraction interval as first interval data; then, extracting interval data every other preset numerical value to obtain n interval data. The preset value can be set in the server for the developer; or, the server randomly selects the server, which is not limited in this embodiment.
Such as: if the data extraction interval of the terminal height information is [100m, 150m ] and the preset value is 1m, the server takes the lower limit value 100 of the data extraction interval as the first interval data, and then extracts one interval data every 1m, so that the server can obtain 51 interval data.
And step 94, calculating the occurrence probability corresponding to each interval data in the n interval data.
Optionally, the server calculates an occurrence probability corresponding to each interval data, including: for the ith interval data, counting the number of the terminal positioning information corresponding to the network fingerprint in a subinterval formed by the (i-1) th interval data and the ith interval data; and dividing the number by the total number of the terminal positioning information corresponding to the network fingerprint to obtain the occurrence probability corresponding to the interval data.
And step 95, multiplying each interval data by the corresponding occurrence probability to obtain network height information corresponding to the second network identifier.
Such as: for a wireless network station with a MAC address of MAC1, a server receives network fingerprints with MAC addresses of MAC1 sent by m other terminals, and at the moment, the server obtains data I according to m network fingerprints and m terminal height information:
I=<MAC1,(rssi1,h1)(rssi2,h2)……(rssim,hm)>
wherein MAC1 is the MAC address of the wireless network station, rssimSignal strength in network fingerprint transmitted for mth other terminal, hmTerminal altitude information sent for the mth other terminal. Optionally, the ranking order of the mth other terminals is obtained by ranking according to the order of the signal intensity from large to small; or the sequencing sequence of the mth other terminals is obtained by sequencing according to the sequence of the signal intensity from small to large; or, the ranking order of the mth other terminal is obtained by ranking according to the receiving time from front to back, which is not limited in this embodiment; or the sequencing order of the mth other terminals is obtained by random sequencing of the server.
Selecting maximum value h of terminal height information from data ImaxAnd a minimum value hminWill minimize the value hminGet rounded down to get
Figure BDA0001561379770000141
Will maximum value hmaxGet rounded up to obtain
Figure BDA0001561379770000142
To be provided with
Figure BDA0001561379770000143
As a lower limit value of the data extraction interval to
Figure BDA0001561379770000144
And obtaining a data extraction interval as an upper limit value of the data extraction interval.
Extracting interval data every 1m in a data extraction interval, and calculating the occurrence probability corresponding to each interval data to obtain data D as follows:
Figure BDA0001561379770000145
wherein p isjAs interval data
Figure BDA0001561379770000146
The corresponding probability of occurrence.
The server calculates the network height information of the wireless network station with the MAC address of MAC1 according to the data D as follows:
Figure BDA0001561379770000151
optionally, the other terminals may also send the signal strength of at least one wireless network station, and after the server acquires the signal strengths sent by the m other terminals, the signal strength of which the signal strength corresponding to each second network identifier is lower than the preset threshold value may be deleted; or after ranking the signal intensities in a descending order, deleting the signal intensities ranked at the last s bits, wherein s is a preset constant; alternatively, s is determined from the value of m, such as: s-m a, a is a constant greater than 0 and less than 1, schematically s-0.8 m.
Such as: in data I, the server deletes the signal intensity ranked at the last 0.8 × m bits, and the obtained data I' is:
I’=<MAC1,(rssi1,h1)(rssi2,h2)……(rssis,hs)>
wherein s is 0.8 m.
Optionally, the process of calculating the network longitude information and/or the network latitude information by the server is similar to the above process, except that the information classification is changed, and this embodiment is not listed here.
In summary, according to the method for positioning a terminal provided in this embodiment, when determining the terminal height information by another terminal, the terminal height information is determined by combining the standard height of the weather monitoring station, the reference barometric pressure value issued by the weather monitoring station, and the measured barometric pressure value measured by another terminal, and compared with a method for determining the terminal height information only according to the measured barometric pressure value, because the standard height of the weather monitoring station is accurate, an error introduced when calculating the terminal height information can be reduced, thereby improving the accuracy of determining the terminal height information by another terminal.
The following describes in detail a manner in which the server determines the altitude information of the target terminal according to the first network identifier. In this embodiment, the location request further includes a signal strength of at least one wireless network station, and the signal strength of each wireless network station corresponds to one first network identifier.
Referring to fig. 10, a flowchart of a method for positioning a terminal according to another embodiment of the present application is shown, where the method includes:
as an alternative step to step 206, step 1001, the server determines k first network identifications whose signal strengths satisfy the strength condition, k being a positive integer.
Optionally, the intensity conditions include: the signal intensity is higher than the preset intensity and/or the signal intensities are ranked on the top k bits in the descending order.
In this embodiment, the target network fingerprint includes a signal strength of the wireless network station.
In step 1002, the server obtains network height information corresponding to each of the k first network identifiers, to obtain k network height information.
After the server determines the network height information of each wireless network station according to the terminal height information, the server stores the corresponding relationship between the second network identification of the wireless network station and the network height information. For each first network identifier in the k first network identifiers, the server searches a second network identifier which is the same as the first network identifier in the corresponding relation, and determines the network height information corresponding to the second network identifier as the network height information of the first network identifier.
Schematically, referring to the corresponding relationship between the second network identifier and the network positioning information shown in fig. 11, assuming that k is 5, and the 5 first network identifiers determined by the server are MAC1, MAC2, MAC3, MAC4, and MAC5, the network positioning information corresponding to each MAC address can be obtained according to the corresponding relationship.
As an alternative step to step 207, step 1003, the server calculates a weighted average of the k pieces of network height information, resulting in height information of the target terminal.
Illustratively, this step can be represented by the following formula:
Figure BDA0001561379770000161
wherein h is height information of the target terminal; r isgIdentifying a corresponding signal strength for the g-th first network; h isgAnd identifying corresponding network height information for the g-th first network.
In summary, in the embodiment, k first network identifiers whose signal strengths satisfy the strength condition are determined from at least one first network identifier; acquiring network height information corresponding to each first network identifier in the k first network identifiers; the closer the geographic positions of the target terminal and the wireless network station are, the higher the signal intensity of the corresponding wireless network station is, and at the moment, the server can determine the height information of the target terminal according to the k pieces of network height information which are closer to the target terminal, so that the accuracy of determining the height information of the target terminal by the server can be improved.
Optionally, when the target terminal does not have the function of determining latitude and longitude information, the positioning request is further used for triggering the server to determine the latitude and longitude information of the target terminal according to the first network identifier.
At this time, after step 205, the server may further determine corresponding network latitude and longitude information according to the first network identifier; and then determining the longitude and latitude information of the target terminal according to the network longitude and latitude information.
Optionally, when determining the latitude and longitude information of the target terminal according to the network latitude and longitude information, the server may first determine k first network identifiers of which the signal strength satisfies the strength condition from at least one first network identifier; acquiring network longitude and latitude information corresponding to each first network identifier in the k first network identifiers to obtain k network longitude and latitude information; and calculating a weighted average value of the network longitude and latitude information in the k pieces of network longitude and latitude information to obtain the longitude and latitude information in the positioning information.
Illustratively, this step can be represented by the following formula:
Figure BDA0001561379770000171
wherein, (x, y) is latitude and longitude information of the target terminal; r isgIdentifying a corresponding signal strength for the g-th first network; (x)g,yg) And identifying the corresponding network longitude and latitude information for the g-th first network.
At this time, the server needs to determine the network longitude and latitude information in advance according to the terminal longitude and latitude information of other terminals. The way for the server to obtain the network longitude and latitude information is shown in the embodiment shown in fig. 7, at this time, only the terminal height information in the embodiment shown in fig. 7 needs to be replaced by the terminal longitude and latitude information, and the network height information needs to be replaced by the network longitude and latitude information. Wherein, other terminals determine the latitude and longitude information of the terminal, including: and acquiring the current longitude and latitude information of the terminal through the installed GPS assembly.
Of course, other terminals may determine the latitude and longitude information in other manners, such as: positioning through a mobile base station; assisted Global Positioning System (AGPS), etc., which are not limited in this embodiment.
Optionally, the server may also determine the latitude and longitude information of the target terminal directly according to the latitude and longitude information of other terminals. In this embodiment, the location request further includes a first network characteristic of at least one wireless network station, where the first network characteristic is signal strength and/or frequency.
Referring to fig. 12, which shows a flowchart of a method for positioning a terminal according to another embodiment of the present application, based on the above-mentioned embodiments of the method, after step 205, the method includes the following steps:
step 1201, the server compares the similarity of the second network characteristics historically scanned by at least one other terminal with the first network characteristics of the positioning request to obtain the second network characteristics with the maximum similarity with the first network characteristics.
The greater the similarity between the first network characteristic and the second network characteristic acquired by the target terminal, the more similar the geographic position of the target terminal and the geographic positions of other terminals which send the second network characteristic, so that the geographic position of the target terminal can be determined by determining the second network characteristic with the greatest similarity to the first network characteristic.
Wherein the type of the second network characteristic is the same as the type of the first network characteristic.
Optionally, when the similarity comparison is performed between the first network feature and the second network feature, the server may input the first network feature and the second network feature into the comparison model, and determine an output result of the comparison model as the second network model with the greatest similarity to the first network feature. Alternatively, the comparison model may be a neural network model, a probability estimation model, or the like, which is not limited in this embodiment.
Step 1202, the server obtains the terminal longitude and latitude information corresponding to the second network feature, wherein the terminal longitude and latitude information is reported by other terminals when the second network feature with the maximum similarity is reported.
Step 1203, the server determines the longitude and latitude information of the terminal as the longitude and latitude information of the target terminal.
Alternatively, steps 1201-1203 may be performed before steps 206 and 207; alternatively, it may be performed after steps 206 and 207; alternatively, the steps 206 and 207 may be performed simultaneously, which is not limited in this embodiment.
Step 1204, the server sends the latitude and longitude information of the target terminal to the target terminal.
Optionally, the server may send the height information and the latitude and longitude information to the target terminal at the same time; or the altitude information can be sent to the target terminal first, and then the longitude and latitude information can be sent to the target terminal; or, the latitude and longitude information may be sent to the target terminal first, and then the altitude information may be sent to the target terminal, which is not limited in this embodiment.
Step 1205, the target terminal receives the latitude and longitude information sent by the server.
Optionally, after the target terminal receives the latitude and longitude information, the latitude and longitude information is displayed in a second display interface.
Optionally, displaying latitude and longitude information in a second display interface, including: displaying the geographical position indicated by the latitude and longitude information in the electronic map displayed on the second display interface; the electronic map is one of a real scene map, a two-dimensional map and a three-dimensional map.
Schematically, referring to the positioning information shown in fig. 6, a geographical position 61 indicated by latitude and longitude information is displayed in the electronic map of the second display interface.
Optionally, the latitude and longitude information may also be described in the second display interface in a text form; and/or, the latitude and longitude information is described in a form of voice, which is not limited in this embodiment.
Optionally, when the terminal positioning information further includes the terminal height information, the server may further determine the terminal height information as the height information of the target terminal.
In summary, in the embodiment, a group of second network features with the greatest similarity to the first network feature sent by the target terminal is determined among the plurality of groups of second network features, and the longitude and latitude information of the other terminals sending the second network features is determined as the longitude and latitude information of the target terminal; the greater the similarity between the first network characteristic and the second network characteristic is, the closer the distance between the target terminal and the other terminal sending the second network characteristic is, that is, the closer the longitude and latitude information of the target terminal is to the longitude and latitude information of the other terminal, so that the accuracy of the longitude and latitude information of the target terminal determined by the server can be ensured.
Alternatively, the server may determine the height information of the target terminal by using the positioning information manner shown in fig. 10, and determine the latitude and longitude information of the target terminal by using the positioning information manner shown in fig. 12; alternatively, the server may also determine the latitude and longitude information of the target terminal by using the positioning information manner shown in fig. 10, and determine the height information of the target terminal by using the positioning information manner shown in fig. 12; alternatively, the server may also determine the height information and the latitude and longitude information of the target terminal by using the positioning information manner shown in fig. 10; alternatively, the server may determine the height information and the latitude and longitude information of the target terminal by using the positioning information method shown in fig. 12.
Referring to fig. 13, a flowchart of a method for positioning a terminal according to another embodiment of the present application is shown, where the present embodiment is described by taking as an example that the method is used in the target terminal 110 or the other terminal 130 in the system for positioning a terminal shown in fig. 1, and the method includes:
step 1301, displaying a positioning control in the first display interface.
Optionally, a client requesting a location service is installed in the terminal (including other terminals and the target terminal). Optionally, the client may be an application program installed in the operating system by default when shipped from a factory; or an application program installed in the operating system during use. Optionally, the client may also have other functions, such as: an instant messaging function, an electronic payment function, etc., which are not limited in this embodiment. The terminal displays a positioning control in a first display interface provided by the client, such as: displaying a positioning control 31 in the first display interface shown in fig. 3; for another example: a positioning control 41 is displayed in the first display interface shown in fig. 4.
Step 1302, receiving a positioning operation applied to the positioning control, where the positioning operation is used to trigger the target terminal to position the current geographic location.
Optionally, the positioning operation may be a click operation, a long-press operation, a double-click operation, or the like, which acts on the positioning control; alternatively, the positioning operation may be a voice control operation, which is not limited in this embodiment.
And step 1303, displaying positioning information in the second display interface according to the positioning operation, wherein the positioning information comprises longitude and latitude information and height information.
Optionally, the first display interface is different from the second display interface, and the displaying of the positioning information in the second display interface according to the positioning operation includes: displaying the geographical position indicated by the positioning information in the electronic map displayed on the second display interface; the electronic map is one of a real scene map, a two-dimensional map and a three-dimensional map.
Referring to fig. 14, the terminal displays a geographical position 1401 indicated by latitude and longitude information and altitude information in the second display interface after the first display interface receives the positioning operation. In addition, the second display interface also comprises a text description 1402 of longitude and latitude information and height information.
Optionally, when the terminal receiving the positioning operation is a target terminal, after step 1302, the method further includes: scanning wireless network stations to obtain a first network identifier of at least one wireless network station; generating a positioning request according to the first network identifier; and sending a positioning request to the server, wherein the positioning request is used for triggering the server to determine the network height information corresponding to the first network identifier, and then determining the height information of the target terminal according to the network height information. The related description of this embodiment is detailed in step 201-209, and this embodiment is not described herein again.
In summary, in the embodiment, the three-dimensional positioning information of the terminal, that is, the longitude and latitude information and the height information, is acquired when the positioning operation is received, so that the positioning of the three-dimensional space where the terminal is located is realized, and the accuracy of positioning the terminal can be improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 15, a schematic structural diagram of an apparatus for locating a terminal according to an embodiment of the present application is shown. The apparatus for positioning a terminal can be implemented as all or a part of a server by a dedicated hardware circuit, or a combination of hardware and software, and includes: a request receiving module 1510, an information acquisition module 1520, and an altitude determination module 1530.
A request receiving module 1510, configured to receive a positioning request sent by a target terminal, where the positioning request carries a first network identifier of at least one wireless network station scanned by the target terminal;
an information obtaining module 1520, configured to obtain network height information corresponding to the first network identifier, where the network height information is used to indicate a height corresponding to the wireless network station;
an altitude determining module 1530, configured to determine altitude information of the target terminal according to the network altitude information.
Optionally, the positioning request further includes a signal strength of the at least one wireless network station; the information obtaining module 1520, configured to:
determining k first network identifiers with signal strength meeting the strength condition;
acquiring network height information corresponding to each first network identifier in the k first network identifiers to obtain k network height information;
wherein the intensity conditions include: the signal intensity is higher than the preset intensity and/or the signal intensity is ranked at the top k bits according to the sequence from large to small, and k is a positive integer.
Optionally, the height determining module 1530 is configured to:
and calculating the weighted average value of the k network height information to obtain the height information of the target terminal.
Optionally, the apparatus further comprises: the system comprises an information receiving module, a terminal height acquiring module and a network height determining module.
An information receiving module, configured to receive a second network identifier and terminal height information sent by at least one other terminal before the network height information corresponding to the first network identifier is obtained;
a terminal height obtaining module, configured to obtain m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, where m is a positive integer;
and the network height determining module is used for determining the network height information corresponding to each second network identifier according to the m pieces of terminal height information.
Optionally, the network height determining module is configured to:
for m pieces of terminal height information corresponding to each second network identifier, determining the maximum value and the minimum value of the m pieces of terminal height information;
determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value;
extracting n interval data in the data extraction interval, wherein n is an integer greater than 1;
calculating the occurrence probability corresponding to each interval data in the n interval data;
and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
Reference may be made in connection with the above-described method embodiments.
Referring to fig. 16, a schematic structural diagram of an apparatus for locating a terminal according to an embodiment of the present application is shown. The terminal positioning device can be implemented by a dedicated hardware circuit or a combination of hardware and software as all or a part of a terminal, and includes: an operation receiving module 1610, a network scanning module 1620, a request generating module 1630, a request transmitting module 1640, and an information displaying module 1650.
An operation receiving module 1610, configured to receive a positioning operation, where the positioning operation is used to trigger a target terminal to position a current geographic location;
a network scanning module 1620, configured to scan a wireless network station according to the positioning operation to obtain a first network identifier of at least one wireless network station;
a request generating module 1630, configured to generate a location request according to the first network identifier;
a request sending module 1640, configured to send the location request to a server, where the location request is used to trigger the server to determine network height information corresponding to the first network identifier, and determine height information of the target terminal according to the network height information;
and the information display module 1650 is used for displaying the height information fed back by the server.
Reference may be made in connection with the above-described method embodiments.
Please refer to fig. 17, which illustrates a schematic structural diagram of an apparatus for positioning a terminal according to an embodiment of the present application. The terminal positioning device can be implemented by a dedicated hardware circuit or a combination of hardware and software as all or a part of a terminal, and includes: an instruction acquisition module 1710, a network scanning module 1720, an altitude determination module 1730, and an information sending module 1740.
An instruction obtaining module 1710, configured to obtain an information reporting instruction;
the network scanning module 1720 is configured to scan wireless network stations according to the information reporting instruction to obtain a second network identifier of at least one wireless network station;
an altitude determining module 1730, configured to determine terminal altitude information according to the information reporting instruction;
an information sending module 1740, configured to send the second network identifier and the terminal height information to the server, where the second network identifier and the terminal height information are used for the server to determine corresponding network height information when receiving the first network identifier sent by the target terminal; and determining the height information of the target terminal according to the network height information.
Reference may be made in connection with the above-described method embodiments.
Referring to fig. 18, a schematic structural diagram of an apparatus for locating a terminal according to an embodiment of the present application is shown. The terminal positioning device can be implemented by a dedicated hardware circuit or a combination of hardware and software as all or a part of a terminal, and includes: a first display module 1810, an operation receiving module 1820, and a second display module 1830.
A first display module 1810, configured to display a positioning control in a first display interface;
an operation receiving module 1820, configured to receive a positioning operation that acts on the positioning control, where the positioning operation is used to trigger the target terminal to position a current geographic location;
a second display module 1830, configured to display, according to the positioning operation, positioning information in a second display interface, where the positioning information includes longitude and latitude information and height information, and the height information is determined by the server according to network height information.
Reference may be made in connection with the above-described method embodiments.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The present application provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the method for positioning a terminal provided in the above-mentioned method embodiments.
The present application further provides a computer program product, which when running on a computer, causes the computer to execute the method for positioning a terminal provided by the above method embodiments.
The application also provides a terminal, which comprises a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the method for positioning the terminal provided by the above method embodiments.
Fig. 19 is a block diagram illustrating a terminal 1900 according to an exemplary embodiment of the present invention. The terminal 1900 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1900 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, and so on.
Generally, terminal 1900 includes: a processor 1901 and a memory 1902.
The processor 1901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1901 may be implemented in at least one of a DSP (Digital Signal Processing) and an FPGA (Field-Programmable Gate Array). The processor 1901 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, a portion of the computational power of the processor 1901 is implemented by a GPU (Graphics Processing Unit), which is responsible for rendering and drawing of display content. In some embodiments, the processor 1901 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
The memory 1902 may include one or more computer-readable storage media, which may be non-transitory. The memory 1902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1902 is used to store at least one instruction for execution by the processor 1901 to implement the method of locating a terminal provided by the method embodiments herein.
In some embodiments, terminal 1900 may further optionally include: a peripheral interface 1903 and at least one peripheral. The processor 1901, memory 1902, and peripheral interface 1903 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 1903 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1904, a touch screen display 1905, a camera 1906, an audio circuit 1907, a positioning component 1908, and a power supply 1909.
The peripheral interface 1903 may be used to connect at least one peripheral associated with an I/O (Input/Output) to the processor 1901 and the memory 1902. In some embodiments, the processor 1901, memory 1902, and peripherals interface 1903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1901, the memory 1902, and the peripheral interface 1903 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1904 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1904 communicates with a communication network and other communication devices via electromagnetic signals. The rf circuit 1904 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1904 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1904 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1905 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1905 is a touch display screen, the display screen 1905 also has the ability to capture touch signals on or above the surface of the display screen 1905. The touch signal may be input to the processor 1901 as a control signal for processing. At this point, the display 1905 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1905 may be one, providing the front panel of terminal 1900; in other embodiments, the displays 1905 can be at least two, each disposed on a different surface of the terminal 1900 or in a folded design; in still other embodiments, display 1905 can be a flexible display disposed on a curved surface or on a folding surface of terminal 1900. Even more, the display 1905 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1905 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1906 is used to capture images or video. Optionally, camera assembly 1906 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera head assembly 1906 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1907 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals into the processor 1901 for processing, or inputting the electric signals into the radio frequency circuit 1904 for realizing voice communication. The microphones may be provided in a plurality, respectively, at different locations of the terminal 1900 for stereo sound capture or noise reduction purposes. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1901 or the radio frequency circuitry 1904 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1907 may also include a headphone jack.
The positioning component 1908 is configured to locate a current geographic Location of the terminal 1900 for navigation or LBS (Location Based Service). The Positioning component 1908 may be a Positioning component based on a Global Positioning System (GPS) in the united states, a beidou System in china, a greiner System in russia, or a galileo System in the european union.
Power supply 1909 is used to provide power to the various components in terminal 1900. The power source 1909 can be alternating current, direct current, disposable batteries, or rechargeable batteries. When power supply 1909 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1900 also includes one or more sensors 1910. The one or more sensors 1910 include, but are not limited to: acceleration sensor 1911, gyro sensor 1912, pressure sensor 1913, fingerprint sensor 1914, optical sensor 1915, and proximity sensor 1916.
Acceleration sensor 1911 can detect the magnitude of acceleration in three coordinate axes of the coordinate system established by terminal 1900. For example, the acceleration sensor 1911 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1901 may control the touch screen 1905 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1911. The acceleration sensor 1911 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1912 may detect a body direction and a rotation angle of the terminal 1900, and the gyro sensor 1912 may collect a 3D motion of the user on the terminal 1900 in cooperation with the acceleration sensor 1911. From the data collected by the gyro sensor 1912, the processor 1901 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1913 may be disposed on a side bezel of terminal 1900 and/or on a lower layer of touch display 1905. When the pressure sensor 1913 is disposed on the side frame of the terminal 1900, the user can detect a grip signal of the terminal 1900, and the processor 1901 can perform right-left hand recognition or shortcut operation based on the grip signal collected by the pressure sensor 1913. When the pressure sensor 1913 is disposed at the lower layer of the touch display 1905, the processor 1901 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 1905. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1914 is configured to collect a fingerprint of the user, and the processor 1901 identifies the user according to the fingerprint collected by the fingerprint sensor 1914, or the fingerprint sensor 1914 identifies the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, the processor 1901 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for, and changing settings, etc. Fingerprint sensor 1914 may be disposed on a front, back, or side of terminal 1900. When a physical button or vendor Logo is provided on terminal 1900, fingerprint sensor 1914 may be integrated with the physical button or vendor Logo.
The optical sensor 1915 is used to collect the ambient light intensity. In one embodiment, the processor 1901 may control the display brightness of the touch screen 1905 based on the ambient light intensity collected by the optical sensor 1915. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1905 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1905 is turned down. In another embodiment, the processor 1901 may also dynamically adjust the shooting parameters of the camera assembly 1906 according to the intensity of the ambient light collected by the optical sensor 1915.
Proximity sensor 1916, also referred to as a distance sensor, is typically disposed on the front panel of terminal 1900. Proximity sensor 1916 is used to gather the distance between the user and the front face of terminal 1900. In one embodiment, when proximity sensor 1916 detects that the distance between the user and the front surface of terminal 1900 gradually decreases, processor 1901 controls touch display 1905 to switch from the bright screen state to the rest screen state; when the proximity sensor 1916 detects that the distance between the user and the front surface of the terminal 1900 gradually becomes larger, the processor 1901 controls the touch display 1905 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in FIG. 19 is not intended to be limiting of terminal 1900 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
The application also provides a server, which comprises a processor and a memory, wherein at least one instruction is stored in the memory, and the at least one instruction is loaded and executed by the processor to implement the method for positioning the terminal provided by the above method embodiments.
Referring to fig. 20, a structural framework diagram of a server according to an embodiment of the present invention is shown. The server 2000 includes a Central Processing Unit (CPU)2001, a system memory 2004 including a Random Access Memory (RAM)2002 and a Read Only Memory (ROM)2003, and a system bus 2005 connecting the system memory 2004 and the central processing unit 2001. The server 2000 also includes a basic input/output system (I/O system) 2006 to facilitate transfer of information between devices within the computer, and a mass storage device 2007 to store an operating system 2013, application programs 2014, and other program modules 2015.
The basic input/output system 2006 includes a display 2008 for displaying information and an input device 2009 such as a mouse, keyboard, etc. for a user to input information. Wherein the display 2008 and the input devices 2009 are coupled to the central processing unit 2001 through an input-output controller 2010 coupled to the system bus 2005. The basic input/output system 2006 may also include an input/output controller 2010 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 2010 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 2007 is connected to the central processing unit 2001 through a mass storage controller (not shown) connected to the system bus 2005. The mass storage device 2007 and its associated computer-readable media provide non-volatile storage for the server 2000. That is, the mass storage device 2007 may include a computer-readable medium (not shown) such as a hard disk or a CD-ROI drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 2004 and mass storage device 2007 described above may be collectively referred to as memory.
The memory stores one or more programs configured to be executed by the one or more central processing units 701, the one or more programs containing instructions for implementing the method for positioning a terminal as described above, and the central processing unit 701 executes the one or more programs to implement the method for positioning a terminal as provided by the various method embodiments described above.
The server 2000 may also operate as a remote computer connected to a network via a network, such as the internet, according to various embodiments of the present invention. That is, the server 2000 may be connected to the network 2012 through a network interface unit 2011 that is coupled to the system bus 2005, or the network interface unit 2011 may be utilized to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs, the one or more programs are stored in the memory, and the one or more programs include steps executed by the management system 200 for performing the graphic code display method provided by the embodiment of the present invention.
It will be understood by those skilled in the art that all or part of the steps in the method for positioning the terminal according to the above embodiments may be implemented by hardware, or may be implemented by a program instructing associated hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, or the like. In other words, the storage medium has at least one instruction, at least one program, code set, or instruction set stored therein, which is loaded and executed by a processor to implement the method for locating a terminal as described in the above respective method embodiments.

Claims (13)

1. A method for locating a terminal, the method comprising:
receiving a positioning request sent by a target terminal, wherein the positioning request carries a first network identifier of at least one wireless network station scanned by the target terminal;
acquiring network height information corresponding to the first network identifier, wherein the network height information is used for representing the height corresponding to the wireless network stations, and the network height information of each wireless network station is determined by a server according to terminal height information reported by at least one other terminal;
determining the height information of the target terminal according to the network height information;
before the obtaining of the network height information corresponding to the first network identifier, the method further includes:
receiving a second network identifier and terminal height information sent by the at least one other terminal;
acquiring m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, wherein m is a positive integer;
for m pieces of terminal height information corresponding to each second network identifier, determining the maximum value and the minimum value of the m pieces of terminal height information;
determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value;
extracting n interval data in the data extraction interval, wherein n is an integer greater than 1;
calculating the occurrence probability corresponding to each interval data in the n interval data;
and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
2. The method of claim 1, wherein the location request further comprises a signal strength of the at least one wireless network station;
the obtaining of the network height information corresponding to the first network identifier includes:
determining k first network identifiers with signal strength meeting the strength condition;
acquiring network height information corresponding to each first network identifier in the k first network identifiers to obtain k network height information;
wherein the intensity conditions include: the signal intensity is higher than the preset intensity and/or the signal intensity is ranked at the top k according to the sequence from big to small, and k is a positive integer.
3. The method according to claim 2, wherein the determining the altitude information of the target terminal according to the network altitude information comprises:
and calculating the weighted average value of the k network height information to obtain the height information of the target terminal.
4. A method for locating a terminal, the method comprising:
receiving a positioning operation, wherein the positioning operation is used for triggering a target terminal to position the current geographic position;
scanning wireless network stations according to the positioning operation to obtain a first network identifier of at least one wireless network station;
generating a positioning request according to the first network identifier;
sending the positioning request to a server, wherein the positioning request is used for triggering the server to determine network height information corresponding to the first network identifier and determining height information of the target terminal according to the network height information, and the network height information of each wireless network station is determined by the server according to terminal height information reported by at least one other terminal;
displaying the height information fed back by the server;
the server determines the network height information of each wireless network station according to the terminal height information reported by at least one other terminal, and the method comprises the following steps: receiving a second network identifier and terminal height information sent by the at least one other terminal; acquiring m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, wherein m is a positive integer; for m pieces of terminal height information corresponding to each second network identifier, determining the maximum value and the minimum value of the m pieces of terminal height information; determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value; extracting n interval data in the data extraction interval, wherein n is an integer greater than 1; calculating the occurrence probability corresponding to each interval data in the n interval data; and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
5. A method for locating a terminal, the method comprising:
acquiring an information reporting instruction;
scanning the wireless network stations according to the information reporting instruction to obtain a second network identifier of at least one wireless network station;
determining terminal height information according to the information reporting instruction;
the second network identification and the terminal height information are sent to a server, and the second network identification and the terminal height information are used for determining corresponding network height information when the server receives the first network identification sent by the target terminal; determining the height information of the target terminal according to the network height information, wherein the network height information of each wireless network station is determined by the server according to the terminal height information reported by at least one other terminal;
the step of determining, by the server, the network altitude information of each wireless network station according to the terminal altitude information reported by at least one other terminal includes: receiving a second network identifier and terminal height information sent by the at least one other terminal; acquiring m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, wherein m is a positive integer; for m pieces of terminal height information corresponding to each second network identifier, determining the maximum value and the minimum value of the m pieces of terminal height information; determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value; extracting n interval data in the data extraction interval, wherein n is an integer greater than 1; calculating the occurrence probability corresponding to each interval data in the n interval data; and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
6. A method for locating a terminal, the method comprising:
displaying a positioning control in a first display interface;
receiving a positioning operation acting on the positioning control, wherein the positioning operation is used for triggering a target terminal to position the current geographic position;
displaying positioning information in a second display interface according to the positioning operation, wherein the positioning information comprises longitude and latitude information and height information, the height information is determined by a server according to network height information, the network height information is used for representing the height corresponding to a wireless network station, and the network height information of each wireless network station is determined by the server according to terminal height information reported by at least one other terminal;
the server determines the network height information of each wireless network station according to the terminal height information reported by at least one other terminal, and the method comprises the following steps: receiving a second network identifier and terminal height information sent by the at least one other terminal; acquiring m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, wherein m is a positive integer; for m pieces of terminal height information corresponding to each second network identifier, determining the maximum value and the minimum value of the m pieces of terminal height information; determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value; extracting n interval data from the data extraction interval, wherein n is an integer greater than 1; calculating the occurrence probability corresponding to each interval data in the n interval data; and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
7. An apparatus for locating a terminal, the apparatus comprising:
a request receiving module, configured to receive a positioning request sent by a target terminal, where the positioning request carries a first network identifier of at least one wireless network station scanned by the target terminal;
an information obtaining module, configured to obtain network height information corresponding to the first network identifier, where the network height information is used to indicate a height corresponding to the wireless network station, and the network height information of each wireless network station is determined by a server according to terminal height information reported by at least one other terminal;
the height determining module is used for determining the height information of the target terminal according to the network height information;
the device further comprises:
the information receiving module is used for receiving the second network identification and the terminal height information sent by the at least one other terminal;
a terminal height obtaining module, configured to obtain m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, where m is a positive integer;
the network height determining module is used for determining the maximum value and the minimum value of m pieces of terminal height information corresponding to each second network identifier; determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value; extracting n interval data from the data extraction interval, wherein n is an integer greater than 1; calculating the occurrence probability corresponding to each interval data in the n interval data; and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
8. An apparatus for locating a terminal, the apparatus comprising:
the operation receiving module is used for receiving positioning operation, and the positioning operation is used for triggering the target terminal to position the current geographic position;
the network scanning module is used for scanning the wireless network stations according to the positioning operation to obtain a first network identifier of at least one wireless network station;
a request generating module, configured to generate a location request according to the first network identifier;
a request sending module, configured to send the location request to a server, where the location request is used to trigger the server to determine network altitude information corresponding to the first network identifier, and determine altitude information of the target terminal according to the network altitude information, where the network altitude information of each wireless network site is determined by the server according to terminal altitude information reported by at least one other terminal;
the information display module is used for displaying the height information fed back by the server;
the server determines the network height information of each wireless network station according to the terminal height information reported by at least one other terminal, and the method comprises the following steps: receiving a second network identifier and terminal height information sent by the at least one other terminal; acquiring m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, wherein m is a positive integer; for m pieces of terminal height information corresponding to each second network identifier, determining the maximum value and the minimum value of the m pieces of terminal height information; determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value; extracting n interval data in the data extraction interval, wherein n is an integer greater than 1; calculating the occurrence probability corresponding to each interval data in the n interval data; and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
9. An apparatus for locating a terminal, the apparatus comprising:
the instruction acquisition module is used for acquiring an information reporting instruction;
the network scanning module is used for scanning the wireless network stations according to the information reporting instruction to obtain a second network identifier of at least one wireless network station;
the height determining module is used for determining the height information of the terminal according to the information reporting instruction;
the information sending module is used for sending the second network identifier and the terminal height information to a server, and the second network identifier and the terminal height information are used for determining corresponding network height information when the server receives the first network identifier sent by the target terminal; determining the height information of the target terminal according to the network height information, wherein the network height information of each wireless network station is determined by the server according to the terminal height information reported by at least one other terminal;
the server determines the network height information of each wireless network station according to the terminal height information reported by at least one other terminal, and the method comprises the following steps: receiving a second network identifier and terminal height information sent by the at least one other terminal; acquiring m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, wherein m is a positive integer; for m pieces of terminal height information corresponding to each second network identifier, determining the maximum value and the minimum value of the m pieces of terminal height information; determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value; extracting n interval data in the data extraction interval, wherein n is an integer greater than 1; calculating the occurrence probability corresponding to each interval data in the n interval data; and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
10. An apparatus for locating a terminal, the apparatus comprising:
the first display module is used for displaying the positioning control in the first display interface;
the operation receiving module is used for receiving a positioning operation acting on the positioning control, and the positioning operation is used for triggering the target terminal to position the current geographic position;
a second display module, configured to display positioning information in a second display interface according to the positioning operation, where the positioning information includes latitude and longitude information and height information, the height information is determined by a server according to network height information, and the network height information is used to indicate a height corresponding to a wireless network station, where the network height information of each wireless network station is determined by the server according to terminal height information reported by at least one other terminal;
the server determines the network height information of each wireless network station according to the terminal height information reported by at least one other terminal, and the method comprises the following steps: receiving a second network identifier and terminal height information sent by the at least one other terminal; acquiring m pieces of terminal height information corresponding to each second network identifier from the second network identifiers and the terminal height information sent by the at least one other terminal, wherein m is a positive integer; for m pieces of terminal height information corresponding to each second network identifier, determining the maximum value and the minimum value of the m pieces of terminal height information; determining a data extraction interval according to the minimum value and the maximum value, wherein the data extraction interval comprises the minimum value and the maximum value; extracting n interval data in the data extraction interval, wherein n is an integer greater than 1; calculating the occurrence probability corresponding to each interval data in the n interval data; and multiplying each interval data by the corresponding occurrence probability to obtain the network height information corresponding to the second network identifier.
11. A server, characterized in that it comprises a processor and a memory, in which at least one instruction is stored, which is loaded and executed by the processor to implement the method of positioning a terminal according to any one of claims 1 to 3.
12. A terminal, characterized in that it comprises a processor and a memory, in which at least one instruction is stored, which is loaded and executed by the processor to implement the method of locating a terminal according to claim 4 or 5 or 6.
13. A computer-readable storage medium, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the method for positioning a terminal according to any one of claims 1 to 3; or implementing a method of positioning a terminal as claimed in claim 4, or implementing a method of positioning a terminal as claimed in claim 5; alternatively, a method of positioning a terminal as claimed in claim 6 is implemented.
CN201810082355.8A 2018-01-29 2018-01-29 Method and device for positioning terminal Active CN110095792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810082355.8A CN110095792B (en) 2018-01-29 2018-01-29 Method and device for positioning terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810082355.8A CN110095792B (en) 2018-01-29 2018-01-29 Method and device for positioning terminal

Publications (2)

Publication Number Publication Date
CN110095792A CN110095792A (en) 2019-08-06
CN110095792B true CN110095792B (en) 2022-05-20

Family

ID=67442062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810082355.8A Active CN110095792B (en) 2018-01-29 2018-01-29 Method and device for positioning terminal

Country Status (1)

Country Link
CN (1) CN110095792B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111340887B (en) * 2020-02-26 2023-12-29 Oppo广东移动通信有限公司 Visual positioning method, visual positioning device, electronic equipment and storage medium
CN117545064A (en) * 2022-07-26 2024-02-09 上海华为技术有限公司 Vertical positioning method and server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384070A (en) * 2007-09-06 2009-03-11 大唐移动通信设备有限公司 Mobile terminal positioning method, device and system
KR20090085342A (en) * 2008-02-04 2009-08-07 삼성전자주식회사 Apparatus and medhod for supporting location based service using other network in wireless communication system
WO2010042586A1 (en) * 2008-10-07 2010-04-15 Molex Incorporated Termination cap for use in wired network management system
CN102075936A (en) * 2010-12-28 2011-05-25 中兴通讯股份有限公司 Positioning method and terminal
CN103068035A (en) * 2011-10-21 2013-04-24 中国移动通信集团公司 Wireless network location method, device and system
CN103841642A (en) * 2014-03-10 2014-06-04 北京工业大学 Three-dimensional positioning method in a room
CN107153171A (en) * 2016-03-04 2017-09-12 腾讯科技(深圳)有限公司 Indoor orientation method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101384070A (en) * 2007-09-06 2009-03-11 大唐移动通信设备有限公司 Mobile terminal positioning method, device and system
KR20090085342A (en) * 2008-02-04 2009-08-07 삼성전자주식회사 Apparatus and medhod for supporting location based service using other network in wireless communication system
WO2010042586A1 (en) * 2008-10-07 2010-04-15 Molex Incorporated Termination cap for use in wired network management system
CN102075936A (en) * 2010-12-28 2011-05-25 中兴通讯股份有限公司 Positioning method and terminal
CN103068035A (en) * 2011-10-21 2013-04-24 中国移动通信集团公司 Wireless network location method, device and system
CN103841642A (en) * 2014-03-10 2014-06-04 北京工业大学 Three-dimensional positioning method in a room
CN107153171A (en) * 2016-03-04 2017-09-12 腾讯科技(深圳)有限公司 Indoor orientation method, device and system

Also Published As

Publication number Publication date
CN110095792A (en) 2019-08-06

Similar Documents

Publication Publication Date Title
CN108924737B (en) Positioning method, device, equipment and computer readable storage medium
CN110278464B (en) Method and device for displaying list
CN111182453A (en) Positioning method, positioning device, electronic equipment and storage medium
CN109165606B (en) Vehicle information acquisition method and device and storage medium
CN110944374B (en) Communication mode selection method and device, electronic equipment and medium
CN109117635B (en) Virus detection method and device for application program, computer equipment and storage medium
CN108769893B (en) Terminal detection method and terminal
CN113763228B (en) Image processing method, device, electronic equipment and storage medium
CN110535890B (en) File uploading method and device
CN110536236B (en) Communication method, terminal equipment and network equipment
CN110095792B (en) Method and device for positioning terminal
CN109813300B (en) Positioning method and terminal equipment
CN110471614B (en) Method for storing data, method and device for detecting terminal
CN112991439B (en) Method, device, electronic equipment and medium for positioning target object
CN111754564B (en) Video display method, device, equipment and storage medium
KR101749393B1 (en) Watch-type mobile terminal and dispaying method thereof
CN109618278B (en) Positioning method and mobile terminal
CN110891122A (en) Wallpaper pushing method and electronic equipment
CN114143280B (en) Session display method and device, electronic equipment and storage medium
CN112087719B (en) Map area determination method, map area determination device, map area determination equipment and storage medium
CN113099378B (en) Positioning method, device, equipment and storage medium
CN112835021B (en) Positioning method, device, system and computer readable storage medium
CN111159168B (en) Data processing method and device
CN111314205B (en) Instant messaging matching method, device, system, equipment and storage medium
CN111984755A (en) Method and device for determining target parking point, 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