Escolar Documentos
Profissional Documentos
Cultura Documentos
Todays Subjects
Demodulation of the GPS signal Tracking loop introduction Carrier tracking
Phase Lock Loop (PLL) Frequency Lock Loop (FLL)
Loop filters
2009
Demodulation
Or how to turn the radio waves back into the data message that we are interested in
2009
Demodulation
The transmitted signal from satellite k is:
S k (t ) = 2 Pc (C k (t ) D k (t )) cos(2f L1t ) + 2 PPL1 ( P k (t ) D k (t )) sin( 2f L1t ) + 2 PPL 2 ( P k (t ) D k (t )) cos(2f L 2t )
D data C C/A code P P(Y) code
2009
Demodulation
The transmitted signal from satellite k is:
The signal from one satellite after the ADC (narrow filters and low sampling frequency):
S k (n) = C k (n) D k (n) cos(if n) + e(n)
2009 Danish GPS Center 5
Demodulation
S (n) = C 1 (n) D1 (n) cos(if 1n) + C 2 (n) D 2 (n) cos(if 2 n) + e(n)
The signal from two satellites after the ADC: The code phase and the intermediate frequency of the carrier wave should be known parameters to demodulate the navigation data from e.g. satellite 1.
2009
Demodulation
Convert the signal down to baseband:
S (n) cos(if 1n) = C 1 (n) D1 (n) cos(if 1n) cos(if 1n) + C 2 (n) D 2 (n) cos(if 2 n) cos(if 1n) + e(n)
S (n) cos(if 1n) = 1 C 1 (n) D1 (n) + 1 C 1 (n) D1 (n) cos(2if ) + 2 2 C 2 (n) D 2 (n) cos(if 2 n) cos(if 1n) + e(n)
S (n) cos(if 1n) = 1 C 1 (n) D1 (n) + 1 C 1 (n) D1 (n) cos(2if ) 2 2 + 1 C 2 (n) D 2 (n) cos(if 2 if 1n) 2 + 1 C 2 (n) D 2 (n) cos(if 2 + if 1n) + e(n) 2
2009 Danish GPS Center 7
Demodulation Visualized
IF
2009
Demodulation
Code wipe off:
S (n) cos(if 1n)C 1 (n) = 1 D1 (n) + 1 D1 (n) cos(2if ) + e(n) 2 2
Conclusion: perfectly aligned code and carrier replicas are required to do demodulation. These replicas can be tracked using two tracking loops.
2009 Danish GPS Center 9
Tracking Loop
A way to generate exact copy of the received signal
2009
10
The main goal is to receive the GNSS signal as clear and loud as possible the local carrier and spreading code must be well aligned with the ones in the signal GNSS adds one more requirement: to track signal arrival (time) as precise as possible Advanced receivers can detect multipath to some extent Additional task can be signal quality monitoring
2009 Danish GPS Center 11
Generate a local signal Correlate it with the received signal Measure (time/code-phase, frequency, phase) error between the local and the received signals Steer local signal generators to minimize the error Pass demodulated data bit value stream to the data processing task Repeat procedure
2009 Danish GPS Center 12
Tracked signal 1(s) Error measurement unit (called error detector or discriminator) Generated signal ? 2(s) e(s)
Filter
Kd
VCO
F(s)
K0/s
Signal generator generates replica of the tracked signal
Filter has two main tasks: To filter noise in the error measurements (due to noise in the tracked signal) To shape the tracking loops response to the tracking error
2009
13
There are 3 main types of the tracking loops depending on the tracked property of the tracked signal:
Phase lock loop (PLL) Frequency lock loop (FLL) Delay lock loop (DLL)
There are few error detectors for each type of the tracking loop with different properties Variations of filter parameters will shape the filter response and amount of noise filtering
2009 Danish GPS Center 14
PLL (FLL) and DLL are explained in sections on carrier and code tracking Each section will also cover a set of error detectors applicable in a given tracking loop Tracking loop filter is explained in a separate section as the same theory is used for all types of tracking loops
2009
15
2009
16
The goal of the Carrier Tracking Loop is to produce a perfectly aligned carrier replica. The most common way is to use a PLL:
In-phase arm
D(n) cos(if n)
cos(if n + )
sin(if n + )
Quadraturephase arm
2009
17
I = 1 D(n) cos( ) 2
Q = 1 D(n) sin( ) 2
2009
18
I = 1 D(n) cos( ) 2
cos(if n + )
D(n) cos(if n)
sin(if n + )
Q = 1 D(n) sin( ) 2
2009
19
-2 2 Phase delay
Q
= tan
Q = tan I
1
2009
20
The Costas loop is independent on the phase shifts caused by the data bits Phasor diagram:
Q
4000 2000
An output example:
Discrete-Time Scatter Plot
Q prompt
0 -2000 -4000 -8000 -6000 -4000 -2000 0 2000 4000 6000 8000 I prompt
2009
21
Much time consuming (not a big problem today) The output is the real phase error
Sign product
D = Q sign(I )
Fast method The discriminator output is proportional to sin()
2009
22
2009
23
D(n) cos(if n)
cos(if n + )
sin(if n + )
= tan 1
I Q
Q = 1 D(n) sin( ) 2
2009
24
The signal energy in I and Q when PLL has locked on the signal:
2009
25
2009
26
The discrimators are a bit different than in PLL. They measure change in carrier phase over an interval of time. Less noise sensitive than PLL it can track at lower SNR The tracking loop has more noise than PLL Can be used for the re-acquisition or pull-in states due to bigger frequency lock range
2009
27
Loop Filters
2009
28
There is an error measurement noise (even at good SNR) There is a stady state error caused by Doppler
2009
29
Filter
Kd
VCO
F(s)
2(s)
K0/s
0 u e ud
a)
b)
2009
30
There is an initial frequency between tracked and generated signals (27Hz here) Figures show:
The filter accumulates offset over time and keeps it The result of damping different convergence times
Amplitude
Amplitude
10 0 -10 -20 0.05 0.1 0.15 Time (s) 0.2 0.25 0.3
2009
31
z-1
Filter output
c1
C1 =
8 nT 1 K 0 K D 4 + 4 nT + (nT ) 2
4( nT ) 2 1 C2 = K 0 K D 4 + 4 nT + (nT ) 2
n =
8 BL 4 2 + 1
32
2009
Damping Factor
Different loop responses depending on the damping factor
(first 20ms are due to loop filter initialization)
Determines how much the loop filter resists to the control signal:
On one hand how fast the loop will fix the tracking error On other hand how much the loop will overshoot 0 error point
80 60
minator output] [
40 20 0
A compromise value is used or few values are used for different receiver modes
2008
33
Noise Bandwidth
Narrow noise bandwidth decreases noise in the tracking loop, AND response speed At 100ms the loop noise bandwidth is switched from about 100Hz to 15Hz
90 PLL discriminator
-2520
45
-45
-90
100
400
500
Danish GPS Center
100
400
500
34
2009
Noise Bandwidth
Loop noise bandwidth also determines maximum Doppler offset and rates tolerated by the loop Figures show a case of too big initial frequency error in acquisition
2009
90 45 0 -45 -90 PLL discriminator
50
100
150
200
300
350
400
450
500
50
100
150
200
350
400
450
500
35
Loop Order
Filter input
c2
z-1
Filter output
c1
The filter is a first order filter The tracking loop (excluding filter) is a first order system, therefore the tracking loop is second order Higher order filters approximate the error dynamics better (e.g. to be used for ships etc.)
2008
36
An Example Of A PLL
=20/0.7845; T=0.02;
k1= 2.4 * k2= (1.1 * ^2)/20 k3= ^3/20
=20/0.53; T=0.02;
k1= 1.414 * k2= ^2/20 k3= 0
2009
38
2009
39
2009
40