A positioning method based on azimuth measurement, a terminal and a computer storage medium

By constructing a linear equation and iterative algorithm based on azimuth measurement, the problem of detecting unlocatable nodes in wireless sensor networks is solved, improving node locationability and enhancing the robustness and accuracy of the localization algorithm.

CN117665699BActive Publication Date: 2026-11-27SOUTHERN UNIVERSITY OF SCIENCE AND TECHNOLOGY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311517507.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-13
Publication Date
2026-11-27
Estimated Expiration
2043-11-13

AI Technical Summary

Technical Problem

In wireless sensor networks, existing distributed localization algorithms struggle to effectively detect and improve unlocatable nodes, leading to incorrect localization results and impacting the overall localization accuracy of the network.

Method used

By constructing a linear equation based on azimuth measurement, and using the interior angles of triangles and node coordinates, the locatability of nodes is determined and iteratively calculated, thereby improving the locatability of unlocatable nodes. A linear constraint equation is constructed and the node coordinates are iteratively solved using the gradient descent algorithm.

Benefits of technology

It improves the robustness and reliability of the distributed positioning algorithm, simplifies the computational complexity, enables unlocatable nodes to be relocated, and improves positioning accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117665699B_ABST
    Figure CN117665699B_ABST
Patent Text Reader

Abstract

The application discloses a positioning method based on azimuth measurement, a terminal and a computer storage medium, and the method comprises the following steps: controlling each node of a sensor network and two neighbor nodes to form a triangle, and acquiring an internal angle of the triangle formed by the two neighbor nodes; a linear equation comprising the coordinates of each node and the internal angle of the triangle is constructed; the positionability of each node is judged according to the linear equation; if there is an unpositionable node in the node, the positionability of the unpositionable node is improved, so that the unpositionable node is changed into a positionable node; and the coordinates of a measurement node are iteratively acquired according to the linear equation, so as to position each node. The application effectively solves the problem that the positioning result is affected by errors due to the existence of unpositionable nodes in a distributed positioning algorithm, proposes an algorithm for improving the positionability of nodes, greatly improves the robustness and reliability of the distributed positioning algorithm, and enables the algorithm to be better applied to the positioning of a wireless sensor network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of wireless sensor technology, and more particularly to a positioning method, terminal, and computer storage medium based on azimuth measurement. Background Technology

[0002] With the rapid development of wireless sensor network (WSN) technology, WSN has become an advanced technology widely used in various fields, such as smart warehousing, the Internet of Things (IoT), military applications, and smart cities. Ensuring the location of the entire network and each node is crucial in WSN. Common localization algorithms include centralized and distributed algorithms. In centralized algorithms, nodes exchange data with a central server, which calculates the location of each node and returns the results. This method can accurately and quickly obtain the location of each node, but because the central node needs to undertake a large amount of computation and communication tasks, it is usually difficult to implement in complex sensor networks.

[0003] To address this, existing technologies employ distributed positioning algorithms, which iteratively solve for local coordinates using the individual information of each node and local information obtained through communication with neighboring nodes. Compared to centralized positioning algorithms, distributed positioning algorithms distribute the positioning computation task across all nodes, maximizing the utilization of each node's computational capabilities and reducing positioning latency in complex node networks. With the development of multi-agent technology, the scope of distributed positioning is becoming increasingly broad, including applications such as the positioning of drones and unmanned vehicles, and the tracking of people. Based on the type of positioning measurement, distributed positioning algorithms can also be categorized into distance-based, azimuth-based, relative position-based, and interior angle-based positioning algorithms.

[0004] Among them, distance-based distributed positioning algorithms construct a system of linear equations by measuring the distance between a node and its neighboring nodes; azimuth-based distributed positioning algorithms construct a system of linear equations by measuring the azimuth angle between a node and its neighboring nodes; relative position-based positioning algorithms combine the above two methods; and interior angle-based algorithms construct linear equations by measuring the interior angles of the triangle formed between the nodes.

[0005] For wireless sensor network technology, both network localization and node localization are crucial research topics. Network localization refers to whether all nodes in a wireless node network have unique coordinates; node localization refers to whether an individual node has unique coordinates within the network. Network localization is usually related to the rigidity of the graph, and based on rigidity theory, a polynomial algorithm is commonly used to test network localization. However, with the increase in the number of nodes and the influence of the external environment, network topology is usually dynamic, making almost all networks unlocalizable. But this doesn't mean all nodes are unlocalizable; a significant number of nodes can still have unique coordinates. Network localization is a special case of node localization, and therefore, node localization is more valuable than network localization. Determining node localization is a necessary step in the node localization process. Unlocalizable nodes will converge to incorrect locations during the localization process, thus jeopardizing the localization results for all nodes in the entire network. Summary of the Invention

