Support Forums
How can I set the Date with GPS

Hello together,

I try to set the Date with the reading GPS Date but it doesn't work.

$GPRMC,094924.000,A,4856.8229,N,00824.6182,E,0.47,331.35,150118,,,A69
2SERIAL("\e\m[$GPRMC],%
f,%1s,%f,%1s,%f,%1s,%f,%*f,%2d[420CV]%2d[421CV]%2d[422CV]",W)

420CV("Day") 'Show Day
421CV("Month") 'Show Month
422CV(W)=422CV+2000
422CV("Year") 'Show Year

Alarm(414CV==1)"Date updated"{D=420CV/421CV/422CV}
ALARM(414CV!=1)" Set ATTN LED "{SATTN}

The GPS reading works but I couldn't write the CV's in this form as date in the logger.
Maybe someone have a idea.

Thanks a lot.
Ralf

Hello together, I try to set the Date with the reading GPS Date but it doesn't work. $GPRMC,094924.000,A,4856.8229,N,00824.6182,E,0.47,331.35,150118,,,A*69 2SERIAL("\e\m[$GPRMC],%*f,%*1s,%*f,%*1s,%*f,%*1s,%*f,%*f,%2d[420CV]%2d[421CV]%2d[422CV]",W) 420CV("Day") 'Show Day 421CV("Month") 'Show Month 422CV(W)=422CV+2000 422CV("Year") 'Show Year Alarm(414CV==1)"Date updated"{D=420CV/421CV/422CV} ALARM(414CV!=1)" Set ATTN LED "{SATTN} The GPS reading works but I couldn't write the CV's in this form as date in the logger. Maybe someone have a idea. Thanks a lot. Ralf

Hi Ralf,

You can't manipulate CVs into date format dd/mm/yyyy.
Unfortunately it is not possible to assign GPS reading into date information in DT using a normal date channel.

There is one possible method to update dataTaker time using GPS:
Because in dataTaker, date is represented by seconds, you have to turn those year/ month/ date reading into number representing seconds since 1 January 1989 00:00:00. Then set that number as dataTaker date.

Best regards,
Rudy Gunawan

Hi Ralf, You can't manipulate CVs into date format dd/mm/yyyy. Unfortunately it is not possible to assign GPS reading into date information in DT using a normal date channel. There is one possible method to update dataTaker time using GPS: Because in dataTaker, date is represented by seconds, you have to turn those year/ month/ date reading into number representing seconds since 1 January 1989 00:00:00. Then set that number as dataTaker date. Best regards, Rudy Gunawan
29
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft