Location problems

8 views
Skip to first unread message

Baz 8755

unread,
Jul 26, 2010, 6:29:38 AM7/26/10
to Tasker
I have 2 profiles, one called office and the other called home

They both use cell location and my screen off timeout is the default
10 minutes.

Home and office are 10 miles apart as the crow flies.

The home profile uses cell location with a 2km radius and disabled
office profile on entry and re-enables it on exit.

The office profile is similar but also plays a sound on enter/exit and
has a time of 0900-1730.

This morning I got into work just after 0900 and didn't unlock my
phone until 1000. It was that point that the office profile played the
sound and became active. It is as if the phone did not detect it's
location until the phone was unlocked.

BossMan

unread,
Jul 26, 2010, 11:04:58 AM7/26/10
to Tasker
What phone do you have? Milestone/Droid maybe?

BR,
A.

Baz 8755

unread,
Jul 26, 2010, 3:10:45 PM7/26/10
to Tasker
HTC Desire Running Stock Android 2.1
> > location until the phone was unlocked.- Hide quoted text -
>
> - Show quoted text -

Baz 8755

unread,
Jul 28, 2010, 5:22:53 AM7/28/10
to Tasker
I have now removed the disabling from the profiles so that both
profiles are always enabled. But again this morning I got to the
office and checked my phone at 0930 to find that the home profile was
still active. Within 20 seconds of unlocking the phone the profiles
switched from home to office.

The profiles are using cell location and there is definitely something
not right with the way Tasker is processing cell location with screen
off.

Baz 8755

unread,
Jul 29, 2010, 2:29:59 PM7/29/10
to Tasker
Same problem occured today, got the office office waited half an hour,
unlocked phone and a few seconds later the profiles started to notice
location change.

So I tried using Wi-Fi near, that did seem to work with the phone
locked but as my phone normally has wi-fi turned off during office
hours the HTC Wi-Fi toggle widget seemed to be stuck in a neither off
or on state. It was in a state that it normally is in when making the
transisition between off and on.

So pretty please can we get the cell location with screen off fixed as
it is very useful :)

BossMan

unread,
Jul 29, 2010, 3:32:15 PM7/29/10
to Tasker
Is your data connection enabled when your screen is off? You need to
have your data connection available when using the net location.

Or maybe your off screen timeout is too long?

For logging purposes, you can make a profile that will run every
couple of minutes and e.g. write variables LOC, LOCA and LOCP to file
- this will give you info whether you get proper information from the
system.

BR,
A.

Baz 8755

unread,
Jul 29, 2010, 3:41:53 PM7/29/10
to Tasker
On Jul 29, 8:32 pm, BossMan <adam.marynow...@gmail.com> wrote:
> Is your data connection enabled when your screen is off? You need to
> have your data connection available when using the net location.

Not sure what you mean about data connection enabled?
I am not actively turning anything off, except for Wi-
Fi,GPS,SYNC,Bluetooth

>
> Or maybe your off screen timeout is too long?

All timings are set to default so I guess my off screen is set to
10mins and I have obviously had the phone in the active location for
over an hour before unlocking to discover problem.

BossMan

unread,
Jul 29, 2010, 4:27:48 PM7/29/10
to Tasker
> Not sure what you mean about data connection enabled?
> I am not actively turning anything off, except for Wi-
> Fi,GPS,SYNC,Bluetooth
>
I mean your apn for mobile data connection is set up properly and
you're connected to internet when the display is off.

Maybe you use something like juice defender that turns your mobile
data off when the display is off?

BR,
A.

Baz 8755

unread,
Jul 29, 2010, 5:31:03 PM7/29/10
to Tasker
I used to use juicedefender but installed a few weeks ago before
installing Tasker as I found it did nothing to improve my battery :)

Baz 8755

unread,
Jul 29, 2010, 5:38:44 PM7/29/10
to Tasker


On Jul 29, 10:31 pm, Baz 8755 <baz8...@googlemail.com> wrote:
> I used to use juicedefender but installed a few weeks ago before
> installing Tasker as I found it did nothing to improve my battery :)

