Serial port and GPS

Utils.psrf103 Method 

Creates SIRF propertiary NMEA input message PSRF103

[Visual Basic]
Public Shared Function psrf103( _
   ByVal msg As Psrf103msg, _
   ByVal mode As Boolean, _
   ByVal rate As Byte, _
   ByVal chksumEnable As Boolean _
) As Byte()
[C#]
public static byte[] psrf103(
   Psrf103msg msg,
   bool mode,
   byte rate,
   bool chksumEnable
);

Parameters

msg
type of NMEA message, GGA, GLL etc.
mode
true for query, false for set rate
rate
rate in Hz, 0 for disable, max 255
chksumEnable
true for enable checksum

Return Value

The PSRF103 message incl. checksum and CR, LF

Remarks

The message PSRF103 sent to the serial port of the SIRF GPS chip controls if and how frequent the NMEA messages GGA, GLL, GSA, GSV, RMC and VTG have to be sent. The format of the message:

$PSRF103,msg,mode,rate,cksumEnable*Checksum\r\n
Msg is 0 for GGA, 1 for GLL, 2 for GSA, 3 for GSV, 4 for RMC and 5 for VTG. Mode is 0 for set and 1 for query. Rate the freuqnecy of the message generation in Hz. CksumEnable is 0 fr disabling the checksum generation and 1 for enabling it. Checksum is the nmea checkus as computed in Utils.nmeaChksum(). Examples of PSRF103 messages:
$PSRF103,00,01,00,01*25\r\n
query GGA message with checksum enabled.
$PSRF103,05,00,01,01*20\r\n
enable VTG message for 1Hz with checksum enabled. Based on "GPS Protocol Reference Manual", P/N: 980-0330-A, Rev. 1.30, Sectron, http://gpsd.berlios.de/vendor-docs/sirf/

See Also

Utils Class | serial Namespace