Indoor positioning method and device

By deploying a gateway inside the room to obtain communication data and using positioning models to construct indoor positioning information, the problems of indoor positioning delay and accuracy are solved, fast and accurate positioning of terminal equipment is achieved, and positioning efficiency is improved.

CN113518304BActive Publication Date: 2024-11-05SHENZHEN MINEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110290207.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-18
Publication Date
2024-11-05
Estimated Expiration
2041-03-18

AI Technical Summary

Technical Problem

The prior art cannot achieve precise positioning indoors and there is a problem of positioning delays, especially when small and medium-sized enterprises cannot develop positioning systems suitable for themselves based on global positioning systems.

Method used

By deploying a gateway inside the room to obtain communication data, the preset positioning model is used to construct indoor positioning information based on the calibration gateway communication data set, quickly determine the indoor positioning information of the terminal equipment, and send it directly when receiving the positioning request to avoid delays.

Benefits of technology

It realizes fast and accurate terminal equipment positioning indoors, reduces positioning calculation delay, and improves positioning efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113518304B_ABST
    Figure CN113518304B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of network communication technology, and provides an indoor positioning method and device, wherein the method includes: obtaining first gateway communication data from a first gateway deployed in an indoor space; determining first indoor positioning information corresponding to the first gateway communication data based on a preset positioning model; determining first target indoor positioning information of the first terminal device according to the first indoor positioning information; detecting whether there is an indoor positioning request corresponding to the first terminal identification information; when there is the indoor positioning request, sending the first target indoor positioning information to the first terminal device. In this way, the indoor positioning information of the terminal device can be obtained quickly and accurately, and the indoor positioning calculation process can be advanced, which can effectively eliminate the delay caused by the indoor positioning calculation and improve the indoor positioning efficiency of the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of network communication technology, and in particular, relates to an indoor positioning method and device. Background Art

[0002] The most common positioning system on the market is the Global Positioning System, which is a radio navigation system based on artificial satellites. Although it can provide positioning services anywhere in the world, once entering indoor places, accurate indoor positioning can no longer be achieved.

[0003] In addition, some small and medium-sized manufacturers do not have the ability to develop a positioning system suitable for themselves based on the Global Positioning System.

[0004] There is currently no better solution to the above problems in the industry. Summary of the invention

[0005] In view of this, the embodiments of the present application provide an indoor positioning method and device to at least solve the problem in the prior art that accurate indoor positioning cannot be achieved and the positioning delay is large.

[0006] A first aspect of an embodiment of the present application provides an indoor positioning method, which is applied to a server, and the method includes: obtaining first gateway communication data from a first gateway deployed in an indoor space, wherein the first gateway communication data includes first gateway identification information of the first gateway, first terminal identification information of a first terminal device communicating with the first gateway, and communication signal strength for the first terminal device determined by the first gateway; determining first indoor positioning information corresponding to the first gateway communication data based on a preset positioning model, wherein the positioning model is constructed based on a calibration gateway communication data set, and the calibration gateway data set includes calibration terminal indoor position information and corresponding calibration gateway communication data in multiple indoor spaces; determining first target indoor positioning information of the first terminal device based on the first indoor positioning information; detecting whether there is an indoor positioning request corresponding to the first terminal identification information; and when the indoor positioning request exists, sending the first target indoor positioning information to the first terminal device.

[0007] According to a second aspect of an embodiment of the present application, there is provided an indoor positioning device, comprising: a gateway communication data acquisition unit, configured to receive first gateway communication data from a first gateway deployed in an indoor space, wherein the first gateway communication data comprises first gateway identification information of the first gateway, first terminal identification information of a first terminal device communicating with the first gateway, and communication signal strength for the first terminal device determined by the first gateway; an indoor positioning information determination unit, configured to determine first indoor positioning information corresponding to the first gateway communication data based on a preset positioning model, wherein the positioning model is constructed based on a calibration gateway communication data set, and the calibration gateway data set comprises indoor position information of calibration terminals in a plurality of the indoor spaces and corresponding calibration gateway communication data; a target indoor positioning information determination unit, configured to determine first target indoor positioning information of the first terminal device according to the first indoor positioning information; an indoor positioning request detection unit, configured to detect whether there is an indoor positioning request corresponding to the first terminal identification information; and a target indoor positioning information sending unit, configured to send the first target indoor positioning information to the first terminal device when the indoor positioning request exists.

