Location Fix Time

200 views
Skip to first unread message

Iñaki

unread,
May 22, 2014, 11:03:49 AM5/22/14
to tas...@googlegroups.com
There are two types of location and locations time, GPS and NET. Ok.

If there are satellite coberture I can get %LOC (Location) and %LOCTMS (Location Fix Time Seconds), but if I turn off the mobile and go into my house (without coberture) and switch on the mobile, %LOCTMS is not set but %LOC is! (and different from %LOCN). What time correspond this %LOC?

Best regards.

Cindy

unread,
May 22, 2014, 11:55:25 AM5/22/14
to tas...@googlegroups.com

What time correspond this %LOC?

LOC - LOCTMS = GPS
LOCN - LOCNTMS  = WIFI/Mobile Data

To determine the latest update I like to use the following:
GetLocation (Any);
if (LOCTMS > LOCNTMS)
   flash('GPS' + LOC);
else
   flash ('WIFI/Mobile Data' + LOCN);

Cindy


Cindy

unread,
May 22, 2014, 11:57:15 AM5/22/14
to tas...@googlegroups.com
Note, it takes about a minute for my phone (Note3) to switch from GPS to WIFI.

Iñaki

unread,
May 22, 2014, 12:44:40 PM5/22/14
to tas...@googlegroups.com
Thanks Cindy. You are right, but imagine this situation, you switch on the mobile into a build and want to know the time from the last GPS loc, when you try to do "LOCTMS > LOCNTMS", LOCTMS is not set but LOC is set (whitout do GetLocation) . I want to know the LOCTMS of this LOC.

You can reproduce this situation switching off the mobile and turn on again and getting the four variables without start the GPS.

Best regards.

Cindy

unread,
May 22, 2014, 2:52:52 PM5/22/14
to tas...@googlegroups.com
I assume that your referring to creating a KIDS app when you say build.  I do that and I also can monitor the time of the last LOCTMS and/or LOCNTMS read. Example...

        A1: Stop Location [ Source:Any ] 
A2: Get Location [ Source:Any Timeout (Seconds):240 Continue Task Immediately:OFF keep Tracking:On ] 
<locloop>
A3: Flash [ Text:GPS - %LOC Long:Off ] If [ %LOCTMS > %LOCNTMS ]
A4: Flash [ Text:NET - %LOCN Long:Off ] If [ %LOCNTMS > %LOCTMS ]
A5: Variable Set [ Name:%waittrigger To:%LOC|%LOCN Do Maths:Off Append:Off ] 
A6: Wait Until [ MS:0 Seconds:15 Minutes:0 Hours:0 Days:0 ] If [ %waittrigger !~ %LOC|%LOCN ]
A7: Goto [ Type:Action Label Number:1 Label:locloop ] 

Switch GPS on and off and you will see the appropriate flash (GPS or NET) display.

Cindy

Brandon Horwath

unread,
May 22, 2014, 5:45:23 PM5/22/14
to tas...@googlegroups.com
I think you're saying the variable value for %LOCTMS is cleared before it can be evaluated.

If so, use a profile based on %LOCTMS being set, and set %Loctms to %LOCTMS

Then, even if %LOCTMS is cleared of value during the period you want to evaluate just use %Loctms instead of %LOCTMS.

Hope this helps, if I understood you correctly.

Iñaki

unread,
May 23, 2014, 2:18:55 AM5/23/14
to tas...@googlegroups.com
Many thanks Cindy & Brandon.

Yes Brandon, you understand me, because on occasions, when you do not have GPS coberture for example into a building (sorry Cindy for my english, I'm Spanish, you cloud not understand me) and you have the phone switch off, when you switch on the phone %LOCTMS is not set but %LOC is set.

Best regards.
Reply all
Reply to author
Forward
0 new messages