Home PageFacebookRSS News Feed
PocketGPS
Web
SatNav,GPS,Navigation
Pocket GPS World - SatNavs | GPS | Speed Cameras: Forums

Pocket GPS World :: View topic - Calculating GTS to UTC offset from sirf binary protocol
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in for private messagesLog in for private messages   Log inLog in 

Calculating GTS to UTC offset from sirf binary protocol

 
Post new topic   Reply to topic    Pocket GPS World Forum Index -> Advanced GPS Lounge
View previous topic :: View next topic  
Author Message
ckuethe
Occasional Visitor


Joined: Aug 08, 2004
Posts: 18
Location: ECEF X/Y/Z: -1514741/-3483783/5106784 m

PostPosted: Thu Aug 12, 2004 6:42 pm    Post subject: Calculating GTS to UTC offset from sirf binary protocol Reply with quote

I'm working on adding support into OpenNTPD (and possibly ntp.org ntpd too) for using a SiRF gps as a reference clock. I've got a prototype working pretty well; with a very naive filter and no kernel time discipline I've got my laptop's clock stabilized to +/- 0.01sec. The big problem is "how do I calculate the number of leap seconds, easily?"

I know that the data I need is in message type 8, I'm plodding my way through the ICD-GPS-200C which tells me the magic is mostly in page 4, subframe 18. By their InfiniteWisdom(tm) SiRF have completely bollixed the 50bps data stream, and made it a royal pain to parse. Even moreso than the format already is. So to anyone with a SiRF dev kit, or anyone brave/foolhardy enough to dive into the aforementioned spec: care to share any observations?

I admit it... I'm lazy. I hate re{invent,design,implement,test}ing the wheel unless it's absolutely unavoidable. Thus my plea for code or enlightenment. Interested perl hackers can grab a snapshot of the code from my homepage..

ps. yes, I know I could flip back to nmea mode to grab the UTC time and use that to calculate the leap second offset, but that's a really ugly hack.
_________________
http://www.ualberta.ca/~ckuethe/gps/
Back to top
View user's profile Send private message Visit poster's website
ckuethe
Occasional Visitor


Joined: Aug 08, 2004
Posts: 18
Location: ECEF X/Y/Z: -1514741/-3483783/5106784 m

PostPosted: Mon Aug 16, 2004 6:37 am    Post subject: Reply with quote

My, aren't we all chatty this week!

Other leads turned up no results, so it looks like I'm stuck with the unenviable task of doing the calculations myself. Between the hassle of re-re-re-re-reading the ICD-GPS-200, and the hunting down of compiler bugs as I reimplement this all in C, I'm starting to feel much more sympathetic to geomatics companies who charge thousands per copy of their software.
_________________
http://www.ualberta.ca/~ckuethe/gps/
Back to top
View user's profile Send private message Visit poster's website







Posted: Today    Post subject: Pocket GPS Advertising

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pocket GPS World Forum Index -> Advanced GPS Lounge All times are GMT + 1 Hour
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

Make a Donation



CamerAlert Database

Click here for the PocketGPSWorld.com Speed Camera Database

Download Speed Camera Database
22.034 (27 Mar 24)



WORLDWIDE SPEED CAMERA SPOTTERS WANTED!

Click here to submit camera positions to the PocketGPSWorld.com Speed Camera Database


12mth Subscriber memberships awarded every week for verified new camera reports!

Submit Speed Camera Locations Now


CamerAlert Apps



iOS QR Code






Android QR Code







© Terms & Privacy


GPS Shopping