[0008] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0009] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0010] A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device implements the steps of the above method.

[0011] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0012] Through the embodiment of the present application, the server can receive gateway communication data containing terminal identification, gateway identification and terminal communication signal strength from the gateway deployed indoors, and can use the positioning model constructed by the communication data of the position calibration to infer the indoor positioning position corresponding to the current gateway communication data, and can quickly and accurately obtain the corresponding first indoor positioning information, and then obtain the indoor positioning information of the terminal device. In addition, when the server receives the indoor positioning request of this terminal device, it can quickly send the determined indoor positioning information to the terminal device, advance the indoor positioning calculation process, effectively eliminate the delay caused by the indoor positioning calculation, and improve the indoor positioning efficiency of the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0014] Figure 1 A flowchart of an example of an indoor positioning method according to an embodiment of the present application is shown;

[0015] Figure 2 A schematic diagram showing the structure of an example of a server according to an embodiment of the present application is shown;

[0016] Figure 3 A signal interaction diagram of an example of an indoor positioning method according to an embodiment of the present application is shown;

[0017] Figure 4 A flowchart of an example of sending first target indoor positioning information to a first terminal device according to an embodiment of the present application is shown;

[0018] Figure 5 A flowchart of an example of an indoor positioning method according to an embodiment of the present application is shown;

[0019] Figure 6 A flowchart of an example of determining first target indoor positioning information based on first indoor positioning information according to an embodiment of the present application is shown;

[0020] Figure 7 A structural block diagram of an example of an indoor positioning device according to an embodiment of the present application is shown;

[0021] Figure 8 It is a schematic diagram of an example of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0023] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0024] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0025] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0026] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0027] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0028] In a specific implementation, the electronic devices described in the embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers with touch-sensitive surfaces (e.g., touch screen displays and / or touch pads). It should also be understood that in some embodiments, the above-mentioned devices are not portable communication devices, but computers with touch-sensitive surfaces (e.g., touch screen displays).

[0029] In the following discussion, an electronic device including a display and a touch-sensitive surface is described. However, it should be understood that the electronic device may include one or more other physical user interface devices such as a physical keyboard, mouse, and / or joystick.

