The method that the purpose of this invention is to provide a kind of mobile terminal self location, the method in according to the present invention, the user of portable terminal can determine the position at own place at any time.
The object of the present invention is achieved like this: each base station BS S broadcasts the equivalent transmission power level Pi of base station code, longitude and latitude and the C0 carrier wave of each base station and adjacent base station, and described equivalent transmission power level Pi is meant that the transmitting power and the antenna gain sum of the C0 carrier wave of base station deduct mixer and feeder loss.The performance number Li of the C0 carrier wave of the equivalent transmission power level Pi of the base station code of each base station that the portable terminal utilization measures, longitude and latitude and C0 carrier wave and each base station that receives, according to the wireless channel mode, adopt the method for square error minimum, just can calculate the distance of portable terminal, thereby determine the position of portable terminal apart from each base station.
Utilize the method among the present invention, convergence rate is very fast, and precision is higher, can position portable terminal at any time.
Describe the present invention below in conjunction with accompanying drawing.
In Fig. 1, Bi (i=1,2 ... n) expression and the nearest several base stations of portable terminal, n generally gets 3 to 8, in one embodiment of the invention, gets n=4; (Xi Yi) represents the longitude and latitude of each base station, and A represents the residing position of portable terminal, and Ri represents the portable terminal that calculates according to the wireless channel mode distance to each base station.Each base station BS S utilizes the equivalent transmission power level Pi of base station code, longitude and latitude and the C0 carrier wave of each base station of CBCH channel radio and adjacent base station, and portable terminal is received above-mentioned information and is stored in the portable terminal.When portable terminal is in a certain position, can receive the received power value Li of the C0 carrier wave that sends nearest several base stations,, utilize following formula can calculate the distance R i of portable terminal and each base station according to the wireless channel mode:
A, b are constant in LogRi=a (Pi-Li)+b formula, and its span is 0.01<a<1 and-10<b<-1, in specific embodiment, gets a=0.026, b=-3.49.
If Ri is the accurate distance of portable terminal apart from each base station, then four circles among Fig. 1 should meet at a bit, but because the unsteadiness of radio propagation conditions, even the position of portable terminal is fixed, the Ri that it is measured also has fluctuating, in the ordinary course of things, four circles and non-intersect are so can't obtain the position of portable terminal with the method for solving an equation.
The present invention has adopted the minimum method of square error to solve this problem, the difference between the actual range that promptly utilizes portable terminal and each base station and the basis distance R i that measures square hour, think that the position of measuring at this moment promptly is the position of portable terminal.The square error formula is:
The E=∑ [(X-Xi)
2+ (Y-Yi)
2-Ri
2]
2When square error E is during less than certain value, this moment (X Y) can think the longitude and latitude of portable terminal, i.e. the position of portable terminal.
Determine (X, Y) concrete grammar and step are as follows:
1, get (X, initial value Y) is:
X
0=(∑Xi)/n
Y
0=(∑Yi)/n
2, ask X with following formula, the variable quantity of Y
dX=-c*∑{[(X-Xi)
2+(Y-Yi)
2-Ri
2]*(X-Xi)}
The dY=-c* ∑ { [(X-Xi)
2+ (Y-Yi)
2-Ri
2] * (Y-Yi) wherein, c is a constant, desirable 0.001.
3, ask variable quantity with iterative method
X
k+1=X
k+dX;Y
k+1=Y
k+dY;
4, calculate dE=E (X
K+1, Y
K+1)-E (X
k, Y
k), if dE during less than certain precision value M, (X Y), promptly exports the longitude and latitude of the position of portable terminal, otherwise jumps to 2 in output.According to the required precision difference, the desirable 0.000001<M of accuracy value M<0.01 in specific embodiment, is got M<0.01, as is got M=0.001.