[0006] The purpose of this invention is to provide a positioning method, terminal, and computer storage medium based on azimuth measurement, which aims to determine the locatability of nodes and improve the locatability of unlocatable nodes, thereby preventing unlocatable nodes from converging to errors and jeopardizing the positioning results of nodes in the entire network.

[0007] The technical solution adopted by this invention to solve the technical problem is as follows:

[0008] This invention provides a positioning method based on azimuth measurement, comprising:

[0009] Each node in the control sensor network forms a triangle with two neighboring nodes, and the interior angles of the triangle formed with the two neighboring nodes are obtained. A linear equation including the coordinates of each node and the interior angles of the triangle is constructed.

[0010] Determine the locatability of each node based on the linear equation;

[0011] If there are unlocatable nodes among the nodes, then the unlocatable nodes are improved in terms of locatability, so that the unlocatable nodes are transformed into locatable nodes.

[0012] The coordinates of each node are obtained iteratively based on the linear equation to locate each node.

[0013] Furthermore, the determination of the locatability of each node based on the linear equation specifically includes:

[0014] Construct matrix D based on the linear equation. ff Matrix D ff Each non-zero submatrix is ​​a weight matrix of a pair of adjacent free nodes;

[0015] Calculate matrix D ff eigenvalues ​​λ s and corresponding feature vectors;

[0016] If matrix D ff eigenvalues ​​λ s If there exists an eigenvalue of 0 in the corresponding eigenvector and the 2i-1th component of the corresponding eigenvector is not 0, then the i-th node in the linear equation cannot be located; otherwise, the i-th node in the linear equation can be located.

[0017] Furthermore, the computation matrix D ff eigenvalues ​​λ s and the corresponding feature vectors, specifically including:

[0018] Each node in the triangle is assigned two virtual nodes, and the weight matrix corresponding to adjacent virtual nodes is: matrix Each non-zero submatrix is ​​a weight matrix of a pair of adjacent free nodes. It is a non-singular matrix that satisfies:

[0019]

[0020] in, This indicates a size of 2n f ×2n f The identity matrix, n f represents the number of free nodes in the network, 2i* represents the 2i-th row of the matrix, and γ is a normal constant known to each node;

[0021] Assign a state matrix to each virtual node

[0022] State matrix of virtual nodes Perform iterations:

[0023]

[0024] Where k represents the k-th iteration, Represents the state matrix of the k-th iteration. Represents virtual node (i) -j In the set of virtual nodes edge set representing the communication relationship between virtual nodes Communication topology diagram Neighbor set in It is a symmetric matrix, representing The orthogonal projection of the kernel in the (2i-2+j)th row of the middle;

[0025] Based on the state matrix of the virtual nodes Stable values ​​obtained through iteration Calculate D ff Eigenvalues ​​and eigenvectors:

[0026]

[0027]

[0028] Where, λ s The () function represents finding the eigenvalues ​​of a matrix. s (),w s The () function represents finding the left and right eigenvectors of a matrix.

[0029] Furthermore, the linear equation is specifically:

[0030]

[0031] Where α is the vector formed by the three interior angles of the triangle, and p i p j and p m Let i, j, and k represent the global coordinates of the three nodes of the triangle, respectively. and The coefficients are derived from the geometric linear derivation of the interior angles of a triangle;

[0032] and Specifically:

[0033]

[0034]

[0035]

[0036] Where, α mij Let α represent the interior angle with vertex i. ijm Let α represent the interior angle with vertex j. jmi Let represent the interior angle with vertex m as the vertex, 42 represent the 2×2 identity matrix, and R represent the rotation matrix.

[0037] Furthermore, the matrix D representing the communication relationships of free nodes within the triangle is obtained based on the linear equation. ff Specifically, it includes:

[0038] To express the linear equation in a compact form:

[0039]

[0040] in, That is, the compact form of the coefficient matrix of the linear equation, where p represents the coordinates of each node. The coefficient matrix represents the free node portion. The linear equation representing the coefficient matrix of the anchor node portion;