[0030] Various applications that can be executed on the electronic device can use at least one common physical user interface device such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and / or changed between applications and / or within corresponding applications. In this way, the common physical architecture of the terminal (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.

[0031] It should be noted that in the current relevant technologies, indoor positioning can be achieved in many ways, such as positioning based on WIFI technology, positioning based on RFID (Radio Frequency Identification), positioning based on Bluetooth technology, etc. Most of the implementation processes are relatively similar, and the differences are mainly concentrated in the signal transmission process.

[0032] Figure 1 The flowchart of an example of the indoor positioning method according to the embodiment of the present application is shown. Regarding the execution subject of the method embodiment of the present application, it can be a server, for example, a server for implementing the indoor positioning function.

[0033] like Figure 1 As shown, in step 110, first gateway communication data is obtained from a first gateway deployed in an indoor space. Here, the first gateway communication data includes first gateway identification information of the first gateway, first terminal identification information of a first terminal device communicating with the first gateway, and communication signal strength for the first terminal device determined by the first gateway. In addition, the indoor space may refer to a regional space within various types of closed or semi-closed buildings or facilities.

[0034] Exemplarily, after the user carries the terminal device into the indoor space, the terminal device can automatically connect to the gateway. For example, the gateway can search for the terminal device within the signal coverage without the user noticing.

[0035] It should be noted that the gateway can determine the corresponding communication signal strength by detecting the RSSI (Received Signal Strength Indication) value of the terminal device. In some embodiments, multiple antennas in different directions can be set on the gateway, and the gateway can obtain a corresponding RSSI value for each antenna, and obtain the corresponding communication signal strength through aggregation.

[0036] It should be understood that multiple gateways can be deployed in the indoor space, and multiple terminal devices can also exist in the indoor space. One terminal device may be connected to one or more gateways for communication, and one gateway may also be connected to multiple terminals at the same time. In addition, the gateway can be a gateway of various types, such as a Bluetooth gateway, a Zigebee gateway, or a Lora gateway, and the gateway can be connected to a local area network or an external network, which should not be limited here.

[0037] In step 120, first indoor positioning information corresponding to the first gateway communication data is determined based on a preset positioning model. Here, the positioning model is constructed based on a calibration gateway communication data set, which includes calibration terminal indoor position information and corresponding calibration gateway communication data in multiple indoor spaces.

[0038] For example, after the manager deploys one or more gateways in the indoor space, the manager can carry the terminal to different locations in the room, record the gateway communication data at different indoor locations, and use the massive statistical calibration data to build a positioning model. It should be noted that in an ideal environment, the closer the terminal device is to the gateway device, the stronger the signal sent by the terminal device received by the gateway device, but the environment will cause interference. Therefore, in the early stage, the manager needs to establish a model through a large amount of fixed-point collected data, and calculate a more accurate positioning coordinate value through real-time RSSI value.

[0039] In step 130, the first target indoor positioning information of the first terminal device is determined according to the first indoor positioning information. In one example of the embodiment of the present application, the server can directly determine the first indoor positioning information as the first target indoor positioning information. In another example of the embodiment of the present application, the server can also calibrate the first indoor positioning information according to preset conditions to compensate for errors caused by equipment or other factors, thereby ensuring the high accuracy of the determined first target indoor positioning information.

[0040] In step 140, it is detected whether there is an indoor positioning request corresponding to the first terminal identification information. Exemplarily, the user can start a specific application (eg, an application operated by a server) in the terminal device to trigger the terminal device to send an indoor positioning request to the server.

[0041] If the detection result in step 140 indicates that there is an indoor positioning request, then jump to step 150. If the detection result in step 140 indicates that there is no indoor positioning request, then end the operation.

[0042] In step 150, the first target indoor positioning information is sent to the first terminal device.

[0043] Through the embodiment of the present application, after the terminal device enters the indoor space, the gateway can automatically connect to the terminal device and report the corresponding gateway communication data to the server, so that the server can call the pre-calibrated positioning model to calculate the indoor positioning information related to the terminal device, which can ensure a high positioning accuracy. In addition, after the terminal device sends an indoor positioning request, the server can directly send the corresponding indoor positioning information to the terminal device without having to perform the positioning calculation process, and the user does not need to wait for the positioning calculation delay, which optimizes the user's indoor positioning experience.

[0044] Figure 2 A schematic structural diagram of an example of a server according to an embodiment of the present application is shown.

[0045] like Figure 2 As shown, the server 200 includes an MQ service module 210, a background service module 220 and an algorithm service module 230, and each service module is a container encapsulation function module that is independent of each other, that is, each is a function module encapsulated using a separate container. Specifically, when acquiring gateway communication data, the subscription message can be received from the first gateway through the mqtt protocol based on the MQ service module 210. For example, the MQ service module 210 and the gateway subscribe to an intermediate server at the same time, and the corresponding subscription rules are specified. The MQ service module can obtain the data of the gateway, which can effectively avoid data loss and high latency. In addition, after comparing multiple different types of middleware, the use of the mqtt protocol to build middleware can minimize overhead, and the mqtt protocol has three types of message publishing service qualities, which can effectively cope with a variety of scenarios. Furthermore, based on the background service module 220, the subscription message is parsed to obtain the corresponding first gateway communication data. Exemplarily, the background service module 220 can be used to parse binary data to obtain the converted gateway communication data. In addition, when determining the indoor positioning information, based on the algorithm service module 230, the positioning model is used to determine the first indoor positioning information corresponding to the first gateway communication data.

[0046] In the process of calculating the positioning information of the embodiment of the present application, a B / S structure is adopted, and no software needs to be installed on the terminal device, and the requirements can be met at the lowest cost, and the later development is easy to maintain. In order to quickly calculate the corresponding coordinates through the RSSI value, the background service module 220 is completely separated from the algorithm service module 230, so that the background service module 220 does not participate in the calculation, and it is only responsible for parsing the data of the gateway and interacting with the terminal device. In this way, the pressure on the background service end can be reduced, and the connection between the outside world and the algorithm service end can be cut off, the stability of the entire program can be improved, and the maintenance cost can be effectively reduced.

[0047] Figure 3A signal interaction diagram of an example of an indoor positioning method according to an embodiment of the present application is shown.

[0048] like Figure 3 As shown, in step 301, a communication connection is established between the terminal device 100 and the gateway device 300. Exemplarily, the gateway device 300 may be a Bluetooth gateway, and when the terminal device 100 enters the Bluetooth signal coverage area of ​​the Bluetooth gateway, the gateway device 300 may establish a Bluetooth communication connection with the terminal device 100.

[0049] Here, the terminal device 100 is used as a beacon, which has its own unique identification mac address. The beacon will continuously transmit signals, and the transmitted signals will carry parameters for the gateway to collect. The term "beacon" means that it is developed based on C / C++ / Java language, helping users to monitor and analyze the server running resources and key Tuxedo / WebLogic application service running resources in their systems. It has real-time monitoring, historical data analysis and various instant alarms (sound, mobile phone text messages, emails, etc.) functions, and is the best platform and tool for enterprises to monitor application servers such as Tuxedo / WebLogic.

[0050] In step 302, the gateway device 300 communicates with the MQ service module 210 based on the mqtt protocol. Here, the gateway device 300 cannot calculate the specific coordinates of the beacon after collecting the data, and needs to send the data to the server for calculation.

[0051] Specifically, the message middleware between the server and the gateway device (for example, a component existing in the operating system) can be built with the MQTT protocol, and the MQ service module 210 and the gateway device 300 both subscribe to the same topic. At this time, when the gateway sends data to the topic, the server can receive it immediately, and the gateway can also receive the data sent by the server to the topic. In some examples, the subscription topic can include gateway identification information, identification information of the terminal device being communicated, and the communication signal strength of the terminal device determined by the gateway.

[0052] In some embodiments, a gateway device (Gateway) is provided with multiple (for example, three) antennas, and the communication signal strength includes the RSSI value of each antenna of the terminal device corresponding to the gateway. Specifically, the three antennas in different directions will scan regularly, and the beacons within the range will be scanned and the gateway will collect data, and then the RSSI value will be calculated based on the data, and the strength of the RSSI value is related to the distance relative to the beacon.

[0053] In step 303 , the MQ service module 210 sends a subscription message to the background service module 220 .

[0054] In step 304, the background service module 220 may parse the subscription message to generate first gateway communication data.

[0055] In step 305, the background service module 220 sends the first gateway communication data to the algorithm service module 230. Here, the interaction between the background service module 220 and the algorithm service module 230 can be diversified, for example, a traditional IP / TCP request method can be used.

[0056] In some embodiments, after the background service module 220 parses the subscription message and generates the first gateway communication data, the first gateway communication data can be stored in the first cache space of the server. Accordingly, the algorithm service module 230 can call the first gateway communication data from the first cache space and use the positioning model to determine the first indoor positioning information corresponding to the first gateway communication data.

[0057] Therefore, the algorithm service module 230 does not need to receive communication data directly from the background service module 220, which can avoid the risk of low accuracy due to insufficient samples. In addition, compared with accessing data from the database, accessing data from the cache space can reduce the time of the I / O operation of reading the disk and improve the efficiency of positioning calculation.

[0058] In step 306, the algorithm service module 230 calls the positioning model to calculate the first indoor positioning information corresponding to the gateway communication data. In the embodiment of the present application, in order to ensure efficient operation of the algorithm service, the algorithm service module 230 can be designed to only allow indoor coordinate calculation operations for terminal devices.

[0059] In step 307 , the algorithm service module 230 sends the first indoor positioning information to the background service module 220 .

[0060] In step 308, the background service module 220 may determine the first target indoor positioning information corresponding to the terminal device 100 according to the first indoor positioning information. For example, the background service module 220 may associate and store the first target indoor positioning information with the identification information of the corresponding terminal device.

[0061] In step 309 , the terminal device 100 sends an indoor positioning request to the background service module 220 .

[0062] In step 310 , the background service module 220 sends the first target indoor positioning information to the terminal device 100 .

[0063] In contrast, in some related technologies, the location is calculated based on the terminal information after the terminal initiates the location request. Specifically, when the terminal device sends a location request to the background service, the MAC address of the device is used as a parameter and carried in the request to the server, so that the server can query the RSSI values ​​of different beacons according to the conditions of the terminal device, and carry these RSSI values ​​to the algorithm service, wait for the algorithm server to calculate the correct coordinates and return them to the front end, and finally render them on the page of the terminal device.

[0064] Although the above solution can achieve indoor positioning, it also has a lot of shortcomings. First, the number of terminal devices connected to the gateway may be huge, resulting in a large number of devices uploaded to the server. When a terminal device sends an indoor positioning request, the server needs to query the RSSI values ​​of dozens or even hundreds of beacons at the same time and submit them to the algorithm for calculation, resulting in a large amount of data and corresponding delays.

[0065] Through the embodiments of the present application, when a terminal device enters an indoor space, a broadcast can be sent to the gateway device to trigger the server to execute the calculation process of the indoor positioning coordinates for this terminal device without waiting for the terminal device to issue an indoor positioning request. By advancing the timing calculation process, the positioning calculation delay of the server after receiving the indoor positioning request can be greatly reduced, thereby improving the user's indoor positioning experience.

[0066] Figure 4 A flowchart of an example of sending first target indoor positioning information to a first terminal device according to an embodiment of the present application is shown.

[0067] like Figure 4 As shown, in step 410, first target indoor positioning information of the first terminal device is determined according to the first indoor positioning information.

[0068] In step 420, the first target indoor positioning information and the first terminal identification information are associated and stored in a second cache space of the server.

[0069] In step 430, an indoor positioning request corresponding to the first terminal identification information is obtained.

[0070] In step 440, the first target indoor positioning information corresponding to the first terminal identification information in the second cache space is sent to the first terminal device. Here, the second cache space can be used to store the indoor coordinates of each terminal that have been calculated by the algorithm service module. Thus, the indoor positioning information corresponding to the terminal identification is accessed from the second cache space, the I / O operation time of reading the disk is reduced, and a more efficient indoor positioning process can be achieved.

[0071] It should be noted that in order to address the problem of delay caused by the transmission of large amounts of data, it is proposed in an embodiment of the present application that if the corresponding indoor coordinates of the terminal device have been calculated after the request is issued, then there is no need to carry a large number of parameters to request the server for calculation, which can effectively eliminate the delay caused by the indoor positioning calculation.

[0072] Specifically, in the embodiment of the present application, the algorithm service module in the server does not directly subscribe to the MQ service module, so that the algorithm service module does not need to spend time parsing binary data, and avoids the risk of low coordinate accuracy due to insufficient data samples after obtaining the data. In addition, after receiving the real-time RSSI value from the MQ server, the background service module can store it in the cache instead of the database. For example, using redis as the cache middleware can reduce the I / O operation time of reading the disk, and the algorithm service module can read the latest RSSI value from redis at regular intervals.

[0073] Here, the access rules for redis can be pre-defined between the background service module and the algorithm service module, for example, the key is the identification information and the value is the RSSI value. Furthermore, after the algorithm service module calculates the indoor coordinates of the terminal, it can be directly stored in the cache, so that when the terminal device sends a request to the server, the server only needs to get the latest coordinates from the cache according to the terminal device's identification, which greatly reduces the delay caused by the need to calculate coordinates on a large number of devices.

[0074] Figure 5 A flowchart of an example of an indoor positioning method according to an embodiment of the present application is shown.

[0075] In some application scenarios, due to the large number of terminal devices in the indoor space area, the server may not have calculated the corresponding indoor coordinates for all terminal devices. For example, there may be some terminal devices whose indoor coordinates have not been calculated in time. If these terminal devices send indoor requests, the server should also be able to adjust the algorithm priority and respond in time.

[0076] In view of this, if Figure 5 As shown, in step 510, an indoor positioning request corresponding to the second terminal identification information of the second terminal device is obtained.

[0077] In step 520, it is detected whether the second terminal identification information exists in the second cache space.

[0078] In step 530, when the second terminal identification information does not exist in the second cache space, the control algorithm service module obtains the gateway communication data corresponding to the second terminal device from the first cache space, and determines the corresponding second indoor positioning information.

[0079] In step 540, second target indoor positioning information of the second terminal device is determined according to the second indoor positioning information, and the second target indoor positioning information is sent to the second terminal device.

[0080] Through the embodiments of the present application, it is possible to timely call the second gateway communication data corresponding to the second terminal device to perform indoor positioning calculation when the algorithm service module has not yet calculated the indoor position of the second terminal device, thereby achieving the purpose of adjusting the priority of the indoor positioning calculation object based on the indoor positioning request, and fully ensuring the positioning effect of each terminal device in the indoor area.

[0081] Figure 6 A flowchart of an example of determining first target indoor positioning information based on first indoor positioning information according to an embodiment of the present application is shown.

[0082] In some application scenarios, the communication process between the terminal device and the gateway device (e.g., Bluetooth connection) may be disturbed, making some RSSI values ​​inaccurate. However, if there are a large number of inaccurate RSSI values, the final indoor positioning result may be inaccurate.

[0083] In view of this, if Figure 6 As shown, in step 610, second gateway communication data having second gateway identification information is obtained.

[0084] It should be noted that, in the embodiment of the present application, multiple gateways may be deployed indoors, and different gateways have corresponding gateway identification information. Accordingly, the broadcast information of the indoor terminal device may be intercepted by two or more gateway devices.

[0085] In step 620, when the second gateway communication data includes the first terminal identification information, second indoor positioning information corresponding to the second gateway communication data is determined based on the positioning model.

[0086] In step 630, first target indoor positioning information of the first terminal device is determined based on the first indoor positioning information and the second indoor positioning information. Here, the target indoor positioning information can be determined from multiple (e.g., two or more) indoor positioning information in a statistical manner, such as by taking an average value, filtering out noise points, etc.

[0087] Through the embodiments of the present application, multiple gateways can be used to scan the same area, so that the same terminal device will be scanned by different gateways. Even if there are a small number of incorrect values, the positioning error rate can be significantly reduced through comprehensive calculation after scanning by multiple gateways, thereby ensuring the high accuracy of the indoor positioning results of the final terminal device.

[0088] In addition, in some examples of the embodiments of the present application, since the terminal device is generally provided with an acceleration sensor, the acceleration value can be carried in the communication process between the terminal device and the gateway, and then the server can calibrate the first indoor positioning information based on the acceleration information to obtain the first target indoor positioning information of the first terminal device. Therefore, the algorithm service module of the server can judge the accuracy of the RSSI value based on the acceleration value, eliminate the noise sampling value, and effectively avoid the situation of "people moving forward and coordinates retreating".

[0089] Figure 7 A structural block diagram of an example of an indoor positioning device according to an embodiment of the present application is shown.

[0090] like Figure 7 As shown, the indoor positioning device 700 includes a gateway communication data acquiring unit 710, an indoor positioning information determining unit 720, a target indoor positioning information determining unit 730, an indoor positioning request detecting unit 740 and a target indoor positioning information sending unit 750.

[0091] The gateway communication data acquisition unit 710 is configured to receive first gateway communication data from a first gateway deployed in an indoor space, wherein the first gateway communication data includes first gateway identification information of the first gateway, first terminal identification information of a first terminal device communicating with the first gateway, and communication signal strength for the first terminal device determined by the first gateway.

[0092] The indoor positioning information determination unit 720 is configured to determine the first indoor positioning information corresponding to the first gateway communication data based on a preset positioning model, wherein the positioning model is constructed based on a calibration gateway communication data set, and the calibration gateway data set includes the indoor position information of calibration terminals in the indoor space and the corresponding calibration gateway communication data.

[0093] The target indoor positioning information determining unit 730 is configured to determine first target indoor positioning information of the first terminal device according to the first indoor positioning information.

[0094] The indoor positioning request detection unit 740 is configured to detect whether there is an indoor positioning request corresponding to the first terminal identification information.

[0095] The target indoor positioning information sending unit 750 is configured to send the first target indoor positioning information to the first terminal device when there is the indoor positioning request.

[0096] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0097] Figure 8 Schematic diagram of an example of an electronic device according to an embodiment of the present application. Figure 8 As shown, the electronic device 800 of this embodiment includes: a processor 810, a memory 820, and a computer program 830 stored in the memory 820 and executable on the processor 810. When the processor 810 executes the computer program 830, the steps in the above-mentioned indoor positioning method embodiment are implemented, for example Figure 1 Alternatively, when the processor 810 executes the computer program 830, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 7 The functions of units 710 to 750 are shown.

