A positioning system, method, electronic device and medium for indoor mobile device
By using multiple wireless signal probes and Kalman filtering algorithms to process WiFi and Bluetooth signal data in an indoor environment, the problem of positioning accuracy under the influence of environmental factors is solved, and high-precision positioning and accurate judgment of mobile devices are achieved, which is suitable for Information security needs of important places.
Patent Information
- Application Number
- CN202410947436.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing indoor mobile device positioning technology has low accuracy under environmental influence and cannot meet the demand for high-precision positioning. Especially because wireless signal strength is affected by factors such as temperature, humidity, and electromagnetic interference, positioning accuracy is insufficient.
Use multiple wireless signal probes to connect to the router and system host, synchronize the clock through the SNTP protocol, collect WiFi and Bluetooth signal data, and use the Kalman filter algorithm for data processing and nearest neighbor positioning, and adjust the probe distance to improve accuracy and reduce interference effects.
It achieves accurate positioning of mobile devices in indoor environments, can accurately determine whether the device exists and its specific location, improves positioning accuracy and practicality, and is suitable for information security needs in important places.
Smart Images

Figure CN118488548B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of positioning technology, and in particular to a positioning system, method, electronic equipment and medium for indoor mobile equipment. Background Art
[0002] With the rapid development of mobile Internet technology, smartphones play an increasingly important role in our daily life and work. In order to maintain the information security of important places, it is particularly important to locate and track mobile phones in important places.
[0003] Existing indoor mobile device positioning, for example, in mobile phone positioning technology, satellite positioning technologies such as GPS and Beidou can provide high-precision positioning services worldwide. However, satellite signals are severely attenuated in indoor environments, so satellite positioning technologies such as GPS and Beidou cannot meet the accuracy requirements of indoor positioning. Communication base station positioning technology is a technology that uses information such as signal strength, time delay, and angle of communication base stations for positioning. It is widely used in emergency rescue, intelligent transportation, logistics tracking, social applications and other fields, bringing great convenience to people's lives and work. However, its positioning accuracy is at the order of hundreds of meters, which cannot meet the accuracy requirements of indoor positioning.
[0004] At present, there are some indoor positioning systems based on WiFi and Bluetooth signal strength on the market. Their positioning principles mainly include three-point positioning method and location fingerprint method. However, the essence of the three-point positioning method is ranging based on wireless signal strength. However, the wireless signal strength is greatly affected by the environment: such as temperature, humidity, electromagnetic interference, etc., which may affect the accuracy of the measurement results and thus affect the positioning accuracy. The location fingerprint positioning technology requires the construction of a huge fingerprint database. The construction process of this database is quite cumbersome, and detailed signal feature collection and processing are required for each area to be located. This not only requires a lot of time and human resources, but may also be affected by environmental factors, such as personnel flow, equipment changes, etc., resulting in dynamic changes in fingerprint features, thereby increasing the difficulty of database maintenance. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a positioning system, method, electronic device and medium for indoor mobile devices, which are used to solve the technical problem that the positioning method in the above-mentioned prior art is greatly affected by the environment and leads to low accuracy.
[0006] In order to achieve the above-mentioned object, an embodiment of the present invention provides a positioning system for indoor mobile devices, comprising: a plurality of wireless signal probes, a router communicatively connected to the plurality of wireless signal probes, and a system host communicatively connected to the router;
[0007] Among them, the distance between multiple wireless signal probes is adjustable, which is used to collect WiFi and Bluetooth signal data and report;
[0008] The system host includes a WEB module and a data processing module, wherein the WEB module is used to send configuration parameters to each wireless signal probe and use the SNTP protocol to synchronize the clocks of each wireless signal probe, and the data processing module is used to process and save the data of the multiple wireless signal probes and push the processed data to the WEB module for display;
[0009] The router is used to transfer data between the multiple wireless signal probes and the system host.
[0010] Optionally, the wireless signal probe is internally provided with a WiFi / Bluetooth module, an external antenna, a mobile power supply, a USB to UART chip and a USB interface, wherein the WiFi / Bluetooth module is communicatively connected to the external antenna, the USB interface is connected to a host computer, and the wireless signal probe uses the UART interface for parameter configuration.
[0011] On the other hand, the present invention provides a method for positioning an indoor mobile device. A plurality of wireless signal probes are arranged in a monitored location and powered on. The wireless signal probes are connected to a WiFi access point of a router and a TCP connection is established with a system host. The system host sends configuration parameters to each wireless signal probe. The positioning method includes:
[0012] Using the SNTP protocol to synchronize the clocks of multiple wireless signal probes so that each wireless signal probe synchronously switches the wireless channel, and controls the multiple wireless signal probes to collect WiFi and Bluetooth signal data, wherein the distance between the multiple wireless signal probes is adjustable;
[0013] Obtain WiFi and Bluetooth signal data collected by wireless signal probes, use Kalman filter algorithm to filter data, and then use nearest neighbor method to locate and obtain processing results;
[0014] Based on the processing result, it is determined whether there is a mobile device in the monitored place, and if so, an early warning is issued.
[0015] Optionally, the process of synchronizing the clocks of multiple wireless signal probes using the SNTP protocol includes:
[0016] Control multiple wireless signal probes to connect to a server, and send a time request to the server;
[0017] The server responds to the time request and replies timestamp information to multiple wireless signal probes to complete time synchronization.
[0018] Optionally, the WiFi and Bluetooth signal data collected by the multiple wireless signal probes include but are not limited to device type, message ID, MAC address, and signal strength.
[0019] Optionally, the acquiring of WiFi and Bluetooth signal data collected by the wireless signal probe, and performing data filtering processing using a Kalman filter algorithm, and then using a nearest neighbor method for positioning to obtain a processing result includes:
[0020] For the WiFi and Bluetooth signal data collected by the same wireless signal probe, the WiFi and Bluetooth signal data with the same MAC address in the data are merged, wherein the signal strength is calculated using the Kalman filter algorithm to calculate the expected value;
[0021] For the WiFi and Bluetooth signal data collected by all wireless signal probes, the data with the same MAC address are sorted according to signal strength, and the position of the wireless signal probe corresponding to the maximum signal strength is selected as the positioning position of the mobile device, where one MAC address corresponds to one mobile device.
[0022] Optionally, calculate the signal strength according to the following formula:
[0023]
[0024]
[0025]
[0026] In the formula, Expressed as the Kalman gain at time k, is the predicted gain value at time k, represents the system state at the k-1 iteration, P(k|k-1) represents the error covariance at the k-1 iteration, Q represents the covariance of the process noise that conforms to the Gaussian distribution, R represents the covariance of the measurement noise that conforms to the Gaussian distribution, z(k) represents the observation value of the system at the k moment, To calculate the updated state covariance.
[0027] Optionally, when the multiple wireless signal probes collect WiFi and Bluetooth signal data, they switch the monitoring channel once a set time is reached.
[0028] On the other hand, the present invention also 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-mentioned positioning method when executing the program.
[0029] On the other hand, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above-mentioned positioning method when executed by a processor.
[0030] Through the above technical solution, the SNTP protocol is used to synchronize the system clock of the wireless signal probe, so that even indoor mobile devices using random MAC addresses can be accurately located. In addition, by adjusting the deployment distance of the wireless signal probe, and then adjusting the deployment density of the wireless signal probe to improve positioning accuracy, the influence of interference factors such as non-line-of-sight and signal multipath can also be reduced. It can accurately determine whether there are mobile devices in important places, as well as the corresponding specific locations, with high accuracy and practicality.
[0031] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0033] Figure 1 It is a schematic diagram of a three-point positioning method provided by the prior art;
[0034] Figure 2 It is a schematic diagram of a location fingerprint method provided by the prior art;
[0035] Figure 3 It is a structural schematic diagram of a positioning system for indoor mobile devices provided by an embodiment of the present invention;
[0036] Figure 4 It is a schematic diagram of the internal structure of a wireless signal probe provided by an embodiment of the present invention;
[0037] Figure 5 is an implementation flow chart of a method for positioning an indoor mobile device provided by an embodiment of the present invention;
[0038] Figure 6 This is a flow chart of synchronizing multiple wireless signal probe clocks using an SNTP protocol provided by an embodiment of the present invention;
[0039] Figure 7 This is a flow chart of an implementation of a mobile phone positioning method provided by an embodiment of the present invention;
[0040] Figure 8 The present invention provides a schematic diagram of wireless signal probe deployment in a conference room. DETAILED DESCRIPTION
[0041] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0042] At present, there are some indoor positioning systems based on WiFi and Bluetooth signal strength on the market, and their positioning principles mainly include three-point positioning method and location fingerprint method.
[0043] The basic principle of the three-point positioning method is to determine the exact location of the target point by measuring the distance from the target point to three known locations (such as base stations, satellites, etc.). Figure 1 As shown in the figure, three signal base stations (base station A, base station B, base station C) are deployed in a plane. The positions of the signal base stations are distributed in a triangle, and the distance between the signal base stations is within the range of 10 to 20 meters. The target point uses the received wireless signal strength to calculate its distance to the three signal base stations (r1, r2, r3), and then draws three circles with the three signal base stations as the center and the distance from the target point to the corresponding signal base station as the radius. The intersection of the three circles is the position of the target point.
[0044] The principle of location fingerprinting is a positioning method based on signal feature matching. It uses the propagation characteristics of wireless signals to build a fingerprint database and achieves accurate positioning through matching algorithms. Specifically, in the offline stage, it is necessary to pre-set the location of the Figure 2 Signal strength data is collected in the target area shown. These data usually include the signal strength values of multiple access points (AP1, AP2, AP3, AP4), forming a multi-dimensional fingerprint information. These fingerprint information are stored in a database and associated with the corresponding location information (RPi1-RPi5, RP1i-RP5i). In the online positioning stage, the user device will collect the signal strength data of the current location in real time, match it with the data in the fingerprint database, and select the best matching fingerprint as the estimate of the current location. The matching algorithm can be selected according to the actual situation, such as Euclidean distance, Manhattan distance, etc.
[0045] However, the applicant found that the essence of the three-point positioning method is to measure the distance based on the strength of the wireless signal. However, the strength of the wireless signal is greatly affected by the environment: such as temperature, humidity, electromagnetic interference, etc., which may affect the accuracy of the measurement results and thus affect the positioning accuracy. The use of some digital filtering algorithms can reduce the impact of environmental factors, but the effect is limited.
[0046] The location fingerprint positioning technology first needs to build a huge fingerprint database. The process of building this database is quite cumbersome, and it is necessary to collect and process detailed signal features for each area to be located. This not only requires a lot of time and human resources, but may also be affected by environmental factors such as personnel flow and equipment changes, resulting in dynamic changes in fingerprint features, thereby increasing the difficulty of database maintenance.
[0047] Secondly, the positioning accuracy of the location fingerprint positioning technology is affected by many factors. Since the propagation of wireless signals is affected by multiple factors such as multipath effect, attenuation, interference, etc., the fingerprint features may have certain instability and uncertainty. This may lead to deviations in the positioning results, especially in complex environments, where the positioning accuracy may be seriously affected.
[0048] In addition, the location fingerprint positioning technology still has certain universality issues. Since the signal transmission and reception performance of different devices may be different, this may lead to inconsistent fingerprint features of different devices at the same location, thus affecting the accuracy and stability of positioning. Therefore, in practical applications, different devices need to be calibrated and adapted, which increases the complexity and cost of the system.
[0049] See also Figure 3 FIG. 1 is a schematic diagram of a structure of a positioning system for an indoor mobile device provided by an embodiment of the present invention, including:
[0050] Multiple wireless signal probes ( Figure 3 Taking the wireless signal probe 50 as an example), a router connected to multiple wireless signal probes for communication, and a system host connected to the router for communication;
[0051] Among them, the distance between multiple wireless signal probes is adjustable, which is used to collect WiFi and Bluetooth signal data and report;
[0052] The system host includes a WEB module and a data processing module, wherein the WEB module is used to send configuration parameters to each wireless signal probe and use the SNTP protocol to synchronize the clocks of each wireless signal probe, and the data processing module is used to process and save the data of the multiple wireless signal probes and push the processed data to the WEB module for display;
[0053] The router is used to transfer data between the multiple wireless signal probes and the system host.
[0054] Preferably, the system host runs Ubuntu 18 system and turns on SNTP time synchronization service. The WEB module is responsible for user management, wireless signal probe configuration, real-time data display, historical data playback, summary alarm results and other functions; the data processing module is responsible for processing and saving the data of the wireless signal probe, and pushing the processed data to the WEB module for display.
[0055] This positioning system is mainly used in important places such as conference rooms and examination rooms where information confidentiality is required. By using passive detection technology, no wireless data frames will be actively sent during signal collection, and it will not have any impact on the normal communication of the place of use.
[0056] See also Figure 4 The figure is a schematic diagram of the internal structure of a wireless signal probe provided by an embodiment of the present invention, wherein the wireless signal probe is internally provided with a WiFi / Bluetooth module, an external antenna, a mobile power supply, a USB to UART chip and a USB interface, wherein the WiFi / Bluetooth module is communicatively connected to the external antenna, the USB interface is connected to a host computer, and the wireless signal probe uses the UART interface for parameter configuration.
[0057] In some embodiments, the wireless signal probe is used to collect WiFi and Bluetooth signal strengths and report the collected data. The data includes at least device type, message ID, MAC address, and signal strength. The wireless signal probe uses a UART interface for parameter configuration and system LOG printing.
[0058] The wireless signal probe uses an MCU module with integrated WiFi and Bluetooth RF circuits, which can collect the signal strength of WiFi and Bluetooth devices. It has high system integration, low power consumption and good consistency of hardware circuits.
[0059] The positioning system can not only locate smartphones, but also tablets, wearable devices, laptops and other devices with WiFi and Bluetooth functions.
[0060] The positioning system uses the SNTP protocol to synchronize the system clock of the wireless signal probe, and can be positioned even when the mobile phone uses a random MAC address. The deployment distance of the wireless signal probe of the positioning system is about 0.8 meters, which increases the deployment density of the wireless signal probe, can significantly improve the positioning accuracy, and can also reduce the influence of interference factors such as non-line-of-sight and signal multipath. The system can accurately determine whether there is a mobile phone in an important place, as well as the specific seat of the mobile phone. It has high accuracy and practicality, and can meet the needs of mobile phone positioning in important places.
[0061] See also Figure 5As shown, it is an implementation flow chart of a method for positioning an indoor mobile device provided by an embodiment of the present invention. A plurality of wireless signal probes are deployed in the monitored occasion and powered on. The wireless signal probes are set to connect to the WiFi access point of the router, and a TCP connection is established with the system host. The system host sends configuration parameters to each wireless signal probe, including the following execution steps:
[0062] Step 500: Synchronize the clocks of multiple wireless signal probes using the SNTP protocol so that each wireless signal probe performs wireless channel switching synchronously, and control the multiple wireless signal probes to collect WiFi and Bluetooth signal data.
[0063] Wherein, the distance between the multiple wireless signal probes is adjustable.
[0064] It should be understood that the WiFi and Bluetooth signal data collected by the multiple wireless signal probes include but are not limited to device type, message ID, MAC address, and signal strength.
[0065] In some embodiments, see Figure 6 As shown, the process of synchronizing the clocks of multiple wireless signal probes using the SNTP protocol includes: controlling multiple wireless signal probes to connect to a server and sending a time request to the server; the server responds to the time request and replies timestamp information to multiple wireless signal probes to complete time synchronization.
[0066] In some implementations, when the multiple wireless signal probes collect WiFi and Bluetooth signal data, they switch monitoring channels once a set time has elapsed.
[0067] Step 501: Obtain WiFi and Bluetooth signal data collected by the wireless signal probe, use the Kalman filter algorithm to perform data filtering processing, and then use the nearest neighbor method to locate and obtain the processing result.
[0068] Specifically, when executing step 501, the following steps may be specifically performed:
[0069] S5010: For WiFi and Bluetooth signal data collected by the same wireless signal probe, the WiFi and Bluetooth signal data with the same MAC address in the data are merged.
[0070] The signal strength is calculated using the Kalman filter algorithm.
[0071] The signal strength obtained uses the Kalman filter commonly used in engineering. Kalman filtering is an iterative process. It iterates once for each new observation value, and updates two things back and forth: "system state" (x) and "error covariance" (P). Since each iteration only uses the results of the previous iteration and the new measurement value, the filter occupies very little computing resources. Each iteration has two steps: prediction and correction. The prediction is based on the results of the previous iteration, that is, x(k-1|k-1) and P(k-1|k-1), to predict the system state and error covariance at this moment, and obtain x(k|k-1) and P(k|k-1).
[0072] In some embodiments, the signal strength may be calculated according to the following formula:
[0073]
[0074]
[0075]
[0076] In the formula, Expressed as the Kalman gain at time k, is the predicted gain value at time k, represents the system state at the k-1 iteration, P(k|k-1) represents the error covariance at the k-1 iteration, Q represents the covariance of the process noise that conforms to the Gaussian distribution, R represents the covariance of the measurement noise that conforms to the Gaussian distribution, z(k) represents the observation value of the system at the k moment, To calculate the updated state covariance.
[0077] S5011: For the WiFi and Bluetooth signal data collected by all wireless signal probes, the data with the same MAC address are sorted according to signal strength, and the position of the wireless signal probe corresponding to the maximum signal strength is selected as the positioning position of the mobile device.
[0078] Among them, one MAC address corresponds to one mobile device.
[0079] Step 502: Based on the processing result, determine whether there is a mobile device in the monitored occasion, and issue an early warning if there is.
[0080] By using the SNTP protocol to synchronize the clocks of wireless signal probes, each wireless signal probe can switch wireless channels synchronously, so that the collected data can be automatically aligned. Even if the mobile phone is not connected to WiFi, it can be accurately located by using a random MAC address for WiFi network detection.
[0081] In some embodiments, the mobile device is taken as an example of a mobile phone, see Figure 7 As shown in the figure, it is a flowchart of a method for locating a mobile phone provided by an embodiment of the present invention, including the following execution steps: First, the system is deployed: a wireless signal probe is placed in front of each seat at the conference table, and its specific deployment position in the conference room is as follows: Figure 8 As shown, and power on the machine;
[0082] The wireless signal probe connects to the WiFi access point of the router and establishes a TCP connection with the system host; the system host sends configuration parameters (binding location and signal filtering threshold) to each wireless signal probe, and uses the SNTP protocol to synchronize the clock of the wireless signal probe; all wireless signal probes automatically disconnect from the WiFi connection of the router, and start WiFi and Bluetooth signal collection at the same time, switching the monitoring channel once a second; after completing 60 seconds of signal collection, the wireless signal probe reconnects to the router and uploads the collected data to the system host; after receiving the data, the system host submits it to the data processing module for data processing and saves the original data to the database; after the data processing is completed, the processing results are submitted to the WEB module for display; the WEB module displays whether there is a mobile phone at each seat, and reminds the user to deal with it if there is a mobile phone, and starts the next signal collection.
[0083] It should be noted that in addition to mobile phone positioning technologies based on WiFi and Bluetooth signal strength, other technologies (such as UWB, ultrasound, etc.) can also be considered for mobile phone positioning. These technologies have their own advantages and disadvantages, and appropriate alternatives can be selected according to actual needs and scenarios. For example, UWB technology has strong anti-interference ability and high positioning accuracy, but it requires the deployment of UWB positioning base stations, which is costly; ultrasonic positioning has high overall positioning accuracy and a simple system structure, but is easily affected by multipath effects and non-line-of-sight propagation.
[0084] On the other hand, an embodiment of the present invention further 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 positioning method described in any one of the above embodiments when executing the program.
[0085] On the other hand, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the positioning method described in any one of the above embodiments are implemented.
[0086] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0087] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0088] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0089] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0090] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0091] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0092] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0093] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0094] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A positioning system for indoor mobile devices, characterized in that: include: A plurality of wireless signal probes, a router connected to the plurality of wireless signal probes for communication, and a system host connected to the router for communication; Among them, the distance between multiple wireless signal probes is adjustable, which is used to collect WiFi and Bluetooth signal data and report; The system host includes a WEB module and a data processing module, wherein the WEB module is used to send configuration parameters to each wireless signal probe, and use the SNTP protocol to synchronize the clocks of each wireless signal probe, and the data processing module is used to process and save the data of the multiple wireless signal probes, wherein the processing process includes obtaining the WiFi and Bluetooth signal data collected by the wireless signal probes, and using the Kalman filter algorithm to perform data filtering processing, and then using the nearest neighbor method to locate and obtain the processing results; based on the processing results, determine whether there is a mobile device in the monitored occasion, and push the processed data to the WEB module for display; The router is used to transfer data between the multiple wireless signal probes and the system host.
2. The positioning system according to claim 1, characterized in that: The wireless signal probe is internally provided with a WiFi / Bluetooth module, an external antenna, a mobile power supply, a USB to UART chip and a USB interface, wherein the WiFi / Bluetooth module is communicatively connected to the external antenna, the USB interface is connected to a host computer, and the wireless signal probe uses the UART interface for parameter configuration.
3. A method for positioning an indoor mobile device, characterized in that: Multiple wireless signal probes are deployed in the monitored places and powered on, the wireless signal probes are set to connect to the WiFi access point of the router, and a TCP connection is established with the system host, and the system host sends configuration parameters to each wireless signal probe. The positioning method includes: Using the SNTP protocol to synchronize the clocks of multiple wireless signal probes so that each wireless signal probe synchronously switches the wireless channel, and controls the multiple wireless signal probes to collect WiFi and Bluetooth signal data, wherein the distance between the multiple wireless signal probes is adjustable; Obtain WiFi and Bluetooth signal data collected by wireless signal probes, use Kalman filter algorithm to filter data, and then use nearest neighbor method to locate and obtain processing results; Based on the processing result, it is determined whether there is a mobile device in the monitored place, and if so, an early warning is issued.
4. The positioning method according to claim 3, characterized in that: The process of synchronizing the clocks of multiple wireless signal probes using the SNTP protocol includes: Control multiple wireless signal probes to connect to a server, and send a time request to the server; The server responds to the time request and replies timestamp information to multiple wireless signal probes to complete time synchronization.
5. The positioning method according to claim 3, characterized in that: The WiFi and Bluetooth signal data collected by the multiple wireless signal probes include but are not limited to device type, message ID, MAC address, and signal strength.
6. The positioning method according to claim 5, characterized in that: The WiFi and Bluetooth signal data collected by the wireless signal probe is obtained, and the Kalman filter algorithm is used to perform data filtering processing, and then the nearest neighbor method is used for positioning to obtain the processing results, including: For the WiFi and Bluetooth signal data collected by the same wireless signal probe, the WiFi and Bluetooth signal data with the same MAC address in the data are merged, wherein the signal strength is calculated using the Kalman filter algorithm to calculate the expected value; For the WiFi and Bluetooth signal data collected by all wireless signal probes, the data with the same MAC address are sorted according to signal strength, and the position of the wireless signal probe corresponding to the maximum signal strength is selected as the positioning position of the mobile device, where one MAC address corresponds to one mobile device.
7. The positioning method according to claim 6, characterized in that: The signal strength is calculated according to the following formula: In the formula, Expressed as the Kalman gain at time k, is the predicted gain value at time k, represents the system state at the k-1 iteration, P(k|k-1) represents the error covariance at the k-1 iteration, Q represents the covariance of the process noise that conforms to the Gaussian distribution, R represents the covariance of the measurement noise that conforms to the Gaussian distribution, z(k) represents the observation value of the system at the k moment, To calculate the updated state covariance.
8. The positioning method according to claim 3, characterized in that: When the multiple wireless signal probes collect WiFi and Bluetooth signal data, the monitoring channel is switched once a set time is reached.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the positioning method as described in any one of claims 3 to 8 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the positioning method according to any one of claims 3 to 8 are implemented.
Citation Information
Patent Citations
Indoor positioning system synchronous and online configuration device and method based on magnetic signal emission beacon
CN106130678A
A method and a system for positioning personnel in space based on mobile phone positioning
CN109922438A
