LoRaWAN-based fusion positioning method and system
The LoRaWAN network architecture integrates TDOA and RSSI positioning technology, and uses the weighted centroid algorithm and Taylor series expansion algorithm to solve the problem of insufficient accuracy of traditional positioning technology and achieve more efficient and accurate positioning results.
Patent Information
- Application Number
- CN202410893125.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional TDOA and RSSI positioning technologies have problems with insufficient accuracy in practical applications. TDOA positioning requires high-precision equipment and time synchronization. RSSI positioning is affected by multipath effects and environmental factors, resulting in poor positioning accuracy.
The fusion positioning method based on LoRaWAN is used to construct the LoRaWAN network architecture, extract the received signal strength and timestamp of the gateway, use the weighted centroid algorithm of RSSI for initial positioning, and combine it with TDOA positioning technology to solve the final positioning through Taylor series expansion algorithm.
It improves positioning accuracy and reliability, overcomes the high requirements of TDOA positioning on time synchronization and RSSI positioning on environmental conditions, enhances anti-interference capabilities, reduces the impact of abnormal points on positioning results, and improves overall positioning efficiency and accuracy.
Smart Images

Figure CN118632190A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless positioning technology, and in particular to a fusion positioning method and system based on LoRaWAN. Background Art
[0002] In the Internet of Things (IoT) and remote sensor networks, positioning technology is essential for realizing applications such as object tracking, environmental monitoring, and smart cities. Traditional positioning technologies include WIFI positioning technology, RFID technology, ZigBee positioning technology, and ultra-wideband positioning technology. However, these traditional positioning technologies have technical problems such as large amount of information collection, susceptibility to interference, short positioning distance, and high cost. To this end, positioning methods such as signal arrival time (TOA) positioning technology, signal arrival time difference (TDOA) positioning technology, signal arrival angle (AOA) positioning technology, and received signal strength (RSSI) positioning technology have emerged. Among them, the signal arrival time difference (TDOA) positioning technology is a technology that determines the target location by measuring the time difference between the signal from one or more known receivers to the target location; the received signal strength (RSSI) positioning technology is a technology that infers the distance by the received signal strength. The RSSI value reflects the attenuation of the signal during the transmission process, which is related to the propagation distance of the signal.
[0003] However, in practical applications, both TDOA positioning technology and RSSI positioning technology have their own technical problems. Specifically, TDOA positioning technology requires high-precision positioning equipment and high time synchronization for accurate positioning. The time synchronization situation will have a great impact on the positioning accuracy, while RSSI positioning technology is usually affected by multipath effects, signal shielding and other environmental factors, resulting in poor accuracy of RSSI positioning results and high requirements for the environment. Therefore, it is urgent to develop a positioning method that can effectively integrate TDOA positioning technology and RSSI positioning technology, and maximize the positioning accuracy while overcoming the technical problems of the two positioning technologies. Summary of the invention
[0004] In response to the above technical problems, the present invention proposes a fusion positioning method and system based on LoRaWAN, which aims to effectively integrate TDOA positioning technology and RSSI positioning technology, while overcoming the technical problems of the two positioning technologies and maximizing the positioning accuracy.
[0005] In a first aspect, the present application provides a fusion positioning method based on LoRaWAN, comprising the following steps:
[0006] Step 102, constructing a LoRaWAN network architecture including a terminal, a gateway, a network server, and an application server;
[0007] Step 104, extracting the received signal strength of each gateway;
[0008] Step 106, screening the gateways based on the received signal strength of each gateway;
[0009] Step 108, extracting the signal strength and timestamp received by the filtered gateway;
[0010] Step 110, based on the signal strength received by the selected gateway, the weighted centroid algorithm of RSSI is used to perform initial positioning of the point to be measured;
[0011] Step 112, based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured, the TDOA positioning of the point to be measured is solved as the final positioning of the point to be measured.
[0012] In some embodiments, the network server in the LoRaWAN network architecture is connected to several application servers, the network server is used to manage the overall terminal data and gateway data and transmit the data to the application server, and the application server is used to classify and extract the data transmitted by the network server according to different terminal functions.
[0013] In some embodiments, in step 106, the gateways are screened based on the received signal strength of each gateway, including:
[0014] Based on the received signal strength of each gateway, the fluctuation value of each gateway position is calculated;
[0015] Remove the gateway position with the largest fluctuation value to obtain the filtered gateway.
[0016] In some embodiments, based on the received signal strength of each gateway, calculating the fluctuation value of the location of each gateway includes:
[0017] Calculate the average of the received signal strength of each gateway;
[0018] The absolute difference between the received signal strength of each gateway and the mean value is calculated respectively, and the obtained absolute difference value is used as the fluctuation value of the position of each gateway.
[0019] In some embodiments, in step 110, based on the signal strength received by the selected gateway, the weighted centroid algorithm of RSSI is used to initially locate the point to be measured, including:
[0020] Based on the signal strength received by the selected gateways, all possible locations of the points to be tested are calculated;
[0021] Based on all possible positions of the point to be measured, determine the geometric centroid corresponding to each possible position;
[0022] Determine the weight of each geometric centroid based on the signal strength received by the selected gateways;
[0023] Based on the weight of the geometric centroid, the weighted average position of all possible positions is calculated as the initial positioning of the point to be measured.
[0024] In some embodiments, based on the signal strength received by the filtered gateway, all possible locations of the point to be measured are calculated, including:
[0025] According to the formula, the relative distance between each selected gateway and the point to be tested is inferred, and the expression of the formula is:
[0026]
[0027] Where d represents the relative distance between the point to be tested and the current gateway, P l (d) represents the signal strength received by the current gateway, d0 represents the reference distance, P l (d0) represents the reference signal strength, X0 represents a Gaussian distribution random variable with a mean of zero;
[0028] Taking the coordinates of each selected gateway as the center of the circle and the inversely derived relative distance between each selected gateway and the point to be measured as the radius, several positioning circles are obtained;
[0029] The intersection of any three positioning circles is taken as the possible position of the point to be measured, and all possible positions of the point to be measured are obtained.
[0030] In some embodiments, in step 112, based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured, solving the TDOA positioning of the point to be measured as the final positioning of the point to be measured includes:
[0031] Based on the timestamps received by the filtered gateways, the distance difference between the test point and each filtered gateway is calculated;
[0032] Based on the distance difference between the test point and each screened gateway and the initial positioning of the test point, the Taylor series expansion algorithm is used to solve the TDOA positioning of the test point as the final positioning of the test point.
[0033] In some embodiments, based on the timestamps received by the filtered gateways, calculating the distance difference between the test point and each filtered gateway includes:
[0034] Based on the timestamps received by the selected gateways, determining the propagation delay difference of the signal sent from the test point to each selected gateway;
[0035] The difference in propagation delays of the signal sent from the test point to each selected gateway is multiplied by the propagation speed of the signal to obtain the distance difference from the test point to each selected gateway.
[0036] In some embodiments, the application server is provided with a swagger, and the swagger includes an API interface, and before step 104 "extracting the received signal strength of each gateway" and step 108 "extracting the signal strength and timestamp received by the filtered gateway", the following steps are also included:
[0037] The application server receives the user's identity authentication and, after successful authentication, uses the key to generate a token, which is carried in the request when the user requests the Swagger API interface;
[0038] After receiving the user's request, the Swagger API interface verifies the token carried in the request. When the token verification is successful, the application server allows the user to access the requested data.
[0039] In the second aspect, the present application provides a fusion positioning system based on LoRaWAN, including:
[0040] Network building module, used to build LoRaWAN network architecture including terminals, gateways, network servers and application servers;
[0041] A data extraction module is used to extract the received signal strength of each gateway, and extract the received signal strength and timestamp of the filtered gateway;
[0042] A gateway screening module, used to screen gateways based on the received signal strength of each gateway;
[0043] The initial positioning module is used to perform initial positioning of the test point based on the signal strength received by the selected gateway using the weighted centroid algorithm of RSSI;
[0044] The final positioning module is used to solve the TDOA positioning of the point to be measured based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured as the final positioning of the point to be measured.
[0045] The beneficial technical effects of the present invention include at least: adopting a LoRaWAN-based fusion positioning method and system, firstly taking the LoRaWAN protocol as the backbone, building a network server by itself, collecting data from terminal nodes and gateways, realizing TDOA positioning without the need for special hardware or active signal transmission, being able to obtain a relatively accurate timestamp during data transmission, building an application platform with device management, data storage, and data encryption, extracting data through the API port provided by the application server, requiring token authentication when calling the API, and requiring the authentication key to be provided by the server, and double data encryption ensuring the security of data transmission;
[0046] Secondly, routing processing is performed through the received signal strength value of each gateway, and gateways with closer location distance and higher signal strength are selected to receive data and locate the subsequent test points, further improving the reliability of the overall operation of the fusion positioning method based on LoRaWAN proposed in this application;
[0047] Then, by calculating multiple positioning circles and their intersections to determine all possible positions of the test point, the errors caused by multipath effect and signal shielding can be overcome to a certain extent, and the anti-interference ability of RSSI positioning can be improved. At the same time, the signal strength information of multiple geometric centroid positions is comprehensively considered to determine the weights, and the weighted centroid method is introduced to optimize RSSI positioning, which can effectively reduce the influence of individual abnormal points on the positioning results, thereby more accurately calculating the location of the test point and effectively improving the accuracy and reliability of the positioning results.
[0048] Finally, by using the weighted centroid algorithm of RSSI in the aforementioned steps to obtain the initial positioning of the point to be measured, a relatively accurate initial position value can be given to the TDOA algorithm, and then based on the initial positioning of the point to be measured obtained by using the weighted centroid algorithm of RSSI, the Taylor series expansion algorithm is used to solve the TDOA positioning of the point to be measured, which can speed up the convergence speed of the Taylor series expansion algorithm and reduce the number of iterations, thereby improving the overall positioning efficiency. At the same time, optimizing the positioning results through the iterative algorithm can compensate for the position errors caused by environmental changes, signal interference and other factors to a certain extent, and further improve the positioning accuracy. In summary, the present application effectively integrates the TDOA positioning technology and the RSSI positioning technology, while overcoming the high requirements of the RSSI positioning technology on environmental conditions, overcoming the high requirements of the TDOA positioning technology on time synchronization, and the high requirements of the Taylor series expansion algorithm on the initial target position, while maximizing the positioning accuracy.
[0049] Other features and advantages of the present invention will be disclosed in detail in the following specific embodiments and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The present invention will be further described below in conjunction with the accompanying drawings:
[0051] Figure 1 The present invention is a flowchart of a fusion positioning method based on LoRaWAN according to an embodiment of the present invention.
[0052] Figure 2 Schematic diagram of the LoRaWAN network architecture according to an embodiment of the present invention.
[0053] Figure 3 This is a schematic diagram of the Swagger interface of the application server according to an embodiment of the present invention.
[0054] Figure 4This is a simulation result diagram of the fusion positioning method based on LoRaWAN in an embodiment of the present invention.
[0055] Figure 5 The figure is a schematic diagram of the structure of a fusion positioning system based on LoRaWAN according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] The technical solutions of the embodiments of the present invention are explained and described below in conjunction with the drawings of the embodiments of the present invention, but the following embodiments are only preferred embodiments of the present invention, not all. Based on the embodiments in the implementation mode, other embodiments obtained by those skilled in the art without creative work are all within the protection scope of the present invention.
[0057] In the following description, terms such as "inside", "outside", "up", "down", "left", "right", etc. that indicate directions or positional relationships are only used to facilitate the description of the embodiments and simplify the description, and do not indicate or imply that the referred device or element must have a specific direction, be constructed and operate in a specific direction. Therefore, it should not be understood as a limitation of the present invention.
[0058] The present application embodiment provides a fusion positioning method based on LoRaWAN, please refer to the attached Figure 1 , including the following steps:
[0059] Step 102, constructing a LoRaWAN network architecture including a terminal, a gateway, a network server, and an application server.
[0060] Specifically, in this embodiment, the LoRaWAN network architecture is based on the LoRaWAN protocol (i.e., a set of communication protocols designed for the LoRa long-distance communication network) and takes the terminal-gateway-server as the process. Each terminal in the LoRaWAN network architecture can be connected to multiple gateways. The same data sent by the terminal is received by multiple different gateways, and the gateway can also receive data from multiple terminals. The LoRaWAN network architecture in this embodiment is shown in the attached figure. Figure 2 As shown in the figure, a star network topology is adopted between the gateway and the terminal. Due to the long-distance characteristics of LoRa, single-hop transmission can be used between them. The gateway acts as a relay device to connect the data of the terminal and the server. Each gateway is connected to the network server. The network server manages the overall terminal data and gateway data, and can connect to multiple application servers to transmit data to the application server. The application server is used to classify and extract the data transmitted by the network server according to different terminal functions, and provide a human-computer optimization interface on the application server.
[0061] Among them, the network access of each terminal in the LoRaWAN network architecture constructed in this embodiment needs to confirm the regional frequency band and channel of the stage first, and the selected frequency band needs to be added in the configuration area license of the upper server before it can be selected. The terminal has two network access methods and three working modes. The network access methods include OTTA and ABP. Among them, the OTTA network access method is more secure and requires a data exchange with the server, including network access request and network access reply. The request requires DevEUI, AppEUI, and AppKey to contain the device ID and application ID. When the network access reply is made, a value will be generated to calculate the corresponding NwkSKey and AppSKey; while the ABP network access method does not have the process of network access request and network access reply, and DevAddr, NwkSKey, and AppSKey are directly stored in the terminal device. In this embodiment, one of the network access methods can be selected on the server to realize the network access of the terminal, and this embodiment does not limit this. The working modes of the terminal include class A, class B and class C. The three working modes are mainly related to the time when the downlink data is turned on. Class A will turn on the downlink data only for a short period of time after the uplink data is sent. When we have downlink data to send, we need to send an uplink data first; class B sets a period of time when the downlink data is turned on, and it can be sent during this time; class C turns on the downlink data segment all the time. This embodiment can select the corresponding working mode according to the type of terminal and power consumption requirements, and this embodiment does not limit this.
[0062] It can be understood that the gateway in the LoRaWAN network architecture constructed in this embodiment is used as a relay device to communicate the uplink and downlink data between the terminal and the server; the network server is used to manage the uplink and downlink data and transmit the data to the application server. The construction of the server requires determining the transmission frequency band selected by the gateway and the terminal, which can be selected according to different regions and can be modified through the server configuration. The gateway also needs to configure the server's IP address to ensure the smooth connection of the gateway.
[0063] Among them, when adding an application, you can add a terminal device to the application platform. You need to enter the information required by the terminal device. For example, when ABP is connected to the network, you need to enter basic device information such as DevAddr, NwkSKey, AppSKey, etc. After adding and connecting to the network, you can receive information sent by the terminal in the application interface. In the Queue window, you can send downlink data. You need to first determine the working mode selected by the terminal and transmit downlink data at the specified time. On the Events end of the application server, click on the tab to see the corresponding message data. The message data includes at least the selected frequency band, the device information of the terminal, the device address, the specific timestamp, the received signal strength, etc. Therefore, this embodiment realizes that there is no need for special hardware or active signal transmission in TDOA positioning through a self-built network server. A more accurate timestamp can be obtained during data transmission. The specific value of the timestamp can be accurate to 7-8 seconds later, which provides a good data basis for subsequent fusion positioning calculations. At the same time, the self-built network server facilitates centralized data management and can be built in a private server under Windows and Linux environments.
[0064] Step 104: extract the received signal strength of each gateway.
[0065] Optionally, when extracting data, data on the application server can be directly extracted according to the MQTT transmission protocol.
[0066] Preferably, in this embodiment, the application server is provided with swagger, which includes an API interface, and its corresponding IP and port number can be configured by itself. Before extracting data, the following steps are also included:
[0067] The application server receives the user's authentication (such as username and password), and after successful authentication, uses the key to generate a token. This key is shared by the server and the client and is used to sign the token to ensure that once the token is tampered with, the client can recognize that the token is invalid. The token is used to carry in the request when the user requests the swagger API interface;
[0068] After receiving the user's request, the swagger API interface verifies the token carried in the request. The verification usually includes checking whether the token is expired, whether it has been tampered with, whether the issuer is trustworthy, etc. When the token verification passes, the application server allows the user to access the requested data.
[0069] Understandably, a new token needs to be generated every time data is extracted, ensuring that each request is up to date and no old token can be reused, which makes it more difficult for an attacker to attack the system, because even if an attacker obtains an old token, they will not be able to use it without being noticed.
[0070] This embodiment preferably extracts data according to the swagger interface designed by the application server, which is more efficient when testing server data and simple data extraction. The swagger interface of the application server in this embodiment is shown in the attached figure. Figure 3 As shown in the figure, by implementing token authentication in the swagger interface, API resources can be effectively protected, unauthorized access can be prevented, and data security can be ensured. Generating a new token each time data is extracted further enhances the security of the LoRaWAN network architecture.
[0071] It can be understood that this embodiment uses the LoRaWAN protocol as the backbone, builds its own network server, collects data from terminal nodes and gateways, builds an application platform with device management, data storage, and data encryption, and extracts data through the API port of the application server. When calling the API, token authentication is required, and the authentication key needs to be provided by the server. Double data encryption ensures the security of data transmission.
[0072] Step 106, screening the gateways based on the received signal strength of each gateway;
[0073] Furthermore, in this embodiment, in step 106, the gateways are screened based on the received signal strength of each gateway, including:
[0074] Step 202: Calculate the fluctuation value of each gateway location based on the received signal strength of each gateway.
[0075] Due to the characteristics of the LoRaWAN network architecture, the gateway can receive data from multiple terminals, and the gateway's received signal strength will change according to the distance of the RF signal propagation and the corresponding environment. The longer the distance, the greater the loss and the smaller the received signal strength value. Therefore, this embodiment first performs routing processing based on the received signal strength value of each gateway, and selects gateways with a closer location and higher signal strength to receive data and locate the subsequent test points. Specifically, based on the received signal strength of each gateway, the fluctuation value of each gateway position is calculated, including:
[0076] Calculate the average of the received signal strength of each gateway;
[0077] The absolute difference between the received signal strength of each gateway and the mean is calculated, and the obtained absolute difference is used as the fluctuation value of the location of each gateway.
[0078] Step 204, remove the gateway position with the largest fluctuation value to obtain the filtered gateway.
[0079] For example, in actual applications, the received signal strength of 5 gateways can be measured and the average value can be taken. The absolute difference between the average and the received signal strength of each gateway is calculated. The location with the largest absolute value is the estimated location with the largest fluctuation. The gateway corresponding to this estimated location can be filtered out to complete the routing operation.
[0080] In addition, due to the principle of the received signal strength of the gateway, when multiple gateways are on the same line, the positioning accuracy will be greatly affected, so this embodiment also needs to give priority to gateways in different directions during routing.
[0081] This embodiment performs routing processing through the received signal strength value of each gateway, and selects gateways with closer locations and higher signal strengths to receive data and locate subsequent test points, further improving the overall operation reliability of the LoRaWAN-based fusion positioning method proposed in this embodiment.
[0082] Step 108, extracting the signal strength and timestamp received by the filtered gateway;
[0083] Step 110: Based on the signal strength received by the selected gateways, the weighted centroid algorithm of RSSI is used to initially locate the point to be measured.
[0084] Furthermore, in this embodiment, in step 110, based on the signal strength received by the selected gateway, the weighted centroid algorithm of RSSI is used to perform initial positioning of the point to be measured, including:
[0085] Step 302: Based on the signal strengths received by the screened gateways, all possible locations of the points to be measured are calculated.
[0086] Specifically, based on the signal strength received by the filtered gateway, all possible locations of the test point are calculated as follows:
[0087] (1) According to the formula, the relative distance between each selected gateway and the test point is inferred. The expression of the formula is:
[0088]
[0089] Where d represents the relative distance between the point to be tested and the current gateway, P l (d) represents the signal strength received by the current gateway, d0 represents the reference distance, P l (d0) represents the reference signal strength, X0 represents a Gaussian distribution random variable with a mean of zero;
[0090] (2) Taking the coordinates of each selected gateway as the center of the circle and the relative distance between each selected gateway and the measured point inferred from the reverse calculation as the radius, several positioning circles are obtained;
[0091] (3) The intersection of any three positioning circles is taken as the possible position of the point to be measured, and all possible positions of the point to be measured are obtained.
[0092] Step 304: Based on all possible positions of the point to be measured, determine the geometric centroid corresponding to each possible position.
[0093] The geometric centroid is a geometric concept, which is the average position of all mass points in a plane or space figure. In two-dimensional geometry, the centroid of a figure is the mass center of all points in the figure. This point can be inside the figure or on the boundary of the figure, which will not be described in detail in this embodiment.
[0094] Step 306: Determine the weight of each geometric centroid based on the signal strength received by the screened gateways.
[0095] Specifically, the weight of the geometric centroid corresponding to each possible position may depend on the following factors:
[0096] 1. Signal strength: Generally, the greater the signal strength, the greater the corresponding weight;
[0097] 2. Propagation loss: The longer the signal propagates, the greater the propagation loss and the smaller the weight may be;
[0098] 3. Environmental factors: Obstacles, walls, etc. may cause signal attenuation, which will also affect the weight.
[0099] Optionally, the specific method for determining the weight value of the geometric center of mass corresponding to each possible position in this embodiment may be to use a complex function that takes into account the above-mentioned factors and other factors that may affect signal propagation, or to use predetermined rules or a machine learning algorithm to determine these weights, which is not limited in this embodiment.
[0100] Step 308, based on the weight of the geometric centroid, calculate the weighted average position of all possible positions as the initial positioning of the point to be measured, and the initial positioning of the point to be measured reflects the weighted combination of all possible positions.
[0101] Especially in complex indoor environments, signal propagation may be interfered by various obstacles. For this reason, this embodiment determines all possible positions of the test point by calculating multiple positioning circles and their intersections, which can overcome the errors caused by multipath effects and signal shielding to a certain extent, and improve the anti-interference ability of RSSI positioning. At the same time, the signal strength information of multiple geometric centroid positions is comprehensively considered to determine the weights, and the weighted centroid method is introduced to optimize RSSI positioning, which can effectively reduce the influence of individual abnormal points on the positioning results, thereby more accurately calculating the location of the test point, and effectively improving the accuracy and reliability of the positioning results.
[0102] Step 112, based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured, the TDOA positioning of the point to be measured is solved as the final positioning of the point to be measured.
[0103] Further, in this embodiment, in step 112, based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured, the TDOA positioning of the point to be measured is solved as the final positioning of the point to be measured, including:
[0104] Step 402: Calculate the distance difference between the point to be measured and each of the selected gateways based on the timestamps received by the selected gateways.
[0105] Specifically, in this embodiment, based on the timestamp received by the filtered gateway, the distance difference between the measured point and each filtered gateway is calculated as follows:
[0106] Based on the timestamps received by the selected gateways, determining the propagation delay difference of the signal sent from the test point to each selected gateway;
[0107] It is understandable that a timestamp is used to mark data at a specific point in time, and can be used to record the time when an event occurs or the time when a data packet is sent and received. This embodiment uses a self-built network server to achieve TDOA positioning without the need for special hardware or active signal transmission, and can obtain a more accurate timestamp during data transmission. The specific value of the timestamp can be accurate to 7-8 digits after a second, which can significantly reduce the error of TDOA positioning. The propagation delay difference refers to the time difference between different data packets caused by factors such as the physical distance of the network, routing selection, and network congestion when data is propagated in the network.
[0108] The difference in propagation delay of the signal sent from the test point to each selected gateway is multiplied by the propagation speed of the signal (generally the speed of light) to obtain the distance difference from the test point to each selected gateway.
[0109] Step 404: Based on the distance difference between the test point and each selected gateway and the initial positioning of the test point, a Taylor series expansion algorithm is used to solve the TDOA positioning of the test point as the final positioning of the test point.
[0110] Specifically, in this embodiment, based on the distance difference between the test point and each selected gateway and the initial positioning of the test point, the Taylor series expansion algorithm is used to solve the TDOA positioning of the test point, and the final positioning of the test point is realized as follows:
[0111] (1) Perform Taylor series expansion on the distance difference between the test point and each selected gateway at the initial location of the test point, and ignore the second-order and higher-order components, because higher-order terms usually converge quickly during iterations, to obtain the initial estimate of the tag position. The formula for Taylor series expansion is as follows:
[0112]
[0113]
[0114] Where i represents the number of each selected gateway, n represents the total number of each selected gateway, and r i Indicates the distance difference between the test point and each selected gateway, (x i ,y i ) represents the horizontal and vertical coordinates of each selected gateway, (x, y) represents the initial positioning of the point to be measured, r i , 1 represents the distance difference between each filtered gateway and the first gateway, h i , δ, G i As indicated above, Q represents the covariance matrix of the TDOA measurements.
[0115] (2) Based on the initial estimated value of the tag position, the theoretical arrival time difference from the test point to each selected gateway is calculated, and the propagation delay difference of the signal sent from the test point to each selected gateway is taken as the actual arrival time difference. The expression of the position estimation error ε is:
[0116]
[0117] Among them, t 理论,i It represents the theoretical arrival time difference from the test point to each selected gateway, t 实际,i Indicates the actual arrival time difference from the test point to each filtered gateway.
[0118] (3) Use weighted least squares (WLS) estimation to obtain the local least squares solution of the position estimation error.
[0119] (4) Use the results of WLS estimation to update the estimated value of the tag position.
[0120] (5) Repeat the above steps (1) to (4) until the change in the estimated value of the tag position is less than the set threshold or the preset number of iterations is reached.
[0121] Among them, the Taylor series expansion algorithm has high requirements for the initial target position. When the initial conditions are uncertain, the convergence of the Taylor series expansion algorithm is difficult to guarantee, which will affect the positioning accuracy. Therefore, the Taylor series expansion algorithm is only applicable to fixed gateways or specific places. In this embodiment, by using the weighted centroid algorithm of RSSI in the aforementioned steps to obtain the initial positioning of the point to be measured, a more accurate initial position value can be given to the TDOA algorithm. Based on the initial positioning of the point to be measured obtained by the weighted centroid algorithm of RSSI, the Taylor series expansion algorithm is used to solve the TDOA positioning of the point to be measured, which can speed up the convergence speed of the Taylor series expansion algorithm, reduce the number of iterations, and thus improve the overall positioning efficiency. At the same time, optimizing the positioning results through the iterative algorithm can compensate for the position error caused by factors such as environmental changes and signal interference to a certain extent, and further improve the positioning accuracy.
[0122] In summary, this embodiment effectively integrates TDOA positioning technology and RSSI positioning technology, while overcoming the high requirements of RSSI positioning technology on environmental conditions, overcoming the high requirements of TDOA positioning technology on time synchronization, and the high requirements of Taylor series expansion algorithm on the initial target position, while maximizing the positioning accuracy.
[0123] Next, by adding white noise to simulate the positioning deviation caused by the environment, the fusion positioning method based on LoRaWAN provided in this embodiment is used to locate 10 test points. The simulation result diagram of the fusion positioning method based on LoRaWAN is shown in the attached figure. Figure 4 From the attached Figure 4 It can be seen that relatively accurate positioning can be performed at the 10 randomly generated test points, which verifies the positioning accuracy of the LoRaWAN-based fusion positioning method provided in this embodiment.
[0124] On the other hand, the present application embodiment also provides a fusion positioning system based on LoRaWAN, please refer to the attached Figure 5 ,include:
[0125] Network construction module 1, used to build a LoRaWAN network architecture including terminals, gateways, network servers and application servers;
[0126] Data extraction module 2, used to extract the received signal strength of each gateway, and extract the signal strength and timestamp received by the filtered gateway;
[0127] The gateway screening module 3 is used to screen the gateways based on the received signal strength of each gateway;
[0128] The initial positioning module 4 is used to perform initial positioning of the test point using the weighted centroid algorithm of RSSI based on the signal strength received by the screened gateway;
[0129] The final positioning module 5 is used to solve the TDOA positioning of the point to be measured based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured as the final positioning of the point to be measured.
[0130] It can be understood that the technical concept of a LoRaWAN-based fusion positioning system provided in this embodiment is similar to the technical concept of the aforementioned LoRaWAN-based fusion positioning method, which will not be repeated in this embodiment.
[0131] The above descriptions are only preferred embodiments disclosed in this application and descriptions of the technical principles used. Those skilled in the art should understand that the scope of protection involved in this disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this disclosure (but not limited to) by each other.
[0132] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
Claims
1. A fusion positioning method based on LoRaWAN, characterized in that: The following steps are involved: Step 102, constructing a LoRaWAN network architecture including a terminal, a gateway, a network server, and an application server; Step 104, extracting the received signal strength of each gateway; Step 106, screening the gateways based on the received signal strength of each gateway; Step 108, extracting the signal strength and timestamp received by the filtered gateway; Step 110, based on the signal strength received by the selected gateway, the weighted centroid algorithm of RSSI is used to perform initial positioning of the point to be measured; Step 112, based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured, the TDOA positioning of the point to be measured is solved as the final positioning of the point to be measured.
2. A LoRaWAN-based fusion positioning method as claimed in claim 1, characterized in that: The network server in the LoRaWAN network architecture is connected to several application servers. The network server is used to manage the overall terminal data and gateway data and transmit the data to the application server. The application server is used to classify and extract the data transmitted by the network server according to different terminal functions.
3. A LoRaWAN-based fusion positioning method as claimed in claim 1, characterized in that: In step 106, based on the received signal strength of each gateway, the gateways are screened, including: Based on the received signal strength of each gateway, the fluctuation value of each gateway position is calculated; Remove the gateway position with the largest fluctuation value to obtain the filtered gateway.
4. A LoRaWAN-based fusion positioning method as claimed in claim 3, characterized in that: Based on the received signal strength of each gateway, the fluctuation value of each gateway position is calculated, including: Calculate the average of the received signal strength of each gateway; The absolute difference between the received signal strength of each gateway and the mean value is calculated respectively, and the obtained absolute difference value is used as the fluctuation value of the position of each gateway.
5. The LoRaWAN-based fusion positioning method according to claim 1, characterized in that: In step 110, based on the signal strength received by the selected gateway, the weighted centroid algorithm of RSSI is used to perform initial positioning of the point to be measured, including: Based on the signal strength received by the selected gateways, all possible locations of the points to be tested are calculated; Based on all possible positions of the point to be measured, determine the geometric centroid corresponding to each possible position; Determine the weight of each geometric centroid based on the signal strength received by the selected gateways; Based on the weight of the geometric centroid, the weighted average position of all possible positions is calculated as the initial positioning of the point to be measured.
6. A LoRaWAN-based fusion positioning method as claimed in claim 5, characterized in that: Based on the signal strength received by the filtered gateway, all possible locations of the test point are calculated, including: According to the formula, the relative distance between each selected gateway and the point to be tested is inferred, and the expression of the formula is: Where d represents the relative distance between the point to be tested and the current gateway, P l (d) represents the signal strength received by the current gateway, d0 represents the reference distance, P l (d0) represents the reference signal strength, X0 represents a Gaussian distribution random variable with a mean of zero; Taking the coordinates of each selected gateway as the center of the circle and the inversely derived relative distance between each selected gateway and the point to be measured as the radius, several positioning circles are obtained; The intersection of any three positioning circles is taken as the possible position of the point to be measured, and all possible positions of the point to be measured are obtained.
7. The LoRaWAN-based fusion positioning method according to claim 1, characterized in that: In step 112, based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured, the TDOA positioning of the point to be measured is solved as the final positioning of the point to be measured, including: Based on the timestamps received by the filtered gateways, the distance difference between the test point and each filtered gateway is calculated; Based on the distance difference between the test point and each screened gateway and the initial positioning of the test point, the Taylor series expansion algorithm is used to solve the TDOA positioning of the test point as the final positioning of the test point.
8. A LoRaWAN-based fusion positioning method as claimed in claim 7, characterized in that: Based on the timestamps received by the filtered gateways, the distance difference between the test point and each filtered gateway is calculated, including: Based on the timestamps received by the selected gateways, determining the propagation delay difference of the signal sent from the test point to each selected gateway; The difference in propagation delays of the signal sent from the test point to each selected gateway is multiplied by the propagation speed of the signal to obtain the distance difference from the test point to each selected gateway.
9. The LoRaWAN-based fusion positioning method according to claim 2, characterized in that: The application server is provided with a swagger, which includes an API interface, and before step 104 "extracting the received signal strength of each gateway" and step 108 "extracting the signal strength and timestamp received by the filtered gateway", the following steps are also included: The application server receives the user's identity authentication and, after successful authentication, uses the key to generate a token, which is carried in the request when the user requests the Swagger API interface; After receiving the user's request, the Swagger API interface verifies the token carried in the request. When the token verification is successful, the application server allows the user to access the requested data.
10. A fusion positioning system based on LoRaWAN, characterized in that: include: Network building module, used to build LoRaWAN network architecture including terminals, gateways, network servers and application servers; A data extraction module is used to extract the received signal strength of each gateway, and extract the received signal strength and timestamp of the filtered gateway; A gateway screening module, used to screen gateways based on the received signal strength of each gateway; The initial positioning module is used to perform initial positioning of the test point based on the signal strength received by the selected gateway using the weighted centroid algorithm of RSSI; The final positioning module is used to solve the TDOA positioning of the point to be measured based on the timestamp received by the filtered gateway and the initial positioning of the point to be measured as the final positioning of the point to be measured.
Citation Information
Cited By
Target positioning and exercise amount determining method and system
CN122027991A