[0098] Exemplarily, the computer program 830 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 820 and executed by the processor 810 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 830 in the electronic device 800. For example, the computer program 830 may be divided into a gateway communication data acquisition program module, an indoor positioning information determination program module, a target indoor positioning information determination program module, an indoor positioning request detection program module, and a target indoor positioning information sending program module, and the specific functions of each program module are as follows:

[0099] The gateway communication data acquisition program module is configured to receive first gateway communication data from a first gateway deployed in an indoor space, wherein the first gateway communication data includes first gateway identification information of the first gateway, first terminal identification information of a first terminal device communicating with the first gateway, and communication signal strength for the first terminal device determined by the first gateway;

[0100] The indoor positioning information determination program module is configured to determine the first indoor positioning information corresponding to the first gateway communication data based on a preset positioning model, wherein the positioning model is constructed according to a calibration gateway communication data set, and the calibration gateway data set includes a plurality of calibration terminal indoor position information in the indoor space and corresponding calibration gateway communication data;

[0101] The target indoor positioning information determination program module is configured to determine first target indoor positioning information of the first terminal device according to the first indoor positioning information;

[0102] The indoor positioning request detection program module is configured to detect whether there is an indoor positioning request corresponding to the first terminal identification information;

[0103] The target indoor positioning information sending program module is configured to send the first target indoor positioning information to the first terminal device when there is the indoor positioning request.

