BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-17-2012, 07:33 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Read GPS TimeStamp

Please Login to Remove!

Hi Friends,

I am developing GPS Application and i need a small help. I am reading GPS Data using location.isvalid() function, with in this function i need to get the time stamp value of that packet (In GPS Packet timestamp).

Always i m getting only mobile time.

How can i get the GPS Timestamp value.
Offline  
Old 04-17-2012, 09:04 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default Re: Read GPS TimeStamp

AFAIK, Location.getTimeStamp() is the only way to retrieve the time of the GPS fix.

Why does this not work for you?
Offline  
Old 04-17-2012, 09:07 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: Read GPS TimeStamp

hi,

when i use location.gettimestamp() i am getting the time but the time is current system time (mobile time)
ex: if actual time is 6:00 Am then if i change the actual time to 9:00 PM then when i receive the location the time which i receiving is 9:00 PM only instead of 6:00AM that is my problem.
Offline  
Old 04-17-2012, 09:25 AM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Read GPS TimeStamp

That is as per the API documentation. If you want to get the time from the GPS data stream you will have to use the getExtraInfo() method to retrieve the NMEA formatted data.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 04-17-2012, 10:21 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: Read GPS TimeStamp

ok i will try and give the result info..
Offline  
Old 04-18-2012, 07:22 AM   #6 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: Read GPS TimeStamp

HI,

I have tried that solution which you provided "location.getExtraInfo ("application/X-jsr179-location-nmea");" and i m getting the time value at that time.

I have changed the actual time(16:13 to 20:13) and i have observed the received data here i m failed.

ex: please check the attached document for this result..

i have just used the extrainfo() and got the time value from 16:00 to 16:12 and i have changed mobile time to 20:13 (which indicates red color font in attached doc) and then i got time information as 20:13, 20:14 .. 20:32 etc. instead of getting 16:13,16:14..

this is my problem..
please help me here..
Attached Files
File Type: doc Extrainfo_analyssis.doc (39.5 KB, 1 views)
Offline  
Old 04-18-2012, 07:38 AM   #7 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Read GPS TimeStamp

Sorry, I'm not downloading a MS Word file from the internet.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 04-18-2012, 07:44 AM   #8 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: Read GPS TimeStamp

check this image..
Attached Images
File Type: png Extrainfo_analyssis.png (54.0 KB, 5 views)
Offline  
Old 04-19-2012, 05:54 AM   #9 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Read GPS TimeStamp

It appears that you are expecting the time of the fix to be derived from the GPS data. This is not an unreasonable expectation and most commercial GPS devices do this. I have not been able to locate anything specification for either the BlackBerry or NMEA that specifies this as required. BlackBerry smartphones are able to synchronize time with the cellphone network which, if proprly maintained, would be much more accurate than obtaining the time from a GPS chip that is not designed to provide time synchronization. If your requirement is to synchronized time with the GPS system then you should be looking at devices that are certified for that function.
__________________
My other Blackberry is a PlayBook.
Offline  
Old 04-19-2012, 08:41 AM   #10 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: Read GPS TimeStamp

how do i get that certified funcation?
as you said mobile will sync. with mobile network. Some times some of our organization mobiles are unable to sync. with network time. (it reflects the actual time in mobile i.e if current time is 5.30pm in mobile it shows 1.56 pm) .

so based on above results i have to implement the time with gps sync.

plz help here..
Offline  
Old 04-19-2012, 06:04 PM   #11 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Read GPS TimeStamp

That is just it, given what you have shown us you aren't going to get time from the GPS system.

Are you sure all your devices are set to get time from the network? If your users use the Desktop Manager are they syncing the time when the connect to the PC? Are their PC clocks accurate?
__________________
My other Blackberry is a PlayBook.
Offline  
Old 04-28-2012, 07:49 AM   #12 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default Re: Read GPS TimeStamp

hi,

when i use only network selection for getting times i have failed. some times our persons will move to remote areas regularly so i cannot do this.

So is there any sugissions regarding this issues.
Offline  
Old 05-30-2012, 12:34 AM   #13 (permalink)
New Member
 
Join Date: May 2012
Model: 9300
PIN: N/A
Carrier: 3
Posts: 9
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Read GPS TimeStamp

hi,
thanks for the info, I will try it
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Read GPS TimeStamp
Thread Thread Starter Forum Replies Last Post
Cell Triangulation not working Globetrotterdoug General 9700 Series Discussion - Bold 2 15 04-07-2010 12:22 AM
Golf GPS Applications Stinsonddog GPS & Mapping 133 09-21-2009 05:03 PM
BB Bold GPS...assisted? Skeets General 9000 Series Discussion - Bold 21 07-30-2008 08:08 PM





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.