[0041] Based on the compact form, obtain the matrix D representing the communication relationships of free nodes within the triangle. ff :

[0042]

[0043] Furthermore, the step of iteratively obtaining the coordinates of each node based on the linear equation specifically involves updating the coordinates of each free node using a gradient descent localization algorithm:

[0044]

[0045] Where k represents the number of iterations. Represents the coordinates of the free node. This represents the coordinates of the free node at the k-th iteration. Let p represent the coordinates of the free node in the (k+1)th iteration, h represent the sampling period greater than 0, and p represent the coordinates of the free node. a Represents the coordinates of the anchor node.

[0046] Furthermore, the sampling period h satisfies:

[0047]

[0048] Where min() represents the minimum value function, This represents the reciprocal of the i-th eigenvalue. The reciprocal of the largest eigenvalue.

[0049] Furthermore, the improvement of the locatability of unlocatable nodes, transforming them into locatable nodes, specifically includes:

[0050] Repeatedly select nodes from the set of unlocatable nodes. If the neighboring nodes of the selected node do not have locatable nodes, select another node for judgment. If the neighboring nodes of the selected node have locatable nodes, improve the locatability of the selected node to make the node locatable, until there are no more locatable nodes.

[0051] The improvement in locatability specifically includes:

[0052] Find the locatable node m of the shortest path from the selected node i (excluding locatable node j), and the set of all nodes on the path from node i to locatable node m. Get Collection The union of node i, locatable node j, and locatable node m

[0053] Get the node set The set of interior angles of the triangle formed by the middle nodes Obtain the set of interior angles of the triangle for additional measurement. The set Satisfy the node network Satisfying the rigidity condition of the triangle, thus making the union... Unlocatable nodes are transformed into locatable nodes;

[0054] The specific rigidity condition of the triangle includes:

[0055] Includes rigid subnetwork node network satisfy:

[0056]

[0057] For all subnetwork

[0058] in, This indicates the number of triangles after the new measurement. express subnetwork The number of triangles, express subnetwork The number of nodes.

[0059] In addition, to achieve the above objectives, the present invention also provides a terminal, the terminal comprising: a memory, a processor, and a positioning program based on azimuth measurement stored in the memory and executable on the processor, wherein when the positioning program based on azimuth measurement is executed by the processor, the terminal controls the terminal to implement the steps of the positioning method based on azimuth measurement as described above.

[0060] In addition, to achieve the above objectives, the present invention also provides a computer storage medium storing a positioning program based on azimuth measurement, wherein when the positioning program based on azimuth measurement is executed by a processor, it implements the steps of the positioning method based on azimuth measurement as described above.

[0061] The present invention, by employing the above technical solution, has the following effects:

[0062] This invention utilizes an algebraic method for determining node locatability and an iterative algorithm for calculating locatability. Under measurable angle conditions, it employs a distributed computation method to detect whether each node can be located within the network, effectively solving the problem of detecting unlocatable nodes in distributed positioning algorithms. Furthermore, it proposes a distributed positioning algorithm based on azimuth measurement, using the interior angles of triangles and node coordinates to construct linear constraint equations. This allows for a linear iterative solution to the nonlinear positioning problem, significantly simplifying computational complexity. For cases involving unlocatable nodes, this invention proposes an improved node locatability algorithm. Previously, unlocatable nodes that would affect positioning accuracy and could only be excluded can now be relocated, greatly enhancing the robustness and reliability of the distributed positioning algorithm and enabling its better application in positioning within wireless sensor networks. Attached Figure Description

[0063] Figure 1 This is a flowchart of the positioning method based on azimuth angle measurement in a preferred embodiment of the present invention;

[0064] Figure 2 This is a flowchart illustrating the positioning method based on azimuth measurement in a preferred embodiment of the present invention.

[0065] Figure 3 This is a flowchart illustrating the process of improving node localization in a preferred embodiment of the present invention;

[0066] Figure 4 This is a schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. Detailed Implementation

[0067] To make the objectives, technical solutions, and advantages of this invention clearer and more explicit, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0068] Example 1

[0069] Please see Figure 1 Embodiment 1 of this application is a positioning method based on azimuth measurement, which includes the following steps:

[0070] S1. Control each node of the sensor network to form a triangle with two neighboring nodes, obtain the interior angles of the triangle formed with the two neighboring nodes, and construct a linear equation including the coordinates of each node and the interior angles of the triangle.