[0104] The electronic device 800 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will appreciate that Figure 8 It is only an example of the electronic device 800 and does not constitute a limitation of the electronic device 800. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0105] The processor 810 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0106] The memory 820 may be an internal storage unit of the electronic device 800, such as a hard disk or memory of the electronic device 800. The memory 820 may also be an external storage device of the electronic device 800, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 800. Further, the memory 820 may also include both an internal storage unit of the electronic device 800 and an external storage device. The memory 820 is used to store the computer program and other programs and data required by the electronic device. The memory 820 may also be used to temporarily store data that has been output or is to be output.

[0107] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment.

[0108] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0109] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0110] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0111] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0112] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above units may be implemented in the form of hardware or software.

[0113] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0114] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An indoor positioning method, applied to a server, characterized in that: The method comprises: Acquiring first gateway communication data from a first gateway deployed in an indoor space, wherein the first gateway communication data includes first gateway identification information of the first gateway, first terminal identification information of a first terminal device communicating with the first gateway, and communication signal strength for the first terminal device determined by the first gateway, wherein after the first terminal device enters the indoor space, the first gateway automatically connects to the first terminal device and reports corresponding first gateway communication data to the server; Determining first indoor positioning information corresponding to the first gateway communication data based on a preset positioning model, wherein the positioning model is constructed based on a calibration gateway communication data set, and the calibration gateway communication data set includes indoor position information of calibration terminals in the indoor space and corresponding calibration gateway communication data; Determine first target indoor positioning information of the first terminal device according to the first indoor positioning information; associate the first target indoor positioning information with the first terminal identification information and store them in a second cache space of the server; Detecting whether there is an indoor positioning request corresponding to the first terminal identification information; When the indoor positioning request exists, sending the first target indoor positioning information corresponding to the first terminal identification information in the second cache space to the first terminal device; When there is no indoor positioning request, the operation ends.

