Page 1 of 1

SDK 6.3.4 behavioural changes concerning GPS

Posted: Mon May 15, 2017 1:00 pm
by edhowork
After rebuilding a project using the new SDK we measured an increase of power consumption. The project had been originally developed using SDK 4.
We found that the 'TD_GEOLOC_StopFix(TD_GEOLOC_HW_BCKP);' call has different effect in the new SDK.
One thing is that the DC GPS antenna power of 3Volt is not switched off like SDK4.

GPS operation is initiated by: TD_GEOLOC_TryToFix(TD_GEOLOC_POWER_SAVE_MODE, TD_GEOLOC_INFINITE, GPSFixCallback);

We try to stop GPS by: TD_GEOLOC_StopFix(TD_GEOLOC_HW_BCKP);


Is this a known issue?

Re: SDK 6.3.4 behavioural changes concerning GPS

Posted: Mon May 22, 2017 11:23 am
by edhowork
Nobody using the GEOLOC library?

Re: SDK 6.3.4 behavioural changes concerning GPS

Posted: Thu Jun 29, 2017 1:33 pm
by omlu
I do but I didn't search for changes when comparing SDK4 and SDK6 (I also started developping with SDK4 and now am working with SDK6)
All I can say is....

I init it like this:
Code: Select all
TD_GEOLOC_Fix_t fixcopy;
TD_GEOLOC_FixInit (&fixcopy);
TD_GEOLOC_Init ();
TD_GEOLOC_TryToFix (TD_GEOLOC_NAVIGATION, FIX_TIMEOUT, gpsFixing);


and process it like this:
Code: Select all
void gpsFixing (TD_GEOLOC_Fix_t *fix, bool timeout) {
   if ( (fix->type) >= TD_GEOLOC_2D_FIX ) {
      [i]do something[/i]
      return;
   }

   if ( timeout ) {
      TD_GEOLOC_StopFix (TD_GEOLOC_HW_BCKP);
      return;
   }

Re: SDK 6.3.4 behavioural changes concerning GPS

Posted: Fri Jun 30, 2017 12:32 pm
by edhowork
Dear Omlu,

Thanks for your response.
I will adopt your init code asap and will let you know the results.
:D

Re: SDK 6.3.4 behavioural changes concerning GPS

Posted: Fri Jun 30, 2017 1:31 pm
by lcheminade
Hi,

Please try to do:

TD_GEOLOC_StopFix(TD_GEOLOC_HW_BCKP);
GPIO_PinModeSet(gpioPortC,0,gpioModeDisabled,0);

Thanks.

Loïc