Notices


Reply
Thread Tools
Posts: 3 | Thanked: 0 times | Joined on Jan 2010
#81
ah, got it.
Thanks for your help and for the time you spend on this project.

greetings

rubberduck
 
Posts: 214 | Thanked: 140 times | Joined on Aug 2010
#82
Originally Posted by rlinfati View Post
@rubberduck the version 4.6 is not the same version of traysh

the actual method is use the cell tower because is power efficient, the gps will drain your battery, you can not change it.
This shpuld be up to me! I ABSOLUTELY want the real GPS, but I only want the GPS to turn on at every update.

ALL latitude clients I got to work on the n900 was unusable either because
a) they used cell tower location only
or
b) they turned on the gps and kept it on constantly, even though I asked it to update every 10 minutes...

Please solve this!

/Z
 
Posts: 177 | Thanked: 199 times | Joined on Nov 2007 @ Concepcion, Chile
#83
@MasterZap

the agps need about 15s in optimal condition to get your position in good condition (in a park) , in a poor condition (inside of a house/office) maybe never get yours position...

then, the problem is when stop the gps... if i stop early the accuracy will be worst of the cell-tower. if i wait a lot of time the battery drain...

i'm not sure what is a good method using gps without a battery drain... maybe using qt-mobile... but i'm not sure...

tip: if you open another app using the gps ( nokia maps, location test, chat, etc ) the google latitute will get the gps position ( by design )
__________________
User:rlinfati
 
Posts: 324 | Thanked: 739 times | Joined on Jun 2009 @ São Paulo, Brazil
#84
Originally Posted by rlinfati View Post
@rubberduck the version 4.6 is not the same version of traysh

the actual method is use the cell tower because is power efficient, the gps will drain your battery, you can not change it.

the interval is in seconds, and not new position are submit before of last_update_time + interval

the daemon is not running at the startup, i need more testing before of enable this option ( roaming, 3g can be expensive and a battery drain )

the version of traysh have some bugs, and need to be fixed before to submit to extras... but i backport some features from their code.

btw, if you run from terminal, can see a log of the operations...
It's good to know you're back in development. I didn't thought you did, that's why I didn't upload my hacks this week.

By moving the gui out of the daemon to a separate file and using QCoreApplication instead of QApplication, I got a working daemon that only takes 2MB of RAM, including shared libraries. The updates are working as they should now, the program won't connect to internet and will update when connected. Also, I implemented some code to not update the location with a less accurate position, it considers the uncertainty of the new and of the previous positions. As a daemon, it is working really very well now, tough bigger update intervals are still missing.

To reduce battery drain, might we could turn the gps off and turn it on only when we want a new position. Of course this aproach will only work if the update interval is big.

About using cell tower, here where I am it's not possible to get a position with a better accuracy than 800 meters, and that's a lot. My girlfriend has an iPhone 4 and her positions are very precise, so I'm pretty sure the official Google updater uses the GPS. It would be nice if we could measure the battery drainage...

I think we should split the app into 3 standalone binaries: a very lightweight daemon that only updates the position, a settings GUI witch can be run from the system settings but also from the daemon or the latitudeGUI (this already happens if the username is wrong) and the latitudeGUI witch is only a viewer and witch may run the daemon if it's not already running (to provide the updates) and the settings, to configure it. But that's your decision.

I'm attaching a new deb, please have a try. As I mentioned, the gui won't work, it won't load at all, but the daemon is working really very well.

Probably the changes I made to the code I was working on won't fit in the git anymore, will they? I'm a git newbie. How can I upload my changes? I'm attaching my current code here as well.
Attached Files
File Type: deb googlelatitude_0.5-1_armel.deb (59.5 KB, 104 views)
File Type: gz googlelatitude_0.5-1.tar.gz (296.0 KB, 102 views)

Last edited by traysh; 2011-01-24 at 08:04.
 

The Following User Says Thank You to traysh For This Useful Post:
Posts: 324 | Thanked: 739 times | Joined on Jun 2009 @ São Paulo, Brazil
#85
Originally Posted by rlinfati View Post
i'm not sure what is a good method using gps without a battery drain... maybe using qt-mobile... but i'm not sure...
qt-mobility would be a nice idea, at least it would reduce the #ifdefs and we would be instantly ready for meego (I guess)
 
Posts: 650 | Thanked: 497 times | Joined on Oct 2008 @ Ghent, Belgium
#86
How about having some options on its positioning behaviour?
1) only use celltower info
2) use celltower + GPS it that happens to be on when updating
3) use GPS (activate it)

option 3 could have another setting that specifies the amount of time to wait fot it to get a fix (example: 30 seconds or 1 minute), so the user can limit batt drain.

Splitting daemon, settings and viewer sems like a splendid idea. The daemon should be as lightweight as possible.

Thanks a lot for your work!
__________________
Affordable mobile internet in Belgium: Try Mobile Vikings
2 GB, 1000 SMS and 15 euro of talk time for.... 15 euro
 
Posts: 177 | Thanked: 199 times | Joined on Nov 2007 @ Concepcion, Chile
#87
@traysh make a branch in git..., no push the updates to the master branch
__________________
User:rlinfati
 
Posts: 177 | Thanked: 199 times | Joined on Nov 2007 @ Concepcion, Chile
#88
Originally Posted by traysh View Post
Also, I implemented some code to not update the location with a less accurate position, it considers the uncertainty of the new and of the previous positions.
what happen if my last update was in a park (gps, very accurate) and now i'm in my house (cell tower, no accurate) ??

Originally Posted by traysh View Post
As a daemon, it is working really very well now, tough bigger update intervals are still missing.
Please, check my last updates to git... i backport allmost all yours important features.

To include the config in "control panel" please not use the UI file...

Originally Posted by traysh View Post
About using cell tower, here where I am it's not possible to get a position with a better accuracy than 800 meters, and that's a lot.
the accurate depend of yours city... i have 200~ mts
__________________
User:rlinfati
 
Posts: 324 | Thanked: 739 times | Joined on Jun 2009 @ São Paulo, Brazil
#89
Originally Posted by rlinfati View Post
what happen if my last update was in a park (gps, very accurate) and now i'm in my house (cell tower, no accurate) ??
The location will be updated if the distance between the two places is bigger than the sum of the two uncertainties (eph). As in the park the precision was very good, it's eph will be almost 0, so it will depend on the distance and the uncertainty of your house. If the eph in your house is 200m and the park is closer than that, there will be only an update if randomly you get a good precision. We can set a timeout to force the update after some minutes, tough. The way it is now is working very well for me. If it isn't for someone we can change it.

Originally Posted by rlinfati View Post
Please, check my last updates to git... i backport allmost all yours important features.
I will.

Originally Posted by rlinfati View Post
To include the config in "control panel" please not use the UI file...
I'm sorry, I didn't understand what you mean
 
Posts: 324 | Thanked: 739 times | Joined on Jun 2009 @ São Paulo, Brazil
#90
Originally Posted by rlinfati View Post
what happen if my last update was in a park (gps, very accurate) and now i'm in my house (cell tower, no accurate) ??
on second thought, this is a bug that will happen in situations like the one you described. I'll think about it.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:04.