stanford gps/gnss matlab...

21
February 2009 Juyong Do Stanford University Integrated Research Platform with Unbounded Positioning Database Stanford GPS/GNSS Matlab Platform

Upload: others

Post on 11-Oct-2020

8 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

February 2009

Juyong Do

Stanford University

Integrated Research Platform with Unbounded Positioning Database

Stanford GPS/GNSS Matlab Platform

Page 2: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

2 Stanford University - GPS Laboratory

Stanford GPS/GNSS Matlab Platform

§  Stanford GPS Matlab Platform (SGMP) is a platform that enables you to use GPS/GNSS measurements in various formats for your GPS research activity.

Measurement Interface GPS Simulator

User Interface

GPS/GNSS Measurement

Page 3: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

3 Stanford University - GPS Laboratory

Key Aspects of SGMP

§  Everything Matlab Matlab has been most popular for GPS/GNSS research. So let’s move everything to the world of Matlab for seamless and uninterrupted research.

§  Access to Unbounded Database

Convert positioning database in various formats (NSTB, NMEA, RINEX…) to a single format in Matlab.

§  Integrated Platform SGMP is a platform intended for GPS simulation as well as

measurement interface. Any simulation based on SGMP format can operate under SGMP platform.

Page 4: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

4 Stanford University - GPS Laboratory

Components in SGMP

§  Measurement Interface Convert various formats to SGMP format.

§  GPS Simulator Position estimation, RAIM research…

§  User Interface Provides user control.

Measurement Interface GPS Simulator

User Interface

GPS/GNSS Measurement

Page 5: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

5 Stanford University - GPS Laboratory

Measurement Interface

§  An interface to various formats of GPS intermediate measurements (psuedorange). All supported formats of measurements are converted to a Matlab format.

§  Extension to other sensors (TV, WiFi, INS…)?

Measurement Interface

NSTB Database

SGMPDatabase

RINEXDatabase

NMEADatabase

Page 6: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

Input Formats: NSTB, …

§  National Satellite Test Bed (NSTB) A data format for Test Bed Reference Station (TRS) and WAAS Reference Stations (WRS) data. The recorded data includes GPS measurements; ephemeris and almanac data; GEO measurement and WAAS broadcast data; as provided by the GPS receivers at the Reference sites.

§  Receiver Independent Exchange Format (RINEX) A data interchange format for raw satellite navigation system data. This allows the user to post-process the received data (usually with other data unknown to the original receiver, such as better models of the atmospheric conditions at time of measurement) to produce a more accurate solution.

§  National Marine Electronics Association (NMEA) NMEA 0183 (or NMEA for short) is a combined electrical and data specification for communication between marine electronic devices such as echo sounder, sonars, anemometer (wind speed and direction), gyrocompass, autopilot, GPS receivers and many other types of instruments. It has been defined by, and is controlled by, the U.S.-based National Marine Electronics Association.

6 Stanford University - GPS Laboratory

Page 7: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

7 Stanford University - GPS Laboratory

NSTB Stations

Page 8: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

8 Stanford University - GPS Laboratory

Output Format: SGMP

§  Structured data tree §  rx contains information

and measurements by a receiver during a specific time frame.

§  rx.info, rx.meas, and rx.aiding.

rx

info

meas

aiding

tx

waas

iono

utc

almanac

tms

tus

sqm

sqminfo

eph

waasstatus

Field Description

info receiver and data file information

meas measurements by receiver

aiding aiding information from external sources

Page 9: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

9 Stanford University - GPS Laboratory

rx.info §  rx.info contains receiver specific static information

such as receiver type and the start and end time of overall data file.

Field Description

id User defined receiver identification number

sitename receiver site name

type receiver type

initpos initial position of receiver in XYZ (meter) and equivalent to true position for stationary receiver

gpswk reference time in gps week number

starttow start time of reception in time of week (second)

endtow end time of reception in time of week (second)

Page 10: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

10 Stanford University - GPS Laboratory

rx.meas.tx

§  rx.meas.tx contains transmitter specific measurements for given reference measurement time.

Field Description

prn transmitter identification number. prn for GPS satellites

numch number of channels for this transmitter

pr pseudo-range (meter)

cr carrier-range (meter)

dp Doppler (meter/second)

snr signal-to-noise ratio (dBHz)

slip cyclic slip counter (0-7)

Page 11: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

11 Stanford University - GPS Laboratory

rx.aiding §  rx.aiding contains aiding information provided by

external sources such as GPS satellites and WAAS satellites. Includes eph, waas, almanac, iono, utc, tms, tus, sqm, sqminfo, and waasstatus.

Field Description

eph ephemeris and clock parameters from GPS navigation message

waas WAAS broadcast message

almanac almanac message

iono ionosphere (Klobuchar) message

utc UTC message

tms TMS to TUS message

tus TUS to TMS message

sqm SQM message

sqminfo SQM information message

waasstatus WAAS subsystem status message

Page 12: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

12 Stanford University - GPS Laboratory

GPS Simulator

