Printable versions
This Page
All Pages
PDF (2.0MB)

Index

Component
GpsToolsNET

Class
NmeaParser

Properties
PortEnabled
BaudRate
ComPort
GpsDatum
NoEvents
Parent
AllEventsGeneric
ChecksumMandatory

Events
OnGpsFix
OnSatellites
OnMovement
OnQuality
OnComStatus

Generic
GGA
GLL
RMC

Methods
Dispose
EventInterval
Parse
GetGpsFix
GetSatellites
GetMovement
GetQuality
GetComStatus
WriteData

NmeaParser.GetSatellites GpsTools v1.31 and later

Get satellite information. This happens when a set of GSV commands has been received.

If Timeout is set to a value different from 0 GetSatellites will not return until a new value is received from the GPS or the method times out.

(v1.34 and later) If Timeout is set to 0 GetSatellites returns immediately with the latest satellite values. If no values has been received or the connection to the GPS is no longer valid Nothing is returned. Note that event though ComStatus.ValidNmea might be True indicating that the GPS is up and running, it does not mean the GPS sent any satellites information.

NmeaParser.NoEvents must be set to True.

Another way of getting a Satellites object is by using events.
See NmeaParser.OnSatellites for more details.

Visual Basic Example:
' Time out after 3 seconds if no valid information received
Set objSats = objParser.GetSatellites(3000)

If objSats Is Nothing Then
  ' Error! No valid fix received.
  ' GPS is turned off, not connected
  ' or cannot receive enough signals from the satellites.

Else
  ' OK!
End If

JavaScript Example:
// 3000 ms time out
objStas = objParser.GetSatellites(3000);
if(objSats == null)
{
  // Error!
}
else
{
  //OK!
}

Syntax
objSatellites = object.GetSatellites(TimeOut)

Part Type Description
object GpsToolsNET.NmeaParser An object that evaluates to an GpsToolsNET.NmeaParser object.
objSatellites GpsToolsNET.Satellites
Received collection of satellites.
TimeOut int Time in milliseconds before this function times out. If it times out Nothing is returned.



Compact Framework
© 2016 Franson Technology AB, All rights reserved, Contact | | Affiliate | Login