CN115134754A - Floor positioning method and device, electronic equipment and storage medium - Google Patents

Floor positioning method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115134754A
CN115134754A CN202210439105.1A CN202210439105A CN115134754A CN 115134754 A CN115134754 A CN 115134754A CN 202210439105 A CN202210439105 A CN 202210439105A CN 115134754 A CN115134754 A CN 115134754A
Authority
CN
China
Prior art keywords
wireless signal
air pressure
floor
signal fingerprint
electronic equipment
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.)
Pending
Application number
CN202210439105.1A
Other languages
Chinese (zh)
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 CN202210439105.1A priority Critical patent/CN115134754A/en
Publication of CN115134754A publication Critical patent/CN115134754A/en
Pending legal-status Critical Current

Links

Images

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/029Location-based management or tracking services
    • 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

Landscapes

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

Abstract

The embodiment of the application discloses a floor positioning method, a floor positioning device, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring air pressure data acquired by an air pressure meter of electronic equipment; when the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure variation, a reference air pressure value corresponding to a reference floor and a terminal air pressure value corresponding to a floor changing terminal are identified from the air pressure data; determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the end point air pressure value, and collecting a first wireless signal fingerprint corresponding to the first target floor; storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library; when the electronic equipment is started, if the electronic equipment acquires the second wireless signal fingerprint, a second target floor matched with the second wireless signal fingerprint is determined from the wireless signal fingerprint database. By implementing the embodiment of the application, a large amount of manpower and time cost can be saved, and accurate floor information can be obtained.

Description

