Questions and discussions about the SDK tools used to program the TD RF modules.
edhowork
 
Posts: 10
Joined: Mon Jan 04, 2016 6:33 am

SDK 6.3.4 behavioural changes concerning GPS

by edhowork Mon May 15, 2017 1:00 pm

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?
edhowork
 
Posts: 10
Joined: Mon Jan 04, 2016 6:33 am

Re: SDK 6.3.4 behavioural changes concerning GPS

by edhowork Mon May 22, 2017 11:23 am

Nobody using the GEOLOC library?
omlu
 
Posts: 46
Joined: Tue Oct 06, 2015 8:27 am

Re: SDK 6.3.4 behavioural changes concerning GPS

by omlu Thu Jun 29, 2017 1:33 pm

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;
   }
edhowork
 
Posts: 10
Joined: Mon Jan 04, 2016 6:33 am

Re: SDK 6.3.4 behavioural changes concerning GPS

by edhowork Fri Jun 30, 2017 12:32 pm

Dear Omlu,

Thanks for your response.
I will adopt your init code asap and will let you know the results.
:D
User avatar
lcheminade
 
Posts: 146
Joined: Mon May 11, 2015 7:47 am

Re: SDK 6.3.4 behavioural changes concerning GPS

by lcheminade Fri Jun 30, 2017 1:31 pm

Hi,

Please try to do:

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

Thanks.

Loïc
Return to Tools

Who is online

Users browsing this forum: No registered users and 12 guests