Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:50 20 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Picomite and GPS

Author Message
mrbennet
Newbie

Joined: 31/01/2022
Location: Australia
Posts: 4
Posted: 03:14am 08 Feb 2022
Copy link to clipboard 
Print this post

Have loaded mmbasic to my pico with no problems and it is displaying the output from an em406 GPS.
How do I correct for local time? I did read what I needed to do a couple of days ago but for the life of me I can't recall the instructions!
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2832
Posted: 03:43am 08 Feb 2022
Copy link to clipboard 
Print this post

Manual P107
OPEN comspec$ AS GPS [,timezone_offset] [,monitor]
Will open a serial communications port for reading from a GPS receiver. See
the GPS function for details. The sentences interpreted are GPRMC,
GNRMC, GPCGA and GNCGA.
The timezone_offset parameter is used to convert UTC as received from the
GPS to the local timezone. If omitted the timezone will default to UTC. The
timezone_offset can be a any number between -12 and 14 allowing the time
to be set correctly even for the Chatham Islands in New Zealand (UTC
+12:45).
If the monitor parameter is set to 1 then all GPS input is directed to the
console. This can be stopped by closing the GPS channel.
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 03:46am 08 Feb 2022
Copy link to clipboard 
Print this post

When you open the COM port you add another parameter
From the manual

  Quote  OPEN comspec$ AS GPS
[,timezone_offset] [,monitor]
Will open a serial communications port for reading from a GPS receiver. See
the GPS function for details. The sentences interpreted are GPRMC,
GNRMC, GPCGA and GNCGA.
The timezone_offset parameter is used to convert UTC as received from the
GPS to the local timezone. If omitted the timezone will default to UTC. The
timezone_offset can be a any number between -12 and 14 allowing the time
to be set correctly even for the Chatham Islands in New Zealand (UTC
+12:45).
If the monitor parameter is set to 1 then all GPS input is directed to the
console. This can be stopped by closing the GPS channel.


Beat me to it..
Edited 2022-02-08 13:48 by palcal
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
mrbennet
Newbie

Joined: 31/01/2022
Location: Australia
Posts: 4
Posted: 06:36am 08 Feb 2022
Copy link to clipboard 
Print this post

Thankyou phil99 and palcal, timezone_offset added and now have the correct time in Merbein!
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 2006
Posted: 07:56am 08 Feb 2022
Copy link to clipboard 
Print this post

Been to Merbein a lovely town in a great part of Australia but too cold for me.
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025