Floor positioning method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of positioning technologies, and in particular, to a floor positioning method and apparatus, an electronic device, and a storage medium.
Background
With the increase of the demand of people for positioning, when a user uses a positioning function through electronic equipment, the user needs to know not only coordinate points of the user on a two-dimensional map plane, but also floor information of a building where the user is located. The positioning method of the WIFI fingerprint identification is one of the existing floor positioning technologies, but the positioning method of the WIFI fingerprint identification is often divided into an off-line stage and an on-line stage. In the off-line stage, staff are required to collect WIFI fingerprints on all floors of a building in advance, and a WIFI fingerprint database is established. In the online stage, after the user arrives at the building, the WIFI fingerprint can be collected through the electronic equipment and matched in a pre-established WIFI fingerprint database, so that the floor information is obtained. According to the scheme, data acquisition is required to be carried out in advance, the WIFI fingerprint database is established, high labor and time cost is achieved, some private buildings cannot enter the WIFI fingerprint database, the WIFI fingerprint database cannot be established in advance, and therefore the WIFI fingerprint database is only applicable to public places such as markets and the like, and the application range is narrow.
Disclosure of Invention
The embodiment of the application discloses a floor positioning method and device, electronic equipment and a storage medium, which can save a large amount of manpower and time cost and simultaneously obtain accurate floor information.
The embodiment of the application discloses a floor positioning method, which is characterized by comprising the following steps:
acquiring air pressure data acquired by an air pressure meter of electronic equipment, and judging whether a floor where the electronic equipment is located changes or not according to air pressure variation of the air pressure data;
when the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure variation, a reference air pressure value corresponding to a reference floor is identified from the air pressure data, and a terminal air pressure value corresponding to a floor change terminal is identified from the air pressure data;
determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the ending point air pressure value, and collecting a first wireless signal fingerprint corresponding to the first target floor;
storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library;
when the electronic equipment is started, if the electronic equipment acquires a second wireless signal fingerprint, a second target floor matched with the second wireless signal fingerprint is determined from the wireless signal fingerprint database.
As an alternative embodiment, the air pressure data includes: the air pressure value set corresponding to each sampling period comprises a plurality of air pressure values collected in each sampling period;
and, the atmospheric pressure variation according to the atmospheric pressure data judges whether the floor that the electronic equipment locates changes, including:
determining a first air pressure variation corresponding to each sampling period according to a plurality of air pressure values included in the air pressure set corresponding to each sampling period;
identifying N continuous effective sampling periods from the plurality of sampling periods according to the first air pressure variation corresponding to each sampling period; the first air pressure change amount corresponding to the N continuous effective sampling periods is greater than a first air pressure threshold value; n is a positive integer greater than or equal to 1;
and judging whether the floor where the electronic equipment is located changes or not according to a second air pressure variation between the maximum air pressure value and the minimum air pressure value in the plurality of air pressure values respectively corresponding to the N continuous effective sampling periods.
As an optional implementation manner, the determining, according to a second air pressure variation between a maximum air pressure value and a minimum air pressure value in a plurality of air pressure values respectively corresponding to the N consecutive effective sampling periods, whether a floor where the electronic device is located is changed includes:
if a second air pressure variation between a maximum air pressure value and a minimum air pressure value in a plurality of air pressure values respectively corresponding to the N continuous effective sampling periods is larger than a second air pressure threshold value, determining that the floor where the electronic equipment is located is changed;
and if the second air pressure variation is smaller than the second air pressure threshold, determining that the floor where the electronic equipment is located is not changed.
As an alternative embodiment, the air pressure data includes: first air pressure data acquired when the electronic device is in an outdoor environment;
the identifying a reference air pressure value corresponding to a reference floor from the air pressure data includes:
acquiring the distance variation of the electronic equipment in a preset time before the target time of entering the indoor environment from the outdoor environment;
when the distance variation is smaller than a first distance threshold, identifying a reference air pressure value corresponding to the reference floor from the first air pressure data; and/or the presence of a gas in the gas,
and when the distance variation is larger than a second distance threshold, determining the air pressure value acquired at the target moment as a reference air pressure value corresponding to the reference floor.
As an optional implementation manner, the storing the correspondence between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library includes:
and if the third wireless signal fingerprint corresponding to the first target floor is detected in the wireless signal fingerprint database, storing the corresponding relation between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint database when the first wireless signal fingerprint and the third wireless signal fingerprint are judged to be dissimilar.
As an optional implementation manner, when it is determined that the first wireless signal fingerprint and the third wireless signal fingerprint are not similar, the storing the correspondence between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library includes:
acquiring wireless signal sources corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint respectively;
when the number of the same wireless signal sources in the wireless signal sources respectively corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint is smaller than a first number threshold, determining that the first wireless signal fingerprint is not similar to the third wireless signal fingerprint, and storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
As an optional implementation, the first wireless signal fingerprint and the third wireless signal fingerprint correspond to at least one same wireless signal source; when the first wireless signal fingerprint and the third wireless signal fingerprint are judged to be dissimilar, storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library, including:
and when the difference value of the signal strength of the first wireless signal fingerprint and the third wireless signal fingerprint under each same wireless signal source is greater than a first signal threshold value, determining that the first wireless signal fingerprint is not similar to the third wireless signal fingerprint, and storing the corresponding relation between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint library.
As an optional implementation manner, after the storing the correspondence between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint library, the method further includes:
when the number of the motion steps detected by the electronic equipment on the first target floor is larger than a first step threshold value, re-collecting a fourth wireless signal fingerprint corresponding to the first target floor, and replacing the first wireless signal fingerprint with the fourth wireless signal fingerprint; and/or the presence of a gas in the gas,
when the electronic equipment detects that the duration of stay at the first target floor is longer than a first duration threshold, re-collecting a fourth wireless signal fingerprint corresponding to the first target floor, and replacing the first wireless signal fingerprint with the fourth wireless signal fingerprint;
and storing the corresponding relation between the fourth wireless signal fingerprint and the first target floor into the wireless signal fingerprint library.
The embodiment of the application discloses floor positioner, its characterized in that includes:
the judgment module is used for acquiring air pressure data acquired by an air pressure meter of the electronic equipment and judging whether the floor where the electronic equipment is located changes or not according to the air pressure variation of the air pressure data;
the identification module is used for identifying a reference air pressure value corresponding to a reference floor from the air pressure data and identifying a terminal air pressure value corresponding to a floor change terminal from the air pressure data when the floor where the electronic equipment is located is judged to be not changed according to the air pressure change quantity;
the acquisition module is used for determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the ending point air pressure value and acquiring a first wireless signal fingerprint corresponding to the first target floor;
the storage module is used for storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library;
and the matching module is used for determining a second target floor matched with the second wireless signal fingerprint from the wireless signal fingerprint library if the electronic equipment acquires the second wireless signal fingerprint when the electronic equipment is started.
The embodiment of the application discloses an electronic device, which comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is enabled to realize any floor positioning method disclosed by the embodiment of the application.
The embodiment of the application discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute any floor positioning method disclosed in the embodiment of the application.
Compared with the related art, the embodiment of the application has the following beneficial effects:
judging whether the floor where the electronic equipment is located changes according to the air pressure variation of the air pressure data acquired by the electronic equipment; when the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure variation, determining a first target floor where the electronic equipment is located according to a reference air pressure value corresponding to the identified reference floor and a terminal air pressure value corresponding to a floor change terminal from the air pressure data, and collecting a first wireless signal fingerprint corresponding to the first target floor; obtaining a wireless signal fingerprint database according to the corresponding relation between the first wireless signal fingerprint and the first target floor; when the electronic equipment is started, second wireless signal fingerprints of the electronic equipment are collected, and a second target floor matched with the second wireless signal fingerprints is determined from the wireless signal fingerprint library.
By implementing the embodiment of the application, the electronic equipment can determine the floor where the user arrives according to the air pressure data, collect the wireless signal fingerprint corresponding to the floor where the user is located, and generate the wireless signal fingerprint library according to the corresponding relation between the floor where the user is located and the wireless signal fingerprint; after the electronic equipment is started, the wireless signal fingerprints of the floors where the electronic equipment is started can be collected, and the wireless signal fingerprints are matched in the wireless signal fingerprint library to obtain accurate floor information of the electronic equipment. That is to say, the electronic device collects the wireless signal fingerprint of the corresponding floor according to the needs of the user, and not every floor collects the corresponding wireless signal fingerprint, but collects the floor where the user stays at present, which is different from the scheme of collecting the wireless signal fingerprint of every floor in advance by a worker in large scale in the prior art. Therefore, according to the embodiment of the application, the staff is not required to acquire the wireless signal fingerprints in advance, and accurate floor information can be acquired while a large amount of manpower and time cost are saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used 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 application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a floor positioning method disclosed in an embodiment of the present application;
fig. 2 is a schematic flow chart of another floor positioning method disclosed in the embodiments of the present application;
fig. 3 is a schematic flow chart of another floor positioning method disclosed in the embodiments of the present application;
FIG. 4 is a schematic flow chart diagram of another floor location method disclosed in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a floor positioning device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the examples and figures of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application discloses a floor positioning method and device, electronic equipment and a storage medium, which can save a large amount of manpower and time cost and simultaneously obtain accurate floor information. The following are detailed below.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a floor positioning method according to an embodiment of the present disclosure. The floor positioning method described in fig. 1 is suitable for electronic devices such as smart phones and electronic devices, and the embodiments of the present application are not limited thereto. The electronic device may include, but is not limited to, a smart watch or a smart bracelet supported by a wrist, a smart ring supported by a finger, smart shoes or smart socks supported by a foot, smart glasses supported by a head, a smart helmet or a smart headband, and various non-mainstream products such as smart clothes, a bag, a crutch and accessories.
As shown in fig. 1, the floor location method may include the steps of:
101. the method comprises the steps of obtaining air pressure data collected by an air pressure meter of the electronic equipment, and judging whether a floor where the electronic equipment is located changes or not according to air pressure variation of the air pressure data.
The electronic device can acquire air pressure data in real time through the built-in barometer and can preprocess the acquired air pressure data. For example, median filtering may be performed on the air pressure data every 10 seconds to eliminate the influence of random noise, so as to accurately determine whether the floor where the electronic device is located changes according to the air pressure variation of the air pressure data.
The electronic device can judge whether the floor where the electronic device is located changes according to the air pressure variation of the air pressure data.
Optionally, the electronic device may determine whether a floor where the electronic device is located changes by determining whether an air pressure variation within a preset time is greater than an air pressure threshold. For example, the preset duration may be 10 seconds, and is not particularly limited; the air pressure threshold may be an air pressure difference between two floors, such as 0.3 hectopascal (hPa). If the air pressure variation of the electronic equipment within a preset time is larger than the air pressure difference threshold, the floor where the electronic equipment is located can be considered to be changed.
Optionally, the electronic device may acquire air pressure data at a plurality of continuous preset durations, determine an air pressure maximum value and an air pressure minimum value in the air pressure data at each preset duration, and determine whether the floor where the electronic device is located changes according to whether a difference between the air pressure maximum value and the air pressure minimum value in the plurality of continuous preset durations is greater than an air pressure threshold. And if the difference between the maximum value and the minimum value of the air pressure in a plurality of continuous preset time periods is greater than the air pressure threshold value, judging that the floor where the electronic equipment is located is changed.
102. And when the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure change quantity, identifying a reference air pressure value corresponding to the reference floor from the air pressure data, and identifying an end air pressure value corresponding to the floor change end point from the air pressure data.
The electronic equipment can judge that the floor where the electronic equipment is located does not change any more according to the air pressure variation. Optionally, when the air pressure variation of the electronic device within a preset time period is smaller than the air pressure threshold, it may be determined that the floor where the electronic device is located is not changed any more; or, when the air pressure variation of the electronic device within a preset time period is smaller than the air pressure threshold and the time for maintaining the air pressure data is longer than the time threshold, it can be determined that the floor where the electronic device is located is not changed any more.
The electronic device may identify a reference air pressure value corresponding to the reference floor and a terminal air pressure value corresponding to the floor change terminal from the air pressure data.
The reference floor may be a first floor of a building, and the reference air pressure value may be an air pressure value corresponding to the first floor of the building. The reference floor may be the first floor of an indoor environment or the first floor of an outdoor environment, which may be the first floor of an elevator entering the outdoor environment.
The floor change destination may be a floor that the electronic device finally arrives at after entering the indoor environment, and the destination air pressure value may be an air pressure value corresponding to the floor that the electronic device finally arrives at.
Optionally, the user of the electronic device may enter the floor change destination of the indoor environment through the elevator in the outdoor environment and the outdoor corridor, where the first floor of the elevator in the outdoor environment is the reference floor.
Alternatively, the electronic device may enter the first floor of the indoor environment from the outdoor environment, which is the reference floor, and enter the floor change destination of the indoor environment through the elevator or the staircase of the indoor environment.
The electronic equipment can judge whether the electronic equipment is in accordance with the GPS signal intensityFrom the outdoor environment into the indoor environment. For example, if the electronic device receives N GPS satellite signals with signal strengths { S1, S2, S3, … …, Sn }, respectively, the current GPS signal strength is
Figure BDA0003609581450000081
When S is less than the signal threshold S0, the electronic device is considered to have entered the indoor environment from the outdoor environment. For example, the signal threshold S0 may be 50, and is not limited.
Optionally, if the electronic device enters the floor change destination of the indoor environment from the elevator or the staircase in the indoor environment, the time when the GPS signal intensity is smaller than the signal threshold may be defined as the time T1 when the electronic device enters the indoor environment from the outdoor environment, and the air pressure value corresponding to the time T1 may be used as the reference air pressure value, that is, the position where the electronic device has just entered the indoor environment is used as the reference floor.
Alternatively, if the electronic device is a floor change destination entering the indoor environment from an elevator in the outdoor environment and an outdoor corridor, the time when the GPS signal strength is less than the signal threshold may be defined as the time T1 when the electronic device enters the indoor environment from the outdoor environment, and the air pressure data within a preset time period before the time T1 may be collected, where the preset time period may be 2 minutes. Because the air pressure value is reduced along with the increase of the floor height; as the floor level decreases, the air pressure value increases. If the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure change amount within the preset time, a reference air pressure value and a terminal air pressure value can be determined from air pressure data collected within the preset time, the maximum value of the air pressure value within the preset time can be determined as the reference air pressure value, and the minimum value of the air pressure value within the preset time can be determined as the terminal air pressure value.
103. And determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the ending point air pressure value, and acquiring a first wireless signal fingerprint corresponding to the first target floor.
The electronic device may determine a first target floor at which the electronic device is located based on the starting air pressure value and the ending air pressure value. The first target floor may be a floor where the electronic device is located after the floor change no longer occurs in the indoor environment, that is, floor information corresponding to the floor change destination.
The electronic device can calculate the height change Δ h of the electronic device from the reference floor to the floor change destination by the following formula.
Δh=18410*(1+t/273.15)*(log10(p0)–log10(p1)) (1)
Wherein t is the current air temperature value and can be obtained from weather forecast; p0 is a reference air pressure value; p1 is the end point pressure value. From Δ h it is possible to calculate the number of floors changed f1, to mark the first target floor as-f 1 if f1<0 and as f1+1 if f1> 0.
The first wireless signal fingerprint may include a Media Access Control (MAC) address of a wireless signal source collected at the first target floor, and a signal strength received from the wireless signal source. The electronic device can start wireless signal fingerprint collection and collect a first wireless signal fingerprint at a first target floor. The wireless signal may be a WIFI signal, and is not limited specifically.
104. And storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
The electronic device can store the corresponding relation between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint library, namely the electronic device can store the first wireless signal fingerprint with the floor label information into the wireless signal fingerprint library by taking the first target floor as a label of the first wireless signal fingerprint. For example, when the electronic device enters a 3 rd floor of an indoor environment, the electronic device can acquire a wireless signal fingerprint corresponding to the 3 rd floor and store the wireless signal fingerprint into a wireless signal fingerprint database; if the electronic equipment moves from the 3 th floor to the 5 th floor, the electronic equipment can also acquire the wireless signal fingerprint corresponding to the 5 th floor and store the wireless signal fingerprint into a wireless signal fingerprint library. Therefore, the electronic equipment can automatically collect the wireless signal fingerprints corresponding to the floors frequently visited by the user in the process that the user uses the electronic equipment, a wireless signal fingerprint library can be efficiently generated, which is equivalent to the fact that each user can customize the wireless signal fingerprint library according to the floors frequently visited by the user, excessive floor information and wireless fingerprint information are avoided being stored, and the storage space of the electronic equipment is effectively saved.
105. When the electronic equipment is started, if the electronic equipment acquires the second wireless signal fingerprint, a second target floor matched with the second wireless signal fingerprint is determined from the wireless signal fingerprint database.
When the electronic device is not started on the first floor of the indoor environment but is started on other non-first floors, the floor where the electronic device is located cannot be directly calculated through the reference air pressure value and the terminal air pressure value because the reference air pressure value corresponding to the first floor cannot be obtained. However, since the user establishes the wireless signal fingerprint database in advance, when the electronic device is started on a non-first floor in an indoor environment, the electronic device can acquire a second wireless signal fingerprint corresponding to the floor where the electronic device is located, and determine a second target floor matched with the second wireless signal fingerprint from the wireless signal fingerprint database, wherein the second target floor is the floor where the electronic device is located currently. For example, when a user of the electronic device is working at the 5 th floor in a building, the 5 th floor is a floor where the user frequently goes, and therefore the wireless signal fingerprint library already stores the corresponding relationship between the floor and the wireless signal fingerprint corresponding to the floor, but the electronic device suddenly loses power, and after the electronic device is charged and restarted, the electronic device can collect the wireless signal fingerprint corresponding to the current floor, determine the floor information matched with the wireless signal fingerprint from the wireless signal fingerprint library, and finally determine that the current floor is the 5 th floor.
According to the embodiment of the application, the first target floor of the electronic equipment is determined according to the reference air pressure value and the terminal air pressure value, wireless signal fingerprint collection is started to obtain the first wireless signal fingerprint corresponding to the first target floor, and the corresponding relation between the first target floor and the first wireless signal fingerprint is stored in the wireless signal fingerprint database. For a subsequent scene that the electronic device is started in an indoor environment, for example, the electronic device is started in a non-1-floor of the indoor environment, even if the reference air pressure value of the 1-floor cannot be obtained and the floor where the electronic device is currently located is obtained through direct calculation of air pressure data, the second wireless signal fingerprint of the current floor can be acquired and matched in the wireless signal fingerprint library to obtain a second target floor matched with the second wireless signal fingerprint, wherein the second target floor is the floor where the electronic device is currently located. Therefore, the embodiment of the application can obtain the current floor information under the scene that the 1-floor reference air pressure value cannot be obtained, so that accurate floor positioning information is provided for users under diversified scenes.
In an application scenario, the embodiment of the application can be applied to a scenario in which information interaction is performed between an electronic device and other electronic devices, the electronic device can be connected or bound with the other electronic devices in advance, and the other electronic devices can be supervision terminals such as a mobile phone, a tablet computer or wearable devices connected or bound with the electronic device, so that a user of the supervision terminal can know floor change conditions of the user of the electronic device in time through the supervision terminals.
According to the embodiment of the application, the floor where the user arrives can be determined according to the air pressure data, the wireless signal fingerprints corresponding to the floor where the user is located are automatically collected after the electronic equipment is started, the wireless signal fingerprint library is generated according to the floor where the user is located and the corresponding relation of the wireless signal fingerprints, the worker does not need to collect the wireless signal fingerprints in advance, and accurate floor information can be obtained while a large amount of manpower and time cost are saved.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another floor positioning method according to an embodiment of the present disclosure. As shown in fig. 2, the method comprises the steps of:
201. the method comprises the steps of obtaining air pressure data collected by an air pressure meter of the electronic equipment, and determining a first air pressure change amount corresponding to each sampling period according to a plurality of air pressure values included in an air pressure set corresponding to each sampling period.
The air pressure data comprises air pressure value sets respectively corresponding to a plurality of sampling periods; the set of air pressure values for each sampling period includes a plurality of air pressure values collected during each sampling period.
The sampling period may be 5 seconds, and is not particularly limited. During a sampling period, the electronic device may continuously collect a plurality of air pressure values, and treat the plurality of air pressure values in each sampling period as an air pressure set. The first air pressure change value may be an air pressure change value corresponding to each sampling period calculated from a plurality of air pressure values collected in each sampling period.
202. And identifying N continuous effective sampling periods from the plurality of sampling periods according to the first air pressure variation corresponding to each sampling period.
The first air pressure change amount corresponding to N continuous effective sampling periods is larger than a first air pressure threshold value; n is a positive integer greater than or equal to 1. For example, the first air pressure threshold may be 0.05hPa, which is not limited.
It can be considered that, within N consecutive effective sampling periods, the possibility that the floor where the electronic device is located changes is greater, because the first air pressure change amount corresponding to each effective sampling period is greater than the first air pressure threshold. Therefore, the continuous effective sampling periods can be identified from the plurality of sampling periods, and then the air pressure values in the continuous effective sampling periods are calculated to judge whether the floors of the electronic equipment in the continuous effective sampling periods change, so that the air pressure values in all the sampling periods can be prevented from being processed, and the operation efficiency of the electronic equipment is improved.
203. And judging whether the floor where the electronic equipment is positioned is changed or not according to a second air pressure variation between the maximum air pressure value and the minimum air pressure value in a plurality of air pressure values respectively corresponding to the N continuous effective sampling periods.
If a second air pressure variation between a maximum air pressure value and a minimum air pressure value in a plurality of air pressure values respectively corresponding to the N continuous effective sampling periods is larger than a second air pressure threshold value, determining that the floor where the electronic equipment is located is changed; and if the second air pressure variation is smaller than the second air pressure threshold, determining that the floor where the electronic equipment is located is not changed.
The second air pressure variation amount may be a difference between a maximum air pressure value and a minimum air pressure value among respective air pressure values in N consecutive valid sampling periods.
The second air pressure threshold may be an air pressure difference between two floors, such as 0.3hPa, and is not limited in particular.
Illustratively, if the sampling period is 5 seconds, N consecutive valid sampling periods are identified from the plurality of sampling periods, wherein the first air pressure variation corresponding to each valid sampling period is greater than a first air pressure threshold, such as 0.05 hPa. In N continuous effective sampling periods, recording the maximum air pressure value and the minimum air pressure value of a plurality of air pressure values in each effective sampling period, comparing the maximum air pressure value and the minimum air pressure value in each effective sampling period to obtain the maximum air pressure value and the minimum air pressure value in the N continuous effective sampling periods, calculating a second air pressure variation according to the difference between the maximum air pressure value and the minimum air pressure value, and if the second air pressure variation is greater than a second air pressure threshold value, such as 0.3hPa, determining that the floor where the electronic equipment is located is changed in the N continuous effective sampling periods.
204. And when the floor where the electronic equipment is positioned is judged to be not changed any more according to the air pressure change quantity, identifying a reference air pressure value corresponding to the reference floor and an end point air pressure value corresponding to the floor change end point from the air pressure data.
The electronic equipment can judge that the floor where the electronic equipment is located does not change any more according to the air pressure change quantity.
Optionally, the electronic device may determine that the floor on which the electronic device is located is no longer changed when M consecutive invalid sampling periods are identified from the plurality of sampling periods and M exceeds the first number threshold. And the first air pressure variation corresponding to each invalid sampling period is smaller than a first air pressure threshold value.
Optionally, the electronic device identifies N consecutive effective sampling periods from the multiple sampling periods, and when a second air pressure variation in the N consecutive effective sampling periods is smaller than a second air pressure threshold and a duration of the N consecutive effective sampling periods is greater than a first time threshold, it may be determined that the floor searched by the electronic device is no longer changed.
205. And determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the ending point air pressure value, and acquiring a first wireless signal fingerprint corresponding to the first target floor.
206. And storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
The first target floor may be a tag of a first wireless signal fingerprint, and the first wireless signal fingerprint with the floor tag is stored in a wireless signal fingerprint repository.
207. When the electronic equipment is started, if the electronic equipment acquires the second wireless signal fingerprint, a second target floor matched with the second wireless signal fingerprint is determined from the wireless signal fingerprint database.
The electronic device may be powered on in an indoor environment or in an outdoor environment.
Optionally, when the electronic device is started in an outdoor environment and enters a certain floor in an indoor environment from the outdoor environment, the electronic device may collect the wireless signal fingerprint of the current floor, match the collected wireless signal fingerprint in a wireless signal fingerprint library generated before, and if the matching is successful, take the label floor of the matched wireless signal fingerprint as the current floor; if the matching is unsuccessful, the air pressure of the floor of the first floor of the indoor environment can be used as a reference air pressure value, the air pressure of the floor where the current position is located is used as a terminal air pressure value, the height and the floor where the current position is located are calculated according to the difference value between the two air pressure values, wireless signal fingerprint collection is started, the current floor is used as a label, and the collected wireless signal fingerprint and the corresponding floor label are stored in a wireless signal fingerprint library.
Optionally, when the electronic device is started in an indoor environment, the wireless signal fingerprint of the floor where the electronic device is located at present can be collected, the collected wireless signal fingerprint is matched in a wireless signal fingerprint library generated before, and if the matching is successful, the label floor of the matched wireless signal fingerprint is used as the floor where the electronic device is located at present.
According to the embodiment of the application, whether the floor where the electronic equipment is located changes or not can be judged efficiently and accurately according to the plurality of air pressure values in each sampling period. According to the embodiment of the application, the continuous effective sampling periods are identified from the plurality of sampling periods, and then the air pressure value in the continuous effective sampling periods is calculated to judge whether the floor of the electronic equipment in the continuous effective sampling periods changes, so that the air pressure values in all the sampling periods can be prevented from being processed, and the operation efficiency of the electronic equipment is improved.
The wireless signal fingerprint collection process of the embodiment of the application is automatically carried out by a user in the process of using the electronic equipment, the wireless signal fingerprint collection is not required to be carried out in advance by workers, a large amount of manpower and time cost are saved, and accurate current floor information can be provided for the user under the scene that the 1 floor reference air pressure cannot be obtained through wireless signal fingerprint matching.
Referring to fig. 3, fig. 3 is a schematic flow chart of another floor positioning method disclosed in the embodiment of the present application.
301. The method comprises the steps of obtaining air pressure data collected by an air pressure meter of the electronic equipment, and judging whether a floor where the electronic equipment is located changes or not according to air pressure variation of the air pressure data.
The air pressure data may include first air pressure data collected when the electronic device is in an outdoor environment, and the air pressure data may further include second air pressure data collected when the electronic device is in the outdoor environment.
302. When the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure change, the distance change of the electronic equipment in a preset time period before the target time when the electronic equipment enters the indoor environment from the outdoor environment is obtained.
The acquisition time of the distance variation is consistent with the acquisition time of the first air pressure data. The electronic device may continuously record GPS signal strength, GPS coordinates, and barometric pressure values. The electronic equipment collects the GPS coordinates of the electronic equipment in real time while the first air pressure data is collected. The target time is the time from the outdoor environment to the indoor environment.
Optionally, if the electronic device enters the first target floor of the indoor environment from the elevator of the outdoor environment and the outdoor corridor, the time when the GPS signal intensity is smaller than the signal threshold may be defined as the target time when the electronic device enters the indoor environment from the outdoor environment, and the electronic device may collect the distance variation within a preset time period before the target time, where the preset time period may be 2 minutes. When the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure change, the distance change of the electronic equipment in a preset time period before the target time when the electronic equipment enters the indoor environment from the outdoor environment is obtained. The distance variation is calculated according to a plurality of GPS coordinates of the electronic device within a preset time period, and may be a coordinate position variation calculated according to a GPS coordinate corresponding to a starting point of the preset time period and a GPS coordinate corresponding to an ending point of the preset time period.
303. And when the distance variation is larger than a second distance threshold, determining the air pressure value acquired at the target moment as the reference air pressure value corresponding to the reference floor.
The electronic equipment is in the preset time before the target moment when the outdoor environment enters the indoor environment, if the outdoor environment is in a scene of driving and climbing, the electronic equipment is changed in air pressure in the outdoor environment due to gradient change, at the moment, the change of the floor where the electronic equipment is located in the outdoor environment can be judged according to the air pressure change of the first air pressure data in the preset time, but if the distance change exceeds a first distance threshold, the situation that the electronic equipment normally goes upstairs in the mode of passing through an outdoor elevator and the like is not met, and the situation that a user drives and climbs the slope in the outdoor environment is better met. Therefore, the electronic device is driven to climb in the outdoor environment, and the floor where the electronic device is located cannot be considered to be changed. In order to eliminate the situation that the electronic device drives in the outdoor environment and climbs a slope, the floor where the electronic device is located in the outdoor environment may be determined to be changed only under the condition that the distance variation is smaller than the first distance threshold, so that the reference air pressure value corresponding to the reference floor is identified from the first air pressure data.
And when the distance variation is smaller than a first distance threshold value, identifying a reference air pressure value corresponding to the reference floor from the first air pressure data. The reference air pressure value may be a maximum air pressure value obtained from the first air pressure data within a preset time period;
and when the distance variation is larger than a second distance threshold, determining the air pressure value acquired at the target moment as a reference air pressure value corresponding to the reference floor. The fact that the distance variation is greater than the second distance threshold means that the electronic device does not have floor variation in the outdoor environment for a preset time period before the target time of entering the indoor environment from the outdoor environment, and the air pressure variation is caused only by driving and climbing a slope. The reference air pressure value can be determined as the air pressure value collected at the target moment, namely the air pressure value when the electronic equipment enters the indoor environment.
The first distance threshold may be 20 meters, and is not limited. Whether the reference air pressure value is to be identified from the first air pressure data is determined according to whether the distance variation is smaller than a first distance threshold value, and the situation that a user of the electronic equipment may be in an application scenario of driving, climbing and descending within a preset time length before the electronic equipment enters an indoor environment is aimed.
304. And identifying a terminal air pressure value corresponding to the floor change terminal from the air pressure data.
The air pressure data may include first air pressure data collected when the electronic device is in an outdoor environment, and the air pressure data may further include second air pressure data collected when the electronic device is in the outdoor environment.
The electronic device may identify a destination air pressure value corresponding to the floor change destination from the first air pressure data, or may identify a destination air pressure value corresponding to the floor change destination from the second air pressure data.
Optionally, when the electronic device enters the first target floor from the outdoor environment through an outdoor elevator, a corridor, or the like, the terminal air pressure value corresponding to the floor change terminal can be directly identified from the first air pressure data;
optionally, when the electronic device does not have a floor change in the outdoor environment and enters the first target floor from the indoor environment in the form of an indoor elevator, a staircase, or the like, the terminal air pressure value corresponding to the floor change terminal can be directly identified from the second air pressure data;
optionally, when the electronic device enters the first target floor only after the floor change occurs in the outdoor environment and the floor change also occurs in the indoor environment, the terminal air pressure value corresponding to the floor change terminal can be identified from the second air pressure data.
305. And determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the ending point air pressure value, and acquiring a first wireless signal fingerprint corresponding to the first target floor.
306. And storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
307. When the electronic equipment is started, if the electronic equipment acquires the second wireless signal fingerprint, a second target floor matched with the second wireless signal fingerprint is determined from the wireless signal fingerprint library.
According to the embodiment of the application, the floor information of the electronic equipment can be accurately acquired even if the floor of the electronic equipment in the outdoor environment changes according to the situation that the floor of the electronic equipment in the outdoor environment changes. Meanwhile, whether the floor where the electronic equipment is located in the outdoor environment changes or not can be accurately judged according to the air pressure variation and the distance variation, the misjudgment rate is reduced, and therefore the floor positioning accuracy is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart illustrating another floor positioning method according to an embodiment of the present disclosure.
401. The method comprises the steps of obtaining air pressure data collected by an air pressure meter of the electronic equipment, and judging whether a floor where the electronic equipment is located changes or not according to air pressure variation of the air pressure data.
402. And when the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure change quantity, identifying a reference air pressure value corresponding to the reference floor and an end air pressure value corresponding to the floor change end point from the air pressure data.
403. And determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the ending point air pressure value, and acquiring a first wireless signal fingerprint corresponding to the first target floor.
404. And if the third wireless signal fingerprint corresponding to the first target floor is detected in the wireless signal fingerprint database, storing the corresponding relation between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint database when the first wireless signal fingerprint and the third wireless signal fingerprint are judged to be dissimilar.
The third wireless signal fingerprint is a wireless signal fingerprint corresponding to the first target floor and existing in the wireless signal fingerprint library, and has the same floor tag as the first wireless signal fingerprint.
The electronic device may determine whether the first wireless signal fingerprint and the third wireless signal fingerprint are similar according to a difference between the first wireless signal fingerprint and the third wireless signal fingerprint in terms of a signal source, a signal strength, and the like.
In some optional embodiments, wireless signal sources corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint respectively are acquired; and when the number of the same wireless signal sources in the wireless signal sources respectively corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint is smaller than a first number threshold, determining that the first wireless signal fingerprint is not similar to the third wireless signal fingerprint, and storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
Whether the same wireless signal source exists can be judged according to the MAC addresses included in the first wireless signal fingerprint and the third wireless signal fingerprint. The first number threshold may be 5, and is not particularly limited. When the number of the same wireless signal sources in the wireless signal sources respectively corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint is smaller than the first number threshold, it may be considered that the difference between the first wireless signal fingerprint and the third wireless signal fingerprint is large.
In other alternative embodiments, the first wireless signal fingerprint corresponds to at least one same wireless signal source as the third wireless signal fingerprint; when the difference value of the signal strength of the first wireless signal fingerprint and the third wireless signal fingerprint under each same wireless signal source is larger than a first signal threshold value, the first wireless signal fingerprint and the third wireless signal fingerprint are determined to be dissimilar, and the corresponding relation between the first wireless signal fingerprint and the first target floor is stored in a wireless signal fingerprint database.
For example, the signal strength of the first wireless signal fingerprint under each wireless signal source is { rssi } a1 ,rssi a2 ,…,rssi aT And the signal strength of the third wireless signal fingerprint under each wireless signal source is { rssi }respectively b1 ,rssi b2 ,…,rssi bT In which rssi a1 And rssi b1 Is the signal strength, rssi, detected from the first identical wireless signal source a2 And rssi b2 Is the signal strength detected from a second identical wireless signal source, and so on. The difference value of the signal strength of the first wireless signal fingerprint and the third wireless signal fingerprint under each identical wireless signal source can be defined as formula (2):
Figure BDA0003609581450000181
if the difference value is smaller than the first signal threshold value, determining that the first wireless signal fingerprint is similar to the third wireless signal fingerprint, and not storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library; and if the difference value is greater than the first signal threshold value, determining that the first wireless signal fingerprint is not similar to the third wireless signal fingerprint, and storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library. The first signal threshold may be 5, and is not limited.
In other optional embodiments, when the number of the same wireless signal sources in the wireless signal sources respectively corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint is greater than a first number threshold, and a difference value between signal strengths of the first wireless signal fingerprint and the third wireless signal fingerprint under each same wireless signal source is greater than a first signal threshold, it is determined that the first wireless signal fingerprint and the third wireless signal fingerprint are not similar, and the correspondence relationship between the first wireless signal fingerprint and the first target floor is stored in the wireless signal fingerprint library.
For example, for a newly acquired first wireless signal fingerprint, if a third wireless signal fingerprint having the same floor tag (first target floor) exists in the wireless signal fingerprint library, and the first wireless signal fingerprint and the third wireless signal fingerprint have K identical wireless signal sources, where K is greater than a first number threshold, under the K identical wireless signal sources, the signal strength of the first wireless signal fingerprint under each wireless signal source is { rssi } a1 ,rssi a2 ,…,rssi aT And the signal strength of the third wireless signal fingerprint under each wireless signal source is { rssi } b1 ,rssi b2 ,…,rssi bT And obtaining a difference value of the signal strength of the first wireless signal fingerprint and the third wireless signal fingerprint under each same wireless signal source according to a formula (2), and if the difference value is greater than a first signal threshold value, storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
405. When the number of the movement steps detected by the electronic equipment on the first target floor is larger than the threshold value of the first step number, the fourth wireless signal fingerprint corresponding to the first target floor is collected again, and the fourth wireless signal fingerprint is used for replacing the first wireless signal fingerprint.
Wherein the first step number threshold may be 10. That is, the fourth wireless signal fingerprint corresponding to the first target floor is re-acquired every 10 steps of the movement steps of the electronic device.
The fourth wireless signal fingerprint is a wireless signal fingerprint corresponding to the first target floor and acquired again by the electronic device when the number of the motion steps detected by the first target floor is larger than the threshold value of the first step number, the fourth wireless signal fingerprint is used for replacing the first wireless signal fingerprint to obtain the corresponding relation between the fourth wireless signal fingerprint and the first target floor, and the corresponding relation between the fourth wireless signal fingerprint and the first target floor is stored in the wireless signal fingerprint library.
In some embodiments, when the electronic device detects that the duration of the stay at the first target floor is greater than the first duration threshold, the electronic device re-collects a fourth wireless signal fingerprint corresponding to the first target floor and replaces the first wireless signal fingerprint with the fourth wireless signal fingerprint.
The duration may be 10 minutes, and is not particularly limited.
In some embodiments, when the number of moving steps detected by the electronic device on the first target floor is greater than the first step threshold value and when the electronic device detects that the duration of the stay on the first target floor is greater than the first duration threshold value, the fourth wireless signal fingerprint corresponding to the first target floor is re-acquired and replaces the first wireless signal fingerprint with the fourth wireless signal fingerprint.
According to the embodiment of the application, whether the fourth wireless signal fingerprint corresponding to the first target floor needs to be collected again or not is judged according to the motion step number detected by the electronic equipment on the first target floor and the duration time of stay detected on the first target floor, so that the wireless signal fingerprint library is updated, the accurate corresponding relation between the first target floor and the fourth wireless signal fingerprint is obtained, and the condition that the wireless signal fingerprint is inaccurate due to factors such as maintenance and MAC address change of a wireless signal source of a floor is avoided.
406. And storing the corresponding relation between the fourth wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
407. When the electronic equipment is started, if the electronic equipment acquires the second wireless signal fingerprint, a second target floor matched with the second wireless signal fingerprint is determined from the wireless signal fingerprint library.
The embodiment of the application has the third wireless signal fingerprint corresponding to the first target floor in the wireless signal fingerprint database, whether the corresponding relation between the first wireless signal fingerprint and the first target floor is stored in the wireless signal fingerprint database or not can be determined according to the difference between the first wireless signal fingerprint and the third wireless signal fingerprint, so that repeated entry of the wireless signal fingerprint can be avoided, the storage space of electronic equipment is saved, meanwhile, the wireless signal fingerprint is regularly updated, the accuracy of the wireless signal fingerprint database can be ensured, and the accuracy of floor positioning is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a floor positioning device disclosed in the embodiment of the present application. The device can be applied to electronic equipment such as smart phones and electronic equipment, and is not limited specifically. As shown in fig. 5, the floor positioning device 500 may include: the device comprises a judging module 510, an identifying module 520, an acquiring module 530, a storing module 540 and a matching module 550.
The judging module 510 is configured to obtain air pressure data acquired by an air pressure gauge of the electronic device, and judge whether a floor where the electronic device is located changes according to an air pressure variation of the air pressure data;
the identification module 520 is configured to identify a reference air pressure value corresponding to a reference floor from the air pressure data and identify a terminal air pressure value corresponding to a floor change terminal from the air pressure data when it is determined that the floor where the electronic device is located does not change according to the air pressure change amount;
the acquisition module 530 is configured to determine a first target floor where the electronic device is located according to the starting point air pressure value and the ending point air pressure value, and acquire a first wireless signal fingerprint corresponding to the first target floor;
a storage module 540, configured to store the correspondence between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library;
the matching module 550 is configured to determine, when the electronic device is powered on, a second target floor matched with the second wireless signal fingerprint from the wireless signal fingerprint database if the electronic device acquires the second wireless signal fingerprint.
In one embodiment, the air pressure data includes air pressure value sets respectively corresponding to a plurality of sampling periods, and the air pressure value set corresponding to each sampling period includes a plurality of air pressure values collected in each sampling period;
the determining module 510 is configured to determine a first air pressure variation corresponding to each sampling period according to a plurality of air pressure values included in an air pressure set corresponding to each sampling period;
identifying N continuous effective sampling periods from a plurality of sampling periods according to the first air pressure variation corresponding to each sampling period; the first air pressure change amount corresponding to N continuous effective sampling periods is larger than a first air pressure threshold value; n is a positive integer greater than or equal to 1;
and judging whether the floor where the electronic equipment is located is changed or not according to a second air pressure variation between the maximum air pressure value and the minimum air pressure value in the plurality of air pressure values respectively corresponding to the N continuous effective sampling periods.
In an embodiment, the determining module 510 is further configured to determine that the floor where the electronic device is located is changed if a second air pressure variation between a maximum air pressure value and a minimum air pressure value in the plurality of air pressure values respectively corresponding to the N consecutive effective sampling periods is greater than a second air pressure threshold; and if the second air pressure variation is smaller than the second air pressure threshold, determining that the floor where the electronic equipment is located is not changed.
In one embodiment, the barometric pressure data comprises first barometric pressure data collected while the electronic device is in an outdoor environment; the identification module 520 is further configured to obtain a distance variation of the electronic device within a preset time period before a target time when the electronic device enters an indoor environment from an outdoor environment; when the distance variation is smaller than a first distance threshold, identifying a reference air pressure value corresponding to a reference floor from the first air pressure data; and/or when the distance variation is larger than a second distance threshold, determining the air pressure value acquired at the target moment as a reference air pressure value corresponding to the reference floor.
In an embodiment, the storing module 540 is further configured to, if it is detected that a third wireless signal fingerprint corresponding to the first target floor exists in the wireless signal fingerprint database, store the corresponding relationship between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint database when it is determined that the first wireless signal fingerprint and the third wireless signal fingerprint are not similar to each other.
In an embodiment, the storage module 540 is further configured to obtain wireless signal sources corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint, respectively; and when the number of the same wireless signal sources in the wireless signal sources respectively corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint is smaller than a first number threshold, determining that the first wireless signal fingerprint is not similar to the third wireless signal fingerprint, and storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
In one embodiment, the storing module 540 is further configured to determine that the first wireless signal fingerprint and the third wireless signal fingerprint are not similar when a difference value between signal strengths of the first wireless signal fingerprint and the third wireless signal fingerprint under each identical wireless signal source is greater than a first signal threshold, and store the correspondence between the first wireless signal fingerprint and the first target floor in the wireless signal fingerprint database.
In one embodiment, the floor positioning device 500 is further configured to, when the number of moving steps detected by the electronic device on the first target floor is greater than the first step threshold, re-acquire a fourth wireless signal fingerprint corresponding to the first target floor, and replace the first wireless signal fingerprint with the fourth wireless signal fingerprint; and/or when the electronic device detects that the duration of stay at the first target floor is longer than a first duration threshold, re-collecting a fourth wireless signal fingerprint corresponding to the first target floor, and replacing the first wireless signal fingerprint with the fourth wireless signal fingerprint; and storing the corresponding relation between the fourth wireless signal fingerprint and the first target floor into a wireless signal fingerprint library.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 6, the electronic device 600 may include:
a memory 610 storing executable program code;
a processor 620 coupled to the memory 610;
the processor 620 calls the executable program code stored in the memory 610 to execute any of the floor location methods disclosed in the embodiments of the present application.
The embodiment of the application discloses a computer-readable storage medium, which stores a computer program, wherein when the computer program is executed by the processor, the processor is enabled to realize any one of the floor positioning methods disclosed in the embodiment of the application.
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 application. 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 should also appreciate that the embodiments described in this specification are all alternative embodiments and that the acts and modules involved are not necessarily required for this application.
In various embodiments of the present application, it should be understood that the size of the serial number of each process described above does not mean that the execution sequence is necessarily sequential, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, may be embodied in the form of a software product, stored in a memory, including several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be implemented by program instructions associated with hardware, and the program may be stored in a computer-readable storage medium, wherein the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), 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 (CD-ROM), or other Memory, disk Memory, or other storage device, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The floor positioning method, the floor positioning device, the electronic device, and the storage medium disclosed in the embodiments of the present application are described in detail above, and specific examples are applied herein to illustrate the principles and implementations of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application. Meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A method of floor location, the method comprising:
acquiring air pressure data acquired by an air pressure meter of electronic equipment, and judging whether a floor where the electronic equipment is located changes or not according to air pressure variation of the air pressure data;
when the floor where the electronic equipment is located is judged to be not changed any more according to the air pressure variation, a reference air pressure value corresponding to a reference floor is identified from the air pressure data, and a terminal air pressure value corresponding to a floor change terminal is identified from the air pressure data;
determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the ending point air pressure value, and collecting a first wireless signal fingerprint corresponding to the first target floor;
storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library;
when the electronic equipment is started, if the electronic equipment acquires a second wireless signal fingerprint, a second target floor matched with the second wireless signal fingerprint is determined from the wireless signal fingerprint library.
2. The method of claim 1, wherein the barometric pressure data comprises: the air pressure value set corresponding to each sampling period comprises a plurality of air pressure values acquired in each sampling period;
and, the judging whether the floor where the electronic equipment is located changes according to the air pressure variation of the air pressure data includes:
determining a first air pressure variation corresponding to each sampling period according to a plurality of air pressure values included in an air pressure set corresponding to each sampling period;
identifying N continuous effective sampling periods from the plurality of sampling periods according to the first air pressure variation corresponding to each sampling period; the first air pressure change amount corresponding to the N continuous effective sampling periods is greater than a first air pressure threshold value; n is a positive integer greater than or equal to 1;
and judging whether the floor where the electronic equipment is located changes or not according to a second air pressure variation between the maximum air pressure value and the minimum air pressure value in the plurality of air pressure values respectively corresponding to the N continuous effective sampling periods.
3. The method of claim 2, wherein the determining whether the floor on which the electronic device is located changes according to a second air pressure variation between a maximum air pressure value and a minimum air pressure value of a plurality of air pressure values respectively corresponding to the N consecutive effective sampling periods comprises:
if a second air pressure variation between a maximum air pressure value and a minimum air pressure value in a plurality of air pressure values respectively corresponding to the N continuous effective sampling periods is larger than a second air pressure threshold value, determining that the floor where the electronic equipment is located is changed;
and if the second air pressure variation is smaller than the second air pressure threshold, determining that the floor where the electronic equipment is located is not changed.
4. The method of claim 1, wherein the barometric pressure data comprises: first air pressure data acquired when the electronic device is in an outdoor environment;
the identifying a reference air pressure value corresponding to a reference floor from the air pressure data includes:
acquiring the distance variation of the electronic equipment in a preset time before the target time of entering an indoor environment from an outdoor environment;
when the distance variation is smaller than a first distance threshold, identifying a reference air pressure value corresponding to the reference floor from the first air pressure data; and/or the presence of a gas in the gas,
and when the distance variation is larger than a second distance threshold, determining the air pressure value acquired at the target moment as a reference air pressure value corresponding to the reference floor.
5. The method of claim 1, wherein storing the correspondence of the first wireless signal fingerprint to the first target floor in a wireless signal fingerprint repository comprises:
and if the third wireless signal fingerprint corresponding to the first target floor is detected in the wireless signal fingerprint database, storing the corresponding relation between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint database when the first wireless signal fingerprint and the third wireless signal fingerprint are judged to be dissimilar.
6. The method of claim 5, wherein storing the correspondence between the first wireless signal fingerprint and the first target floor in a wireless signal fingerprint repository when the first wireless signal fingerprint and the third wireless signal fingerprint are determined to be dissimilar comprises:
acquiring wireless signal sources corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint respectively;
when the number of the same wireless signal sources in the wireless signal sources respectively corresponding to the first wireless signal fingerprint and the third wireless signal fingerprint is smaller than a first number threshold, determining that the first wireless signal fingerprint is not similar to the third wireless signal fingerprint, and storing the corresponding relation between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint library.
7. The method of claim 5, wherein the first wireless signal fingerprint corresponds to at least one same wireless signal source as the third wireless signal fingerprint; when the first wireless signal fingerprint and the third wireless signal fingerprint are judged to be dissimilar, storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library, including:
and when the difference value of the signal strength of the first wireless signal fingerprint and the third wireless signal fingerprint under each same wireless signal source is greater than a first signal threshold value, determining that the first wireless signal fingerprint is not similar to the third wireless signal fingerprint, and storing the corresponding relation between the first wireless signal fingerprint and the first target floor into the wireless signal fingerprint library.
8. The method of claim 1, wherein after storing the correspondence of the first wireless signal fingerprint to the first target floor in a wireless signal fingerprint repository, the method further comprises:
when the number of the motion steps detected by the electronic equipment on the first target floor is larger than a first step threshold value, re-collecting a fourth wireless signal fingerprint corresponding to the first target floor, and replacing the first wireless signal fingerprint with the fourth wireless signal fingerprint; and/or the presence of a gas in the gas,
when the electronic equipment detects that the duration of stay at the first target floor is longer than a first duration threshold, re-collecting a fourth wireless signal fingerprint corresponding to the first target floor, and replacing the first wireless signal fingerprint with the fourth wireless signal fingerprint;
and storing the corresponding relation between the fourth wireless signal fingerprint and the first target floor into the wireless signal fingerprint library.
9. A floor positioning device, comprising:
the judgment module is used for acquiring air pressure data acquired by an air pressure meter of the electronic equipment and judging whether the floor where the electronic equipment is located changes or not according to the air pressure variation of the air pressure data;
the identification module is used for identifying a reference air pressure value corresponding to a reference floor from the air pressure data and identifying a terminal air pressure value corresponding to a floor change terminal from the air pressure data when the floor where the electronic equipment is located is judged to be not changed according to the air pressure change;
the acquisition module is used for determining a first target floor where the electronic equipment is located according to the starting point air pressure value and the ending point air pressure value and acquiring a first wireless signal fingerprint corresponding to the first target floor;
the storage module is used for storing the corresponding relation between the first wireless signal fingerprint and the first target floor into a wireless signal fingerprint library;
and the matching module is used for determining a second target floor matched with the second wireless signal fingerprint from the wireless signal fingerprint library if the electronic equipment acquires the second wireless signal fingerprint when the electronic equipment is started.
10. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program that, when executed by the processor, causes the processor to carry out the method of any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202210439105.1A 2022-04-22 2022-04-22 Floor positioning method and device, electronic equipment and storage medium Pending CN115134754A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210439105.1A CN115134754A (en) 2022-04-22 2022-04-22 Floor positioning method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210439105.1A CN115134754A (en) 2022-04-22 2022-04-22 Floor positioning method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115134754A true CN115134754A (en) 2022-09-30