2. The method according to claim 1, characterized in that The server includes an MQ service module, a background service module and an algorithm service module, each of which is an independent container encapsulation function module. The acquiring of first gateway communication data from a first gateway deployed in an indoor space includes: Based on the MQ service module, receiving a subscription message from the first gateway through the mqtt protocol; Based on the background service module, parsing the subscription message to obtain corresponding first gateway communication data; Correspondingly, the determining the first indoor positioning information corresponding to the first gateway communication data based on a preset positioning model includes: Based on the algorithm service module, a positioning model is used to determine first indoor positioning information corresponding to the first gateway communication data.

3. The method according to claim 2, characterized in that The backend service module is further configured to store the first gateway communication data in the first cache space of the server after parsing the subscription message to generate the first gateway communication data. Correspondingly, the algorithm service module is further used to call the first gateway communication data from the first cache space, and use the positioning model to determine the first indoor positioning information corresponding to the first gateway communication data.

4. The method according to claim 3, characterized in that The method further comprises: Obtaining an indoor positioning request having second terminal identification information corresponding to the second terminal device; Detecting whether the second terminal identification information exists in the second cache space; When the second terminal identification information does not exist in the second cache space, controlling the algorithm service module to obtain the gateway communication data corresponding to the second terminal device from the first cache space, and determining the corresponding second indoor positioning information; According to the second indoor positioning information, second target indoor positioning information of the second terminal device is determined, and the second target indoor positioning information is sent to the second terminal device.

