Serial port and GPS

Utils Members

Utils overview

Public Static (Shared) Properties

ExedirThe directory where the executing assembly is located
ExepathThe full path to the executing assembly

Public Static (Shared) Methods

coord2dec Converts the given coordinate string to decimal degrees.
displayOffSwitches display of the mobile device off
dontSuspendCauses that the system won't suspend
fromGGAParses coordinates from an NMEA GGA string
getCfgFileName Returns the name of the configuration file for this executable.
getDateFileName Creates a file name with the given extentsion and a timestamp in the name.
getExtFileName Creates a file name consisting of the exe name and the given extension
isMobileChecks if the platform is windows ce
isWindowsChecks if running under MS Windows
nmeaChksumComputes nme checksum for the given NMEA string
psrf103Creates SIRF propertiary NMEA input message PSRF103
resTranslates the given string into the local language
toUTMConverts latitude to UTM northing

Private Static Constructor

Utils Constructor Initializes the static fields of the Utils class.

Private Static (Shared) Fields

AEquatorial Radius in meters, UTM
BPolar Radius in meters, UTM
GGASEPSSeparators for spliting NMEA GGA strings
PSRF103PATSIRF NMEA PSRF103 message pattern
RECOORDRegular expression used for parsing coordinates
RMResource manage for accessing localized messages

Private Static (Shared) Methods

dms2decConverts GGA numbers deg, min, sec to decimal degrees
ExtEscapeUsed in order to switch off display
GetDCRetreives device context
SystemIdleTimerResetResets idle time and prevents suspending

Public Instance Constructors

Utils Constructor Initializes a new instance of the Utils class.

Public Instance Methods

Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetType (inherited from Object) 
ToString (inherited from Object) 

Protected Instance Methods

Finalize (inherited from Object) 
MemberwiseClone (inherited from Object) 

Internal Instance Methods

obj_address (inherited from Object) 

See Also

Utils Class | serial Namespace