CN112312308B - Indoor positioning method and terminal equipment - Google Patents

Indoor positioning method and terminal equipment Download PDF

Info

Publication number
CN112312308B
CN112312308B CN202011199506.1A CN202011199506A CN112312308B CN 112312308 B CN112312308 B CN 112312308B CN 202011199506 A CN202011199506 A CN 202011199506A CN 112312308 B CN112312308 B CN 112312308B
Authority
CN
China
Prior art keywords
local area
wireless local
target
information
area network
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
CN202011199506.1A
Other languages
Chinese (zh)
Other versions
CN112312308A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius Technology 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN202011199506.1A priority Critical patent/CN112312308B/en
Publication of CN112312308A publication Critical patent/CN112312308A/en
Application granted granted Critical
Publication of CN112312308B publication Critical patent/CN112312308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/33Services specially adapted for particular environments, situations or purposes for indoor environments, e.g. buildings
    • 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 embodiment of the invention discloses an indoor positioning method and terminal equipment, which are used for solving the problem that accurate floor information cannot be obtained by the terminal equipment started for the first time. Comprising the following steps: after the terminal equipment is started up for the first time, acquiring the received information of N wireless local area networks, wherein the information of the wireless local area networks comprises: receiving signal intensity, or receiving signal intensity and identification information; judging whether first type identifiers exist in the information of the N wireless local area networks or not, wherein the first type identifiers are used for representing indoor floor information corresponding to the wireless local area networks marked by other users; if the first type of identification exists in the information of M wireless local area networks in the N wireless local area networks, acquiring target indoor floor information corresponding to a target wireless local area network, wherein the target wireless local area network is a wireless local area network with the received signal strength greater than the preset strength in the M wireless local area networks; and outputting the information of the floor in the target room. The method is applied to a scene of indoor positioning of the terminal equipment started for the first time.

Description

