BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-17-2012, 06:33 AM   #1
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
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, 08:04 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
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, 08:07 AM   #3
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
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, 08:25 AM   #4
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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, 09:21 AM   #5
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
Default Re: Read GPS TimeStamp

ok i will try and give the result info..
Offline  
Old 04-18-2012, 06:22 AM   #6
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
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, 06:38 AM   #7
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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, 06:44 AM   #8
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
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, 04:54 AM   #9
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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, 07:41 AM   #10
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
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, 05:04 PM   #11
hrbuckley
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
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, 06:49 AM   #12
narasinga
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9630
PIN: N/A
Carrier: Reliance
Posts: 29
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-29-2012, 11:34 PM   #13
yegane
New Member
 
Join Date: May 2012
Model: 9300
PIN: N/A
Carrier: 3
Posts: 9
Default Re: Read GPS TimeStamp

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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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-06-2010 11:22 PM
Golf GPS Applications Stinsonddog GPS & Mapping 133 09-21-2009 04:03 PM
BB Bold GPS...assisted? Skeets General 9000 Series Discussion - Bold 21 07-30-2008 07:08 PM


6FC5610-0BA10-0AA1 SIEMENS LCD Screen Display 1PCS picture

6FC5610-0BA10-0AA1 SIEMENS LCD Screen Display 1PCS

$2998.00



Siemens 6SL3130-6AE21-0AB1 Smart Line Module 6SL3 130-6AE21-0AB1 Express Ship picture

Siemens 6SL3130-6AE21-0AB1 Smart Line Module 6SL3 130-6AE21-0AB1 Express Ship

$999.00



New Siemens 6SL3120-1TE28-5AA3 6SL3 120-1TE28-5AA3 in Box Expedited Shipping picture

New Siemens 6SL3120-1TE28-5AA3 6SL3 120-1TE28-5AA3 in Box Expedited Shipping

$2289.00



Siemens 6SL3210-1KE23-2AF1 6SL3210-1KE23-2AF1  1PC New In Box picture

Siemens 6SL3210-1KE23-2AF1 6SL3210-1KE23-2AF1 1PC New In Box

$1088.00



SIEMENS 25-135-017-553 GRAY MCC Breaker Handle Switch Mechanism QTY picture

SIEMENS 25-135-017-553 GRAY MCC Breaker Handle Switch Mechanism QTY

$339.99



LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW picture

LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW

$440.00







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