LocationGPSDControl "preferred-method" inconsistency
Error: Application finds the location and updates with GPS icon even when GPS and networking positioning is turned off. Error can be reproduced using example available at [url]http://wiki.forum.nokia.com/index.php/File:Qt_for_Maemo_Location_Example.zip[/url]
Execute the following test:
1) Go to Settings/Location and activate GPS and Network positioning
2) Run GPS example
3) GPS get a fixed location
4) Go to Settings/Location and deactivate GPS and Network positioning
5) Run GPS example, and when asked DO NOT enable any option
6) GPS get a previously fixed location and still shows the GPS icon on window title.
I've ran the previous example but with a new property set to control. Apparently it has fixed the inconsistency, once there is no gps option available and the icon is no being shown anymore, however now even with all GPS settings is enabled, the gps icon keeps blinking and I don't get any fixed location.
g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_AGNSS | LOCATION_METHOD_GNSS, NULL);
If add support to Wireless Position method then I get a fixed position but a GPS icon is still being shown.
"preferred-method", LOCATION_METHOD_AGNSS | LOCATION_METHOD_GNSS | LOCATION_METHOD_ACWP | LOCATION_METHOD_CWP,
On my option, it might be confusing for users to see a GPS icon when app is actually getting location info from the wireless connection, specially since users don't have the option to disable this feature.
Re: LocationGPSDControl "preferred-method" inconsistency
If you have wireless connection active, why would you like to disable GPS over wireless position method. Disabling Global Navigation Satellite System method saves battery at least. Any way you can express your concerns in a report at [url]https://bugs.maemo.org/[/url]
Re: LocationGPSDControl "preferred-method" inconsistency
I really need some help here!!
My app submission is being denied for the following reasons:
1) - Application finds the location and updates with GPS icon even when GPS and networking positioning is turned off.
2) - Application shows default location when network positioning is not enabled and gps is searching for the location.
HOW CAN I FIX THEM??
Details Issue number 1: I'm using the examples found on Nokia's website and linked previously and the
"g_signal_connect(device, "changed", G_CALLBACK(on_changed), control);" signal/slot still is being invoked even when GPS and networking positioning is turned off. I've tried to check "device->online" within that method but it always return '1'
Details Issue Number 2: I'm testing my app on a n900 with AT&T card on it. For some reason I cannot get any fix by GPS only, that is why gps keep searching and after a while a start the app with a default location. The only way to get a fix is by activating Networking Positioning.
I've notice also that my app behaves the same way as Nokia Maps app that come with the device. So is either a device specific issue or a inconsistency on Nokia's Bug verification.
Re: LocationGPSDControl "preferred-method" inconsistency
I was using this test application
[url]http://wiki.forum.nokia.com/index.php/Maemo_5_liblocation_minimalistic_test_application[/url].
When everything is disabled:
[CODE]
./location
"CONNECTED:
time: nan
ept: nan
lat: 11.1
long: 11.1
eph: nan
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
"CHANGED:
time: nan
ept: 0
lat: 11.1
long: 11.1
eph: 6e+07
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"[/CODE]
You know from the number of satellites, that values are not correct.
Basically the same thing happens while GPS is searching. You have some latitude and longitude, but they are not valid until number of satellites goes above 0.
Re: LocationGPSDControl "preferred-method" inconsistency
Here's what I did, step by step.
1) Ran the app with GPS and Network Position Activated, (connected by Wireless)
2) Got the following results:
./location
"CONNECTED:
time: nan
ept: nan
lat: 41.888
long: -87.8182
eph: nan
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
"CHANGED:
time: nan
ept: 0
lat: 41.888
long: -87.8182
eph: 206965
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
3) Then turn everything off,
4) Ran the app,
5) A dialog shows up "Enable Postion?", options GPS and Network position, I didnt check none of them, and pressed "Done",
6) Got the same previous results.
7) Then turn everything back on,
8) Went outside (connected by AT&T),
9) Got the following results.
./location
"CONNECTED:
time: nan
ept: nan
lat: 41.888
long: -87.8182
eph: nan
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
"CHANGED:
time: nan
ept: 0
lat: 41.888
long: -87.8182
eph: 206965
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
"CHANGED:
time: 1.27437e+09
ept: 0
lat: 41.8881
long: -87.8191
eph: 3052
speed:nan
eps: nan
track: nan
epd: nan
satellites: 6
10) Then turn everything off and stayed outside,
11) Ran the app,
12) A dialog shows up "Enable Postion?", options GPS and Network position, I didnt check none of them, and pressed "Done",
13) Got the following results.
./location
"CONNECTED:
time: nan
ept: nan
lat: 41.888
long: -87.8182
eph: nan
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
"CHANGED:
time: nan
ept: 0
lat: 41.8881
long: -87.8195
eph: 89401
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
"CHANGED:
time: nan
ept: 0
lat: 41.8881
long: -87.8195
eph: 93417
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
"CHANGED:
time: nan
ept: 0
lat: 41.8881
long: -87.8195
eph: 121542
speed:nan
eps: nan
track: nan
epd: nan
satellites: 0
"
So as we can see I'm getting a valid lat/long whether the gps and network position is on or off. The only difference is value of satellites, however It is only a indicator for satellites based, whereas a Network Position would be a valid lat/long but would still have satellites = 0.
I'm running a Nokia N900, Maemo 5. I don't believe this is a device specific issue, since the Nokia's tester is having the same issue. Any other suggestion?
Re: LocationGPSDControl "preferred-method" inconsistency
[QUOTE=romulovitor;738809]So as we can see I'm getting a valid lat/long whether the gps and network position is on or off. The only difference is value of satellites, however It is only a indicator for satellites based, whereas a Network Position would be a valid lat/long but would still have satellites = 0.[/QUOTE]
The reason it's "valid" is because you don't change position.
Re: LocationGPSDControl "preferred-method" inconsistency
[QUOTE=divanov;738813]The reason it's "valid" is because you don't change position. [/QUOTE]
Right, but the problem is if I say NO GPS and NO Network Position, than even if my location hasn't change I shouldn't be getting a "valid" location. At least that's what I'm being punished for.
Is there a way to check if GPS or Network Position are activated?
Re: LocationGPSDControl "preferred-method" inconsistency
[QUOTE=romulovitor;738875]Right, but the problem is if I say NO GPS and NO Network Position, than even if my location hasn't change I shouldn't be getting a "valid" location. At least that's what I'm being punished for.
Is there a way to check if GPS or Network Position are activated?[/QUOTE]
GPS on Symbian works the same way. If the device is not able to obtain position it shows the last successfully resolved position, which might be not valid any more. You can use number of satellites to check from where this guess comes.