Page 1 of 1

how to get geolocation data from the SIM card

Posted: Mon Nov 23, 2015 5:23 am
by chaholic
I try to write a simple cardlet to take geolocation data from the SIM card. I know that "Local Area Identity" keep these information.
The problem is how I can use my cardlet to get geolocation data.

Could you give me some methods/ advices?
tnx

Re: how to get geolocation data from the SIM card

Posted: Thu Nov 26, 2015 11:42 pm
by horse dream
Here are two solutions.

1. EVENT_DOWNLOAD_LOCATION_STATUS. Register this event on install method, and applet will receive the event when there is location update in processToolkit method.

2. PROVIDE_LOCAL_INFORMATION proactive command, with command qualifier set to '00' ( Location Information / MCC, MNC, LAC and Cell Identity).

For the two solutions, you need to check that the mobile phone you are using has the support of the mechanism, indicated in its TERMINAL PROFILE.

Alternatively, you can also check for EF LOCI under DF GSM which keeps the Local Area Identity information and read it using READ BINARY.