x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 

CeUseGPSDateTime

Command line utility - GPS time set
You must be registered and logged into HPC:Factor in order to contribute to the SCL.

Description

When your WinCE powered device is hard reset, or batteries removed, the clock goes all the way back to 01/02/2004, which takes an age to flip in controlpanel through all those months to present day. Searched for solution to set this via an satellitet date time, because my CE device is a navigator. Didn't find a related prog in native code, all in C# ...
Therefore decided to write an own utility: CeUseGPSDateTime. This command-line application - written in native code, hence no .NET CF is needed - helps you keep the internal clock of your WinCE powered GPS device accurate by synchronizing it with the GPS date time signal.

How it works:

Walks chain of drivers as enumerated under HKEY_LOCAL_MACHINE\Drivers\Active and examines whether a serial port COM/VSP is given. If one found then tries to read from this serial port. If read was sucessful it tests whether data got are NMEA sentences of type RMC (supported by SiRF, Garmin, Magellan and Lowrance) and/or ZDA which both contain date time information in UTC format.
Code:

$GPRMC,UTC,POS_STAT,LAT,LAT_REF,LON,LON_REF,SPD,HDG,DATE,MAG_VAR,MAG_REF*CS<cr><lf>
$GPZDA,UTC,DD,MM,YYYY,TH,TM,*CS<cr><lf>

If success then WinCE clock's date time are updated with the satellite date time got.

Note: This app expects the GPS receiver to be set up to transmit at least one supported NMEA-sentence every second.

When it does fail:

• If no satellite fix already done
• If COM port doesn't provide NMEA-1083 sentences.
• If COM port is locked up - as this is the case with most navigation softwares which exclusively use the GPS COM port.

Usage:

Command line example: CeUseGPSDateTime.exe
MortScript example: Run("<Full-Path-To-CeUseGPSDateTime-Executable>\CeUseGPSDateTime.exe")

Tags

timegpscommand lineconsolecmd

   
License Freeware
The program is completely free to use.
   
Popularity 2461
Total Downloads  1
   
Submitted By torch
Submitted On 13 October 2022

Comments

No comments have been submitted against this application. Be the first!

You must be signed-in to post comments in the SCL. Not registered? Join our community.

Software Compatibility List: The SCL is provided for free to the Handheld PC Communty and we do not carry advertising to support our services. If you have found the SCL useful, please consider donating.