§  Now We’re Ready to Rock! GPS Simulator is a block allocated for signal processing functionalities based on data from Measurement Interface. A sample program is provided which can be modified according to user’s needs.

SGMPDatabase

GPS Simulator

PosFixEngine

Multipath Simulation

RAIM Evaluation

Page 13: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

13 Stanford University - GPS Laboratory

Example: Position Fixes

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-2

0

2

Eas

t (m

)

"Acv EPak 1330 1514 00 0.mat" at (41.0, -124.1, 56.2m)

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-5

0

5

Nor

th (m

)

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-10

0

10

Up

(m)

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 10

1

2

Clo

ck (u

s)

Time (hour)

-15 -10 -5 0 5 10 15-15

-10

-5

0

5

10

15

East (m)

Nor

th (m

)

"Acv EPak 1330 1514 00 0.mat" at (41.0, -124.1, 56.2m)

100.0% success with 1.0m (2drms)

§  Position Estimation

Page 14: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

14 Stanford University - GPS Laboratory

Example: Position Fixes (cont’d)

-1.5 -1 -0.5 0 0.5 1 1.50

10

20

30

East

"Acv EPak 1330 1514 00 0.mat" at (41.0, -124.1, 58.7m)

-2 -1.5 -1 -0.5 0 0.5 1 1.5 20

10

20

Nort

h

-5 -4 -3 -2 -1 0 1 2 3 4 50

10

20

30

Up

Position error (m)

(µ, σ) = -0.0 0.5

(µ, σ) = 0.0 0.6

(µ, σ) = -0.0 1.5

-2-1

01

2

-4-2

02

4-6

-4

-2

0

2

4

6

East (m)

"Acv EPak 1330 1514 00 0.mat" at (41.0, -124.1, 56.2m)

North (m)

Up

(m)

Page 15: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

15 Stanford University - GPS Laboratory

How it works: Setting Up

§  Go to waas.stanford.edu

§  Download and unzip SGMP.zip

§  You’ll see following directories created under /SGMPrelease:

•  /SGMPrelease/document •  /SGMPrelease/measurement interface •  /SGMPrelease/simulator •  /SGMPrelease/user interface

Page 16: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

16 Stanford University - GPS Laboratory

How it works: Parsing

§  Getting NSTB Data •  Go to http://www.nstb.tc.faa.gov/DisplayNSTBDataDownload.htm •  Download and unzip NSTB files •  Move the unzipped NSTB files to /SGMPrelease/measurement

interface/data/nstb

§  Parsing •  To parse all NSTB files, use /SGMPrelease/measurement

interface/batchparseNSTB.m •  To parse a NSTB file, use /SGMPrelease/measurement interface/

parseNSTB(filename, starthour, endhour, crccheck) ex) rx = parseNSTB( 'Acv_EPak_1330_1514_00', 1, 5, 0); %parse NSTB file from 1 hour to 5 hour without CRC checking

Page 17: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

17 Stanford University - GPS Laboratory

How it works: Positioning

§  Positioning •  After parsing NSTB files to SGMP files (located under /

SGMPrelease/measurement interface/data/parsed), we are ready to rock!

•  Start Matlab and go to /SGMPrelease/simulator/ •  Execute batchPosfixSGMP.m •  Alternatively, use posfixNSTB(filename)

§  Results •  Go to /SGMPrelease/simulator/result/posfix/ •  Check out *.mat, *.fig, or *.eps files for results

Page 18: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

18 Stanford University - GPS Laboratory

Summary

§  SGMP (Stanfor GPS/GNSS Matlab Platform) is a Matlab based platform providing access to multi-format positioning database.

§  SGMP enables you to tap into existing and ever-growing database regardless of formats.

§  Standardized format (SGMP) opens door to research collaboration and connection b.t. generations of students.

Page 19: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

19 Stanford University - GPS Laboratory

What’s next…

§  Measurement Interface •  Support for NMEA, RINEX, … •  Extension to other sensors such as TV, WiFi,…

§  GPS simulator •  Add more blocks (RAIM simulation, differential positioning,

…) •  For example, NSTB provides dual frequency code and

carrier measurements. Lots of possibilities.

§  User Interface •  Implement a “Per”-friendly GUI?

Page 20: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

20 Stanford University - GPS Laboratory

Reference

1.  NstbDataFormat1103.doc Description of NSTB format

2.  www.nstb.tc.faa.gov/DisplayNSTBDataDownload.htm NSTB data files are provided.

3.  www.mathworks.com/access/helpdesk/help/techdoc/ref/struct.html Matlab structure type is described.

4.  SGMP.zip

Page 21: Stanford GPS/GNSS Matlab Platformweb.stanford.edu/group/scpnt/gpslab/website_files/sgmp/intro_SGMP.pdf · Key Aspects of SGMP § Everything Matlab Matlab has been most popular for

21 Stanford University - GPS Laboratory

Thanks!

Thanks to Euiho and Grace for their earlier works for NSTB data.

Thanks to Todd, Juan and Per for their inputs to SGMP.

Thank you, everyone!