I have just had an interesting thought. The problem mainly seems to be
going into the office. Give that when I am at home the phone is on Wi-
Fi and therefore not using net data. I wonder if somehow the phone
does not try to access net data and disconnect Wi-Fi until it is
unlocked.

BossMan

unread,
Jul 29, 2010, 6:42:33 PM7/29/10
to Tasker
I'm not sure if I got everything correctly, but here's my possible
explanation of this situation:
- your phone is configured to turn wifi off when the display is off (I
think this the default setting),
- when you're at home the phone gets net location positioning via
wifi,
- once you leave home, the phone does not switch to 3g/mobile data
(because it's either misconfigured or disabled) and does not get the
updated fixes anymore,
- when you get to your workplace and turn the display on, the phone
connects to the corp network and gets the net fix.

What do you say? :)

BR,
A.

Baz 8755

unread,
Jul 30, 2010, 1:38:45 AM7/30/10
to Tasker


BossMan wrote:
> I'm not sure if I got everything correctly, but here's my possible
> explanation of this situation:
> - your phone is configured to turn wifi off when the display is off (I
> think this the default setting),
> - when you're at home the phone gets net location positioning via
> wifi,
> - once you leave home, the phone does not switch to 3g/mobile data
> (because it's either misconfigured or disabled) and does not get the
> updated fixes anymore,
> - when you get to your workplace and turn the display on, the phone
> connects to the corp network and gets the net fix.
>
> What do you say? :)
>
> BR,
> A.
>
No that's completely wrong...

My phone is configured to connect to my home Wi-Fi network, so that if
Wi-Fi is on it will use it for data connections when I am at home. It
is set to turn off Wi-Fi after 15 minutes of no data (default
setting). So when I am at the office we have no Wi-Fi so the phone has
to use APN. Nothing is misconfigured and all works fine.

My theory as to a possible reason Tasker is not picking up my work
location goes like this.

When at home the phone is on Wi-Fi and all is well, I leave the house
with the screen off and do not touch the phone until I have been at
work for over an hour. The profiles that are using cell location have
not noticed my movement. I was wondering that because the phone was
last using Wi-Fi and may not have needed to make a data connection
since leaving the house is it possible that it has not made a full
connection to APN. So when I unlock the phone it tries to make a data
connection and connects to APN and hence the cell location base
profiles start to work.

I will try.and prove my theory today disabling Wi-Fi before leaving
the house. If it works it will prove that the switch to APN is only
made when required.

Baz 8755

unread,
Jul 30, 2010, 4:16:49 AM7/30/10
to Tasker
The disabling Wi-Fi idea did not work either.

I went to the unlock screen, saw that the phone was clearly showing a
3g connection but profiles had not switched. The phone had been in the
office for 30 minutes, I unlocked the phone and the profiles switched.

Dave Fisher

unread,
Jul 30, 2010, 4:24:16 AM7/30/10
to tas...@googlegroups.com
Hi Baz,

Baz 8755 <baz...@googlemail.com> wrote :

There is definitely something strange going on when the phone is sleeping - I have a similar problem with my setup - the Night profile doesn't disable (and nor did WiFi this morning), until I woke the phone up half way to the station. I have sent a log to Pent this morning, hopefully we can get to the bottom of this.

BR
Dave F


BossMan

unread,
Jul 30, 2010, 4:57:23 AM7/30/10
to Tasker
Strange then.

I have a very similar setup and it works without any problems. I have
just unlocked my phone and I can see the location profile triggered
more than 30mins ago, around the time I arrived in the office (+/- off-
display check time).

Try getting some more information, at least the location info Tasker
gets from the system (I wrote it in some earlier posts). If your phone
is rooted, you could grab the log from the whole situation (starting
at home and stopped when in the office): http://groups.google.com/group/tasker/msg/5a6252b4147c4088

In the log you should see if the Tasker's LOC-NET monitor is polling
for updates or not and what it gets from the location service.

BR,
A.

BossMan