Indoor positioning method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of terminal equipment, in particular to an indoor positioning method and terminal equipment.
Background
At present, most of terminal equipment in time length has a positioning function, and for indoor floor positioning, most of terminal equipment adopts a wireless local area network (Wireless Fidelity, wiFi) and air pressure combination mode to position, but for a watch which is just sold, real-time WiFi at the position and air pressure information among different floors are not stored in the watch, so that a user cannot obtain accurate floor information.
Disclosure of Invention
The embodiment of the invention provides an indoor positioning method and terminal equipment, which are used for solving the problem that the terminal equipment started for the first time cannot obtain accurate floor information in the prior art. In order to solve the technical problems, the embodiment of the invention is realized as follows:
in a first aspect, there is provided an indoor positioning method, the method comprising: after the terminal equipment is started up for the first time, acquiring the received information of N wireless local area networks, wherein the information of the wireless local area networks comprises: receiving signal intensity, or receiving signal intensity and identification information, wherein N is an integer greater than or equal to 1;
judging whether first type identifiers exist in the information of the N wireless local area networks or not, wherein the first type identifiers are used for representing that other users mark indoor floor information corresponding to the wireless local area networks;
If the first type identifier exists in the information of M wireless local area networks in the N wireless local area networks, acquiring target indoor floor information corresponding to a target wireless local area network, wherein the target wireless local area network is a wireless local area network with the received signal strength greater than a preset strength in the M wireless local area networks, M is an integer greater than or equal to 1, and M is less than or equal to N;
and outputting the information of the target indoor floor.
In a first aspect of the embodiment of the present invention, the obtaining target indoor floor information corresponding to the target wireless local area network includes:
judging whether second type identifiers exist in the information of the M wireless local area networks or not, wherein the second type identifiers are used for marking that the wireless local area networks have no security risk;
if the second type identifier exists in the information of P wireless local area networks in the M wireless local area networks, determining the target wireless local area network from the P wireless local area networks, wherein P is an integer greater than or equal to 1, and P is less than or equal to M;
and acquiring the indoor floor information of the target corresponding to the target wireless local area network, wherein the target wireless local area network is specifically a wireless local area network with the received signal strength larger than the preset strength in the P wireless local area networks.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before obtaining the target indoor floor information corresponding to the target wireless local area network, the method further includes:
connecting the target wireless local area network to establish communication connection with a target routing device;
the obtaining the target indoor floor information corresponding to the target wireless local area network comprises the following steps:
a first request message is sent to the target routing equipment, wherein the first request message is used for requesting the target indoor floor information corresponding to the target wireless local area network to the target routing equipment; the first request message comprises the identifier of the target wireless local area network, so that the target routing equipment searches the indoor floor information of the target corresponding to the target wireless local area network according to the identifier of the target wireless local area network;
and receiving the information of the target indoor floor returned by the target routing equipment.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before obtaining the target indoor floor information corresponding to the target wireless local area network, the method further includes:
the public wireless local area network of the building where the user is located is connected to establish communication connection with a server of the building;
The obtaining the target indoor floor information corresponding to the target wireless local area network comprises the following steps:
sending a second request message to a server of the building, wherein the second request message is used for requesting the server of the building for the target indoor floor information corresponding to the target wireless local area network; the second request message comprises the identification of the target wireless local area network, so that the server of the building searches the indoor floor information corresponding to the target local area network according to the identification of the target wireless local area network;
and receiving the information of the target indoor floor returned by the server of the building.
In an optional implementation manner, in a first aspect of the embodiment of the present invention, the acquiring information of the received N wireless local area networks includes:
responding to a first instruction sent by the user, and acquiring the received information of N wireless local area networks;
or,
and responding to a second instruction sent by target equipment associated with the terminal equipment, and acquiring the received information of the N wireless local area networks.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the outputting the target indoor floor information, the method further includes:
Displaying a first interface and a prompt message, wherein the prompt message is used for prompting the user to input personal information in the first interface;
responding to the touch input operation of the user on the first interface, and acquiring the personal information of the user, wherein the personal information comprises: at least one of a user age, a user gender, and a user's hobbies of interests;
acquiring building information of the current position of the user through a positioning method;
and acquiring recommendation information according to the user information, the indoor floor information and the building information, wherein the recommendation information is used for recommending a target shop within a preset range of the indoor floor information to the user.
And outputting the recommendation information.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before the outputting the recommendation information, in a case that the building is a mall, the method further includes:
applying for obtaining a map of the building from a server of the building;
marking the target store in the map, or marking the target store in the map and marking a route of the user to the target store in combination with the current position of the user;
Outputting the marked map.
In a second aspect, there is provided a terminal device comprising: the acquiring module is configured to acquire information of the N received wireless local area networks after the terminal device is initially powered on, where the information of the wireless local area networks includes: receiving signal intensity, or receiving signal intensity and identification information, wherein N is an integer greater than or equal to 1;
the judging module is used for judging whether first type identifiers exist in the information of the N wireless local area networks or not, wherein the first type identifiers are used for representing that other users mark indoor floor information corresponding to the wireless local area networks;
the acquiring module is further configured to acquire target indoor floor information corresponding to a target wireless local area network if the first type identifier exists in information of M wireless local area networks in the N wireless local area networks, where the target wireless local area network is a wireless local area network in which the received signal strength is greater than a preset strength in the M wireless local area networks, M is an integer greater than or equal to 1, and M is less than or equal to N;
and the output module is used for outputting the information of the target indoor floor.
In a third aspect, there is provided a terminal device comprising:
A memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to execute the indoor positioning method in the first aspect of the embodiment of the present invention.
In a fourth aspect, a computer-readable storage medium storing a computer program for causing a computer to execute the indoor positioning method in the first aspect of the embodiment of the present invention is provided. The computer readable storage medium includes ROM/RAM, magnetic disk or optical disk, etc.
In a fifth aspect, there is provided a computer program product for causing a computer to carry out some or all of the steps of any one of the methods of the first aspect when the computer program product is run on the computer.
In a sixth aspect, an application publishing platform is provided for publishing a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform part or all of the steps of any one of the methods of the first aspect.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: in the embodiment of the invention, the terminal equipment can acquire the information of a plurality of wireless local area networks after the terminal equipment is started up for the first time, and selects the wireless local area network marked by other users with corresponding indoor floor information, so that the terminal equipment can acquire the floor information corresponding to the wireless local area network directly through the wireless local area network; then selecting a wireless local area network with the received signal strength larger than the preset strength as a target wireless local area network, wherein the wireless local area network with the received signal strength larger than the preset strength indicates that the current positions of the wireless local area network and the terminal equipment are relatively close, so that the indoor floor information corresponding to the target wireless local area network can be ensured to be the floor information of the terminal equipment at present, and the accuracy of the indoor positioning method is greatly improved; and finally, acquiring indoor floor information corresponding to the target wireless local area network, namely the floor information of the terminal equipment at present.
According to the technical scheme, the terminal equipment which is started up for the first time does not need to acquire multiple air pressure values to compare so as to determine indoor floor information, and the indoor floor information which is currently located can be determined directly through the wireless local area network which is searched by the current position, is marked by other users and has the received signal strength larger than the preset strength, so that the finally determined indoor floor information is more accurate.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an indoor positioning method according to an embodiment of the present invention;
fig. 2 is a second flow chart of an indoor positioning method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart III of an indoor positioning method according to an embodiment of the present invention;
fig. 4a is a schematic flow chart of an indoor positioning method according to an embodiment of the present invention;
Fig. 4b is a schematic view of a scenario of an indoor positioning method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram two of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms first and second and the like in the description and in the claims, are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order of the objects. For example, the first request message and the second request message, etc., are used to distinguish between different request messages, and are not used to describe a particular order of request messages.
The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
The embodiment of the invention provides an indoor positioning method and terminal equipment, which can directly determine specific indoor floor information through a wireless local area network searched by the current position and are simple to operate.
The terminal device related to the embodiment of the invention can be electronic devices such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA) and the like. The wearable device may be an intelligent watch, an intelligent bracelet, a watch phone, an intelligent foot ring, an intelligent earring, an intelligent necklace, an intelligent earphone, etc., and the embodiment of the invention is not limited.
The execution main body of the indoor positioning method provided by the embodiment of the invention can be the terminal equipment, or can be a functional module and/or a functional entity which can realize the indoor positioning method in the terminal equipment, and the execution main body can be specifically determined according to actual use requirements. An indoor positioning method provided by the embodiment of the invention is described below by taking a terminal device as an example.
The indoor positioning method provided by the embodiment of the invention can be applied to a scene of indoor positioning of the terminal equipment which is started up for the first time.
Example 1
As shown in fig. 1, an embodiment of the present invention provides an indoor positioning method, which may include the following steps:
101. the terminal equipment acquires the received information of the N wireless local area networks.
After the terminal equipment is started up for the first time, the terminal equipment acquires the received information of N wireless local area networks.
In the embodiment of the invention, the information of the wireless local area network comprises: and receiving signal intensity or receiving signal intensity and identification information, wherein N is an integer greater than or equal to 1.
Optionally, the received signal strength in the embodiment of the present invention may be used to measure the strength of a received signal of a wireless lan.
In the embodiment of the invention, two types of physical quantities can be adopted to represent the received signal strength, namely dBm and asu.
Wherein dBm is a ratio based on 1mW power, and a specific calculation formula is as follows:the dBm value is negative and a larger value indicates a stronger received signal strength.
asu is a unique signal unit defined for a terminal device configuring an android system and may represent a signal transmission rate between the terminal device and a device (e.g., a router or a base station) transmitting the received signal, the asu value is a positive number, and a larger value indicates a stronger received signal strength. There is a certain conversion relation between dBm and asu, dbm= -113+2 asu.
As an alternative implementation manner, obtaining the received information of N wireless local area networks may include two implementation manners:
the implementation mode is as follows: and responding to a first instruction sent by the user, and acquiring the received information of the N wireless local area networks by the terminal equipment.
After the terminal equipment is started up for the first time, the terminal equipment can respond to a first instruction sent by a user to acquire the received information of the N wireless local area networks. The first instruction is used for indicating to acquire information of the wireless local area network.
The implementation mode II is as follows: and responding to a second instruction sent by target equipment associated with the terminal equipment, and acquiring the received information of the N wireless local area networks by the terminal equipment. The second instruction is used for indicating the terminal equipment to acquire the information of the wireless local area network.
After the terminal equipment is started up for the first time, the received information of N wireless local area networks is obtained in response to a second instruction sent by an associated user of target equipment associated with the terminal equipment.
It should be noted that the first instruction and the second instruction may specifically have various forms, for example, a clicking operation of a virtual control or a physical button in the terminal device by a user, or a gesture instruction set by the user, or a voice instruction related to positioning input by the user, which is not limited in the embodiment of the present invention.
The optional implementation manner can respond to the instruction sent by the user or the user of the target device associated with the terminal device to acquire the received information of the N wireless local area networks.
If the first user of the terminal device is a minor, the target device with which the terminal device is associated may be the terminal device of the first user guardian. When the first user guardian wants to know the specific floor position of the first user, the target equipment can send an instruction to the terminal equipment of the first user, so that the terminal equipment can perform indoor positioning through the indoor positioning method in the embodiment of the invention.
The technical scheme can help the user or the guardian of the user to acquire the specific floor position of the user, and the user experience is enhanced.
102. And judging whether the first type of identification exists in the information of the N wireless local area networks.
In the embodiment of the invention, the first type identifier is used for representing that other users mark indoor floor information corresponding to the wireless local area network. That is, when the wireless lan has been marked by other users with corresponding indoor floor information, a first type of identification may be displayed, and the first type of identification may be a text identification or a graphic identification.
For example, when the first type of identifier is a text identifier, it may be denoted as "the network is marked.
When the first type of identifier is a graphic identifier, it may be denoted by "×", which is not limited by the embodiment of the present invention.
When a terminal device of another user (hereinafter, referred to as a "first terminal device") is connected to a certain wireless lan, the first terminal device issues a marking task to the other user, the other user may mark current indoor floor information after receiving the marking task, the first terminal device obtains the indoor floor information marked by the other user, and then sends the marked indoor floor information to a routing device, and the routing device stores the marked indoor floor information and the wireless lan correspondingly. When the user obtains the received information of the N wireless local area networks, the wireless local area networks marked with the indoor floor information corresponding to the wireless local area networks display the first type of identification.
The indoor floor information may include: floor information of the terminal equipment, or building information of the terminal equipment, and floor information of the building.
The floor information may be a name or a sign of a floor, and the building information may be a name or a sign of a building.
For example, when the user b sits in the store a of the third layer of the store a, the wireless local area network in the store a is connected, then the terminal device of the user b issues a marking task to the user b, after receiving the marking task, the user b marks the wireless local area network in the current store a on the terminal device, marks that the current wireless local area network is located at the third layer, or marks that the current wireless local area network is located at the third layer of the store a, then the terminal device sends the marked indoor floor information to the routing device, and the routing device stores the indoor floor information corresponding to the wireless local area network in the store a. When the terminal equipment of the user A is started up for the first time, and when the wireless local area network is searched, if the wireless local area network in the store A can be searched, the wireless local area network displays a graphical identifier, and the user A can know that the wireless local area network in the store A is the wireless local area network marked by other users with indoor floor information corresponding to the wireless local area network.
103. And acquiring target indoor floor information corresponding to the target wireless local area network.
In the embodiment of the invention, if the first type identifier exists in the information of M wireless local area networks in N wireless local area networks acquired by the terminal equipment, the terminal equipment can determine the wireless local area network with the received signal strength greater than the preset strength from the M wireless local area networks as a target wireless local area network, and acquire the target indoor floor information corresponding to the target wireless local area network, wherein the target indoor floor information specifically comprises the floor where the user is currently located. Wherein M is an integer greater than or equal to 1, and M is less than or equal to N.
For example, if the received signal strength of a wireless lan acquired by a terminal device is greater, it may be explained that the distance between an access point (e.g., may be a routing device) of the wireless lan and the terminal device is closer. The preset strength is set by the terminal equipment according to the relation between the received signal strength and the distance, so that the user can be connected with the wireless local area network closest to the terminal equipment, and the preset strength is-91 dBm, N is 10, and M is 5. After the terminal equipment of the user A is started up for the first time, when searching for the wireless local area networks, 10 wireless local area networks are searched, 5 wireless local area networks in the 10 wireless local area networks display a graphical identifier, namely the 5 wireless local area networks are marked by other users with indoor floor information corresponding to the wireless local area networks. At this time, the terminal device may detect the received signal strengths of the 5 wlans, to obtain the received signal strengths of the 5 wlans as-91.1 dBm, -94dBm, -90.1dBm, -92dBm, and-91.6 dBm, respectively, where-90.1 dBm is greater than-91 dBm. Then the wireless local area network with the received signal strength of-90.1 dBm can be determined as the target wireless local area network and the target indoor floor information corresponding to the target wireless local area network can be obtained.
104. And outputting the information of the floor in the target room.
The terminal device outputs the obtained information of the target indoor floor, and the specific output mode can be that the information is displayed on a display screen of the terminal device.
The embodiment of the invention provides an indoor positioning method, wherein a terminal device can determine a target wireless local area network which is marked with corresponding indoor floor information and has a received signal strength larger than a preset strength in a plurality of wireless local area networks, and acquire the indoor floor information corresponding to the target wireless local area network, so that the indoor floor information of the terminal device is obtained. According to the technical scheme, the terminal equipment which is started up for the first time does not need to acquire multiple air pressure values to compare so as to determine indoor floor information, the specific indoor floor can be directly determined through the marked indoor floor information in the wireless local area network, the received signal strength of which is greater than the preset strength and is searched by the current position, and the indoor floor information acquired by the terminal equipment is more accurate.
As an optional implementation manner, the acquiring the target indoor floor information corresponding to the target wireless local area network includes: judging whether a second type identifier exists in the information of the M wireless local area networks; if the second type of identification exists in the information of P wireless local area networks in the M wireless local area networks, determining a target wireless local area network from the P wireless local area networks, wherein P is an integer greater than or equal to 1, and P is less than or equal to M; and acquiring target indoor floor information corresponding to a target wireless local area network, wherein the target wireless local area network is specifically a wireless local area network with the received signal strength of more than preset strength in P wireless local area networks.
Wherein the second type of identification is used to mark that the wireless local area network has no security risk. That is, after the terminal device performs security detection on the wireless lan, if the wireless lan is secure, a second type of identifier may be displayed, where the second type of identifier may be a text identifier or a graphic identifier.
For example, when the second type of identifier is a text identifier, it may be denoted as "the network security".
When the second type of identifier is a graphic identifier, it may be represented as "#", which is not limited by the embodiment of the present invention.
It should be noted that, the wlan establishes connection in a wireless manner, but this transmission manner tends to have a great security problem. Generally, wireless local area networks employ security techniques including authentication, encryption, data integrity protection, and the like. The authentication comprises the following steps: when a user logs in a wireless local area network, the user needs to input a specific password or identity information for verification, such as inputting a mobile phone number to acquire a verification code, inputting an access password of the wireless local area network or checking the identity of the user by a specific mechanism and issuing a digital certificate bound with the identity information; the encryption includes: data encryption standard (Data Encryption Standard, DES), advanced encryption standard (Anvanced Encryption Standard, AES) and commercial block cipher algorithm (SM 4). The data integrity protection is to make the receiver able to determine exactly whether the received message is damaged in the form of insertion, tampering, reordering, etc. during the transmission process, and the perfect data integrity service can find whether the integrity is damaged or not, and can take some measure to recover from the integrity.
For example, if the received signal strength of a wireless lan acquired by a terminal device is greater, it may be explained that the distance between an access point of the wireless lan and the terminal device is closer. The preset strength is set by the terminal equipment according to the relation between the received signal strength and the distance, so that the user can be connected with the wireless local area network closest to the terminal equipment, and the preset strength is-91 dBm, M is 5 and P is 3. The terminal equipment judges whether the second type of identification exists in the information of the 5 wireless local area networks, if the terminal equipment detects that 3 wireless local area networks in the 5 wireless local area networks display "#" graphic identifications, namely the 3 wireless local area networks have no security risk. At this time, the terminal device may detect the received signal strengths of the 3 wlans, and obtain the received signal strengths of the 3 wlans as-94 dBm, -90.1dBm and-91.6 dBm, where-90.1 dBm is greater than-91 dBm, and then the terminal device may determine that the wlan with the received signal strength of-90.1 dBm is the target wlan and obtain the target indoor floor information corresponding to the target wlan.
The optional technical scheme also detects the safety of the wireless local area network, if the wireless local area network has no safety risk, the second type identifier is displayed so that the terminal equipment can acquire the indoor floor information from the wireless local area network with the second type identifier, and the safety and the stability of the terminal equipment are further ensured.
As an alternative implementation manner, after outputting the information of the floor in the target room, the terminal device may further issue a marking task to the user, so that the user marks the wireless local area network where the first type of identifier does not exist.
After the terminal device outputs the information of the target indoor floor, the user can obtain the current floor from the output information, and then the terminal device can issue a marking task to the user, so that the user marks the indoor floor information corresponding to the wireless local area network for the wireless local area network without the first type identifier in the information of the N wireless local area networks. When the name of the wireless local area network with the first type of identification does not exist, the terminal equipment can push route navigation to the store to the user according to the current position and the position of the store, so that the user can find the specific position of the wireless local area network and mark indoor floor information according to the route navigation pushed by the terminal equipment. When the name of the wireless local area network with the first type of identification does not exist, the terminal equipment can detect the received signal intensity of the wireless local area network and prompt a user to move in a small range, so that the terminal equipment can detect the specific direction of the wireless local area network according to the received signal intensity change when the user moves and prompt the user to move to the specific direction, and then detect the change of the received signal intensity in real time to prompt the user to advance until the received signal intensity of the wireless local area network is larger than the preset intensity, so that the user can find the specific position of the wireless local area network and mark indoor floor information according to the advance direction of the real-time push of the terminal equipment.
For example, after the terminal device outputs the target indoor floor information "the current wireless lan is located at the third floor of mall a", a marking task may be issued to the user. If there is no first type identifier in another wireless lan, it can be stated that the one wireless lan is not marked with the corresponding indoor floor information by other users, and then the user can mark the one wireless lan. If the name of the store B exists in the name of the wireless local area network, the wireless local area network can be described as belonging to the store B, and the terminal equipment can push route navigation to the store B to the user according to the current position and the store B, so that the user can find the specific position of the wireless local area network according to the route navigation and mark indoor floor information of the wireless local area network. If the name of the wireless local area network does not exist in the names of the shops, the terminal equipment can prompt the user to move to the surrounding, at the moment, the terminal equipment detects that the received signal strength of the wireless local area network becomes large when the user moves to the left, the terminal equipment can prompt the user to continuously move to the left and then continuously detect the received signal strength of the wireless local area network until the received signal strength of the wireless local area network is larger than the preset strength, the position of the wireless local area network can be indicated to be reached by the user, and at the moment, the terminal equipment can prompt the user to mark indoor floor information of the wireless local area network at the current position.
In this alternative implementation manner, after the user obtains the target indoor floor information, the terminal device may prompt the user to mark the indoor floor information on the wireless lan that is not marked. The method and the device can reduce the number of the wireless local area networks which are not marked, so that when terminal equipment which is started up for the first time of other users is used for indoor positioning, the probability of successful positioning is increased, and the user interaction experience is improved.
Example two
As shown in fig. 2, the indoor positioning method provided by the embodiment of the invention may further include the following steps:
201. and acquiring the received information of the N wireless local area networks.
202. And judging whether the first type of identification exists in the information of the N wireless local area networks.
In the embodiment of the present invention, for the description of steps 201 to 202, please refer to the detailed description of steps 101 to 102 in the first embodiment, and the description of the embodiment of the present invention is omitted.
203. And connecting the target wireless local area network.
In the embodiment of the invention, if the first type of identification exists in the information of M wireless local area networks in the N wireless local area networks, the terminal equipment can determine the wireless local area network with the received signal strength greater than the preset strength from the M wireless local area networks as the target wireless local area network, and connect the target wireless local area network so as to establish communication connection with the target routing equipment of the target wireless local area network.
When a terminal device of another user (hereinafter, referred to as a "first terminal device") is connected to a certain wireless lan, the first terminal device issues a marking task to the other user, the other user may mark current indoor floor information after receiving the marking task, the first terminal device obtains the indoor floor information marked by the other user, and then sends the marked indoor floor information to a routing device, and the routing device stores the marked indoor floor information in correspondence with the wireless lan. The embodiment of the invention is suitable for the situation that the terminal equipment correspondingly stores the marked indoor floor information and the wireless local area network in the routing equipment of the wireless local area network.
204. A first request message is sent to a target routing device.
The terminal equipment sends a first request message to the target routing equipment, wherein the first request message is used for requesting target indoor floor information corresponding to the target wireless local area network to the target routing equipment.
The first request message includes an identifier of a target wireless local area network, so that the target routing device searches for target indoor floor information corresponding to the target wireless local area network according to the identifier of the target wireless local area network. The identifier may be a network name of the target wireless lan or an image identifier specific to the target wireless lan, which is not limited in the embodiment of the present invention.
205. And receiving the information of the target indoor floor returned by the target routing equipment.
And after the target routing equipment searches the indoor floor information corresponding to the target local area network according to the identifier of the target wireless local area network, the indoor floor information is returned to the terminal equipment, and the terminal equipment can receive the indoor floor information returned by the target routing equipment.
206. And outputting the information of the floor in the target room.
In the embodiment of the present invention, for the description of step 206, please refer to the detailed description of step 104 in the first embodiment, and the description of the embodiment of the present invention is omitted.
The embodiment of the invention provides an indoor positioning method, wherein a terminal device can determine a target wireless local area network which is marked with corresponding indoor floor information and has a received signal strength larger than a preset strength in a plurality of wireless local area networks, and is connected with the target wireless local area network, and sends an application to a target routing device to acquire the indoor floor information corresponding to the target wireless local area network, so that the current indoor floor information of the terminal device is obtained. According to the technical scheme, after the target wireless local area network is determined, a specific indoor floor can be directly acquired at the target routing equipment through connection with the target wireless local area network, and the indoor floor information obtained by the scheme can be more accurate.
Example III
As shown in fig. 3, the indoor positioning method provided by the embodiment of the invention may further include the following steps:
301. and acquiring the received information of the N wireless local area networks.
302. And judging whether the first type of identification exists in the information of the N wireless local area networks.
In the embodiment of the present invention, for the description of steps 301 to 302, please refer to the detailed description of steps 101 to 102 in the first embodiment, and the description of the embodiment of the present invention is omitted.
303. And the public wireless local area network is connected with the building where the user is located.
In the embodiment of the invention, if the first type of identification exists in the information of M wireless local area networks in the N wireless local area networks, the terminal equipment can determine the wireless local area network with the received signal strength greater than the preset strength from the M wireless local area networks as the target wireless local area network. The terminal equipment is connected with a public wireless local area network of a building where a user is located so as to establish communication connection with a server of the building.
When a terminal device of another user (hereinafter, referred to as a "first terminal device") is connected to a certain wireless lan, the first terminal device issues a marking task to the other user, the other user may mark current indoor floor information after receiving the marking task, the first terminal device obtains the indoor floor information marked by the other user, and then sends the marked indoor floor information to a routing device, and the routing device stores the marked indoor floor information in correspondence with the wireless lan. The embodiment of the invention is suitable for the situation that the terminal equipment correspondingly stores the marked indoor floor information and the wireless local area network in a server of a building where a user is located.
304. And sending a second request message to a server of the building.
The terminal equipment sends a second request message to a server of the building, wherein the second request message is used for requesting the server of the building for the information of the target indoor floor corresponding to the target wireless local area network.
The second request message includes an identifier of the target wireless local area network, so that the server of the building searches for target indoor floor information corresponding to the target wireless local area network according to the identifier of the target wireless local area network. The identifier may be a network name of the target wireless lan or an image identifier specific to the target wireless lan, which is not limited in the embodiment of the present invention.
305. And receiving the information of the target indoor floor returned by the server of the building.
When the server of the building searches the indoor floor information of the target corresponding to the target local area network according to the identifier of the target wireless local area network, the indoor floor information of the target is returned to the terminal equipment, and the terminal equipment can receive the indoor floor information of the target returned by the server of the building.
306. And outputting the information of the floor in the target room.
In the embodiment of the present invention, for the description of step 306, please refer to the detailed description of step 104 in the first embodiment, and the description of the embodiment of the present invention is omitted.
The embodiment of the invention provides an indoor positioning method, wherein a terminal device can determine a target wireless local area network which is marked with corresponding indoor floor information and has a received signal strength larger than a preset strength in a plurality of wireless local area networks, is connected with a public wireless local area network of a current building, and sends an application to a server of the building to acquire the indoor floor information corresponding to the target wireless local area network, so that the indoor floor information of the current terminal device is obtained. According to the technical scheme, after the target wireless local area network is determined, specific indoor floor information can be acquired from a server of the building through the public wireless local area network connected with the building, and the indoor floor information acquired by the terminal equipment is more accurate.
Example IV
As shown in fig. 4a, the indoor positioning method provided by the embodiment of the present invention may further include the following steps:
401. and acquiring the received information of the N wireless local area networks.
402. And judging whether the first type of identification exists in the information of the N wireless local area networks.
403. And acquiring target indoor floor information corresponding to the target wireless local area network.
404. And outputting the information of the floor in the target room.
In the embodiment of the present invention, for the description of steps 401 to 404, please refer to the detailed description of steps 101 to 104 in the first embodiment, and the description of the embodiment of the present invention is omitted.
405. And displaying the first interface and the prompt message.
In the embodiment of the invention, the terminal equipment can also display a first interface and a prompt message in the display screen, wherein the prompt message is used for prompting a user to input personal information in the first interface.
406. Personal information of the user is acquired.
After the user inputs personal information in the first interface, the terminal equipment responds to touch input operation of the user in the first interface to acquire the personal information of the user, wherein the personal information comprises: at least one of a user age, a user gender, and a user's hobbies of interests.
407. And acquiring building information of the current position of the user.
In the embodiment of the invention, the terminal equipment acquires the building information of the current position of the user through a positioning method, wherein the building information comprises the position of a building where the user is located and the properties of the building, such as a mall, an office building and the like. The positioning method may include at least one of: wireless (Wireless Fidelity, wiFi), satellite and base station positioning, etc. The satellite positioning may be positioning by a beidou satellite navigation system (BeiDou Navigation Satellite System, BDS) in china, positioning by a global positioning system (Global Positioning System, GPS), or other positioning methods, which are not limited herein.
Optionally, the terminal device obtains building information of the current location of the user, and further includes: when a terminal device of another user (hereinafter, referred to as a "first terminal device") is connected to a certain wireless lan, the first terminal device issues a marking task to the other user, so that the other user marks indoor floor information and building information at the same time, and after the first terminal device obtains the marked indoor floor information and building information, the indoor floor information and building information are sent to a routing device, and the routing device stores the indoor floor information and building information in correspondence with the wireless lan. Thus, when the terminal equipment acquires the indoor floor information corresponding to the target wireless local area network, the terminal equipment can also acquire the building information corresponding to the target wireless local area network.
The alternative implementation mode provides another mode for acquiring the building information of the current position, so that the building information acquired by the terminal equipment is more accurate, and the mode is more diversified.
408. And acquiring recommendation information.
In the embodiment of the invention, the terminal equipment acquires recommendation information according to the user information, the indoor floor information and the building information, wherein the recommendation information is used for recommending a target shop within a preset range of the indoor floor information to the user. The terminal device can acquire the target store which is interested by the user in the preset range according to the current position of the user and the preference of the user.
The preset range may be set by the user, or may be a distance that the terminal device ensures that the user walks appropriately according to the user physical ability setting, assuming that the preset range is 500 meters. The terminal equipment acquires that the user A prefers to move from the user information, and the user A is currently in three layers of squares, so that the terminal equipment can detect a moving store in the range of 500 meters of the current position of the user A, detect four stores selling sports equipment and moving clothes, and determine the four stores as target stores.
409. And outputting the recommendation information.
The terminal device may output the target store of interest to the user within the preset range as the recommendation information to the user.
In the embodiment of the present invention, the step 404 and the steps 405 to 409 may occur simultaneously, or the step 404 may be performed first and then the step 405 to 409 may be performed, or the step 405 to 409 may be performed first and then the step 404 may be performed, which is not particularly limited.
Similarly, for the output target indoor floor information in the step 404 and the output recommended information in the step 409, the target indoor floor information and the recommended information may be output simultaneously, the target indoor floor information may be output first and then the recommended information may be output, or the recommended information may be output first and then the target indoor floor information may be output, which is not limited in particular.
The embodiment of the invention provides an indoor positioning method, a terminal device can determine a target wireless local area network which is marked with corresponding indoor floor information and has the received signal strength larger than the preset strength in a plurality of wireless local area networks, acquire the indoor floor information corresponding to the target wireless local area network, thereby acquiring the indoor floor information of the terminal device, acquiring building information, recommending interested shops to a user by combining with user personal information, so that the indoor positioning is more accurate, the output content of the terminal device is increased, and the user experience is enhanced.
As an optional implementation manner, before outputting the recommendation information, in a case that the building is a mall, the method further includes: applying for obtaining a map of the building from a server of the building; marking a target store in the map, or marking a route of the user to the target store by combining the current position of the user; outputting the marked map.
Illustratively, in step 408 described above, the terminal device detects four stores selling athletic equipment and athletic apparel and determines the four stores as target stores. After the terminal device applies to the server of the building to obtain the map of the building, the four stores are marked with significant symbols in the map, as shown in fig. 4b, the terminal device marks serial numbers of the four stores, namely 305 stores, 309 stores, 315 stores and 322 stores on the map, or marks the four stores with significant symbols in the map, and a route which can be once sent to the four stores by a user without detour from the current position is planned, the triangle in fig. 4b represents the current position of the terminal device, the user can be sent to the 305 stores, 309 stores, 315 stores and 322 stores. And finally, the marked map is sent to a user and displayed on a display screen of the terminal equipment.
It should be noted that, in the above-mentioned outputting of the recommended information and the outputting of the marked map in the alternative implementation manner, the recommended information and the marked map may be simultaneously output, the recommended information may be output first and then the marked map may be output, or the marked map may be output first and then the recommended information may be output, and the embodiment of the present invention is not limited specifically.
According to the alternative implementation mode, not only is the recommended information output to the user, but also the specific position of the target store and the specific route to the target store are output to the user, so that the user can quickly go to the store of interest, and the user experience is enhanced.
Example five
As shown in fig. 5, an embodiment of the present invention provides a terminal device, including:
the obtaining module 501 is configured to obtain, after the terminal device is first powered on, information of the N wireless local area networks, where the information of the wireless local area networks includes: and receiving signal intensity or receiving signal intensity and identification information, wherein N is an integer greater than or equal to 1.
The judging module 502 is configured to judge whether a first type of identifier exists in the N pieces of information of the wireless local area networks, where the first type of identifier is used to characterize that other users mark indoor floor information corresponding to the wireless local area networks.
The obtaining module 501 is further configured to obtain target indoor floor information corresponding to a target wireless local area network if a first type identifier exists in information of M wireless local area networks in the N wireless local area networks, where the target wireless local area network is a wireless local area network with a received signal strength greater than a preset strength in the M wireless local area networks, M is an integer greater than or equal to 1, and M is less than or equal to N.
And an output module 503, configured to output the target indoor floor information.
Optionally, the judging module 502 is further configured to judge whether a second type identifier exists in the information of the M wireless local area networks, where the second type identifier is used to mark that the wireless local area networks do not have security risks;
the terminal device further includes:
a determining module 504, configured to determine, if the second type identifier exists in the information of P wireless local area networks in the M wireless local area networks, a target wireless local area network from the P wireless local area networks, where P is an integer greater than or equal to 1, and P is less than or equal to M;
the obtaining module 501 is further configured to obtain target indoor floor information corresponding to a target wireless local area network, where the target wireless local area network is specifically a wireless local area network with a received signal strength greater than a preset strength in P wireless local area networks.
Optionally, the terminal device further includes:
a processing module 505, configured to connect to a target wireless lan to establish a communication connection with a target routing device;
the processing module 505 is further configured to send a first request message to the target routing device, where the first request message is used to request, to the target routing device, target indoor floor information corresponding to the target wireless local area network; the first request message comprises the identification of the target wireless local area network, so that the target routing equipment searches the indoor floor information of the target corresponding to the target wireless local area network according to the identification of the target wireless local area network;
the processing module 505 is further configured to receive target indoor floor information returned by the target routing device.
Optionally, the processing module 505 is further configured to connect to a public wireless local area network of a building where the user is located, so as to establish a communication connection with a server of the building;
the processing module 505 is further configured to send a second request message to a server of the building, where the second request message is used to request, from the server of the building, target indoor floor information corresponding to the target wireless lan; the second request message comprises the identification of the target wireless local area network, so that the server of the building searches the indoor floor information corresponding to the target wireless local area network according to the identification of the target wireless local area network;
The processing module 505 is further configured to receive the target indoor floor information returned by the server of the building.
Optionally, the acquiring module 501 is further configured to respond to a first instruction sent by a user, and acquire information of the N received wireless local area networks;
or,
the obtaining module 501 is further configured to obtain the received N pieces of information of wireless local area networks in response to a second instruction sent by a target device associated with the terminal device.
Optionally, the terminal device further includes:
the display module 506 is configured to display a first interface and a prompt message, where the prompt message is used to prompt a user to enter personal information in the first interface;
the obtaining module 501 is further configured to obtain personal information of the user in response to a touch input operation of the user on the first interface, where the personal information includes: at least one of a user age, a user gender, and a user's hobbies of interests;
the obtaining module 501 is further configured to obtain building information of a current location of a user through a positioning method;
the acquiring module 501 is further configured to acquire recommendation information according to the user information, the indoor floor information and the building information, where the recommendation information is used for recommending a target store within a preset range of the indoor floor information to the user;
the output module 503 is further configured to output the recommendation information.
Optionally, in the case that the building is a mall, the obtaining module 501 is further configured to apply for obtaining a map of the building from a server of the building;
the processing module 505 is further configured to mark a target store in the map, or mark a route of the user to the target store in the map in combination with the current location of the user;
the output module 503 is further configured to output the marked map.
In the embodiment of the present invention, each module may implement the image conversion method provided in the above embodiment of the method, and may achieve the same technical effects, so that repetition is avoided, and details are not repeated here.
As shown in fig. 6, an embodiment of the present invention further provides a terminal device, where the terminal device may include:
a memory 601 in which executable program codes are stored;
a processor 602 coupled to the memory 601;
the processor 602 invokes executable program codes stored in the memory 601 to execute the image conversion method executed by the terminal device in the above-described method embodiments.
The terminal device related to the embodiment of the invention can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices. The wearable device may be an intelligent watch, an intelligent bracelet, a telephone watch, an intelligent foot ring, an intelligent earring, an intelligent necklace, an intelligent earphone, etc., and the embodiment of the invention is not limited.
As shown in fig. 7, the embodiment of the present invention further provides a terminal device, where the terminal device includes, but is not limited to: radio Frequency (RF) circuit 701, memory 702, input unit 703, display unit 704, sensor 705, audio circuit 706, wiFi (wireless fidelity, wireless communication) module 707, processor 708, power supply 709, and camera 710. The radio frequency circuit 701 includes a receiver 7011 and a transmitter 7012. It will be appreciated by those skilled in the art that the terminal device structure shown in fig. 7 is not limiting of the terminal device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The RF circuit 701 may be used for receiving and transmitting signals during a message or a call, and in particular, after receiving downlink information of a base station, the RF circuit receives the downlink information and processes the downlink information with the processor 708; in addition, the data of the design uplink is sent to the base station. Generally, RF circuitry 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (low noise amplifier, LNA), a duplexer, and the like. In addition, the RF circuit 701 may also communicate with networks and other devices through wireless communication. The wireless communications may use any communication standard or protocol including, but not limited to, global system for mobile communications (global system of mobile communication, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), long term evolution (long term evolution, LTE), email, short message service (short messaging service, SMS), and the like.
The memory 702 may be used to store software programs and modules, and the processor 708 may perform various functional applications and data processing of the terminal device by executing the software programs and modules stored in the memory 702. The memory 702 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the terminal device, and the like. In addition, the memory 702 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 703 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal device. In particular, the input unit 703 may include a touch panel 7031 and other input devices 7032. The touch panel 7031, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 7031 or thereabout using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch panel 7031 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 708, and can receive commands from the processor 708 and execute them. In addition, the touch panel 7031 may be implemented using various types of resistive, capacitive, infrared, surface acoustic wave, and the like. The input unit 703 may include other input devices 7032 in addition to the touch panel 7031. In particular, other input devices 7032 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 704 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 704 may include a display panel 7041, and alternatively, the display panel 7041 may be configured in the form of a liquid crystal display (liquid crystal display, LCD), an organic light-Emitting diode (OLED), or the like. Further, the touch panel 7031 may overlay the display panel 7041, and when the touch panel 7031 detects a touch operation thereon or thereabout, the touch operation is transmitted to the processor 708 to determine a touch event, and then the processor 708 provides a corresponding visual output on the display panel 7041 according to the touch event. Although in fig. 7, the touch panel 7031 and the display panel 7041 are provided as two separate components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 7031 and the display panel 7041 may be integrated to implement the input and output functions of the terminal device.
The terminal device may also include at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 7041 according to the brightness of ambient light, and a proximity sensor that may exit the display panel 7041 and/or backlight when the terminal device moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for recognizing the gesture of the terminal equipment (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured for the terminal device are not described in detail herein. In the embodiment of the invention, the terminal equipment can comprise an acceleration sensor, a depth sensor or a distance sensor and the like.
Audio circuitry 706, speaker 7061, microphone 7062 may provide an audio interface between the user and the terminal device. The audio circuit 706 may transmit the received electrical signal after audio data conversion to the speaker 7061, and the electrical signal is converted into a sound signal by the speaker 7061 to be output; on the other hand, the microphone 7062 converts the collected sound signal into an electric signal, receives the electric signal by the audio circuit 706, converts the electric signal into audio data, outputs the audio data to the processor 708 for processing, transmits the audio data to, for example, another terminal device via the RF circuit 701, or outputs the audio data to the memory 702 for further processing.
WiFi belongs to a short-distance wireless transmission technology, and terminal equipment can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 707, so that wireless broadband Internet access is provided for the user. Although fig. 7 shows a WiFi module 707, it is to be understood that it does not belong to the necessary constitution of the terminal device, and may be omitted entirely as needed within a range that does not change the essence of the invention.
The processor 708 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 702, and invoking data stored in the memory 702, thereby performing overall monitoring of the terminal device. Optionally, the processor 708 may include one or more processing units; preferably, the processor 708 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 708.
The terminal device also includes a power supply 709 (e.g., a battery) for powering the various components, which may be logically connected to the processor 708 by a power management system, such as a power management system that performs functions such as managing charging, discharging, and power consumption. Although not shown, the terminal device may further include a bluetooth module or the like, which is not described herein.
In the embodiment of the present invention, the processor 708 is configured to obtain, after the terminal device is first powered on, information of the N wireless local area networks, where the information of the wireless local area networks includes: receiving signal intensity, or receiving signal intensity and identification information, wherein N is an integer greater than or equal to 1;
judging whether first type identifiers exist in the information of the N wireless local area networks or not, wherein the first type identifiers are used for representing indoor floor information corresponding to the wireless local area networks marked by other users;
if the first type of identification exists in the information of M wireless local area networks in the N wireless local area networks, acquiring target indoor floor information corresponding to a target wireless local area network, wherein the target wireless local area network is a wireless local area network with the received signal strength of more than preset strength in the M wireless local area networks, M is an integer of more than or equal to 1, and M is less than or equal to N;
And outputting the information of the floor in the target room.
Optionally, the processor 708 may be further configured to implement other processes implemented by the terminal device in the method embodiment described above.
The present invention provides a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute some or all of the steps of the method as in the above method embodiments.
Embodiments of the present invention also provide a computer program product, wherein the computer program product, when run on a computer, causes the computer to perform some or all of the steps of the method as in the method embodiments above.
The embodiment of the invention also provides an application publishing platform, wherein the application publishing platform is used for publishing a computer program product, and the computer program product, when running on a computer, causes the computer to execute part or all of the steps of the method as in the above method embodiments.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. Those skilled in the art will also appreciate that the embodiments described in the specification are alternative embodiments and that the acts and modules referred to are not necessarily required for the present invention.
The terminal device provided by the embodiment of the present invention can implement each process shown in the foregoing method embodiment, and in order to avoid repetition, details are not repeated here.
In various embodiments of the present invention, it should be understood that the sequence numbers of the foregoing processes do not imply that the execution sequences of the processes should be determined by the functions and internal logic of the processes, and should not be construed as limiting the implementation of the embodiments of the present invention.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a memory, comprising several requests for a computer device (which may be a personal computer, a server or a network device, etc., in particular may be a processor in a computer device) to execute some or all of the steps of the above-mentioned method of the various embodiments of the present invention.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the above embodiments may be implemented by a program that instructs associated hardware, the program may be stored in a computer readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disk Memory, magnetic disk Memory, tape Memory, or any other medium that can be used for carrying or storing data that is readable by a computer.

Claims (8)

1. An indoor positioning method, applied to a terminal device, comprising:
after the terminal equipment is started up for the first time, acquiring the received information of N wireless local area networks, wherein the information of the wireless local area networks comprises: receiving signal intensity, or receiving signal intensity and identification information, wherein N is an integer greater than or equal to 1;
judging whether first type identifiers exist in the information of the N wireless local area networks or not, wherein the first type identifiers are used for representing that other users mark indoor floor information corresponding to the wireless local area networks;
if the first type of identification exists in the information of M wireless local area networks in the N wireless local area networks, judging whether a second type of identification exists in the information of M wireless local area networks, wherein the second type of identification is used for marking that the wireless local area networks have no security risk, M is an integer which is greater than or equal to 1, and M is less than or equal to N;
if the second type identifier exists in the information of P wireless local area networks in the M wireless local area networks, determining a target wireless local area network from the P wireless local area networks, wherein P is an integer greater than or equal to 1, and P is smaller than or equal to M;
Acquiring target indoor floor information corresponding to the target wireless local area network, wherein the target wireless local area network is a wireless local area network with the received signal strength greater than a preset strength in the P wireless local area networks;
and outputting the information of the target indoor floor.
2. The method of claim 1, wherein before the obtaining the target indoor floor information corresponding to the target wireless local area network, further comprises:
connecting the target wireless local area network to establish communication connection with a target routing device;
the obtaining the target indoor floor information corresponding to the target wireless local area network comprises the following steps:
a first request message is sent to the target routing equipment, wherein the first request message is used for requesting the target indoor floor information corresponding to the target wireless local area network to the target routing equipment; the first request message comprises the identifier of the target wireless local area network, so that the target routing equipment searches the indoor floor information of the target corresponding to the target wireless local area network according to the identifier of the target wireless local area network;
and receiving the information of the target indoor floor returned by the target routing equipment.
3. The method of claim 1, wherein before the obtaining the target indoor floor information corresponding to the target wireless local area network, further comprises:
the public wireless local area network of the building where the user is located is connected to establish communication connection with a server of the building;
the obtaining the target indoor floor information corresponding to the target wireless local area network comprises the following steps:
sending a second request message to a server of the building, wherein the second request message is used for requesting the server of the building for the target indoor floor information corresponding to the target wireless local area network; the second request message comprises the identification of the target wireless local area network, so that the server of the building searches the indoor floor information of the target corresponding to the target wireless local area network according to the identification of the target wireless local area network;
and receiving the information of the target indoor floor returned by the server of the building.
4. The method of claim 1, wherein the obtaining the received N pieces of information for the wireless local area networks comprises:
responding to a first instruction sent by the user, and acquiring the received information of N wireless local area networks;
Or,
and responding to a second instruction sent by target equipment associated with the terminal equipment, and acquiring the received information of the N wireless local area networks.
5. The method of claim 1, wherein after the outputting the target indoor floor information, further comprising:
displaying a first interface and a prompt message, wherein the prompt message is used for prompting the user to input personal information in the first interface;
responding to the touch input operation of the user on the first interface, and acquiring the personal information of the user, wherein the personal information comprises: at least one of a user age, a user gender, and a user's hobbies of interests;
acquiring building information of the current position of the user through a positioning method;
acquiring recommendation information according to the user information, the indoor floor information and the building information, wherein the recommendation information is used for recommending a target shop within a preset range of the indoor floor information to a user;
and outputting the recommendation information.
6. The method of claim 5, wherein, in the case where the building is a mall, before the outputting the recommendation information, further comprising:
applying for obtaining a map of the building from a server of the building;
Marking the target store in the map, or marking the target store in the map and marking a route of the user to the target store in combination with the current position of the user;
outputting the marked map.
7. A terminal device, comprising:
the acquiring module is configured to acquire information of the N received wireless local area networks after the terminal device is initially powered on, where the information of the wireless local area networks includes: receiving signal intensity, or receiving signal intensity and identification information, wherein N is an integer greater than or equal to 1;
the judging module is used for judging whether first type identifiers exist in the information of the N wireless local area networks or not, wherein the first type identifiers are used for representing that other users mark indoor floor information corresponding to the wireless local area networks;
the acquiring module is further configured to acquire target indoor floor information corresponding to a target wireless local area network if the first type identifier exists in information of M wireless local area networks in the N wireless local area networks, where the target wireless local area network is a wireless local area network in which the received signal strength is greater than a preset strength in the M wireless local area networks, M is an integer greater than or equal to 1, and M is less than or equal to N;
The output module is used for outputting the information of the target indoor floor;
the judging module is further configured to judge whether a second type identifier exists in the information of the M wireless local area networks, where the second type identifier is used to mark that the wireless local area networks do not have security risks;
a determining module, configured to determine, if the second type identifier exists in information of P wireless local area networks in the M wireless local area networks, the target wireless local area network from the P wireless local area networks, where P is an integer greater than or equal to 1, and P is less than or equal to M;
the acquisition module is further configured to acquire the target indoor floor information corresponding to the target wireless local area network, where the target wireless local area network is specifically a wireless local area network, where the received signal strength in the P wireless local area networks is greater than the preset strength.
8. A computer-readable storage medium, comprising: computer instructions stored on the computer readable storage medium, which when executed by a processor, implement the indoor positioning method according to any one of claims 1 to 6.
CN202011199506.1A 2020-10-29 2020-10-29 Indoor positioning method and terminal equipment Active CN112312308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011199506.1A CN112312308B (en) 2020-10-29 2020-10-29 Indoor positioning method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011199506.1A CN112312308B (en) 2020-10-29 2020-10-29 Indoor positioning method and terminal equipment

Publications (2)

Publication Number Publication Date
CN112312308A CN112312308A (en) 2021-02-02
CN112312308B true CN112312308B (en) 2023-12-22

Family

ID=74332387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011199506.1A Active CN112312308B (en) 2020-10-29 2020-10-29 Indoor positioning method and terminal equipment

Country Status (1)

Country Link
CN (1) CN112312308B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114364018B (en) * 2021-12-24 2023-10-13 盒马(中国)有限公司 Positioning method and device
CN114212640B (en) * 2022-02-22 2022-05-13 深圳市海清视讯科技有限公司 Floor positioning method and equipment
CN115550844B (en) * 2022-04-27 2023-06-09 荣耀终端有限公司 Region dividing method, device, electronic equipment and readable storage medium
CN114979955B (en) * 2022-05-26 2024-04-16 中国联合网络通信集团有限公司 Floor positioning method and device, electronic equipment and storage medium
CN115378995A (en) * 2022-08-23 2022-11-22 浙江智尔信息技术有限公司 User information uploading method based on middleware of Internet of things

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013023349A (en) * 2011-07-22 2013-02-04 Japan Research Institute Ltd Floor security management system, elevator controller, and terminal device
CN104507161A (en) * 2014-12-24 2015-04-08 电子科技大学 Indoor corridor positioning method based on zigbee network
CN104618905A (en) * 2015-03-09 2015-05-13 广东欧珀移动通信有限公司 WIFI hotspot sharing method and mobile terminal
CN105898863A (en) * 2016-05-12 2016-08-24 西北工业大学 Indoor floor positioning method based on TOA (Time Of Arrival)
WO2017070969A1 (en) * 2015-10-31 2017-05-04 华为技术有限公司 Floor positioning method, network device and mobile terminal
CN106878955A (en) * 2017-04-27 2017-06-20 京信通信系统(广州)有限公司 A kind of indoor floor location method and location equipment
CN107003395A (en) * 2015-06-26 2017-08-01 Naver商务平台株式会社 Indoor positioning service providing method and system
CN107402008A (en) * 2016-05-19 2017-11-28 阿里巴巴集团控股有限公司 The method, apparatus and system of indoor navigation
WO2018018854A1 (en) * 2016-07-25 2018-02-01 无锡知谷网络科技有限公司 Method and system for indoor positioning
CN109598647A (en) * 2018-12-14 2019-04-09 平安城市建设科技(深圳)有限公司 Information of real estate management method, device, equipment and storage medium
CN110177333A (en) * 2019-05-21 2019-08-27 平安科技(深圳)有限公司 Indoor orientation method, device, system, equipment and storage medium
CN110333819A (en) * 2019-06-28 2019-10-15 北京海益同展信息科技有限公司 It is a kind of for providing the method and apparatus of interior wiring
CN110654943A (en) * 2018-06-29 2020-01-07 奥的斯电梯公司 Automatic determination of position and orientation of elevator device input terminal and corridor fixtures
CN110719568A (en) * 2018-07-13 2020-01-21 腾讯大地通途(北京)科技有限公司 Indoor positioning method, device, medium and equipment
CN111707233A (en) * 2020-06-15 2020-09-25 Oppo广东移动通信有限公司 Terminal device positioning method and device, terminal device and storage medium
CN111757246A (en) * 2019-07-24 2020-10-09 广东小天才科技有限公司 Multi-source fused WiFi fingerprint database updating method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10009869B2 (en) * 2015-12-29 2018-06-26 Sk Planet Co., Ltd. Method, device and system for estimating location
US11584613B2 (en) * 2017-06-23 2023-02-21 Otis Elevator Comapny Determination for motion of passenger over elevator landing area
US10798527B2 (en) * 2018-09-20 2020-10-06 International Business Machines Corporation Cognitive progressive method and system for deploying indoor location sensor networks

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013023349A (en) * 2011-07-22 2013-02-04 Japan Research Institute Ltd Floor security management system, elevator controller, and terminal device
CN104507161A (en) * 2014-12-24 2015-04-08 电子科技大学 Indoor corridor positioning method based on zigbee network
CN104618905A (en) * 2015-03-09 2015-05-13 广东欧珀移动通信有限公司 WIFI hotspot sharing method and mobile terminal
CN107003395A (en) * 2015-06-26 2017-08-01 Naver商务平台株式会社 Indoor positioning service providing method and system
WO2017070969A1 (en) * 2015-10-31 2017-05-04 华为技术有限公司 Floor positioning method, network device and mobile terminal
CN105898863A (en) * 2016-05-12 2016-08-24 西北工业大学 Indoor floor positioning method based on TOA (Time Of Arrival)
CN107402008A (en) * 2016-05-19 2017-11-28 阿里巴巴集团控股有限公司 The method, apparatus and system of indoor navigation
WO2018018854A1 (en) * 2016-07-25 2018-02-01 无锡知谷网络科技有限公司 Method and system for indoor positioning
CN106878955A (en) * 2017-04-27 2017-06-20 京信通信系统(广州)有限公司 A kind of indoor floor location method and location equipment
CN110654943A (en) * 2018-06-29 2020-01-07 奥的斯电梯公司 Automatic determination of position and orientation of elevator device input terminal and corridor fixtures
CN110719568A (en) * 2018-07-13 2020-01-21 腾讯大地通途(北京)科技有限公司 Indoor positioning method, device, medium and equipment
CN109598647A (en) * 2018-12-14 2019-04-09 平安城市建设科技(深圳)有限公司 Information of real estate management method, device, equipment and storage medium
CN110177333A (en) * 2019-05-21 2019-08-27 平安科技(深圳)有限公司 Indoor orientation method, device, system, equipment and storage medium
CN110333819A (en) * 2019-06-28 2019-10-15 北京海益同展信息科技有限公司 It is a kind of for providing the method and apparatus of interior wiring
CN111757246A (en) * 2019-07-24 2020-10-09 广东小天才科技有限公司 Multi-source fused WiFi fingerprint database updating method and electronic equipment
CN111707233A (en) * 2020-06-15 2020-09-25 Oppo广东移动通信有限公司 Terminal device positioning method and device, terminal device and storage medium

Also Published As

Publication number Publication date
CN112312308A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN112312308B (en) Indoor positioning method and terminal equipment
CN109479180B (en) Method and terminal for displaying current geographic position on emergency call interface
KR101759912B1 (en) Method and apparatus for transmitting data in a mobile terminal
US10854009B2 (en) Method, apparatus, and system for obtaining virtual object, and storage medium
CN108519080B (en) Navigation route planning method and terminal
CN109862504B (en) Display method and terminal equipment
CN108917766B (en) Navigation method and mobile terminal
CN108307039B (en) Application information display method and mobile terminal
CN105933209B (en) Position sharing method and device
CN113489630A (en) Network distribution method, device, storage medium and electronic terminal
CN110622528B (en) Information recommendation method and device
CN110234068B (en) Positioning method and terminal equipment
CN110536236B (en) Communication method, terminal equipment and network equipment
US11617055B2 (en) Delivering information to users in proximity to a communication device
CN106020945B (en) Shortcut item adding method and device
TW201531945A (en) Method, device and system for providing service based on application
CN106603650B (en) Method for sharing position information and terminal equipment
CN109474889B (en) Information transmission method, mobile terminal and server
CN112202970A (en) Friend making method, terminal equipment and computer readable storage medium
CN109041212B (en) Positioning method and wearable device
CN109348425B (en) Positioning information updating method, device, equipment and storage medium
CN109474745B (en) Method and related equipment for double-card dialing display
CN111256678A (en) Navigation method and electronic equipment
CN107835304B (en) Method and device for controlling mobile terminal, mobile terminal and storage medium
CN108234275B (en) Method and device for releasing communication information

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