[0071] Specifically, a node's neighbor node refers to another node within its communication range that interacts with that node. If two nodes can communicate with each other, they are neighbors.

[0072] Any three non-collinear neighboring nodes can form a triangle. Taking the triangle formed by nodes i, j, and m as an example, each node measures the azimuth angle formed with two neighboring nodes and calculates the interior angle of the triangle with itself as the vertex. For example, node i measures the azimuth angle θ with node j using its own deployed sensor. j and the azimuth angle θ formed with node m m Then, based on the azimuth angle, the interior angle α of a vertex at node i is calculated. mij .

[0073] Then node i communicates with nodes j and m to obtain the interior angle α with node j as the vertex, calculated by nodes j and m. ijm And the interior angle α with vertex m as the vertex. jmi After obtaining the coordinates, a linear equation f can be constructed based on the three interior angles α and the coordinates p of the three nodes. i Δijm (α,p):

[0074]

[0075] In the formula, p i p j and p m These represent the global coordinates of nodes i, j, and k, respectively. They include unknown coordinates, awaiting iterative calculation based on linear equations, and also known coordinates, used to locate nodes with unknown coordinates. and The coefficients are derived geometrically from the interior angles of a triangle. Specifically, they are:

[0076]

[0077]

[0078]

[0079] Where I2 represents the 2×2 identity matrix, and R(θ) represents the rotation matrix.

[0080] After obtaining the linear equation of the triangle, the linear equation can be written in a compact form:

[0081]

[0082] in, That is, the compact form of the coefficient matrix of the linear equation, where p represents the coordinates of each node in the linear equation. In this embodiment, it is divided into anchor node part with known coordinates and free node part with unknown coordinates based on the known coordinates of the nodes. The coefficient matrix represents the free node portion. represents the coefficient matrix of the anchor node part, and p represents the global coordinates of each node.

[0083] S2. Determine the locatability of each node based on the linear equation.

[0084] In this embodiment, two virtual nodes that satisfy the communication relationship are created for each node. Each virtual node is assigned a state matrix. The state matrix of the node itself is iteratively updated using the orthogonal projection of the kernel of the coefficient matrix of the free node part and the state matrices of the neighboring nodes obtained through communication. Through the state matrix after multiple iterations, the eigenvalues ​​and eigenvectors are obtained, and the localizability of each node is determined accordingly.

[0085] Specifically, node localization refers to the property of whether a node can be located. When the position of a node in a network can be uniquely determined by angle constraints and anchor node coordinates, this node is called a localizable node.

[0086] According to the matrix Define matrix D(α):

[0087]

[0088] in,

[0089] In the matrix In this context, if any 2x2 submatrix is ​​not zero, it means that the node corresponding to that submatrix can communicate with other nodes in the same row that have non-zero weight matrices to form a triangle, which to some extent reflects the communication relationship between nodes.

[0090] In a network, there exists and only if D ff When the matrix is ​​non-singular, all nodes in the network are localizable. If a node in a network can be localized, then its coordinates p... f It can be uniquely represented as:

[0091]

[0092] In the formula, p a Representing the coordinates of the anchor node, from the above formula, we can deduce that when a node i can be located, its two corresponding natural bases are respectively connected to D. ff Multiplying the null space of all terms results in 0, that is:

[0093] e 2i ⊥Ker(D ff And e 2i-1 ⊥Ker(D ff );

[0094] The Ker() function calculates the kernel of a matrix, e 2i and e 2i-1 Each represents a set of natural radicals, e 2i This indicates that the 2i-th component is 1, and the rest (2n) are 1. f -1) natural bases with a component of 0, e 2i-1 This indicates that the (2i-1)th component is 1, and the rest (2n) are 1. f -1) natural bases with components of 0, n f This represents the number of free nodes in the network.

[0095] That is, for the i-th node, in matrix D ff 2n f eigenvalues ​​λ s , In the case where there exists s such that λ s =0, and for the eigenvalue λ s The corresponding feature vector v s If the 2i-th or 2i-1th component is not 0, then node i cannot be located; otherwise, node i can be located.

[0096] Specifically, for matrix D ff The eigenvalues ​​and eigenvectors can be obtained using the following methods:

