Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

EHS8 GPS location using JSR179 API causes mainthread to hang for about one second | Telit Cinterion IoT Developer Community

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


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();

     , "Current location is: " + _latval + ", " + _longval);  



Here ist the output of ATI1




A-REVISION 00.000.14

Best Regards