[Qt-interest] energy cost of wi-fi scan?

Chrisian Gagneraud cgagneraud at techworks.ie
Sun Nov 6 16:45:58 CET 2011


On 06/11/11 14:48, franki wrote:
> Hi
>
> I want to know when wi-fi network from my home is available so when I'm
> comming home, my app no phone (Nokia N8) should connect to my home network.
> I'm using QNetworkConfigurationManager and I'm listening for signal
> configurationChanged(QNetworkConfiguration), but phone is scanning wi-fi
> networks quite rarely, so I added QTimer which invokes
> QNetworkConfigurationManager::updateConfigurations every minute.
> It works, I get notifications when wi-fi is available.
> But how quickly my battery will run out??
>
> Another idea is to listen for gps coordinates and then when I'm close to my
> home, I run wi-fi scan until I find home network.
> So the question is: Is retreiving gps coordinates much cheaper (in terms of
> energy) than scanning for wi-fi networks every minute ?
>
> Or maybe other ideas? Basically I want to be notified that wi-fi home network
> is available

If you're using using the location API from QtMobility, you might want 
to use QGeoPositionInfoSource::NonSatellitePositioningMethods, this way 
I think that you will have a position based on GSM base stations, which 
will cost you less energy than using the GPS, you will have less 
accuracy, but that should do the job in your case.

Chris

>
> best regards
> Marek
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest


-- 
Christian Gagneraud,
Embedded systems engineer.
Techworks Marine
4a Park lane
Dun Laoghaire
Co. Dublin
Ireland
Tel: + 353 (0) 1 236 5990
Web: http://www.techworks.ie/



More information about the Qt-interest-old mailing list