[0097] Based on the communication topology diagram G of the sensor network f Distributed positioning of execution nodes, communication topology G of sensor network f It is a set of nodes With the edge set ε representing the communication relationship between nodes f An undirected graph composed of these elements.

[0098] Because D ff Each block is a 2×2 square matrix describing the communication relationship between every two adjacent free nodes, so an additional communication topology graph is also needed. To verify the locatability of nodes.

[0099] For G f Each free node i is assigned two virtual nodes i-1 and i-2, while It is composed of virtual node sets edge set representing the communication relationship between virtual nodes An undirected graph composed of these elements.

[0100] The matrix representing the communication relationships between virtual nodes. It is a non-singular matrix that satisfies:

[0101]

[0102] in, This indicates a size of 2n f ×2n f The identity matrix, n f represents the number of free nodes in the network, 2i* represents the 2i-th row of the matrix, and γ is a known positive constant for each node, and the value of γ can be arbitrarily chosen within the range of positive constants.

[0103] exist In this process, a state matrix is ​​assigned to each virtual node. Used for estimation eigenvalues ​​and eigenvectors.

[0104] In order to obtain The estimate is made in the following ways. The state matrix of virtual nodes Perform iterative updates:

[0105]

[0106] in, This indicates the virtual node (ij) in the communication topology graph. Neighbor set in It is a symmetric matrix, representing The orthogonal projection of the kernel in the (2i-2+j)th row.

[0107] The calculation method is as follows:

[0108]

[0109] Initial conditions for iteration satisfy:

[0110]

[0111] When iteratively updating the state matrix It will converge exponentially to

[0112] use express The stable state, therefore, can be utilized. To calculate D ff The eigenvalues ​​and eigenvectors are calculated using the following formulas:

[0113]

[0114]

[0115] Where, λ sThe () function represents finding the eigenvalues ​​of a matrix. s (),w s The () function represents finding the left and right eigenvectors of a matrix.

[0116] S3. If there are unlocatable nodes among the nodes, then the unlocatable nodes are improved to make them locatable.

[0117] Specifically, in triangulation, if two nodes cannot be located, then these two nodes must be in the same triangle.

[0118] Therefore, for a non-locatable triangle, three additional angle measurements are needed to make the two non-locatable nodes in the non-locatable triangle locatable.

[0119] Please refer to Figure 3 Select node i sequentially from the non-locatable node set Vu. If node i's neighbor node set Ni does not contain any node belonging to the locatable node set Vl, then select another node.

[0120] If node i has a locatable node j among its neighbors, then for non-locatable node i and locatable node j in the same triangle, first find a locatable node m other than node j that has the shortest path to node i. Let the set of all nodes on the path from node i to node m be denoted as . The node with the shortest path is the node with the shortest communication hop count. The node with the shortest path can be found by iteratively searching through all neighboring nodes. Finding the node with the shortest path allows the nodes in the entire subgraph to be located with the least amount of additional angle measurements.

[0121] In order to make the path The subnetwork formed by the union of all nodes on the network with nodes i, j, m can be located, but additional angle measurements are needed to make the set of all nodes in this subnetwork as follows: The set of triangles contained therein is in, It is by A set of triangles.

[0122] Node i is known when searching for the shortest path. Clearly, only j and m are locatable nodes in this network. We add extra angle measurements to make the subgraph satisfy the triangle rigidity, form a new triangle, and establish linear equations for the new triangle.

[0123] Let the set of interior angles of the triangle formed by the additional angle measurements be... When this subnet satisfies the triangle angular rigidity condition, all nodes in the subnet can be located. Specifically, the triangle rigidity condition is satisfied if and only if... Includes L-trigraph Established at that time, among which,

[0124] That is, the set of triangles It satisfies the following L-trigraph properties:

[0125] 1. This diagram is a triangular diagram composed of triangles;

[0126] 2. The number of triangles in the diagram is greater than or equal to the number of nodes minus 2;

[0127] 3. The number of triangles in any subgraph is less than or equal to the number of nodes minus 2.

[0128] Therefore, to ensure Includes L-trigraph For it to be valid, the following conditions must be met:

[0129]

[0130] For all subnetwork

[0131] in, This indicates the number of triangles after the new measurement. express

[0132] subnetwork The number of triangles, express

[0133] subnetwork The number of nodes.

[0134] S4. Iteratively solve the coordinates of the measurement nodes according to the linear equation to locate each node.

