Click or drag to resize

NMEAGps Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Represents a GPS unit conforming to the NMEA standard. See remarks.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.NavigationNMEAGps

Namespace:  Telogis.GeoBase.Navigation
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class NMEAGps : IGps, IDisposable

The NMEAGps type exposes the following members.

Constructors
  NameDescription
Public methodNMEAGps(SerialPort)
Create a new NMEA GPS with the given serial port.
Public methodNMEAGps(Stream)
Create a new NMEA GPS, using an input stream. This constructor should be used for custom hardware interfaces that can provide the NMEA data as a stream.
Public methodNMEAGps(StreamReader)
Create a new NMEA GPS, using a StreamReader as input. This constructor should be used for replay of GPS data captured using Trace during an earlier session.
Public methodNMEAGps(StreamReader, Int32)
Create a new NMEA GPS, using a StreamReader as input. This constructor should be used for replay of GPS data captured using Trace during an earlier session.
Public methodNMEAGps(String, Int32)
Create a new NMEA GPS with the given serial port name and baud rate.
Top
Properties
  NameDescription
Public propertyPortName
Gets the name of the port, as a string.
Public propertyPosition
Gets the last recorded GPS Position.
Public propertyPoweredUp
Gets the powered up state of the GPS interface.
Top
Methods
  NameDescription
Public methodDispose
Powers down the GPS unit.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodPowerDown
Closes down the GPS interface and releases the port.
Public methodPowerUp
Initializes the GPS hardware interface.
Public methodReplay
Replays the stream.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventGPSException
Called when the GPS experiences a fatal exception that may affect its ability to continue working.
Public eventUpdate
This event handler will be called every time the NMEAGps updates its position.
Top
Fields
  NameDescription
Public fieldSpeedThreshold
Speed threshold of this GPS unit.
Public fieldTrace
May be used to record the raw NMEA data read from the device.
Top
Remarks

The NMEAGps class listens for the following standard NMEA GPS sentences:

GGA - 3D location and precision information

GSA - active satellites

RMC - position, velocity and time

The NMEAGps class connects to a COM port, and is intended for interfacing directly with NMEA standard GPS hardware. This requires exclusive access to the COM port, and may not be compatible with other applications on the same device which require GPS data.

If your device supports the Microsoft GPS Intermediate Driver (GPSID), we recommend using NMEAGps with a GPSID-managed Virtual COM port. This approach will allow multiple applications to access GPS information simultaneously.

See the GPSID documentation for more details: http://msdn.microsoft.com/en-us/library/bb202128.aspx.

Related articles: The IGps Interface.

See Also