PART3 » History » Version 53

« Previous - Version 53/83 (diff) - Next » - Current version
JANVIER, Thibault, 03/23/2016 09:42 AM


PART 5 : Implementation and results.

This part is dedicated to explain and illustrate the main steps that have been done in order to retrieve a navigation signal and to compute the position of the receiver from the pseudo-range measurements of 4 satellites. PART 2, PART 3 and PART 4 provided a theoretical background on GPS signals, the main blocks of a GPS receiver and methods to compute the position using the navigation data. Now, it is time to put this theoretical knowledge into practice.
As lots of VIs have been created, a UML diagram has been drawn to illustrate the structure of the overall code. For each main step that will be described, a link to the UML diagram will be provided, the different VIs to be taken into consideration will be listed, a few key points regarding the implementation will be clarified and the results will be displayed.


1 - Starting point.

a - Quid about LabVIEW.

Labview is a modular dataflow programming language that relies on block diagrams interconnected with each other. Each block diagram represents a node, a function that can be run as soon as its inputs are available. Then, it computes outputs used as inputs by other nodes. Any created program can be reused as a node in a higher-level program, hence the modularity of Labview. While running a program, each input can be controlled thanks to a user interface known as a “front panel”. Likewise, every output can be monitored and displayed using the front panel. As a matter of fact, the front panel is closely linked to the program called the “block diagram”. Indeed, every primary input of the block diagram are defined and controlled via the front panel.

b - Receiver scheme and milestones.

The software-defined GPS receiver to be implemented should take as an input a sampled signal that has been received and down-converted by an RF receiver front-end. As our RF receiver front-end was missing an antenna, we used a recorded GPS raw signal from the output of an RF front end (from CD [1] under GNSS_signal_records/GPSdata-DiscreteComponents-fs38_192-if9_55.bin). In order to read properly the data that are contained in the recorded file, one needs to know the sampling frequency and the intermediate frequency of the raw signal.
Sampling frequency = 38.192 MHz
Intermediate frequency = 9.55 MHz
The following diagram sums up the general structure of the GPS receiver to be implemented.


Figure 5.1: General receiver sheme.

c - Local C/A code generation.

The files involved are :
- CA_Code.vi
- CA_generatorG1.vi
- CA_generatorG2.vi

These VIs allow generating a PRN sequence according to the satellite ID and the sampling frequency. Indeed, the newly generated PRN sequence has to be multiplied with the incoming signal. Knowing that the period of one PRN sequence is 1 ms, the length of the generated sequence has to be adjusted according to the sampling frequency. With a sampling frequency of 1.023 MHz, a sampled PRN sequence with 1023 samples is generated. With a sampling frequency of 38.192 MHz, a sampled PRN sequence with 38192 samples is generated.


Figure 5.2: Example of a locally generated PRN sequence.

In Figure 5.2, a PRN sequence corresponding to satellite 21 has been generated with a sampling frequency of 38.192 MHz. This PRN sequence lasts 1 ms (a zoom has been done on the figure in order to see the sequence of chips).


2 - Acquisition.

See the UML Diagram of Section 2 under : Acquisition.PNG

The files involved are :
- Main_Acquisition.vi : SnapAcquisition.PNG
- Acquisition_subVI.vi : SnapAcquisitionSub.png
- CA_Code.vi

Justification acquisition method in terms of accuracy and time execution
Justification of the step of 500Hz
Methods to avoid the data bit transition while running acquisition
Frequency refine is needed for the PLL of the tracking to converge
Definition of the threshold and how it is implemented

.......

...........


3 - Tracking.

Justification of the DLL discriminator
Correction of the blocksize to read as a function of the doppler shift

See the UML Diagram of Section 2 under : Track.PNG

The files involved are :
- Main_Carrier_Tracking.vi : SnapTracking.png
- CalcLoopCoeff.vi : SnapCalcLoopCoeff.PNG

.......

...........


4 - Navigation Data decoding.

See the UML Diagram of Section 4 under : NavigationData.PNG.

a - Delimiting subframes.

The files involved are :
- FindPreamble.vi
- TestFindPreamble.vi : SnapTestFindPreamble.PNG
- GenerateFrame.vi
- ParityCheck.vi : SnapParityCheck.png

Figure 5. : Cross-correlation between navigation frame and local preamble. Figure 5. : Subframes with index of delimitation.

b- Decoding ephemeris and information within the frame.

The files involved are :
- Ephemeris.vi
- BinaryArrayToDecimal.vi : SnapBinaryArrayToDecimal.PNG
- twosComp2dec.vi : SnapTwosComp2dec.PNG
- ParityCheck.vi_ : SnapParityCheck.png
- TestEphemeris.vi


5 - Elementary blocks for localization.

See the UML Diagram of Section 5 under : Localization.PNG

a - Satellite position.

The files involved are :
- SatellitePosition.vi
- TestSatellitePosition.vi : SnapTest_satellite_position.PNG
- Check_time.vi : SnapCheckTime.PNG


Figure 5. : Interface with ephemeris as input and illustration of the satellite position.

b - Pseudoranges.

The file involved is :
PseudorangesComputation.vi

c - Least Square solution for position determination.

The files involved are :
- LeastSquarePosition.vi
- SatelliteRotationECEF.vi : SnapSatelliteRotationECEF.PNG
- toTopocentric.vi : SnaptoTopocentric.png
- CartesianToGeodetic.vi : SnapCartesianToGeodetic.png
- TroposphericCorrection.vi

6 - Receiver position computation.

See the UML Diagram of Section 6 under : Receiver.PNG

The files involved are :
- ComputeReceiverPosition.vi
- NavigationProcess.vi
- CartesianToGeodeticForUTM.vi : SnapCartesianToGeodeticForUTM.png
- CartesianToUTM.vi

7 - Complete UML Diagram of the receiver.

The UML diagram with real size is available under : UMLDiagram.png

Here is a small overview of the structure :


References :
[1] K. Borre, D. M. Akos, N. Bertelsen, P. Rinder, S. H. Jensen, A software-defined GPS and GALILEO receiver