[0135] Specifically, to achieve discrete localization, the coordinates of the free nodes in the equation system are updated using the following gradient descent localization algorithm:

[0136]

[0137] Where k represents the number of iterations, and h>0 represents the sampling period. As k approaches ∞... p that tends towards reality f Coordinate values.

[0138] However, the system is stable and convergent only if h satisfies the following condition:

[0139]

[0140] Where min() represents the minimum value function, The reciprocal of the largest eigenvalue.

[0141] The calculation ends when the node coordinates converge.

[0142] Example 2

[0143] Please see Figure 2 Based on the above method, the present invention also provides a terminal, the terminal comprising: a memory 10, a processor 20, and a positioning program based on azimuth measurement stored in the memory 10 and executable on the processor 20, wherein when the positioning program based on azimuth measurement is executed by the processor 20, the terminal controls the terminal to implement the steps of the positioning method based on azimuth measurement as described above.

[0144] In some embodiments, the memory 10 may be an internal storage unit of the terminal, such as a hard disk or memory. In other embodiments, the memory 10 may be an external storage device of the terminal, such as a plug-in hard disk, smart media card (SMC), secure digital card (SD), flash card, etc. Further, the memory 10 may include both internal and external storage devices. The memory 10 is used to store application software and various types of data installed on the terminal, such as the program code installed on the terminal. The memory 10 can also be used to temporarily store data that has been output or will be output. In one embodiment, the memory 10 stores a positioning program based on azimuth measurement, which can be executed by the processor 20 to implement the positioning method based on azimuth measurement in this application.

[0145] In some embodiments, the processor 20 may be a central processing unit (CPU), a microprocessor, or other data processing chip, used to run program code stored in the memory 10 or process data, such as executing the positioning method based on azimuth measurement.

[0146] Example 3

[0147] This embodiment provides a storage medium, characterized in that the computer storage medium stores a positioning program based on azimuth measurement, and when the positioning program based on azimuth measurement is executed by a processor, it implements the steps of the positioning method based on azimuth measurement as described above.

[0148] In summary, this invention, through an algebraic determination method and an iterative calculation algorithm for node locatability, effectively solves the problem of detecting unlocatable nodes in distributed positioning algorithms by using a distributed calculation method when angles are measurable, to detect whether each node can be located in the network. Furthermore, it proposes a distributed positioning algorithm based on azimuth measurement, using the interior angles of triangles and node coordinates to construct linear constraint equations, solving the nonlinear positioning problem iteratively in a linear manner, greatly simplifying the computational complexity. For unlocatable nodes, this invention proposes an improved node locatability algorithm, allowing previously unlocatable nodes that would affect positioning accuracy to be relocated. This significantly improves the robustness and reliability of the distributed positioning algorithm, enabling it to be better applied to positioning in wireless sensor networks.

[0149] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal that includes that element.

[0150] Of course, those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.). The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The storage medium can be a memory, magnetic disk, optical disk, etc.

[0151] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A positioning method based on azimuth measurement, characterized in that, include: Each node in the control sensor network forms a triangle with two neighboring nodes, and the interior angles of the triangle formed with the two neighboring nodes are obtained. A linear equation including the coordinates of each node and the interior angles of the triangle is constructed. The locatability of each node is determined based on the linear equation. If there are unlocatable nodes among the nodes, then the unlocatable nodes are improved in terms of locatability, so that the unlocatable nodes are transformed into locatable nodes. The coordinates of each node are solved iteratively based on the linear equation to locate each node; Determining the locatability of each node based on the linear equation includes: Construct a matrix based on the linear equation. ,matrix Each non-zero submatrix is ​​a weight matrix of a pair of adjacent free nodes; Calculate matrix eigenvalues and corresponding feature vectors; If matrix eigenvalues If there is an eigenvalue of 0 in the corresponding eigenvector and the 2i-1th component of the corresponding eigenvector is not 0, then the i-th node in the linear equation cannot be located; otherwise, the i-th node in the linear equation can be located. The computation matrix eigenvalues and the corresponding feature vectors, specifically including: Each node in the triangle is assigned two virtual nodes, and the weight matrix corresponding to adjacent virtual nodes is: ,matrix Each non-zero submatrix is ​​a weight matrix of a pair of adjacent free nodes. It is a non-singular matrix that satisfies: ; in, Indicates size is The identity matrix, This represents the number of free nodes in the network. Represents the first of the matrix In the row, γ is a known positive constant for each node; Assign a state matrix to each virtual node ; State matrix of virtual nodes Perform iterations: ; in, k Indicates the first k iteration Indicates the first k The state matrix of the next iteration , Represents virtual nodes In a set of virtual nodes edge set representing the communication relationship between virtual nodes Communication topology diagram Neighbor set in It is a symmetric matrix, representing The orthogonal projection of the kernel in the 2i-2+jth row of the middle; Based on the state matrix of the virtual nodes Stable values ​​obtained through iteration calculate Eigenvalues ​​and eigenvectors: in, The function represents finding the eigenvalues ​​of a matrix. , The functions respectively represent finding the left and right eigenvectors of a matrix; The linear equation is specifically: ; in, α Let be the vector formed by the three interior angles of the triangle. , and Let i, j, and k represent the global coordinates of the three nodes of the triangle, respectively. , and These are coefficients derived from the geometric relationships of the interior angles of a triangle; , and Specifically: in, Let represent the interior angle with node i as the vertex. This represents the interior angle with node j as the vertex. Let m represent the interior angle with vertex m as the vertex. I 2 represents a 2×2 identity matrix. R This represents the rotation matrix.

