Summary of the invention
For above the deficiencies in the prior art, the present invention proposes to adopt under a kind of NLOS environment the wireless location new method of geometric distance, suppresses non line of sight error, improves positioning precision to solve under a kind of nlos environment.
Object of the present invention is achieved through the following technical solutions:
Under NLOS environment, adopt the wireless location new method of geometric distance, this new location method comprises geometric distance filtering method DGF and geometric distance constrained procedure DGC,
The step of described DGF algorithm is as follows:
101. travelling carriages obtain the many groups measured value from base station, and each group measured value is the signal propagation time that comes from different base station that travelling carriage receives at synchronization, is designated as (t1, t2, t3, t4), wherein subscript represents different base stations;
102. calculate according to following formula each group measured value,, for each group measured value, all can obtain a calculated value, choose in all measured values and meet the following conditions and make one group of calculating formula value minimum:
For the signal that can receive four base stations:
For the signal that can receive three base stations:
WhereinA is half of adjacent base station distance, and v is transmission of wireless signals speed;
103. solve one group of following formula of measured value substitution choosing in step 102, and the value of (x, the y) of acquisition is the position coordinates of travelling carriage under the coordinate system of setting:
Four base stations:
Three base stations:
The step of described DGC method is as follows:
201. travelling carriages obtain the measured value from base station, and the signal propagation time that comes from different base station for travelling carriage receives at synchronization, is designated as (tm1, tm2, tm3, tm4), wherein subscript represents different base stations;
202. set unknown parameter (ε1, ε2..., εi), the base station number of i for participating in calculating, calculates following nonlinear optimal problem, is met one group of (ε of this nonlinear optimal problem1, ε2..., εi) numerical value, wherein a is half of adjacent base station distance, v is transmission of wireless signals speed:
For the signal that can receive four base stations:
s.t.
For the signal that can receive three base stations:
s.t.
ε=(ε wherein1, ε2, ε3),
203. (the ε that step 202 is obtained1, ε2..., εi) numerical value substitution following formula, try to achieve travelling carriage after optimization to the distance parameter value of each base station:
204. least square methods solve: X=(Ata)-1aty, the vectorial X calculating is a bivector, is the position coordinates of travelling carriage under the coordinate system of setting,
Wherein
(xi, yi) be the coordinate figure of base station i, dithe travelling carriage obtaining for step 203 is to the distance parameter value of base station i.
The invention has the advantages that:
The present invention can, guaranteeing in the situation that do not need to carry out in advance discriminating and the elimination of non line of sight measured value, effectively to suppress non line of sight error, improve positioning precision.The present invention has deposited at cellular network base stations cloth, has stronger practicality.
Embodiment
The present invention adopts signal transmission universal model, consider that between travelling carriage (MS) and base station (BS), barrier stops (being non line of sight error) such as caused signal reflex, refractions, the measured value measuring is so compared with free from error accurate measured value and is had a larger deviation, is shown below:
tm=t+ε (1)
Wherein, tmfor actual measured value, t is measured value under view distance environment, and ε is non line of sight error, is a larger positive deviate.Traditional targeting scheme is due to the impact of non line of sight error in the parameter of using, cause the reduction of positioning precision, as shown in Figure 2, the measured value that travelling carriage obtains from 3 base stations is due to the impact of non line of sight error, cause positioning result not converge, there is deviation with actual position.This programme utilizes geometric distance correlation theory in the many groups measured value obtaining, and finds out one group of one group of measured value approaching most under view distance environment, and deviation is minimum, and it is positioned as locator data.
The Blumenthal embedding theorems that the present invention be take in distance geometry are got up as Foundation, do not need to differentiate in advance whether measurement data comprises non line of sight error, but be optimized according to geometrical-restriction relation value of adjusting the distance of distance between travelling carriage and base station, wherein geometric distance bounding theory is as follows:
If S is r dimension theorem in Euclid space Erin orderly point set, S={P1, P2, LPn, note dijfor Pi, Pjspacing, with dijthe matrix forming for element is Erin the orderly distance matrix on point set S, and have
dij=dji,dij>0(i≠j),dii=0 (2)
Should be noted, not all that meet above-mentioned condition is all the fixed E of dimension simultaneouslyrin distance matrix.
The matrix that meets above-mentioned condition is " semi-metric matrix ", if be just in time Erthe distance matrix of upper one orderly point set, claims it to embed Er; If can embed Erbut can not embed Er-1, claim it to Erembedding can not be degenerated.
Blumenthal embedding theorems
[6]to a semi-metric matrix, can not degenerate and embed E
rprovided necessary and sufficient condition.Double metric matrix D and in order point set S={P
1, P
2, L, P
n, can on S, define binary function d (P
i, P
j)=di
j(1≤i, j≤n) is P
i, P
jbetween press the semi-metric of D definition.If
and it is constant that in S', element retains precedence, i.e. S'={P
i, P
j, L, P
k, 1≤i≤j≤L≤k≤n, the semi-metric matrix on S' is
Its square of edged battle array is
and will
determinant is designated as Δ (i, j, L, k).
Theorem 1:Blumenthal theorem: establishing D is one n * n semi-metric matrix, it is not degenerated and embeds Ernecessary and sufficient condition be, D is done to an order adjustment, adjust later half metric matrix Dameet following condition:
Condition 1:
(-1)2·Δ(1,2)>0,(-1)3·Δ(1,2,3)>0,L,(-1)r·Δ(1,2,L,r)>0
Condition 2:
For meeting r+1<u, v≤n positive integer u, v has
Δ(1,2,L,r+1,u)=Δ(1,2,L,r+1,v)=Δ(1,2,L,r+1,u,v)=0
In two dimensional surface theorem in Euclid space, for this theorem special case E2situation, has:
Theorem 2: establishing D is one n * n semi-metric matrix, it is not degenerated and embeds E2necessary and sufficient condition be: D is done to an order adjustment, adjusts later half metric matrix Dameet following condition:
Condition one: Δ (1,2) >0, Δ (1,2,3) <0,
Condition two: for meeting r+1<u, v≤n positive integer u, v have Δ (1,2,3, u)=Δ (1,2,3, v)=Δ (1,2,3, u, v)=0.
Wherein:
Inevitable, Δ (1,2,3) <0 represents by D
afront 3 conllinear not after embedding; (1,2,3, (1,2,3, v)=Δ (1,2,3, u, v)=0 represents semi-metric matrix square edged battle array to u)=Δ to Δ
order is 4.
In two dimensional surface space, Δ (1,2 in the condition 2 of theorem 2,3, u)=Δ (1,2,3, v)=Δ (1,2,3, u, v)=0, can only draw the distance matrix square edged battle array equation relation of 4 or 5 points, remove travelling carriage, participate in so effective base station that location survey value obtains and only have 3 or 4 most.Therefore,, under the environment of cellular cell, choose 4 adjacent base stations as shown in Figure 2 as position reference base station.
When four reference base station participate in location, choose orderly point set (O, A, B, M, C), Yi Zhiqi meets Blumenthal embedding theorems, can obtain its square of edged battle array
(t wherein1, t2, t3, t4) being respectively (O, A, B, C) to the time measured value of a M, the distance of adjacent base station is 2a.
For three architectures, choose base station O, A, C, for orderly point set (O, A, C, M), Yi Zhiqi meets Blumenthal embedding theorems so, in like manner can obtain its square of edged battle array
(t wherein1, t2, t3) being respectively (O, A, C) to the time measured value of a M, the distance of adjacent base station is 2a.
1, geometric distance filtering algorithm
If can obtain many group measured values, in these measured values, have so and must have one group of measured value to compare deviate minimum with actual value, approach most the measured value under LOS.Geometric distance filtering algorithm (Distance geometric filtering, calls DGF in the following text) will be attempted finding out this group in these measured values and approach one group of measured value in LOS situation most, and it is positioned as locator data.
During four architectures, according to the condition two of Blumenthal theorem, make in (3) formula
calculate and abbreviation, can obtain
(t wherein
1, t
2, t
3) while being respectively error free (O, A, B, C) to the time measured value of some M, a is half of adjacent base station distance.And actual measured value is owing to having comprised NLOS error, cannot obtain as the equation of (5) formula, therefore, can from many groups measured value, choose
one group of value minimum as location survey value.In TOA model, obtain measuring equation group
Appoint and to get 3 setting circles, its equation subtracts each other between two three straight lines that obtain and intersects at a point (as shown in Figure 2), and 4 setting circles are appointed respectively and got 3, can obtain four intersection points
according to centroid algorithm, location of mobile station is:
By base station (O, A, B, C) coordinate substitution (7) formula, solve and can obtain location of mobile station coordinate:
Location survey value substitution (8) formula obtaining is resolved.
In like manner, when adopting three architectures, can obtain and retrain accordingly equation and be
Wherein
Corresponding position coordinates is
2, geometric distance bounding algorithm
Because how NLOS error has compared a larger overgauge with LOS, geometric distance bounding algorithm (Distance geometric constraint, call DGC in the following text) utilize geometrical relationship to make measured value deduct certain deviate, thus make the one group of measured value obtaining can be closer to the measured value under LOS.
During four architectures, known (6) formula:
Due to the existence of NLOS, measured value has a large positive deviation than actual value, therefore can establish measured value
ε whereini>=0.
Obtain
Therefore measured value optimization problem is converted into following nonlinear optimal problem:
s.t. (13)
Obtain ε1, ε2, ε3, ε4, show that TOA optimizes measured value
Optimization distance value di=vt 'i
Substitution LS Algorithm for Solving base station coordinates again,
X=(ATA)-1ATY (15)
Wherein
(xi, yi) be BS coordinate, difor the distance measure after optimizing.
During three architectures, can obtain corresponding nonlinear optimization restricted problem and be:
s.t. (16)
ε=(ε wherein1, ε2, ε3),
Geometric distance filtering algorithm (Distance geometric filtering, DGF) and geometric distance bounding algorithm (Distance geometric constraint, DGC) be two kinds of different data processing methods in geometric distance localization method, according to algorithm characteristic and simulation result, known DGF algorithm need be measured multi-group data, has greater probability to obtain the situation of LOS measured value while being applicable to stationary node, NLOS mean error compared with Datong District; DGC algorithm can be used for mobile node location, and when NLOS mean error is little, effect is better.Under as the environment of Fig. 2, the specific implementation method of DGF and DGC is as follows, as Figure 8-9.
1:DGF algorithm:
(1) travelling carriage obtains the many groups measured value from base station, and each group measured value is the signal propagation time that comes from different base station that travelling carriage receives at synchronization, is designated as (t1, t2, t3, t4), wherein subscript represents different base stations;
(2) each group measured value is calculated according to following formula,, for each group measured value, all can obtain a calculated value, choose in all measured values meet the following conditions (making calculating formula value minimum) one group:
Four base stations (can receive the signal of O in Fig. 2, A, B, tetra-base stations of C):
Three base stations (can receive the signal of O in Fig. 2, A, tri-base stations of C):
WhereinA is half of adjacent base station distance, and v is transmission of wireless signals speed;
(3) one group of following formula of measured value substitution choosing in step (2) is solved, the value of (x, the y) of acquisition is the position coordinates of travelling carriage under the coordinate system of setting:
Four base stations:
Three base stations:
2, DGC algorithm:
(1) travelling carriage obtains the measured value from base station, and the signal propagation time that comes from different base station for travelling carriage receives at synchronization, is designated as (tm1, tm2, tm3, tm4), wherein subscript represents different base stations;
(2) set unknown parameter (ε1, ε2..., εi), the base station number of i for participating in calculating, calculates following nonlinear optimal problem, is met one group of (ε of this nonlinear optimal problem1, ε2..., εi) numerical value, wherein a is half of adjacent base station distance, v is transmission of wireless signals speed:
Four base stations (can receive the signal of O in Fig. 2, A, B, tetra-base stations of C):
s.t.
Three base stations (can receive the signal of O in Fig. 2, A, tri-base stations of C):
s.t.
ε=(ε wherein1, ε2, ε3),
(3) (ε step (2) being obtained1, ε2..., εi) numerical value substitution following formula, try to achieve travelling carriage after optimization to the distance parameter value of each base station:
(4) least square method solves: X=(Ata)-1aty, the vectorial X calculating is a bivector, is the position coordinates of travelling carriage under the coordinate system of setting,
Wherein
(xi, yi) be the coordinate figure of base station i, dithe travelling carriage obtaining for step (3) is to the distance parameter value of base station i.
In order to assess the validity of geometric distance bounding algorithm, with MATLAB, algorithm has been carried out to emulation.For convenient simulation, at this, utilized least-squares algorithm to position DGC algorithm, and compared with positioning performance and the DGF algorithm performance of common least-squares algorithm.The value of adjusting the distance of the present invention simultaneously optimization method improves and compares.Simulation result shows, in cellular network base stations, divides and plants, and supposes that base station spacing is 1000m, when non line of sight error to standard deviation at 50m between 500m time, location mean square error preferably all can reach 25m left and right.
The mean square error of having studied algorithm positioning solution under different NLOS errors in emulation, expression formula is:
Wherein, (x0, y0) be the physical location of travelling carriage, the estimated position that (x, y) is travelling carriage.
Under the environment of cellular cell, adopt arrangement of base stations as shown in Figure 1, with four base stations of diamond shape or three base stations of equilateral triangle shape, inner travelling carriage is positioned.
In emulation experiment, suppose that two base station spacings are 1000m, NLOS error mean difference is 250m,double counting 1000 times is also averaged, and obtains four base stations and three kinds of three base stations location simulation result as Fig. 3,4 and Fig. 5 shown in.
From positioning result intuitively, DGF algorithm has suppressed NLOS error preferably, and positioning precision has been compared very big raising with LS algorithm, and its position location extremely approaches travelling carriage actual position; Although the precision of DGC algorithm also improves, be not so good as DGF algorithm obvious.
For different NLOS errors (mean difference be 50m to 500m not etc.), carried out 10 location simulations simulations, each emulation double counting is also averaged for 1000 times, in four base stations and three base station situations, obtains simulation result respectively as shown in Fig. 6, Fig. 7, Fig. 8.
From simulation result, increase along with NLOS error, the positioning precision of LS algorithm obviously declines, DGC algorithm is owing to being to adopt LS algorithm to position after measured value is optimized again, therefore similar with LS algorithm, along with NLOS error increases, positioning precision declines also obvious, but general location precision is better than LS algorithm and learns from this point analysis, if adopt other algorithm (as Taylor algorithm, Chan algorithm etc.) also to have similar result.And DGF algorithm fluctuation and NLOS error size do not have obvious relation, positioning precision is obviously better than other two kinds of algorithms.DGC algorithm is better than three base station situations in the situation that of four base stations, because more measured value can better improve positioning precision under NLOS environment, but for DGF algorithm, base station number is on the impact of positioning precision not obvious, if be because can obtain NLOS error unconspicuous one group of measured value, use minimum base station number also can obtain comparatively desirable positioning result.
Through the analysis to emulated data, why DGC method does not obtain particularly preferred effect, because according to the principle of nonlinear optimization process, in calculating, to the optimization of deviate, can not offset real NLOS error completely, can only obtain micro-optimum results, the optimization measured value finally obtaining is compared with corresponding LOS measured value or is had certain error, and precision is lower when NLOS error is larger.But DGC theoretical method only needs an a small amount of measured value just can be optimized location, thus in the less demanding situation of computation complexity and NLOS error compared with hour considering; DGF method needs many group measured values, after algorithm, getting after filtering a class value positions, with NLOS mean error size without obvious relation, but its precision depends on that group of error minimum in obtained measured value, so the suitable NLOS of being applied in error is large and measured value has very large probability acquisition to approach in the situation of measured value under LOS.Compare with three architectures, four architectures can make DGC algorithm obtain higher positioning precision, and its algorithmic formula is more succinct, and while carrying out nonlinear optimization, computation complexity is lower.
Should be appreciated that the above detailed description of technical scheme of the present invention being carried out by preferred embodiment is illustrative and not restrictive.Those of ordinary skill in the art modifies reading the technical scheme that can record each embodiment on the basis of specification of the present invention, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.