WO2019071762A1 - Floor positioning method and system, server and computer-readable storage medium - Google Patents

Floor positioning method and system, server and computer-readable storage medium Download PDF

Info

Publication number
WO2019071762A1
WO2019071762A1 PCT/CN2017/114367 CN2017114367W WO2019071762A1 WO 2019071762 A1 WO2019071762 A1 WO 2019071762A1 CN 2017114367 W CN2017114367 W CN 2017114367W WO 2019071762 A1 WO2019071762 A1 WO 2019071762A1
Authority
WO
WIPO (PCT)
Prior art keywords
floor
terminal
signal
wireless signal
location
Prior art date
Application number
PCT/CN2017/114367
Other languages
French (fr)
Chinese (zh)
Inventor
黄兴鲁
Original Assignee
深圳数位传媒科技有限公司
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 深圳数位传媒科技有限公司 filed Critical 深圳数位传媒科技有限公司
Publication of WO2019071762A1 publication Critical patent/WO2019071762A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations
    • G01C21/206Instruments for performing navigational calculations specially adapted for indoor navigation

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a floor location positioning method, system, server, and computer readable storage medium.
  • a primary object of the present invention is to provide a floor location location method, system, server, and computer readable storage medium, which are directed to solving the prior art problem of not being able to determine the current floor location information in an indoor environment.
  • the present invention provides a floor location positioning method, which is applied to a server, and the floor location positioning method includes:
  • the determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  • the present invention also provides a server including a processor, a memory, and a floor position locating program stored on the memory and operable on the processor, the floor position positioning The steps of the floor location location method as described above are implemented when the program is executed by the processor.
  • the present invention also provides a computer readable storage medium having a floor location locating program stored thereon, the floor location locating program being implemented by a processor as described above The steps of the floor location location method.
  • the present invention further provides a floor location locating system, the floor location locating system comprising a terminal and a server, the server described above;
  • the terminal is configured to collect wireless signal data in an indoor environment by using a built-in positioning application
  • the server first receives the wireless signal data uploaded by the terminal, and then matches the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located, and finally determines the determined floor position feedback.
  • the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  • the terminal In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
  • FIG. 1 is a schematic structural diagram of a server in a hardware operating environment according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a first embodiment of a floor position positioning method according to the present invention
  • FIG. 3 is a schematic diagram of a preferred embodiment of the present invention.
  • step S20 in FIG. 2 is a schematic diagram showing the refinement process of step S20 in FIG. 2;
  • FIG. 5 is a schematic flow chart of a second embodiment of a floor position positioning method according to the present invention.
  • FIG. 6 is a schematic diagram of a first refinement process of step S28 in FIG. 5;
  • step S28 in FIG. 5 is a schematic diagram of a second refinement process of step S28 in FIG. 5;
  • FIG. 8 is a schematic diagram of a third refinement flow of step S28 in FIG. 5.
  • the solution of the embodiment of the present invention is mainly: the server first receives the wireless signal data uploaded by the terminal, and then matches the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located, and finally determines the determined floor location. Feedback to the terminal for the terminal to display the received floor location in the display interface of the positioning application. In order to solve the existing indoor environment, it is impossible to accurately locate the problem.
  • FIG. 1 is a schematic structural diagram of a server in a hardware operating environment according to an embodiment of the present invention.
  • the server in the embodiment of the present invention may be a one-way server, or may be a multi-way server or a distributed server.
  • the server may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to implement connection communication between these components.
  • the user interface 1003 may include a display, an input unit such as a keyboard, and the optional user interface 1003 may also include a standard wired interface (eg, for connecting a wired keyboard, a wired mouse, etc.), a wireless interface (eg, for Connect a wireless keyboard, wireless mouse).
  • the network interface 1004 can optionally include a standard wired interface (for connecting to a wired network), a wireless interface (such as a WI-FI interface, a Bluetooth interface, an infrared interface, a probe interface, a 3G/4G/5G network communication interface, etc.) Connect to a wireless network).
  • the memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage.
  • the memory 1005 can also optionally be a storage device independent of the aforementioned motherboard 1001.
  • the server may also include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more.
  • RF Radio
  • RF Radio
  • server structure illustrated in FIG. 1 does not constitute a limitation to the terminal, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
  • an operating system a network communication module, a user interface module, and a floor location locating program may be included in the memory 1005 as a computer readable storage medium.
  • the operating system is a program for managing and controlling terminal and software resources, and supports operation of a network communication module, a user interface module, a floor location locating program, and other programs or software; a network communication module is used to manage and control the network interface 1002; a user interface The module is used to manage and control the user interface 1003.
  • the server calls the floor location locating program stored in the memory 1005 by the processor 1001 to implement the following steps:
  • the determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  • the server calls the floor location locating program stored in the memory 1005 by the processor 1001, and further implements a step of matching the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located:
  • the determined floor location is taken as the floor location where the terminal is located.
  • the server calls the floor location locating program stored in the memory 1005 by the processor 1001, and further implements a step of matching the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located:
  • the determined floor location is taken as the floor location where the terminal is located.
  • the server calls the floor position locating program stored in the memory 1005 by the processor 1001, and further implements the step of determining the determined floor position as the floor position where the terminal is located:
  • the probability that the signal identifier of each wireless signal number appears in each floor is calculated
  • the floor with the highest probability of aggregation is taken as the floor location where the terminal is located.
  • the server calls the floor position locating program stored in the memory 1005 by the processor 1001, and further implements the step of determining the determined floor position as the floor position where the terminal is located:
  • the wireless signal data reported by the terminal includes multiple, determining a signal strength corresponding to each wireless signal data appearing in each floor;
  • the floor with the highest signal strength average is taken as the floor position where the terminal is located.
  • the server calls the floor position locating program stored in the memory 1005 by the processor 1001, and further implements the step of determining the determined floor position as the floor position where the terminal is located:
  • wireless signal data reported by the terminal includes multiple, calculate the number of wireless signal data covered in each floor;
  • the floor covering the largest number of wireless signal data is taken as the floor position where the terminal is located.
  • the server firstly receives the wireless signal data uploaded by the terminal by calling the floor location locating program stored in the memory, and then matching the wireless signal data with the pre-stored signal database to determine the location of the terminal.
  • the floor location ultimately returns the determined floor location to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  • the terminal In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
  • FIG. 2 is a schematic flowchart diagram of a first embodiment of a floor position positioning method according to the present invention.
  • the floor location positioning method is applied to a server, and the floor location positioning method includes:
  • the determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  • the floor location location method is applied to a server, such as the server shown in FIG.
  • the signal database is established, and the establishment of the signal database includes:
  • Step a the server records the location of each signal source included in each floor in the indoor environment, wherein the signal source is used to transmit a wireless signal, so that the terminal receives the wireless signal data;
  • Step b after recording each signal source included in each floor, recording the signal strength of each signal source detected at each position in each floor;
  • Step c storing the signal strength detected by each location and the signal identifier of the signal source in association with each corresponding location;
  • Step d establishing a signal database based on the associated stored location information, signal identification, and signal strength.
  • the signal database is established by the server to record the location of each signal source included in each floor.
  • the location of each signal source can be collected by the terminal and uploaded to the server, or the server can receive the user through the front-end page. Enter and record the location.
  • the server After recording the location of each signal source included in each floor, the server records the signal strength of each signal source detected at each position in each floor. It should be noted that since the signal source in each floor contains multiple, Therefore, there are also multiple signal sources detected at each location in each floor. Accordingly, the signal strength recorded in each location in the floor also includes multiple.
  • the three signal sources may be on the same floor or may be located differently. In the floor, there is no limit here.
  • the M point is currently used as the detection point, the signal strength of each signal source is detected at the position of the M point. As shown in FIG. 3, the distance between the M point and the signal source B, the signal source A, and the signal source C is sequentially decreased. Therefore, the signal strengths of the signal source B, the signal source A, and the signal source C are sequentially increased at the point M.
  • the signal strength of the signal source B detected at the point M is -15 dBm, and the M point and the detected signal source are detected.
  • the signal strength of A is -11 dBm, and the signal strength of point M and detected signal source C is -6 dBm.
  • the signal strength of the signal source detected at each position is determined according to the distance between the detection point and the signal source. The longer the distance, the weaker the detected signal strength, and the shorter the distance, the stronger the detected signal strength. . It can be understood that when another point is selected as the detection point in the floor, the signal strengths of the three signal sources can also be detected. It should be noted that the detection points are different, and the detected signal strengths of the respective signal sources are also different. In this way, the signal strength of each signal source detected in each position can be obtained.
  • the signal strength detected by each position and the signal identifier of the signal source are stored in association with each corresponding position.
  • the M point is Signal source A and -11dBm are stored in association with source B and -15dBm and with source C and -6dBm.
  • a signal database can be established.
  • the signal database records the distance between each location and each signal source in each floor of the indoor environment, and the signal strength of each signal source detected at each location.
  • the server can determine the floor position of the terminal according to the pre-stored signal database.
  • Step S10 Receive wireless signal data uploaded by the terminal, where the wireless signal data is collected by the terminal in an indoor environment through a built-in positioning application;
  • the server first receives wireless signal data reported by the terminal, and the wireless signal data is wireless signal data collected by the terminal in the indoor environment through the built-in positioning application.
  • the wireless signal data uploaded by the terminal may optionally include one or more, and the specific number of the wireless signal data is determined according to the signal source, that is, when the terminal detects multiple signal sources, the terminal uploads multiple wireless signal data, and detects 1 When one source is used, one wireless signal data is uploaded.
  • the wireless signal data includes a Wi-Fi signal, a Bluetooth signal, or a base station signal.
  • Step S20 matching the wireless signal data with a pre-stored signal database to determine a floor location where the terminal is located;
  • the server After receiving the wireless signal data uploaded by the terminal, the server matches the received wireless signal data with the pre-stored signal database, that is, compares the wireless signal data with the signal data in the pre-stored signal database to determine where the terminal is located. Floor location.
  • the step S20 includes:
  • Step S21 determining a signal identifier and a signal strength corresponding to the received wireless signal data
  • Step S22 in the pre-stored signal database, searching for a floor area included in the signal source corresponding to the signal identifier;
  • Step S23 in the searched floor area, determining a floor position corresponding to the signal source that detects the signal strength
  • step S24 the determined floor location is taken as the floor location where the terminal is located.
  • the embodiment after receiving the wireless signal data uploaded by the terminal, extracting the signal identifier and signal strength carried by the wireless signal data, and then searching for a signal source corresponding to the signal identifier in the pre-stored signal database, And determining, according to the floor area included in the pre-stored signal source, the floor area included in the signal source corresponding to the signal identifier. After finding the floor area included in the signal source corresponding to the signal identifier, further querying a specific floor position of the signal source capable of detecting the signal strength, that is, after determining the floor included in the signal source, determining that the signal can be detected. The specific floor location of the intensity signal source.
  • the server has determined that the wireless signal data reported by the terminal is the signal source A, and when the signal transmission capability of the signal source A is strong, the terminal on the same floor of the signal source A can The wireless signal data transmitted by the signal source A is detected.
  • the wireless signal data transmitted by the signal source A can be detected at the terminal of the adjacent floor of the signal source A, but the signal strength detected by the terminals of the two floors is different, therefore,
  • the floor area included in the signal source may be determined according to the coverage range of the wireless signal in the signal source A, and then, in the included floor area, the floor position corresponding to the signal source capable of detecting the signal strength is determined, for example, a signal
  • the signal strength detected by the terminal on the same floor of source A is -11. dBm
  • the signal strength detected at the terminal on the adjacent floor of the signal source is -6dBm. If the signal strength of the wireless signal data received by the server is -11 dBm, the floor position where the terminal is located can be determined.
  • the server is in the pre-stored signal.
  • the signal source corresponding to each signal identifier is searched to determine the floor area where the signal source corresponding to each signal identifier is located according to the floor area where each pre-stored signal source is located. After determining the floor area where the signal source of each signal identification is located, the specific location of the signal source capable of detecting each signal strength is further queried. The specific determination method is consistent with the above, and will not be described here.
  • Step S30 feeding back the determined floor position to the terminal, so that the terminal displays the received floor position in the display interface of the positioning application.
  • the server determines the location of the floor where the terminal is located
  • the determined floor location can be fed back to the terminal, so that the terminal displays the received floor location information in the display interface of the positioning application.
  • the server first receives the wireless signal data uploaded by the terminal, and then matches the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located, and finally determines the determined floor location. Feedback to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  • the terminal In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
  • the second embodiment of the floor position locating method differs from the first embodiment of the floor position locating method in that, in this embodiment, referring to FIG. 5, the step S20 may further include:
  • Step S25 determining a signal identifier corresponding to the received wireless signal data
  • Step S26 comparing the determined signal identifier with the pre-stored signal database to determine a pre-stored signal identifier in the pre-stored signal database that matches the signal identifier;
  • Step S27 determining a floor location corresponding to the signal identifier of the wireless signal data based on a mapping relationship between the pre-stored signal identifier and the floor location in the pre-stored signal database;
  • step S28 the determined floor position is taken as the floor position where the terminal is located.
  • the server after receiving the wireless signal data uploaded by the terminal, matches the received wireless signal data with the pre-stored signal database, that is, compares the wireless signal data with the signal data in the pre-stored signal database. Determine the location of the floor where the terminal is located. Specifically, the server first determines the signal identifier corresponding to the received wireless signal data, and after determining the signal identifier corresponding to the wireless signal data, the server compares the determined signal identifier with the pre-stored signal database to determine and correlate in the pre-stored signal database.
  • the signal identifies the matched pre-stored signal identifier, and then based on the mapping relationship between the pre-stored signal identifier and the floor location in the pre-stored signal database, the floor position corresponding to the signal identifier of the wireless signal data can be determined, and the determined floor position is finally determined. As the floor location where the terminal is located.
  • the determined floor location may be directly used as the floor location where the terminal is located. If the determined floor location includes multiple, the multiple floor locations need to be further analyzed. To determine the specific floor location where the terminal is located, specifically, the implementation manner of the step S28 includes:
  • Method 1 When a plurality of determined floor positions are included, referring to FIG. 6, the step S28 includes:
  • Step S281 if the wireless signal data reported by the terminal includes multiple, calculate a probability that the signal identifier of each wireless signal number appears in each floor;
  • Step S282 summarizing the probability of occurrence of each signal identifier in each floor
  • step S283 the floor with the highest probability of aggregation is taken as the floor position where the terminal is located.
  • the probability that the signal identifier of each wireless signal data appears in each floor is calculated first.
  • the probability is set to 1.
  • the probability that each signal identifier appears in each floor may also be determined according to the specific number of floors. For example, the current building includes 3 Floor, then, the probability that each signal identifier appears in each floor can be 1/3. It should be understood that the calculation manner of the probability that each signal identifier appears in each floor is not limited to the above two types, and other methods may be set according to actual needs, and details are not described herein again.
  • the probability of each signal identifier appearing in each floor is summarized, for example, source A and source B appear on the first floor, and signals appear on the second floor.
  • the summary result of the medium probability is 1/3.
  • Step S28 when a plurality of determined floor positions are included, referring to FIG. 7, the step S28 includes:
  • Step S284 if the wireless signal data reported by the terminal includes multiple, determining the signal strength corresponding to each wireless signal data appearing in each floor;
  • Step S285 averaging the signal strengths of the respective wireless signal data appearing in each floor;
  • step S286 the floor with the highest signal strength average is used as the floor position where the terminal is located.
  • the server can extract the signal strength from the wireless signal data, after determining the signal strength corresponding to each wireless signal data appearing in each floor.
  • the average signal strength of each wireless signal data appearing in each floor is averaged, and finally the floor with the highest signal strength average is used as the floor position where the terminal is located.
  • the step S28 includes:
  • Step S287 if the wireless signal data reported by the terminal includes multiple, calculate the number of wireless signal data covered in each floor;
  • step S288 the floor covering the largest number of wireless signal data is used as the floor position where the terminal is located.
  • the determined floor location includes a plurality of locations
  • the wireless signal data reported by the terminal includes more than one
  • the number of coverage wireless signal data in each floor is calculated first, and each floor is calculated.
  • the number of wireless signal data covered in the sum is summarized, and finally the floor covering the largest number of wireless signal data is used as the floor position where the terminal is located.
  • the specific floor location where the terminal is located is determined in three ways, so that the determination manner of the terminal floor is more flexible.
  • an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a floor location locating program, and when the floor location locating program is executed by the processor, the following operations are implemented:
  • the determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  • the operation of matching the wireless signal data with the pre-stored signal database to determine the location of the floor where the terminal is located is also implemented:
  • the determined floor location is taken as the floor location where the terminal is located.
  • the operation of matching the wireless signal data with the pre-stored signal database to determine the location of the floor where the terminal is located is also implemented:
  • the determined floor location is taken as the floor location where the terminal is located.
  • the determined floor position includes a plurality of
  • the floor position locating program when executed by the processor, an operation of determining the determined floor position as the floor position where the terminal is located is also implemented:
  • the probability that the signal identifier of each wireless signal number appears in each floor is calculated
  • the floor with the highest probability of aggregation is taken as the floor location where the terminal is located.
  • the determined floor position includes a plurality of
  • the floor position locating program when executed by the processor, an operation of determining the determined floor position as the floor position where the terminal is located is also implemented:
  • the wireless signal data reported by the terminal includes multiple, determining a signal strength corresponding to each wireless signal data appearing in each floor;
  • the floor with the highest signal strength average is taken as the floor position where the terminal is located.
  • the determined floor position includes a plurality of
  • the floor position locating program when executed by the processor, an operation of determining the determined floor position as the floor position where the terminal is located is also implemented:
  • wireless signal data reported by the terminal includes multiple, calculate the number of wireless signal data covered in each floor;
  • the floor covering the largest number of wireless signal data is taken as the floor position where the terminal is located.
  • the wireless signal data uploaded by the terminal is first received, and then the wireless signal data is matched with the pre-stored signal database to determine the floor where the terminal is located.
  • the location ultimately returns the determined floor location to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  • the terminal In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
  • the invention further provides a floor position location system.
  • the floor location location system includes a terminal and a server, such as the server described above;
  • the terminal is configured to collect wireless signal data in an indoor environment by using a built-in positioning application
  • the terminal first collects wireless signal data in an indoor environment through a built-in positioning application, and the wireless signal data includes a Wi-Fi signal, a Bluetooth signal, or a base station signal.
  • the collected wireless signal data carries a signal identifier and a signal strength, wherein the signal identifier of the wireless signal data is an identifier of a signal source in an indoor environment, and the signal strength of the wireless signal data is a signal source sensed by the terminal.
  • the signal strength and the strength of the signal strength are determined according to the distance between the terminal and the signal source. The closer the distance is, the stronger the signal strength is, and the farther the distance is, the weaker the signal strength is.
  • the terminal collects the wireless signal data
  • the collected wireless signal data is uploaded to the server, and the server feeds back the location of the floor where the terminal is located based on the received wireless signal data and the pre-stored signal database, and the server stores the data according to the wireless signal and the pre-stored data.
  • the signal database which feeds back the location of the floor where the terminal is located, has been detailed in the above implementation, and will not be described herein.
  • the terminal receives the floor location fed back by the server, the received floor location can be displayed in the display interface of the positioning application.
  • the terminal collects wireless signal data in the indoor environment through the built-in positioning application, and then uploads the collected wireless signal data to the server, so that the server is based on the received wireless signal data and the pre-stored signal.
  • the database feeds back the floor location where the terminal is located, finally receives the floor location feedback by the server, and displays the received floor location in the display interface of the positioning application.
  • the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a plurality of instructions for causing a terminal device (which may be a fixed terminal, such as an IoT smart device, including a smart home such as a smart air conditioner, a smart light, a smart power source, a smart router, or the like; or a mobile terminal, including a smart device.
  • a terminal device which may be a fixed terminal, such as an IoT smart device, including a smart home such as a smart air conditioner, a smart light, a smart power source, a smart router, or the like; or a mobile terminal, including a smart device.
  • a number of networked devices such as cell phones, wearable networked AR/VR devices, smart speakers, self-driving cars, and the like, perform the methods described in various embodiments of the present invention.

Abstract

Disclosed in the present invention is a floor positioning method applied to a server, the floor positioning method comprising: receiving wireless signal data uploaded by a terminal, wherein the wireless signal data are collected by the terminal in an indoor environment by means of a built-in positioning application; matching the wireless signal data with a pre-stored signal database so as to determine the floor position where the terminal is located; and feeding back the determined floor position to the terminal so that the terminal may display the received floor location in a display interface of the positioning application. Also disclosed in the present invention are a server, a computer-readable storage medium and a floor positioning system. By means of the present invention, the floor position in an indoor environment may be accurately positioned.

Description

楼层位置定位方法、系统、服务器和计算机可读存储介质  Floor location location method, system, server and computer readable storage medium
技术领域Technical field
本发明涉及终端技术领域,尤其涉及一种楼层位置定位方法、系统、服务器和计算机可读存储介质。The present invention relates to the field of terminal technologies, and in particular, to a floor location positioning method, system, server, and computer readable storage medium.
背景技术Background technique
随着人们生活水平的提高,人们的日常生活越来越多集中在大型建筑物内,如处于商业中心和车站等建筑结构复杂、人员密集的室内环境,在用户处于室内环境时,由于GPS(Global Positioning System,全球定位系统)在室内的定位受限,用户往往无法确定自己当前所处的楼层位置。With the improvement of people's living standards, people's daily life is more and more concentrated in large buildings, such as commercial buildings and stations, such as complex buildings and crowded indoor environments. When users are in indoor environment, due to GPS ( Global Positioning System (Global Positioning System) has limited indoor positioning, and users are often unable to determine the location of their current floor.
发明内容Summary of the invention
本发明的主要目的在于提供一种楼层位置定位方法、系统、服务器和计算机可读存储介质,旨在解决现有技术,无法在室内环境中确定当前所处的楼层位置信息的技术问题。SUMMARY OF THE INVENTION A primary object of the present invention is to provide a floor location location method, system, server, and computer readable storage medium, which are directed to solving the prior art problem of not being able to determine the current floor location information in an indoor environment.
为实现上述目的,本发明提供一种楼层位置定位方法,应用于服务器,所述楼层位置定位方法包括:To achieve the above object, the present invention provides a floor location positioning method, which is applied to a server, and the floor location positioning method includes:
接收终端上传的无线信号数据,其中,所述无线信号数据由终端通过内置的定位应用在室内环境中采集;Receiving wireless signal data uploaded by the terminal, wherein the wireless signal data is collected by the terminal in an indoor environment through a built-in positioning application;
将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置;Matching the wireless signal data with a pre-stored signal database to determine a floor location at which the terminal is located;
将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。The determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
此外,为实现上述目的,本发明还提供一种服务器,所述服务器包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的楼层位置定位程序,所述楼层位置定位程序被所述处理器执行时实现如上文所述的楼层位置定位方法的步骤。Moreover, in order to achieve the above object, the present invention also provides a server including a processor, a memory, and a floor position locating program stored on the memory and operable on the processor, the floor position positioning The steps of the floor location location method as described above are implemented when the program is executed by the processor.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有楼层位置定位程序,所述楼层位置定位程序被处理器执行时实现如上文所述的楼层位置定位方法的步骤。Moreover, in order to achieve the above object, the present invention also provides a computer readable storage medium having a floor location locating program stored thereon, the floor location locating program being implemented by a processor as described above The steps of the floor location location method.
此外,为实现上述目的,本发明还提供一种楼层位置定位系统,所述楼层位置定位系统包括终端和服务器,所述服务器上文所述的服务器;In addition, in order to achieve the above object, the present invention further provides a floor location locating system, the floor location locating system comprising a terminal and a server, the server described above;
所述终端,用于通过内置的定位应用在室内环境中采集无线信号数据;The terminal is configured to collect wireless signal data in an indoor environment by using a built-in positioning application;
将采集到的无线信号数据上传至服务器,以供服务器基于接收到的无线信号数据以及预存信号数据库,反馈所述终端所在的楼层位置;Uploading the collected wireless signal data to the server, so that the server feeds back the floor location where the terminal is located based on the received wireless signal data and the pre-stored signal database;
接收所述服务器反馈的楼层位置,并在定位应用的显示界面中显示接收到的楼层位置。Receiving the floor location fed back by the server and displaying the received floor location in the display interface of the positioning application.
本发明提出的楼层位置定位方法,服务器先接收终端上传的无线信号数据,然后将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置,最终将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。本发明在室内环境中,由终端先通过内置的定位应用在室内环境中采集无线信号数据,再由服务器根据预存信号数据库及所述无线信号数据,确定终端所在的楼层位置信息,实现了室内环境的准确定位。According to the floor location positioning method of the present invention, the server first receives the wireless signal data uploaded by the terminal, and then matches the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located, and finally determines the determined floor position feedback. To the terminal, for the terminal to display the received floor location in the display interface of the positioning application. In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
附图说明DRAWINGS
图1是本发明实施例方案涉及的硬件运行环境的服务器结构示意图;1 is a schematic structural diagram of a server in a hardware operating environment according to an embodiment of the present invention;
图2为本发明楼层位置定位方法第一实施例的流程示意图;2 is a schematic flow chart of a first embodiment of a floor position positioning method according to the present invention;
图3为本发明较佳实施场景示意图;3 is a schematic diagram of a preferred embodiment of the present invention;
图4为图2中步骤S20的细化流程示意图;4 is a schematic diagram showing the refinement process of step S20 in FIG. 2;
图5为本发明楼层位置定位方法第二实施例的流程示意图;5 is a schematic flow chart of a second embodiment of a floor position positioning method according to the present invention;
图6为图5中步骤S28的第一细化流程示意图;6 is a schematic diagram of a first refinement process of step S28 in FIG. 5;
图7为图5中步骤S28的第二细化流程示意图;7 is a schematic diagram of a second refinement process of step S28 in FIG. 5;
图8为图5中步骤S28的第三细化流程示意图。FIG. 8 is a schematic diagram of a third refinement flow of step S28 in FIG. 5.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
本发明实施例的解决方案主要是:服务器先接收终端上传的无线信号数据,然后将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置,最终将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。以解决现有的室内环境,无法准确定位的问题。The solution of the embodiment of the present invention is mainly: the server first receives the wireless signal data uploaded by the terminal, and then matches the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located, and finally determines the determined floor location. Feedback to the terminal for the terminal to display the received floor location in the display interface of the positioning application. In order to solve the existing indoor environment, it is impossible to accurately locate the problem.
如图1所示,图1是本发明实施例方案涉及的硬件运行环境的服务器结构示意图。As shown in FIG. 1 , FIG. 1 is a schematic structural diagram of a server in a hardware operating environment according to an embodiment of the present invention.
本发明实施例服务器可以是单路服务器、也可以是多路服务器或分布式服务器。The server in the embodiment of the present invention may be a one-way server, or may be a multi-way server or a distributed server.
如图1所示,该服务器可以包括:处理器1001,例如CPU,通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口(例如用于连接有线键盘、有线鼠标等)、无线接口(例如用于连接无线键盘、无线鼠标)。网络接口1004可选的可以包括标准的有线接口(用于连接有线网络)、无线接口(如WI-FI接口、蓝牙接口、红外线接口、探针接口、3G/4G/5G联网通信接口等,用于连接无线网络)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述主板1001的存储装置。As shown in FIG. 1, the server may include a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 may include a display, an input unit such as a keyboard, and the optional user interface 1003 may also include a standard wired interface (eg, for connecting a wired keyboard, a wired mouse, etc.), a wireless interface (eg, for Connect a wireless keyboard, wireless mouse). The network interface 1004 can optionally include a standard wired interface (for connecting to a wired network), a wireless interface (such as a WI-FI interface, a Bluetooth interface, an infrared interface, a probe interface, a 3G/4G/5G network communication interface, etc.) Connect to a wireless network). The memory 1005 may be a high speed RAM memory or a stable memory (non-volatile) Memory), such as disk storage. The memory 1005 can also optionally be a storage device independent of the aforementioned motherboard 1001.
可选地,服务器还可以包括摄像头、RF(Radio Frequency,射频)电路,传感器、音频电路、WiFi模块等等。Optionally, the server may also include a camera, RF (Radio) Frequency, RF) circuits, sensors, audio circuits, WiFi modules, and more.
本领域技术人员可以理解,图1中示出的服务器结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the server structure illustrated in FIG. 1 does not constitute a limitation to the terminal, and may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements.
如图1所示,作为一种计算机可读存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及楼层位置定位程序。其中,操作系统是管理和控制终端与软件资源的程序,支持网络通信模块、用户接口模块、楼层位置定位程序以及其他程序或软件的运行;网络通信模块用于管理和控制网络接口1002;用户接口模块用于管理和控制用户接口1003。As shown in FIG. 1, an operating system, a network communication module, a user interface module, and a floor location locating program may be included in the memory 1005 as a computer readable storage medium. The operating system is a program for managing and controlling terminal and software resources, and supports operation of a network communication module, a user interface module, a floor location locating program, and other programs or software; a network communication module is used to manage and control the network interface 1002; a user interface The module is used to manage and control the user interface 1003.
在图1所示的终端中,所述服务器通过处理器1001调用存储器1005中存储的楼层位置定位程序,以实现以下步骤:In the terminal shown in FIG. 1, the server calls the floor location locating program stored in the memory 1005 by the processor 1001 to implement the following steps:
接收终端上传的无线信号数据,其中,所述无线信号数据由终端通过内置的定位应用在室内环境中采集;Receiving wireless signal data uploaded by the terminal, wherein the wireless signal data is collected by the terminal in an indoor environment through a built-in positioning application;
将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置;Matching the wireless signal data with a pre-stored signal database to determine a floor location at which the terminal is located;
将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。The determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
进一步地,所述服务器通过处理器1001调用存储器1005中存储的楼层位置定位程序,还实现将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置的步骤:Further, the server calls the floor location locating program stored in the memory 1005 by the processor 1001, and further implements a step of matching the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located:
确定接收到的无线信号数据对应的信号标识和信号强度;Determining a signal identifier and a signal strength corresponding to the received wireless signal data;
在所述预存信号数据库中,查找所述信号标识对应的信号源所包含的楼层区域;Searching, in the pre-stored signal database, a floor area included in a signal source corresponding to the signal identifier;
在查找的楼层区域中,确定检测到所述信号强度的信号源对应的楼层位置;Determining a floor location corresponding to a signal source that detects the signal strength in the searched floor area;
将确定的楼层位置作为所述终端所在的楼层位置。The determined floor location is taken as the floor location where the terminal is located.
进一步地,所述服务器通过处理器1001调用存储器1005中存储的楼层位置定位程序,还实现将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置的步骤:Further, the server calls the floor location locating program stored in the memory 1005 by the processor 1001, and further implements a step of matching the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located:
确定接收到的无线信号数据对应的信号标识;Determining a signal identifier corresponding to the received wireless signal data;
将确定的信号标识与预存信号数据库进行比对,以确定预存信号数据库中与所述信号标识匹配的预存信号标识;Comparing the determined signal identifier with the pre-stored signal database to determine a pre-stored signal identifier in the pre-stored signal database that matches the signal identifier;
基于预存信号数据库中,预存信号标识与楼层位置的映射关系,确定所述无线信号数据的信号标识对应的楼层位置;Determining, according to a mapping relationship between the pre-stored signal identifier and the floor location, a floor location corresponding to the signal identifier of the wireless signal data;
将确定的楼层位置作为所述终端所在的楼层位置。The determined floor location is taken as the floor location where the terminal is located.
进一步地,在确定的楼层位置包括多个时,所述服务器通过处理器1001调用存储器1005中存储的楼层位置定位程序,还实现将确定的楼层位置作为所述终端所在的楼层位置的步骤:Further, when the determined floor position includes a plurality of, the server calls the floor position locating program stored in the memory 1005 by the processor 1001, and further implements the step of determining the determined floor position as the floor position where the terminal is located:
若终端上报的无线信号数据包括多个,则计算每个无线信号数的信号标识在每个楼层中出现的概率;If the wireless signal data reported by the terminal includes multiple, the probability that the signal identifier of each wireless signal number appears in each floor is calculated;
对每个楼层中的各个信号标识出现的概率进行汇总;Summarize the probability of occurrence of each signal identifier in each floor;
将汇总后概率最大的楼层作为所述终端所在的楼层位置。The floor with the highest probability of aggregation is taken as the floor location where the terminal is located.
进一步地,在确定的楼层位置包括多个时,所述服务器通过处理器1001调用存储器1005中存储的楼层位置定位程序,还实现将确定的楼层位置作为所述终端所在的楼层位置的步骤:Further, when the determined floor position includes a plurality of, the server calls the floor position locating program stored in the memory 1005 by the processor 1001, and further implements the step of determining the determined floor position as the floor position where the terminal is located:
若终端上报的无线信号数据包括多个,则确定每个楼层中出现的各个无线信号数据对应的信号强度;If the wireless signal data reported by the terminal includes multiple, determining a signal strength corresponding to each wireless signal data appearing in each floor;
对每个楼层中出现的各个无线信号数据的信号强度进行求平均值;Average the signal strength of each wireless signal data appearing in each floor;
将信号强度均值最大的楼层作为所述终端所在的楼层位置。The floor with the highest signal strength average is taken as the floor position where the terminal is located.
进一步地,在确定的楼层位置包括多个时,所述服务器通过处理器1001调用存储器1005中存储的楼层位置定位程序,还实现将确定的楼层位置作为所述终端所在的楼层位置的步骤:Further, when the determined floor position includes a plurality of, the server calls the floor position locating program stored in the memory 1005 by the processor 1001, and further implements the step of determining the determined floor position as the floor position where the terminal is located:
若终端上报的无线信号数据包括多个,则计算每个楼层中涵盖的无线信号数据的个数;If the wireless signal data reported by the terminal includes multiple, calculate the number of wireless signal data covered in each floor;
将涵盖无线信号数据的个数最多的楼层作为所述终端所在的楼层位置。The floor covering the largest number of wireless signal data is taken as the floor position where the terminal is located.
本发明提出的技术方案,服务器通过处理器调用存储器中存储的楼层位置定位程序,先接收终端上传的无线信号数据,然后将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置,最终将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。本发明在室内环境中,由终端先通过内置的定位应用在室内环境中采集无线信号数据,再由服务器根据预存信号数据库及所述无线信号数据,确定终端所在的楼层位置信息,实现了室内环境的准确定位。According to the technical solution proposed by the present invention, the server firstly receives the wireless signal data uploaded by the terminal by calling the floor location locating program stored in the memory, and then matching the wireless signal data with the pre-stored signal database to determine the location of the terminal. The floor location ultimately returns the determined floor location to the terminal for the terminal to display the received floor location in the display interface of the positioning application. In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
基于上述终端硬件结构,提出本发明楼层位置定位方法的各个实施例。Based on the above-described terminal hardware structure, various embodiments of the floor position locating method of the present invention are proposed.
参照图2,图2为本发明楼层位置定位方法第一实施例的流程示意图。Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of a first embodiment of a floor position positioning method according to the present invention.
在本实施例中,所述楼层位置定位方法应用于服务器,所述楼层位置定位方法包括:In this embodiment, the floor location positioning method is applied to a server, and the floor location positioning method includes:
接收终端上传的无线信号数据,其中,所述无线信号数据由终端通过内置的定位应用在室内环境中采集;Receiving wireless signal data uploaded by the terminal, wherein the wireless signal data is collected by the terminal in an indoor environment through a built-in positioning application;
将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置;Matching the wireless signal data with a pre-stored signal database to determine a floor location at which the terminal is located;
将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。The determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
在本实施例中,所述楼层位置定位方法应用于服务器中,所述服务器如图1所示的服务器。所述服务器接收终端上传的无线信号数据之前,先建立信号数据库,所述信号数据库的建立方式包括:In this embodiment, the floor location location method is applied to a server, such as the server shown in FIG. Before the server receives the wireless signal data uploaded by the terminal, the signal database is established, and the establishment of the signal database includes:
步骤a,服务器记录室内环境中每个楼层包含的各个信号源的位置,其中,信号源用于发射无线信号,以便终端接收无线信号数据;Step a, the server records the location of each signal source included in each floor in the indoor environment, wherein the signal source is used to transmit a wireless signal, so that the terminal receives the wireless signal data;
步骤b,在记录每个楼层包含的各个信号源之后,记录每个楼层中各个位置检测到各个信号源的信号强度;Step b, after recording each signal source included in each floor, recording the signal strength of each signal source detected at each position in each floor;
步骤c,将每个位置检测到的信号强度及信号源的信号标识,与对应的每个位置关联存储;Step c, storing the signal strength detected by each location and the signal identifier of the signal source in association with each corresponding location;
步骤d,基于关联存储的位置信息、信号标识和信号强度建立信号数据库。Step d, establishing a signal database based on the associated stored location information, signal identification, and signal strength.
即,信号数据库的建立方式,是由服务器先记录每个楼层中包含的各个信号源的位置,其中,各个信号源的位置可以由终端采集后上传至服务器,还可以是服务器通过前端页面接收用户输入并记录的位置。在记录每个楼层中包含的各个信号源的位置之后,服务器再记录每个楼层中各个位置检测到各个信号源的信号强度,需要说明的是,由于每个楼层中的信号源包含多个,因此,每个楼层中的每个位置检测到的信号源同样也有多个,相应的,楼层中每个位置记录的信号强度也包含多个。That is, the signal database is established by the server to record the location of each signal source included in each floor. The location of each signal source can be collected by the terminal and uploaded to the server, or the server can receive the user through the front-end page. Enter and record the location. After recording the location of each signal source included in each floor, the server records the signal strength of each signal source detected at each position in each floor. It should be noted that since the signal source in each floor contains multiple, Therefore, there are also multiple signal sources detected at each location in each floor. Accordingly, the signal strength recorded in each location in the floor also includes multiple.
为更好理解,举例如下:参照图3,若当前在室内环境包含三个信号源,分别是信号源A、信号源B和信号源C,三个信号源可以同一个楼层,也可以位于不同的楼层中,此处不做限定。若当前以M点作为检测点,在M点的位置检测各个信号源的信号强度,如图3所示,M点与信号源B、信号源A和信号源C之间的距离依次减小,因此,在M点检测到信号源B、信号源A和信号源C的信号强度是依次增加的,例如,在M点检测到信号源B的信号强度是-15dBm,M点与检测到信号源A的信号强度是-11dBm,M点与检测到信号源C的信号强度是-6dBm。For better understanding, an example is as follows: Referring to FIG. 3, if there are currently three signal sources in the indoor environment, namely, signal source A, signal source B, and signal source C, the three signal sources may be on the same floor or may be located differently. In the floor, there is no limit here. If the M point is currently used as the detection point, the signal strength of each signal source is detected at the position of the M point. As shown in FIG. 3, the distance between the M point and the signal source B, the signal source A, and the signal source C is sequentially decreased. Therefore, the signal strengths of the signal source B, the signal source A, and the signal source C are sequentially increased at the point M. For example, the signal strength of the signal source B detected at the point M is -15 dBm, and the M point and the detected signal source are detected. The signal strength of A is -11 dBm, and the signal strength of point M and detected signal source C is -6 dBm.
本实施例中,每个位置检测出信号源的信号强度是根据检测点与信号源的距离确定的,距离越长,检测出的信号强度越弱,距离越短,检测出的信号强度越强。可以理解,在该楼层中选择另一个点作为检测点时,同样可以检测出三个信号源的信号强度。需要说明的是,检测点不同,检测出的各个信号源的信号强度也不同。采用这种方式,即可得到各个位置中检测出的各个信号源的信号强度。In this embodiment, the signal strength of the signal source detected at each position is determined according to the distance between the detection point and the signal source. The longer the distance, the weaker the detected signal strength, and the shorter the distance, the stronger the detected signal strength. . It can be understood that when another point is selected as the detection point in the floor, the signal strengths of the three signal sources can also be detected. It should be noted that the detection points are different, and the detected signal strengths of the respective signal sources are also different. In this way, the signal strength of each signal source detected in each position can be obtained.
在确定各个位置检测到各个信号源的信号强度之后,将每个位置检测到的信号强度及信号源的信号标识,与对应的每个位置关联存储,例如,继续参照图3,将M点与信号源A及-11dBm、与信号源B及-15dBm以及与信号源C及-6dBm关联存储。最终,基于关联存储的位置信息、信号标识和信号强度,即可建立信号数据库。After determining the signal strength of each signal source at each position, the signal strength detected by each position and the signal identifier of the signal source are stored in association with each corresponding position. For example, referring to FIG. 3, the M point is Signal source A and -11dBm are stored in association with source B and -15dBm and with source C and -6dBm. Finally, based on the location information, signal identification and signal strength of the associated storage, a signal database can be established.
可以理解的是,该信号数据库中记录了室内环境的每个楼层中,每个位置与各个信号源之间的距离,以及每个位置检测到的各个信号源的信号强度。后续要进行楼层位置定位时,只要终端采集到各个信号源的无线信号数据(包含信号标识和信号强度),服务器即可根据预存信号数据库,确定终端的楼层位置。It can be understood that the signal database records the distance between each location and each signal source in each floor of the indoor environment, and the signal strength of each signal source detected at each location. When the location location is to be performed subsequently, as long as the terminal collects wireless signal data (including signal identification and signal strength) of each signal source, the server can determine the floor position of the terminal according to the pre-stored signal database.
以下是本实施例中实现楼层位置定位的具体步骤:The following are the specific steps for realizing the location of the floor in this embodiment:
步骤S10,接收终端上传的无线信号数据,其中,所述无线信号数据由终端通过内置的定位应用在室内环境中采集;Step S10: Receive wireless signal data uploaded by the terminal, where the wireless signal data is collected by the terminal in an indoor environment through a built-in positioning application;
在本实施例中,服务器先接收终端上报的无线信号数据,该无线信号数据是由终端通过内置的定位应用在室内环境采集的无线信号数据。终端上传的无线信号数据可选包括1个或多个,无线信号数据的具体个数根据信号源确定,即,终端在检测到多个信号源时,上传多个无线信号数据,在检测到1个信号源时,上传1个无线信号数据。所述无线信号数据包括Wi-Fi信号、蓝牙信号或基站信号。In this embodiment, the server first receives wireless signal data reported by the terminal, and the wireless signal data is wireless signal data collected by the terminal in the indoor environment through the built-in positioning application. The wireless signal data uploaded by the terminal may optionally include one or more, and the specific number of the wireless signal data is determined according to the signal source, that is, when the terminal detects multiple signal sources, the terminal uploads multiple wireless signal data, and detects 1 When one source is used, one wireless signal data is uploaded. The wireless signal data includes a Wi-Fi signal, a Bluetooth signal, or a base station signal.
步骤S20,将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置;Step S20, matching the wireless signal data with a pre-stored signal database to determine a floor location where the terminal is located;
在接收到终端上传的无线信号数据之后,服务器将接收到的无线信号数据与预存信号数据库进行匹配,即,将无线信号数据与预存信号数据库中的信号数据进行比对,以确定所述终端所在的楼层位置。After receiving the wireless signal data uploaded by the terminal, the server matches the received wireless signal data with the pre-stored signal database, that is, compares the wireless signal data with the signal data in the pre-stored signal database to determine where the terminal is located. Floor location.
具体地,参照图4,所述步骤S20包括:Specifically, referring to FIG. 4, the step S20 includes:
步骤S21,确定接收到的无线信号数据对应的信号标识和信号强度;Step S21, determining a signal identifier and a signal strength corresponding to the received wireless signal data;
步骤S22,在所述预存信号数据库中,查找所述信号标识对应的信号源所包含的楼层区域;Step S22, in the pre-stored signal database, searching for a floor area included in the signal source corresponding to the signal identifier;
步骤S23,在查找的楼层区域中,确定检测到所述信号强度的信号源对应的楼层位置;Step S23, in the searched floor area, determining a floor position corresponding to the signal source that detects the signal strength;
步骤S24,将确定的楼层位置作为所述终端所在的楼层位置。In step S24, the determined floor location is taken as the floor location where the terminal is located.
即,在本实施例中,在接收到终端上传的无线信号数据之后,提取所述无线信号数据携带的信号标识和信号强度,然后在预存信号数据库中,查找所述信号标识对应的信号源,再根据预存信号源所包含楼层区域,确定所述信号标识对应的信号源所包含的楼层区域。在查找到信号标识对应的信号源所包含的楼层区域之后,进一步查询能检测到该信号强度的信号源的具体楼层位置,即,在确定信号源包含的楼层之后,再确定能检测到该信号强度的信号源的具体楼层位置。That is, in the embodiment, after receiving the wireless signal data uploaded by the terminal, extracting the signal identifier and signal strength carried by the wireless signal data, and then searching for a signal source corresponding to the signal identifier in the pre-stored signal database, And determining, according to the floor area included in the pre-stored signal source, the floor area included in the signal source corresponding to the signal identifier. After finding the floor area included in the signal source corresponding to the signal identifier, further querying a specific floor position of the signal source capable of detecting the signal strength, that is, after determining the floor included in the signal source, determining that the signal can be detected. The specific floor location of the intensity signal source.
为更好理解,举例如下:继续参照图3,例如,服务器已经确定终端上报的无线信号数据为信号源A,在信号源A的信号发射能力较强时,在信号源A同一楼层的终端能检测到信号源A发射的无线信号数据,同样,在信号源A相邻楼层的终端也能检测到信号源A发射的无线信号数据,但是两个楼层的终端检测到的信号强度不同,因此,可根据信号源A中无线信号的涵盖范围,确定信号源所包含的楼层区域,然后,再在包含的楼层区域中,确定能检测到所述信号强度的信号源对应的楼层位置,例如,信号源A同一楼层的终端检测到的信号强度为-11 dBm,在信号源相邻楼层的终端检测到的信号强度为-6dBm,若服务器接收到无线信号数据的信号强度为-11 dBm,即可确定终端所在的楼层位置。For better understanding, an example is as follows: With continued reference to FIG. 3, for example, the server has determined that the wireless signal data reported by the terminal is the signal source A, and when the signal transmission capability of the signal source A is strong, the terminal on the same floor of the signal source A can The wireless signal data transmitted by the signal source A is detected. Similarly, the wireless signal data transmitted by the signal source A can be detected at the terminal of the adjacent floor of the signal source A, but the signal strength detected by the terminals of the two floors is different, therefore, The floor area included in the signal source may be determined according to the coverage range of the wireless signal in the signal source A, and then, in the included floor area, the floor position corresponding to the signal source capable of detecting the signal strength is determined, for example, a signal The signal strength detected by the terminal on the same floor of source A is -11. dBm, the signal strength detected at the terminal on the adjacent floor of the signal source is -6dBm. If the signal strength of the wireless signal data received by the server is -11 dBm, the floor position where the terminal is located can be determined.
进一步地,在服务器接收到的无线信号数据包括多个时,提取的信号标识和信号强度也包含多个,在提取出各个信号标识及各个信号标识对应的信号强度之后,服务器在所述预存信号数据库中,查找与各个信号标识对应的信号源,以根据各个预存信号源所在的楼层区域,确定各个信号标识对应的信号源所在的楼层区域。在确定各个信号标识的信号源所在的楼层区域之后,进一步查询能检测到各个信号强度的信号源的具体位置。具体的确定方式与上述一致,此处不做赘述。Further, when the wireless signal data received by the server includes multiple, the extracted signal identifier and the signal strength also include multiple, after the signal strength corresponding to each signal identifier and each signal identifier is extracted, the server is in the pre-stored signal. In the database, the signal source corresponding to each signal identifier is searched to determine the floor area where the signal source corresponding to each signal identifier is located according to the floor area where each pre-stored signal source is located. After determining the floor area where the signal source of each signal identification is located, the specific location of the signal source capable of detecting each signal strength is further queried. The specific determination method is consistent with the above, and will not be described here.
步骤S30,将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。Step S30, feeding back the determined floor position to the terminal, so that the terminal displays the received floor position in the display interface of the positioning application.
服务器确定终端所在的楼层位置之后,即可将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置信息。After the server determines the location of the floor where the terminal is located, the determined floor location can be fed back to the terminal, so that the terminal displays the received floor location information in the display interface of the positioning application.
本实施例提出的楼层位置定位方法,服务器先接收终端上传的无线信号数据,然后将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置,最终将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。本发明在室内环境中,由终端先通过内置的定位应用在室内环境中采集无线信号数据,再由服务器根据预存信号数据库及所述无线信号数据,确定终端所在的楼层位置信息,实现了室内环境的准确定位。In the floor location positioning method proposed by the embodiment, the server first receives the wireless signal data uploaded by the terminal, and then matches the wireless signal data with the pre-stored signal database to determine the floor location where the terminal is located, and finally determines the determined floor location. Feedback to the terminal for the terminal to display the received floor location in the display interface of the positioning application. In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
进一步地,基于第一实施例提出本发明楼层位置定位方法的第二实施例。Further, a second embodiment of the floor position locating method of the present invention is proposed based on the first embodiment.
楼层位置定位方法的第二实施例与楼层位置定位方法的第一实施例的区别在于,在本实施例中,参照图5,所述步骤S20还可以包括:The second embodiment of the floor position locating method differs from the first embodiment of the floor position locating method in that, in this embodiment, referring to FIG. 5, the step S20 may further include:
步骤S25,确定接收到的无线信号数据对应的信号标识;Step S25, determining a signal identifier corresponding to the received wireless signal data;
步骤S26,将确定的信号标识与预存信号数据库进行比对,以确定预存信号数据库中与所述信号标识匹配的预存信号标识;Step S26, comparing the determined signal identifier with the pre-stored signal database to determine a pre-stored signal identifier in the pre-stored signal database that matches the signal identifier;
步骤S27,基于预存信号数据库中,预存信号标识与楼层位置的映射关系,确定所述无线信号数据的信号标识对应的楼层位置;Step S27: determining a floor location corresponding to the signal identifier of the wireless signal data based on a mapping relationship between the pre-stored signal identifier and the floor location in the pre-stored signal database;
步骤S28,将确定的楼层位置作为所述终端所在的楼层位置。In step S28, the determined floor position is taken as the floor position where the terminal is located.
在本实施例中,在接收到终端上传的无线信号数据之后,服务器将接收到的无线信号数据与预存信号数据库进行匹配,即,将无线信号数据与预存信号数据库中的信号数据进行比对,以确定所述终端所在的楼层位置。具体地:服务器先确定接收到的无线信号数据对应的信号标识,在确定无线信号数据对应的信号标识之后,服务器将确定的信号标识与预存信号数据库进行比对,以在预存信号数据库中确定与所述信号标识匹配的预存信号标识,然后基于预存信号数据库中,预存信号标识与楼层位置的映射关系,即可确定所述无线信号数据的信号标识对应的楼层位置,最终将该确定的楼层位置作为所述终端所在的楼层位置。In this embodiment, after receiving the wireless signal data uploaded by the terminal, the server matches the received wireless signal data with the pre-stored signal database, that is, compares the wireless signal data with the signal data in the pre-stored signal database. Determine the location of the floor where the terminal is located. Specifically, the server first determines the signal identifier corresponding to the received wireless signal data, and after determining the signal identifier corresponding to the wireless signal data, the server compares the determined signal identifier with the pre-stored signal database to determine and correlate in the pre-stored signal database. The signal identifies the matched pre-stored signal identifier, and then based on the mapping relationship between the pre-stored signal identifier and the floor location in the pre-stored signal database, the floor position corresponding to the signal identifier of the wireless signal data can be determined, and the determined floor position is finally determined. As the floor location where the terminal is located.
在本实施例中,若确定的楼层位置只有一个,那么可直接将该确定的楼层位置作为终端所在的楼层位置,若确定的楼层位置包括多个时,需要对多个楼层位置进行进一步地分析,以确定终端所在的具体楼层位置,具体地,所述步骤S28的实施方式包括:In this embodiment, if there is only one determined floor location, the determined floor location may be directly used as the floor location where the terminal is located. If the determined floor location includes multiple, the multiple floor locations need to be further analyzed. To determine the specific floor location where the terminal is located, specifically, the implementation manner of the step S28 includes:
1)方式一、在确定的楼层位置包括多个时,参照图6,所述步骤S28包括:1) Method 1: When a plurality of determined floor positions are included, referring to FIG. 6, the step S28 includes:
步骤S281,若终端上报的无线信号数据包括多个,则计算每个无线信号数的信号标识在每个楼层中出现的概率;Step S281, if the wireless signal data reported by the terminal includes multiple, calculate a probability that the signal identifier of each wireless signal number appears in each floor;
步骤S282,对每个楼层中的各个信号标识出现的概率进行汇总;Step S282, summarizing the probability of occurrence of each signal identifier in each floor;
步骤S283,将汇总后概率最大的楼层作为所述终端所在的楼层位置。In step S283, the floor with the highest probability of aggregation is taken as the floor position where the terminal is located.
在本实施方式中,在确定的楼层位置包括多个时,若终端上报的无线信号数据也包括多个,此时,先计算每个无线信号数据的信号标识在每个楼层中出现的概率,本实施例中,可选信号标识在一个楼层出现时,概率设置为1,此外,每个信号标识在每个楼层中出现的概率还可根据具体的楼层数量确定,例如,当前楼宇包括3个楼层,那么,每个信号标识在每个楼层中出现的概率可选为1/3。应当理解的是,每个信号标识在每个楼层中出现的概率的计算方式不限于上述两种,还可根据实际需要设置其他的方式,此处不再一一赘述。在计算出每个信号标识在每个楼层出现的概率之后,对每个楼层中出现的各个信号标识的概率进行汇总,例如,第一楼层出现信号源A和信号源B,第二楼层出现信号源A、信号源B和信号源C,第三楼层出现信号源B,那么,可得到第一楼层中概率的汇总结果为2/3,第二楼层中概率的汇总结果为1,第二楼层中概率的汇总结果为1/3。在对各个楼层出现的概率进行汇总之后,将汇总后概率最大的楼层作为所述终端所在的楼层位置,即,将第二楼层作为终端所在的楼层位置。In this embodiment, when the determined floor location includes a plurality of locations, if the wireless signal data reported by the terminal includes more than one, at this time, the probability that the signal identifier of each wireless signal data appears in each floor is calculated first. In this embodiment, when the optional signal identifier appears on one floor, the probability is set to 1. In addition, the probability that each signal identifier appears in each floor may also be determined according to the specific number of floors. For example, the current building includes 3 Floor, then, the probability that each signal identifier appears in each floor can be 1/3. It should be understood that the calculation manner of the probability that each signal identifier appears in each floor is not limited to the above two types, and other methods may be set according to actual needs, and details are not described herein again. After calculating the probability that each signal identifier appears on each floor, the probability of each signal identifier appearing in each floor is summarized, for example, source A and source B appear on the first floor, and signals appear on the second floor. Source A, source B and source C, signal source B appears on the third floor, then the summary result of the probability in the first floor is 2/3, and the summary result of the probability in the second floor is 1, second floor The summary result of the medium probability is 1/3. After summarizing the probability of occurrence of each floor, the floor with the highest probability of aggregation is taken as the floor position where the terminal is located, that is, the second floor is used as the floor position where the terminal is located.
2)方式二、在确定的楼层位置包括多个时,参照图7,所述步骤S28包括:2) Method 2, when a plurality of determined floor positions are included, referring to FIG. 7, the step S28 includes:
步骤S284,若终端上报的无线信号数据包括多个,则确定每个楼层中出现的各个无线信号数据对应的信号强度;Step S284, if the wireless signal data reported by the terminal includes multiple, determining the signal strength corresponding to each wireless signal data appearing in each floor;
步骤S285,对每个楼层中出现的各个无线信号数据的信号强度进行求平均值;Step S285, averaging the signal strengths of the respective wireless signal data appearing in each floor;
步骤S286,将信号强度均值最大的楼层作为所述终端所在的楼层位置。In step S286, the floor with the highest signal strength average is used as the floor position where the terminal is located.
在本实施方式中,在确定的楼层位置包括多个时,若终端上报的无线信号数据也包括多个,此时,先确定每个楼层中出现的各个无线信号数据对应的信号强度,其中,信号强度是终端上报无线信号数据时,无线信号数据中携带的信号强度,因此,服务器从无线信号数据中可提取出信号强度,在确定每个楼层中出现的各个无线信号数据对应的信号强度之后,对每个楼层中出现的各个无线信号数据的信号强度进行求平均值,最终将信号强度均值最大的楼层作为终端所在的楼层位置。In the present embodiment, when the determined floor location includes a plurality of locations, if the wireless signal data reported by the terminal includes more than one, at this time, the signal strength corresponding to each wireless signal data appearing in each floor is determined first, where The signal strength is the signal strength carried in the wireless signal data when the terminal reports the wireless signal data. Therefore, the server can extract the signal strength from the wireless signal data, after determining the signal strength corresponding to each wireless signal data appearing in each floor. The average signal strength of each wireless signal data appearing in each floor is averaged, and finally the floor with the highest signal strength average is used as the floor position where the terminal is located.
为更好理解本实施方式,举例如下:继续参照图3,假设信号源A和信号源C位于第一楼层,信号源B位于第二楼层,且终端检测到的信号源A的信号强度为-11 dBm,信号源C的信号强度是-6 dBm,信号源B的信号强度为-15 dBm,那么,经过求平均值发现,第一楼层的信号强度均值为-17/2=-8.5dBm,第二楼层的信号强度均值为-15dBm,即可确定第一楼层为终端所在楼层的位置。For a better understanding of the present embodiment, an example is as follows: With continued reference to FIG. 3, it is assumed that the signal source A and the signal source C are located on the first floor, the signal source B is located on the second floor, and the signal strength of the signal source A detected by the terminal is - 11 dBm, the signal strength of source C is -6 dBm, and the signal strength of source B is -15 dBm, then, after averaging, the average signal strength of the first floor is -17/2=-8.5dBm, and the average signal strength of the second floor is -15dBm, which can determine the location of the first floor as the floor of the terminal. .
3)方式三、在确定的楼层位置包括多个时,参照图8,所述步骤S28包括:3) Method 3, when a plurality of determined floor positions are included, referring to FIG. 8, the step S28 includes:
步骤S287,若终端上报的无线信号数据包括多个,则计算每个楼层中涵盖的无线信号数据的个数;Step S287, if the wireless signal data reported by the terminal includes multiple, calculate the number of wireless signal data covered in each floor;
步骤S288,将涵盖无线信号数据的个数最多的楼层作为所述终端所在的楼层位置。In step S288, the floor covering the largest number of wireless signal data is used as the floor position where the terminal is located.
在本实施方式中,在确定的楼层位置包括多个时,若终端上报的无线信号数据也包括多个,此时,先计算每个楼层中覆盖无线信号数据的个数,并对每个楼层中覆盖的无线信号数据的数量进行汇总,最终将涵盖无线信号数据的个数最多的楼层作为所述终端所在的楼层位置。In this embodiment, when the determined floor location includes a plurality of locations, if the wireless signal data reported by the terminal includes more than one, at this time, the number of coverage wireless signal data in each floor is calculated first, and each floor is calculated. The number of wireless signal data covered in the sum is summarized, and finally the floor covering the largest number of wireless signal data is used as the floor position where the terminal is located.
以上所列举出的三种确定具体楼层位置的方式仅仅为示例性的,本领域技术人员利用本发明的技术思想,根据其具体需求所提出的其它各种确定具体楼层位置方式均在本发明的保护范围内,在此不进行一一穷举。The three ways of determining the specific floor position listed above are merely exemplary. Those skilled in the art can use the technical idea of the present invention to determine other specific floor position manners according to their specific needs. Within the scope of protection, it is not exhaustive here.
可以理解,本实施例中,通过三种方式确定终端所在的具体楼层位置,使得终端楼层的确定方式更加灵活。It can be understood that, in this embodiment, the specific floor location where the terminal is located is determined in three ways, so that the determination manner of the terminal floor is more flexible.
此外,本发明实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有楼层位置定位程序,所述楼层位置定位程序被处理器执行时实现如下操作:In addition, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a floor location locating program, and when the floor location locating program is executed by the processor, the following operations are implemented:
接收终端上传的无线信号数据,其中,所述无线信号数据由终端通过内置的定位应用在室内环境中采集;Receiving wireless signal data uploaded by the terminal, wherein the wireless signal data is collected by the terminal in an indoor environment through a built-in positioning application;
将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置;Matching the wireless signal data with a pre-stored signal database to determine a floor location at which the terminal is located;
将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。The determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
进一步地,所述楼层位置定位程序被处理器执行时,还实现将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置的操作:Further, when the floor location locating program is executed by the processor, the operation of matching the wireless signal data with the pre-stored signal database to determine the location of the floor where the terminal is located is also implemented:
确定接收到的无线信号数据对应的信号标识和信号强度;Determining a signal identifier and a signal strength corresponding to the received wireless signal data;
在所述预存信号数据库中,查找所述信号标识对应的信号源所包含的楼层区域;Searching, in the pre-stored signal database, a floor area included in a signal source corresponding to the signal identifier;
在查找的楼层区域中,确定检测到所述信号强度的信号源对应的楼层位置;Determining a floor location corresponding to a signal source that detects the signal strength in the searched floor area;
将确定的楼层位置作为所述终端所在的楼层位置。The determined floor location is taken as the floor location where the terminal is located.
进一步地,所述楼层位置定位程序被处理器执行时,还实现将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置的操作:Further, when the floor location locating program is executed by the processor, the operation of matching the wireless signal data with the pre-stored signal database to determine the location of the floor where the terminal is located is also implemented:
确定接收到的无线信号数据对应的信号标识;Determining a signal identifier corresponding to the received wireless signal data;
将确定的信号标识与预存信号数据库进行比对,以确定预存信号数据库中与所述信号标识匹配的预存信号标识;Comparing the determined signal identifier with the pre-stored signal database to determine a pre-stored signal identifier in the pre-stored signal database that matches the signal identifier;
基于预存信号数据库中,预存信号标识与楼层位置的映射关系,确定所述无线信号数据的信号标识对应的楼层位置;Determining, according to a mapping relationship between the pre-stored signal identifier and the floor location, a floor location corresponding to the signal identifier of the wireless signal data;
将确定的楼层位置作为所述终端所在的楼层位置。The determined floor location is taken as the floor location where the terminal is located.
进一步地,在确定的楼层位置包括多个时,所述楼层位置定位程序被处理器执行时,还实现将将确定的楼层位置作为所述终端所在的楼层位置的操作:Further, when the determined floor position includes a plurality of, when the floor position locating program is executed by the processor, an operation of determining the determined floor position as the floor position where the terminal is located is also implemented:
若终端上报的无线信号数据包括多个,则计算每个无线信号数的信号标识在每个楼层中出现的概率;If the wireless signal data reported by the terminal includes multiple, the probability that the signal identifier of each wireless signal number appears in each floor is calculated;
对每个楼层中的各个信号标识出现的概率进行汇总;Summarize the probability of occurrence of each signal identifier in each floor;
将汇总后概率最大的楼层作为所述终端所在的楼层位置。The floor with the highest probability of aggregation is taken as the floor location where the terminal is located.
进一步地,在确定的楼层位置包括多个时,所述楼层位置定位程序被处理器执行时,还实现将将确定的楼层位置作为所述终端所在的楼层位置的操作:Further, when the determined floor position includes a plurality of, when the floor position locating program is executed by the processor, an operation of determining the determined floor position as the floor position where the terminal is located is also implemented:
若终端上报的无线信号数据包括多个,则确定每个楼层中出现的各个无线信号数据对应的信号强度;If the wireless signal data reported by the terminal includes multiple, determining a signal strength corresponding to each wireless signal data appearing in each floor;
对每个楼层中出现的各个无线信号数据的信号强度进行求平均值;Average the signal strength of each wireless signal data appearing in each floor;
将信号强度均值最大的楼层作为所述终端所在的楼层位置。The floor with the highest signal strength average is taken as the floor position where the terminal is located.
进一步地,在确定的楼层位置包括多个时,所述楼层位置定位程序被处理器执行时,还实现将将确定的楼层位置作为所述终端所在的楼层位置的操作:Further, when the determined floor position includes a plurality of, when the floor position locating program is executed by the processor, an operation of determining the determined floor position as the floor position where the terminal is located is also implemented:
若终端上报的无线信号数据包括多个,则计算每个楼层中涵盖的无线信号数据的个数;If the wireless signal data reported by the terminal includes multiple, calculate the number of wireless signal data covered in each floor;
将涵盖无线信号数据的个数最多的楼层作为所述终端所在的楼层位置。The floor covering the largest number of wireless signal data is taken as the floor position where the terminal is located.
本发明提出的技术方案,所述楼层位置定位程序被处理器执行时,先接收终端上传的无线信号数据,然后将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置,最终将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。本发明在室内环境中,由终端先通过内置的定位应用在室内环境中采集无线信号数据,再由服务器根据预存信号数据库及所述无线信号数据,确定终端所在的楼层位置信息,实现了室内环境的准确定位。According to the technical solution of the present invention, when the floor location locating program is executed by the processor, the wireless signal data uploaded by the terminal is first received, and then the wireless signal data is matched with the pre-stored signal database to determine the floor where the terminal is located. The location ultimately returns the determined floor location to the terminal for the terminal to display the received floor location in the display interface of the positioning application. In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
本发明进一步提供一种楼层位置定位系统。The invention further provides a floor position location system.
所述楼层位置定位系统包括终端和服务器,所述服务器如上文所述的服务器;The floor location location system includes a terminal and a server, such as the server described above;
所述终端,用于通过内置的定位应用在室内环境中采集无线信号数据;The terminal is configured to collect wireless signal data in an indoor environment by using a built-in positioning application;
将采集到的无线信号数据上传至服务器,以供服务器基于接收到的无线信号数据以及预存信号数据库,反馈所述终端所在的楼层位置;Uploading the collected wireless signal data to the server, so that the server feeds back the floor location where the terminal is located based on the received wireless signal data and the pre-stored signal database;
接收所述服务器反馈的楼层位置,并在定位应用的显示界面中显示接收到的楼层位置。Receiving the floor location fed back by the server and displaying the received floor location in the display interface of the positioning application.
在本实施例中,终端先通过内置的定位应用在室内环境中采集无线信号数据,所述无线信号数据包括Wi-Fi信号、蓝牙信号或基站信号。需要说明的是,采集的所述无线信号数据携带有信号标识和信号强度,其中,无线信号数据的信号标识是室内环境中信号源的标识,无线信号数据的信号强度是终端感应到信号源的信号强度,信号强度的强度值根据终端与信号源的距离确定,距离越近,信号强度越强,距离越远,信号强度越弱。In this embodiment, the terminal first collects wireless signal data in an indoor environment through a built-in positioning application, and the wireless signal data includes a Wi-Fi signal, a Bluetooth signal, or a base station signal. It should be noted that the collected wireless signal data carries a signal identifier and a signal strength, wherein the signal identifier of the wireless signal data is an identifier of a signal source in an indoor environment, and the signal strength of the wireless signal data is a signal source sensed by the terminal. The signal strength and the strength of the signal strength are determined according to the distance between the terminal and the signal source. The closer the distance is, the stronger the signal strength is, and the farther the distance is, the weaker the signal strength is.
在终端采集到无线信号数据之后,将采集到的无线信号数据上传至服务器,由服务器基于接收到的无线信号数据以及预存信号数据库,反馈所述终端所在的楼层位置,服务器根据无线信号数据以及预存信号数据库,反馈所述终端所在的楼层位置已经在上述实施中详述,此处不再赘述。当终端接收到所述服务器反馈的楼层位置时,即可在定位应用的显示界面中显示接收到的楼层位置。After the terminal collects the wireless signal data, the collected wireless signal data is uploaded to the server, and the server feeds back the location of the floor where the terminal is located based on the received wireless signal data and the pre-stored signal database, and the server stores the data according to the wireless signal and the pre-stored data. The signal database, which feeds back the location of the floor where the terminal is located, has been detailed in the above implementation, and will not be described herein. When the terminal receives the floor location fed back by the server, the received floor location can be displayed in the display interface of the positioning application.
本实施例提出的技术方案,终端通过先通过内置的定位应用在室内环境中采集无线信号数据,然后将采集到的无线信号数据上传至服务器,以供服务器基于接收到的无线信号数据以及预存信号数据库,反馈所述终端所在的楼层位置,最终接收所述服务器反馈的楼层位置,并在定位应用的显示界面中显示接收到的楼层位置。本发明在室内环境中,由终端先通过内置的定位应用在室内环境中采集无线信号数据,再由服务器根据预存信号数据库及所述无线信号数据,确定终端所在的楼层位置信息,实现了室内环境的准确定位。In the technical solution proposed by the embodiment, the terminal collects wireless signal data in the indoor environment through the built-in positioning application, and then uploads the collected wireless signal data to the server, so that the server is based on the received wireless signal data and the pre-stored signal. The database feeds back the floor location where the terminal is located, finally receives the floor location feedback by the server, and displays the received floor location in the display interface of the positioning application. In the indoor environment, the terminal first collects wireless signal data in the indoor environment through the built-in positioning application, and then the server determines the floor location information of the terminal according to the pre-stored signal database and the wireless signal data, thereby realizing the indoor environment. Accurate positioning.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是固定终端,如物联网智能设备,包括智能空调、智能电灯、智能电源、智能路由器等智能家居;也可以是移动终端,包括智能手机、可穿戴的联网AR/VR装置、智能音箱、自动驾驶汽车等诸多联网设备)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a plurality of instructions for causing a terminal device (which may be a fixed terminal, such as an IoT smart device, including a smart home such as a smart air conditioner, a smart light, a smart power source, a smart router, or the like; or a mobile terminal, including a smart device. A number of networked devices, such as cell phones, wearable networked AR/VR devices, smart speakers, self-driving cars, and the like, perform the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, and the equivalent structure or equivalent process transformations made by the description of the present invention and the drawings are directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (14)

  1. 一种楼层位置定位方法,其特征在于,应用于服务器,所述楼层位置定位方法包括: A floor location locating method is applied to a server, and the floor location locating method comprises:
    接收终端上传的无线信号数据,其中,所述无线信号数据由终端通过内置的定位应用在室内环境中采集;Receiving wireless signal data uploaded by the terminal, wherein the wireless signal data is collected by the terminal in an indoor environment through a built-in positioning application;
    将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置;Matching the wireless signal data with a pre-stored signal database to determine a floor location at which the terminal is located;
    将确定的楼层位置反馈至所述终端,以供所述终端在定位应用的显示界面中显示接收到的楼层位置。The determined floor location is fed back to the terminal for the terminal to display the received floor location in the display interface of the positioning application.
  2. 如权利要求1所述的楼层位置定位方法,其特征在于,所述将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置的步骤包括:The floor position locating method according to claim 1, wherein the step of matching the wireless signal data with a pre-stored signal database to determine a floor position at which the terminal is located includes:
    确定接收到的无线信号数据对应的信号标识和信号强度;Determining a signal identifier and a signal strength corresponding to the received wireless signal data;
    在所述预存信号数据库中,查找所述信号标识对应的信号源所包含的楼层区域;Searching, in the pre-stored signal database, a floor area included in a signal source corresponding to the signal identifier;
    在查找的楼层区域中,确定检测到所述信号强度的信号源对应的楼层位置;Determining a floor location corresponding to a signal source that detects the signal strength in the searched floor area;
    将确定的楼层位置作为所述终端所在的楼层位置。The determined floor location is taken as the floor location where the terminal is located.
  3. 如权利要去1所述的楼层位置定位方法,其特征在于,所述将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置的步骤还包括:The method for locating a floor position according to claim 1, wherein the step of matching the wireless signal data with the pre-stored signal database to determine a floor position at which the terminal is located further includes:
    确定接收到的无线信号数据对应的信号标识;Determining a signal identifier corresponding to the received wireless signal data;
    将确定的信号标识与预存信号数据库进行比对,以确定预存信号数据库中与所述信号标识匹配的预存信号标识;Comparing the determined signal identifier with the pre-stored signal database to determine a pre-stored signal identifier in the pre-stored signal database that matches the signal identifier;
    基于预存信号数据库中,预存信号标识与楼层位置的映射关系,确定所述无线信号数据的信号标识对应的楼层位置;Determining, according to a mapping relationship between the pre-stored signal identifier and the floor location, a floor location corresponding to the signal identifier of the wireless signal data;
    将确定的楼层位置作为所述终端所在的楼层位置。The determined floor location is taken as the floor location where the terminal is located.
  4. 如权利要去2所述的楼层位置定位方法,其特征在于,所述将所述无线信号数据与预存信号数据库进行匹配,以确定所述终端所在的楼层位置的步骤还包括:The method for locating a floor position according to claim 2, wherein the step of matching the wireless signal data with the pre-stored signal database to determine a floor position at which the terminal is located further includes:
    确定接收到的无线信号数据对应的信号标识;Determining a signal identifier corresponding to the received wireless signal data;
    将确定的信号标识与预存信号数据库进行比对,以确定预存信号数据库中与所述信号标识匹配的预存信号标识;Comparing the determined signal identifier with the pre-stored signal database to determine a pre-stored signal identifier in the pre-stored signal database that matches the signal identifier;
    基于预存信号数据库中,预存信号标识与楼层位置的映射关系,确定所述无线信号数据的信号标识对应的楼层位置;Determining, according to a mapping relationship between the pre-stored signal identifier and the floor location, a floor location corresponding to the signal identifier of the wireless signal data;
    将确定的楼层位置作为所述终端所在的楼层位置。The determined floor location is taken as the floor location where the terminal is located.
  5. 如权利要求3所述的楼层位置定位方法,其特征在于,在确定的楼层位置包括多个时,所述将确定的楼层位置作为所述终端所在的楼层位置的步骤包括:The floor position locating method according to claim 3, wherein when the determined floor position comprises a plurality of, the step of determining the determined floor position as the floor position of the terminal comprises:
    若终端上报的无线信号数据包括多个,则计算每个无线信号数的信号标识在每个楼层中出现的概率;If the wireless signal data reported by the terminal includes multiple, the probability that the signal identifier of each wireless signal number appears in each floor is calculated;
    对每个楼层中的各个信号标识出现的概率进行汇总;Summarize the probability of occurrence of each signal identifier in each floor;
    将汇总后概率最大的楼层作为所述终端所在的楼层位置。The floor with the highest probability of aggregation is taken as the floor location where the terminal is located.
  6. 如权利要求4所述的楼层位置定位方法,其特征在于,在确定的楼层位置包括多个时,所述将确定的楼层位置作为所述终端所在的楼层位置的步骤包括:The floor position locating method according to claim 4, wherein when the determined floor position comprises a plurality of, the step of determining the determined floor position as the floor position where the terminal is located includes:
    若终端上报的无线信号数据包括多个,则计算每个无线信号数的信号标识在每个楼层中出现的概率;If the wireless signal data reported by the terminal includes multiple, the probability that the signal identifier of each wireless signal number appears in each floor is calculated;
    对每个楼层中的各个信号标识出现的概率进行汇总;Summarize the probability of occurrence of each signal identifier in each floor;
    将汇总后概率最大的楼层作为所述终端所在的楼层位置。 The floor with the highest probability of aggregation is taken as the floor location where the terminal is located.
  7. 如权利要求3所述的楼层位置定位方法,其特征在于,在确定的楼层位置包括多个时,所述将确定的楼层位置作为所述终端所在的楼层位置的步骤包括:The floor position locating method according to claim 3, wherein when the determined floor position comprises a plurality of, the step of determining the determined floor position as the floor position of the terminal comprises:
    若终端上报的无线信号数据包括多个,则确定每个楼层中出现的各个无线信号数据对应的信号强度;If the wireless signal data reported by the terminal includes multiple, determining a signal strength corresponding to each wireless signal data appearing in each floor;
    对每个楼层中出现的各个无线信号数据的信号强度进行求平均值;Average the signal strength of each wireless signal data appearing in each floor;
    将信号强度均值最大的楼层作为所述终端所在的楼层位置。The floor with the highest signal strength average is taken as the floor position where the terminal is located.
  8. 如权利要求4所述的楼层位置定位方法,其特征在于,在确定的楼层位置包括多个时,所述将确定的楼层位置作为所述终端所在的楼层位置的步骤包括:The floor position locating method according to claim 4, wherein when the determined floor position comprises a plurality of, the step of determining the determined floor position as the floor position where the terminal is located includes:
    若终端上报的无线信号数据包括多个,则确定每个楼层中出现的各个无线信号数据对应的信号强度;If the wireless signal data reported by the terminal includes multiple, determining a signal strength corresponding to each wireless signal data appearing in each floor;
    对每个楼层中出现的各个无线信号数据的信号强度进行求平均值;Average the signal strength of each wireless signal data appearing in each floor;
    将信号强度均值最大的楼层作为所述终端所在的楼层位置。The floor with the highest signal strength average is taken as the floor position where the terminal is located.
  9. 如权利要求3所述的楼层位置定位方法,其特征在于,在确定的楼层位置包括多个时,所述将确定的楼层位置作为所述终端所在的楼层位置的步骤包括:The floor position locating method according to claim 3, wherein when the determined floor position comprises a plurality of, the step of determining the determined floor position as the floor position of the terminal comprises:
    若终端上报的无线信号数据包括多个,则计算每个楼层中涵盖的无线信号数据的个数;If the wireless signal data reported by the terminal includes multiple, calculate the number of wireless signal data covered in each floor;
    将涵盖无线信号数据的个数最多的楼层作为所述终端所在的楼层位置。The floor covering the largest number of wireless signal data is taken as the floor position where the terminal is located.
  10. 如权利要求4所述的楼层位置定位方法,其特征在于,在确定的楼层位置包括多个时,所述将确定的楼层位置作为所述终端所在的楼层位置的步骤包括:The floor position locating method according to claim 4, wherein when the determined floor position comprises a plurality of, the step of determining the determined floor position as the floor position where the terminal is located includes:
    若终端上报的无线信号数据包括多个,则计算每个楼层中涵盖的无线信号数据的个数;If the wireless signal data reported by the terminal includes multiple, calculate the number of wireless signal data covered in each floor;
    将涵盖无线信号数据的个数最多的楼层作为所述终端所在的楼层位置。The floor covering the largest number of wireless signal data is taken as the floor position where the terminal is located.
  11. 一种服务器,其特征在于,所述服务器包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的楼层位置定位程序,所述楼层位置定位程序被所述处理器执行时实现如权利要求1所述的楼层位置定位方法的步骤。A server, comprising: a processor, a memory, and a floor location locating program stored on the memory and operable on the processor, the floor location locating program being executed by the processor The steps of the floor location location method of claim 1 are implemented.
  12. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有楼层位置定位程序,所述楼层位置定位程序被处理器执行时实现如权利要求1所述的楼层位置定位方法的步骤。A computer readable storage medium, wherein the computer readable storage medium stores a floor position locating program, and the floor position locating program is executed by a processor to implement the floor position locating method according to claim 1. A step of.
  13. 一种楼层位置定位系统,其特征在于,所述楼层位置定位系统包括终端和服务器,所述服务器如权利要求11所述的服务器;A floor position locating system, wherein the floor position locating system comprises a terminal and a server, and the server is the server according to claim 11;
    所述终端,用于通过内置的定位应用在室内环境中采集无线信号数据;The terminal is configured to collect wireless signal data in an indoor environment by using a built-in positioning application;
    将采集到的无线信号数据上传至服务器,以供服务器基于接收到的无线信号数据以及预存信号数据库,反馈所述终端所在的楼层位置;Uploading the collected wireless signal data to the server, so that the server feeds back the floor location where the terminal is located based on the received wireless signal data and the pre-stored signal database;
    接收所述服务器反馈的楼层位置,并在定位应用的显示界面中显示接收到的楼层位置。Receiving the floor location fed back by the server and displaying the received floor location in the display interface of the positioning application.
  14. 如权利要求11所述的楼层位置定位系统,其特征在于,所述无线信号数据包括信号标识和信号强度;所述无线信号数据为Wi-Fi信号、蓝牙信号或基站信号。 The floor position location system of claim 11 wherein said wireless signal data comprises a signal identification and a signal strength; said wireless signal data being a Wi-Fi signal, a Bluetooth signal or a base station signal.
PCT/CN2017/114367 2017-10-10 2017-12-04 Floor positioning method and system, server and computer-readable storage medium WO2019071762A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710945986.3 2017-10-10
CN201710945986.3A CN107835490A (en) 2017-10-10 2017-10-10 Floor position localization method, system, server and computer-readable recording medium

Publications (1)

Publication Number Publication Date
WO2019071762A1 true WO2019071762A1 (en) 2019-04-18

Family

ID=61647827

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/114367 WO2019071762A1 (en) 2017-10-10 2017-12-04 Floor positioning method and system, server and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN107835490A (en)
WO (1) WO2019071762A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401966B (en) * 2018-04-24 2022-09-16 中国移动通信集团广东有限公司 Wireless network performance evaluation monitoring method and device, electronic equipment and storage medium
CN109613470A (en) * 2018-12-04 2019-04-12 拉扎斯网络科技(上海)有限公司 Information processing method, device, storage medium and electronic equipment
CN110069520A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Collecting method, data collection station, background server and storage medium
CN110430525B (en) * 2019-06-28 2021-03-23 华为技术有限公司 Positioning method, server and mobile terminal
CN110763235A (en) * 2019-10-18 2020-02-07 深圳智慧园区信息技术有限公司 Cross-floor indoor positioning navigation system and navigation method
CN111294746B (en) * 2020-02-05 2021-07-27 北京爱笔科技有限公司 Positioning method, device and system
CN111999721B (en) * 2020-08-21 2024-01-30 深圳优地科技有限公司 Floor recognition method, device and system and computer readable storage medium
CN112584491B (en) * 2020-12-30 2022-06-28 重庆赤木科技有限公司 Target positioning system based on WiFi probe

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152697A (en) * 2013-03-25 2013-06-12 南京大学 Method for realizing automatic floor positioning by using intelligent mobile phone Wi-Fi (Wireless Fidelity) function
CN106060862A (en) * 2016-05-05 2016-10-26 成都西加云杉科技有限公司 Positioning reference data acquiring and updating method and system
CN106060774A (en) * 2016-05-10 2016-10-26 湖南基石通信技术有限公司 Communication terminal and positioning method
CN107153171A (en) * 2016-03-04 2017-09-12 腾讯科技(深圳)有限公司 Indoor orientation method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152697A (en) * 2013-03-25 2013-06-12 南京大学 Method for realizing automatic floor positioning by using intelligent mobile phone Wi-Fi (Wireless Fidelity) function
CN107153171A (en) * 2016-03-04 2017-09-12 腾讯科技(深圳)有限公司 Indoor orientation method, device and system
CN106060862A (en) * 2016-05-05 2016-10-26 成都西加云杉科技有限公司 Positioning reference data acquiring and updating method and system
CN106060774A (en) * 2016-05-10 2016-10-26 湖南基石通信技术有限公司 Communication terminal and positioning method

Also Published As

Publication number Publication date
CN107835490A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
WO2019071762A1 (en) Floor positioning method and system, server and computer-readable storage medium
WO2018082482A1 (en) Network sharing method, and method and system for accessing network
WO2019019374A1 (en) Method, apparatus, and system for controlling household appliance with intelligent voice device
WO2014098441A1 (en) System and method of controlling surrounding devices, based on topology
WO2016200146A1 (en) Portable device, content reproducing device, and the method thereof
WO2015122608A1 (en) Pos peripheral device controller, mobile host device, and control method therefor
WO2018120457A1 (en) Data processing method, apparatus, device, and computer readable storage medium
WO2017003096A1 (en) Method for establishing connection between devices
WO2020045950A1 (en) Method, device, and system of selectively using multiple voice data receiving devices for intelligent service
WO2015139639A1 (en) Method and apparatus for displaying application icons on terminal
WO2019114269A1 (en) Method for resuming playing program, television device, and computer readable storage medium
WO2015158132A1 (en) Voice control method and system
WO2017010760A1 (en) Hub apparatus and method for providing service thereof
WO2019051890A1 (en) Terminal control method and device, and computer-readable storage medium
WO2019024336A1 (en) Data query method and device, and computer readable storage medium
WO2018233367A1 (en) Case registration method and apparatus, terminal, and computer readable storage medium
WO2014189323A1 (en) Apparatus and method for performing wireless docking operation in communication system supporting universal plug and play protocol
WO2018233221A1 (en) Multi-window sound output method, television, and computer-readable storage medium
WO2018000856A1 (en) Method implementing sdn overlay network message forwarding, terminal, apparatus, and computer readable storage medium
WO2019041851A1 (en) Home appliance after-sales consulting method, electronic device and computer-readable storage medium
WO2019071771A1 (en) Wireless signal fingerprint information calibration method, system, server and medium
WO2019062194A1 (en) Home appliance and method and system for controling home applicance and computer readable storage medium
WO2019172565A1 (en) Electronic device and method for connection to external device
WO2018149191A1 (en) Method, apparatus and device for underwriting insurance policy, and computer-readable storage medium
WO2017080403A1 (en) Projection equipment control method, projection equipment and smart terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17928800

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17928800

Country of ref document: EP

Kind code of ref document: A1