Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi ,
I have created an application for LBS , In simulator its working properly but on device am not getting any GPS details. Here is my sample snippet.

pMe->config.mode = AEEGPS_MODE_ONE_SHOT;
pMe->config.optim = AEEGPS_OPT_NONE;
pMe->config.server.svrType = AEEGPS_SERVER_DEFAULT;
x = IPOSDET_SetGPSConfig(pMe->pif, &pMe->config );
CALLBACK_Init( &pMe->Gps_callback, SamplePosDet_GetGPSInfo_Callback, pMe );
x = IPOSDET_GetGPSInfo(pMe->pif, AEEGPS_GETINFO_LOCATION|AEEGPS_GETINFO_ALTITUDE, AEEGPS_ACCURACY_LEVEL1, &pMe->Gps_Info,&pMe->Gps_callback);

void SamplePosDet_GetGPSInfo_Callback( Location *pMe )
{
CALLBACK_Cancel(&pMe->Gps_callback);
DBGPRINTF("pMe->latitude %d",pMe->Gps_Info.dwLat);
DBGPRINTF("pMe->longitude %d",pMe->Gps_Info.dwLon);

Please help ASAP...

Thanks in Advance..

What is the error code? Does device supports GPS and has been provisioned properly?

What is the error code? Does device supports GPS and has been provisioned properly?

adhudase;82532 wrote:What is the error code? Does device supports GPS and has been provisioned properly?
I am getting timeout error, device support GPS and wat is that provisioned properly means?
Thanks.

adhudase;82532 wrote:What is the error code? Does device supports GPS and has been provisioned properly?
I am getting timeout error, device support GPS and wat is that provisioned properly means?
Thanks.

I am getting timeout error, device support GPS and wat is that provisioned properly means?
Thanks.

I am getting timeout error, device support GPS and wat is that provisioned properly means?
Thanks.

A couple of things to try:
1. Make sure that the device you're testing on has Location set to "Location On" and not "E911 Only". I know this seems obvious, but you'd be surprised how many times this has been the issue with testers where I work.
2. Try using AEEGPS_MODE_TRACK_STANDALONE instead of AEEGPS_MODE_ONE_SHOT. In my experience, this mode returns results while the default one-shot mode does not.
3. Make sure you're testing your phone outside. From my experience, phones need a direct line of sight to satellites in order to successfully get a fix.

A couple of things to try:
1. Make sure that the device you're testing on has Location set to "Location On" and not "E911 Only". I know this seems obvious, but you'd be surprised how many times this has been the issue with testers where I work.
2. Try using AEEGPS_MODE_TRACK_STANDALONE instead of AEEGPS_MODE_ONE_SHOT. In my experience, this mode returns results while the default one-shot mode does not.
3. Make sure you're testing your phone outside. From my experience, phones need a direct line of sight to satellites in order to successfully get a fix.