Gemalto is now part of the Thales Group, find out more.

You are here

EHS8 GPS location using JSR179 API causes mainthread to hang for about one second

elch273

May 18, 2018 - 7:00am, 227 views

Hi,

i've made an application where i use the JSR179 java api to retrieve GPS coordinates.

It is working as expected but when coordinates are received the meanthread stops working for about one second. I can see this because i'm toggeling a status led on the module each cycle in the mainthread.

Can anyone tell me if observed the same, or if there is a workaround?

 while (!bBreak)

{

Location loc = locProvider.getLocation(-1);

        if (loc.isValid())

{           

_longval = loc.getQualifiedCoordinates().getLongitude();

_latval = loc.getQualifiedCoordinates().getLatitude();

               Logger.info(this.getClass(), "Current location is: " + _latval + ", " + _longval);  

}

}

Here ist the output of ATI1

Cinterion

EHS8

REVISION 03.001

A-REVISION 00.000.14

Best Regards

Andy