Family

ID=83376222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210439105.1A Pending CN115134754A (en) 2022-04-22 2022-04-22 Floor positioning method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115134754A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115924664A (en) * 2022-12-23 2023-04-07 泰州雷德波达定位导航科技有限公司 Vertical elevator identification method, system, medium, equipment, terminal and application

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115924664A (en) * 2022-12-23 2023-04-07 泰州雷德波达定位导航科技有限公司 Vertical elevator identification method, system, medium, equipment, terminal and application

Similar Documents

Publication Publication Date Title
CN103649770B (en) The location estimation of mobile device
CN109668563B (en) Indoor-based track processing method and device
CN109656973B (en) Target object association analysis method and device
CN107358471B (en) Tour resource recommendation method and system based on tour behaviors
WO2018134586A1 (en) A method and computer processing apparatus for generating data relating to a vertical structure of a built environment and detecting a floor change
CN111144434A (en) Floor number acquisition method and device, electronic equipment and storage medium
CN107544085B (en) Positioning method and wearable device
CN115134754A (en) Floor positioning method and device, electronic equipment and storage medium
WO2016110049A1 (en) Prompting method and device for vehicle parking position
US20200196268A1 (en) System and method for positioning a gateway of an architecture
CN111954175A (en) Method for judging visiting of interest point and related device
KR101706556B1 (en) Affiliated store labeling method, affiliated store labeling apparatus and affiliated store labeling system for wireless lan fingerprint
CN111751860B (en) Building position determining method and terminal equipment
CN114205751A (en) Method and device for generating positioning fingerprint database and electronic equipment
CN111757465A (en) Clustering positioning method, service equipment and system
CN112102407A (en) Display equipment positioning method and device, display equipment and computer storage medium
KR102638409B1 (en) Indoor and outdoor integrated location recognition method and system utilizing portable complex signal collection device and qr code
CN111757284B (en) Indoor entrance positioning method and electronic equipment
KR102223319B1 (en) Method and system of gathering and using composite data for indoor location recognition through crowdsorcing
CN111750856B (en) Method for judging moving mode between floors and intelligent equipment
CN113269913A (en) Portable multi-functional epidemic prevention detector
CN111148016B (en) Mobile equipment positioning method and system in indoor environment and mobile equipment
CN111750917A (en) Method and device for identifying inter-floor movement mode and intelligent equipment
CN112466060A (en) Intelligent express cabinet pickup system based on face recognition
CN116027367B (en) Stay point identification method, apparatus, device and storage medium

Legal Events

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