unread,
Jul 29, 2010, 6:19:18 PM7/29/10
to Tasker
I'm not sure I got everything correctly, but here is a possible
explanation:
-when you're at home your phone uses wifi and thanks to that the net
positioning works ok,
-once you leave home you're no longer connected and for some reason
the phone does not fall back to 3g/mobile data (because it's either
not configured correctly or disabled) and the net location is no
longer updated,
-possibly your wifi settings are also configured to turn off wifi when
the display is off (this is the default settings, I guess),
-you arrive at the office and when you turn the screen on the phone
connects to the corp wifi and immediately gets the network fix too.

What do you say? :)

BR,
A.

On 29 Lip, 23:38, Baz 8755 <baz8...@googlemail.com> wrote:

Baz 8755

unread,
Jul 30, 2010, 5:48:19 AM7/30/10
to Tasker
I will try suggestions over next couple of days, however was wondering
if your office profile includes date/time checking. Here are my
profiles

Office profile
Context 1 - Mon-Fri
Context 2 - 0900-1730
Context 3 - 2km cell work location
Enter - Music play
Silent on
Bluetooth off
GPS off
Wi-Fi off
Exit - Music play
Silent off
Bluetooth on
GPS on

Home profile
Context - 3km cell around home
Enter - Profile asleep on
Wi-Fi on
Exit - Profile asleep off
Wi-Fi off

BossMan

unread,
Jul 30, 2010, 6:07:21 AM7/30/10
to Tasker
I have a cascade of profiles, which set various variables and so on.

My WorkLocation profile looks more-less like this:
Context - 2km cell, net location
Enter - WORKLOC = 1
Enter - Notify "Work entered"
Exit - WORKLOC = 0
Enter - Notify "Work exit"

Nothing interesting there, I'm afraid :) But using notifications I can
confirm the exact time when the profile becomes active.

What does your Profile Asleep do? Do you toggle your mobile data in
any profile (or manually maybe)?

BR,
A.

Baz 8755

unread,
Jul 30, 2010, 6:48:37 AM7/30/10
to Tasker
Asleep purely checks if after 2230 and on charge go to silent mode.
Obviously if not at home then it is disabled.

I never disable APN in any way and the only other app I have running
is 3g watchdog which will notify me when I have exceeded 1gb pcm
(which I have not done).

Tasker is configured with all default settings. I was wondering if
setting to run as background would help.

As I have said before, I suspect the home profile may actually be
working so am wondering if combing with date/time is upsetting work
profile

Baz 8755

unread,
Jul 30, 2010, 6:52:12 AM7/30/10
to Tasker
Also what phone are you using, I wonder if its specific to the Desire

BossMan

unread,
Jul 30, 2010, 6:52:45 AM7/30/10
to Tasker
As I said: more info is needed. You need to either get some logs, or
at least add notifications when entering/leaving both your home and
your office.

BR,
A.

BossMan

unread,
Jul 30, 2010, 7:01:56 AM7/30/10
to Tasker
I'm using Moto Milestone. Check the other thread - there is also a
problem on Desire with switching profiles while sleeping.
http://groups.google.com/group/tasker/browse_frm/thread/6db3cc02e1e92121#

BR,
A.

Baz 8755

unread,
Jul 31, 2010, 10:50:50 AM7/31/10
to Tasker
Will wait and see how FroYo update affects the situation, hopefully
this weekend

On Jul 30, 12:01 pm, BossMan <adam.marynow...@gmail.com> wrote:
> I'm using Moto Milestone. Check the other thread - there is also a
> problem on Desire with switching profiles while sleeping.http://groups.google.com/group/tasker/browse_frm/thread/6db3cc02e1e92...
>
> BR,
> A.
>
> On Jul 30, 12:52 pm, Baz 8755 <baz8...@googlemail.com> wrote:
>
>
>
> > Also what phone are you using, I wonder if its specific to the Desire- Hide quoted text -

Baz 8755

unread,
Aug 15, 2010, 11:00:37 AM8/15/10
to Tasker
Nope Froyo did not fix :(

Anyone else with a Desire having the same issues?

Baz 8755

unread,
Aug 22, 2010, 2:30:15 PM8/22/10
to Tasker
Reply all
Reply to author
Forward
0 new messages