5. The method according to claim 1, characterized in that A plurality of gateways are deployed indoors, wherein determining first target indoor positioning information of the first terminal device according to the first indoor positioning information includes: Acquire second gateway communication data having second gateway identification information; When the second gateway communication data includes the first terminal identification information, determining second indoor positioning information corresponding to the second gateway communication data based on the positioning model; Based on the first indoor positioning information and the second indoor positioning information, first target indoor positioning information of the first terminal device is determined.

6. The method according to claim 1, characterized in that The first gateway communication data also includes acceleration information of the first terminal device, wherein determining first target indoor positioning information of the first terminal device according to the first indoor positioning information includes: The first indoor positioning information is calibrated based on the acceleration information to obtain first target indoor positioning information of the first terminal device.

7. An indoor positioning device, characterized in that: include: a gateway communication data acquisition unit, configured to receive first gateway communication data from a first gateway deployed in an indoor space, wherein the first gateway communication data includes first gateway identification information of the first gateway, first terminal identification information of a first terminal device communicating with the first gateway, and communication signal strength for the first terminal device determined by the first gateway, wherein after the first terminal device enters the indoor space, the first gateway automatically connects to the first terminal device and reports the corresponding first gateway communication data to a server; an indoor positioning information determining unit, configured to determine first indoor positioning information corresponding to the first gateway communication data based on a preset positioning model, wherein the positioning model is constructed according to a calibration gateway communication data set, and the calibration gateway communication data set includes indoor position information of calibration terminals in the indoor space and corresponding calibration gateway communication data; a target indoor positioning information determining unit, configured to determine first target indoor positioning information of the first terminal device according to the first indoor positioning information, and associate the first target indoor positioning information with the first terminal identification information and store them in a second cache space of the server; An indoor positioning request detection unit is configured to detect whether there is an indoor positioning request corresponding to the first terminal identification information; The target indoor positioning information sending unit is configured to send the first target indoor positioning information corresponding to the first terminal identification information in the second cache space to the first terminal device when there is the indoor positioning request; and end the operation when there is no indoor positioning request.

8. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.