2. The positioning method based on azimuth measurement according to claim 1, characterized in that, The specific steps of obtaining the matrix representing the communication relationships of free nodes within the triangle based on the linear equation include: To express the linear equation in a compact form: ; in, That is, the compact form of the coefficient matrix of the linear equation. Let these be the coordinates of each node. , The coefficient matrix represents the free node portion. The linear equation representing the coefficient matrix of the anchor node portion; Obtain the matrix representing the communication relationships of free nodes within the triangle in a compact form: 。 3. The positioning method based on azimuth measurement according to claim 2, characterized in that, The step of iteratively obtaining the coordinates of each node based on the linear equation specifically involves updating the coordinates of each free node using a gradient descent localization algorithm. ; Where k represents the number of iterations. Represents the coordinates of the free node. This represents the coordinates of the free node at the k-th iteration. Let represent the coordinates of the free node in the (k+1)th iteration, and h represent the sampling period greater than 0. Represents the coordinates of the anchor node. .

4. The positioning method based on azimuth measurement according to claim 3, characterized in that, The sampling period h satisfies: ; in, This represents the function that takes the minimum value. This represents the reciprocal of the i-th eigenvalue. The reciprocal of the largest eigenvalue.

5. A positioning method based on azimuth measurement according to claim 1, characterized in that, The improvement of the locatability of unlocatable nodes, transforming them into locatable nodes, specifically includes: Repeatedly select nodes from the set of unlocatable nodes. If the neighboring nodes of the selected node do not have locatable nodes, select another node for judgment. If the neighboring nodes of the selected node have locatable nodes, improve the locatability of the selected node to make the node locatable, until there are no more locatable nodes. The improvement in locatability specifically includes: Get the locatable node m of the shortest path from the selected node i (excluding locatable node j), and the set of all nodes on the path from node i to locatable node m. Get the set The union of node i, locatable node j, and locatable node m ; Get the node set The set of interior angles of the triangle formed by the middle nodes Obtain the set of additional interior angles of the triangle to be measured. The set Satisfy the node network Satisfying the rigidity condition of the triangle, thus making the union... Unlocatable nodes are transformed into locatable nodes; The specific rigidity condition of the triangle includes: Includes rigid subnetwork node network satisfy: ; For all subnetwork , ; in, Represents a set The union of node i, locatable node j, and locatable node m. This indicates the number of triangles after the new measurement. Represents a set The number of nodes, express subnetwork The number of triangles, express subnetwork The number of nodes, .

6. A terminal, characterized in that, The terminal includes: a memory, a processor, and a positioning program based on azimuth measurement stored in the memory and executable on the processor. When the positioning program based on azimuth measurement is executed by the processor, it controls the terminal to implement the steps of the positioning method based on azimuth measurement as described in any one of claims 1-5.

7. A computer storage medium, characterized in that, The computer storage medium stores a positioning program based on azimuth measurement, which, when executed by a processor, implements the steps of the positioning method based on azimuth measurement as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Node self-locating method based on sampling of wireless sensor network in three-dimensional space

    CN101221236A

  • Distributed wireless sensor network node self-positioning method based on asymmetric angle of arrival

    CN104066173A