CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

timing problem of two systems

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
hayee



Joined: 05 Sep 2007
Posts: 252

View user's profile Send private message

timing problem of two systems
PostPosted: Fri Feb 19, 2010 12:36 am     Reply with quote

Hi,
I have two systems and both have GPS modules (GPS-310F).
The problem I am facing is that I start 1st system, it receives date and time from GPS and displays it on the lcd. Then after some minutes I start the 2nd system, it also gets the date and time from GPS module and displays it on the lcd. But the time of 2nd system is two seconds greater than the 1st system.
After several minutes both the systems synchronize and show the same time and then it works perfectly until I power off one of the systems and again power it on.
The time of the synchronization for both systems is varying. Sometimes it takes 4 minutes to synch, sometimes it takes 10 minutes to synch. Sometime it takes few seconds to synch.
I have to start the process at the same time, but due to this problem I am not able to do that.
Can anyone tell me how to solve this problem ?
Is there any signal generated by the GPS module that the time is now synch or any other indication?
Guest








PostPosted: Fri Feb 19, 2010 6:28 am     Reply with quote

After a quick read of the GPS manual I'm not surprised at the results you're getting. The only easy way to get them 'in sync' is to have the GPS modules powered 24/7.
hayee



Joined: 05 Sep 2007
Posts: 252

View user's profile Send private message

PostPosted: Fri Feb 19, 2010 10:58 pm     Reply with quote

Thanks.
Kindly tell me that on which page this is written. Also send me the link from where you download the datasheet.
GDetienne



Joined: 20 Sep 2003
Posts: 47
Location: Brussel - Belgium

View user's profile Send private message

PostPosted: Sat Feb 20, 2010 5:36 am     Reply with quote

Hi,
each GPS give the validity of the data. This flag is present in each NMEA sentence.
hayee



Joined: 05 Sep 2007
Posts: 252

View user's profile Send private message

PostPosted: Sat Feb 20, 2010 6:35 am     Reply with quote

Is there any way to solve this problem?
Ttelmah
Guest







PostPosted: Sat Feb 20, 2010 2:10 pm     Reply with quote

I think you need to understand 'where' the time is coming from.
GPS was not really designed to give 'time'. It requires the local receiver to generate it's own local clock, which is then used to calculate the position, but this doesn't give UTC. Historically generating UTC from the local clock required the full ephemeris to be downloaded. Modern receivers 'cheat' in getting a position, by shortcutting the downloading of the ephemeris, but until this is done, accurate UTC time is not available.
When you first turn on, the 'time' you get is from the local module's own RTC, and can be very inaccurate. This is then updated when the ephemeris is downloaded. How long this takes to happen, depends on the number of satellites being seen, and the nature of the receiver. Worst case can be something like 12.5 minutes (the time for a full ephemeris from one satellite).
This is what you are seeing, with the two times being accurate, once both modules have the current ephemeris.
What error data is available, will depend on your GPS. You ought to be able to check if the almanac is within the last few hours, to know that the timing if likely to be right.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group