A kind of relative time localization method and its system
Technical field
The invention belongs to data transfer and communication technical field, is related to a kind of localization method, and in particular to when a kind of relative
Between location technology and its system.
Background technology
With the popularization for the terminal device for possessing the radio communication functions such as WiFi and 4G, essence is carried out using wireless communication technique
It is determined that position has broad application prospects, is such as in megastore, hospital, tourist attractions, in parking lot and industrial and mining enterprises, people
Oneself position can not usually be known, the destination locations and route oneself to be gone are not known yet, often get lost, therefore efficiently
And the position for accurately determining people and thing can effectively improve social life and production efficiency.
The time-based wireless location mode of tradition is, it is necessary to be time synchronisation between each fixed station for being responsible for positioning
, the phenomenon of position inaccurate otherwise just occurs.But under many scenes, it is difficult to ensure that all fixed stations can be same
Timing is walked, can not be positioned with this.
The content of the invention
Goal of the invention:The present invention has made improvements in view of the above-mentioned problems of the prior art, i.e., the invention discloses one kind
Relative time location technology and its system.
Technical scheme:A kind of relative time localization method, comprises the following steps:
Step 1:Multiple fixed stations are placed on fixed position, and measure the position coordinates for recording each fixed station,
Location coordinate information is stored in System Management Daemon;
Step 2:Each fixed station periodically sends the data of the site address comprising the fixed station and temporal information
Bag;
Step 3:Each fixed station receives the data described in the step 2 that other websites in addition to this website are sent
Bag, calculates the timing error between this website and other websites;
Step 4:Mobile terminal periodically sends the terminal address comprising the mobile terminal and the number of package number information
According to bag;
Step 5:It is more when multiple fixed stations are received from the same packet that mobile terminal described in step 4 is sent
Individual fixed station wirelessly sends out the packet of the time of reception of same mobile terminal data bag, mutual timing error
Deliver to System Management Daemon, System Management Daemon according to the position of fixed station, same mobile terminal data bag reception when
Quarter, mutual timing error determine the position of mobile terminal.
As a kind of a kind of preferred embodiment of relative time localization method in the present invention, periodically sent out described in step 2 for 1 second
Send 1~10000 time.
As a kind of a kind of preferred embodiment of relative time localization method in the present invention, periodically sent out described in step 4 for 1 second
Send 1~10000 time.
A kind of relative time alignment system for above-mentioned relative time localization method includes:
Multiple fixed stations, for sending the packet for including this site address and temporal information and receiving mobile terminal
Packet;
Mobile terminal, for sending the packet for including this terminal address and package number information,
System Management Daemon, fixed station coordinate information is deposited, and receive the information from fixed station, calculate movement
The position of terminal,
The fixed station is wirelessly connected with the mobile terminal.
Beneficial effect:A kind of relative time location technology and its system disclosed by the invention, have the advantages that:No
Need to complete positioning in the case of related fixed station Timing Synchronization.
Brief description of the drawings
Fig. 1 is the radio communication locating system signal of the multiple fixed stations disclosed by the invention being used for and mobile terminal
Figure;
Fig. 2 is the fixed station and mobile terminal three-dimensional coordinate schematic diagram of the present invention;
Timing error calculates schematic diagram between Fig. 3 show two fixed stations of the present invention.
Embodiment:
The embodiment of the present invention is described in detail below.
Specific embodiment 1
A kind of relative time localization method, comprises the following steps:Multiple fixed stations with fixed position (will not move
Dynamic wireless transmitter, equivalent to base station, there is coordinate that is known and determining), each fixed station is periodically sent comprising this
The packet of site address (numbering of equipment, the MAC Address of similar computer) and temporal information, and receive the transmission of other websites
Packet comprising other fixed station addresses and temporal information, it is solid with other one or more that a fixed station can be calculated
Determine the timing error of website, then, one or more has the mobile terminal of variable position, wherein each mobile terminal is periodically sent out
The packet comprising this terminal address and package number information is sent, when multiple fixed stations are received from some mobile terminal
Send same packet when, according to the position of these fixed stations, same mobile terminal data bag the time of reception,
Mutual timing error can calculate the current location of the mobile terminal.
The present invention is used for the system (as shown in Figure 1) of relative time localization method, including:Fixed station, mobile terminal,
Wherein, fixed station, there is fixed position, for transmitting data with other fixed stations and mobile terminal;
Mobile terminal, there is variable position, can move, for sending data to fixed station;
System Management Daemon, the information from fixed station is received, calculates the position of mobile terminal,
The fixed station is connected with the mobile terminal by communication.
The relative time localization method of the present invention comprises the following steps:
Step 1:Multiple fixed stations are placed on fixed position, and record its position coordinates, then deposit position coordinates
It is placed on System Management Daemon.It is assumed that the three-dimensional coordinate of fixed station 1 is (x1, y1, z1), the three-dimensional coordinate of fixed station 2 is
(x2, y2, z2), by that analogy, fixed station N three-dimensional coordinate is (xN, yN, zN), as shown in Figure 2;
Step 2:Each fixed station periodically (send 10000 times within 1 minute) send comprising this site address it is timely between information
Packet;
Step 3:Each fixed station receive the transmission of other websites comprising other fixed station addresses and temporal information
Packet.It is assumed that position coordinates be (xa, ya, za) fixed station a, Ta receptions arrive from position coordinates be (xb,
Yb, zb) the packets (as shown in Figure 3) that are sent at the Tb moment of fixed station b, then the distance between fixed station a and bTiming error △ t between the two are:
Wherein c is radio signal transmission speed;
It can thus be concluded that the timing error between a fixed station and other fixed stations.It is assumed that fixed station 1 and fixation
Timing error between website 2 is △ t2, and the timing error between fixed station 2 and fixed station 3 is △ t3, by that analogy,
Timing error between fixed station N-1 and fixed station N is △ tN;
Step 4, each mobile terminal periodically (sends 10000 times) and sent comprising this terminal address (in packet for 1 minute
Source address information) and package number information packet;
Step 5, when multiple fixed stations are received from the same packet that some mobile terminal is sent, multiple fixations
Website will wirelessly miss comprising fixed station position, the time of reception of same mobile terminal data bag, mutual timing
The packet of difference is sent to System Management Daemon, position of the System Management Daemon according to fixed station, same mobile terminal number
The position of the mobile terminal is calculated according to the time of reception of bag, mutual timing error.System Management Daemon by information receiver and
Computing module forms.Information receiver is connected by wired or wireless mode with fixed station, and reception comes from fixed station
Information, then computing module the position of mobile terminal is calculated by these information.It is assumed that mobile terminal 1 is moved to coordinate
When (x0, y0, z0), a packet is sent, the packet is respectively in T1,T2,...,TNMoment is by fixed station 1, fixed station
2nd ..., fixed station N receives (such as Fig. 2), then:
Wherein c is radio signal transmission speed.
Further, it is assumed that the movement of mobile terminal 1 meets z=f (x, y), i.e., necessarily there is z0=f (x0, y0), then obtain equation
Group:
Solve equation group, you can obtain the position (x0, y0, z0) of current mobile terminal 1.
Specific embodiment 2
Roughly the same with specific embodiment 1, difference is:
In the present embodiment, step 2 was periodically sent 1 time for 1 second.
In the present embodiment, step 4 was periodically sent 1 time for 1 second.
Specific embodiment 3
Roughly the same with specific embodiment 1, difference is:
In the present embodiment, step 2 was periodically sent 500 times for 1 second.
In the present embodiment, step 4 was periodically sent 500 times for 1 second.
Embodiments of the present invention are elaborated above.But the present invention is not limited to above-mentioned embodiment,
In art those of ordinary skill's possessed knowledge, it can also be done on the premise of present inventive concept is not departed from
Go out various change.