I would like to write a simple cardlet which takes geolocation data from my SIM card.
I read about JavaCard but I have no idea how I can use it to get geolocation.
I read that SIM cards keep the information about
Local Area Identity
and I would like to get this data with my cardlet.
Could you suggest me some solutions(APIs) f.e. with JavaCard.
Thank you in advance
There are some possible (U)SIM Toolkit APIs:
Using EVENT_DOWNLOAD_LOCATION_STATUS. Register this event on install method, and applet will receive the event when there is location update in processToolkit method.
Using PROVIDE_LOCAL_INFORMATION proactive command, with command qualifier set to '00' ( Location Information / MCC, MNC, LAC and Cell Identity).
For two solutions above, 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.
Related
We have a requirement in our iOS app to identify the carrier based on the SIM and show some custom features in the app when the user is using that particular network provider. For this we have to identify the carrier based on the mobile network identifier (which is a combination of MCC/MNC codes) and the GID1 values. We were able to able to find the values of MNC/MCC codes using API's provided inside the Apple's CoreTelephony. But I was not able to find any means of accessing the GID1 values. GID1 stands for Group Identifier Level1. It can be used to identify a group of USIMs for a particular application as described in the document here (Section 4.2.10). Is there a way to read this value in iOS. If so how to do this. Any help is really appreciated. Thank you!!
NOTE: It looks like there is a way to read this value in Android : https://developer.android.com/reference/android/telephony/TelephonyManager#getGroupIdLevel1()
I am using a HM10 Bluetooth - UART module in my embedded Device. I connect to it via the UUID with an iPhone App, but I would like to activate a PIN to connect for the first time, so that not everybody with an iPhone and a App like LightBlue or something like that, can send data to my device.
Is this somehow possible with the HM10? In the manual is written, that it is possible to use a PIN to pair, but even if I activate this, I didn't need to enter this.
Thank you
I am also using the same adapter (HM-10) or basically CC41-A module, because I have just found out that my module is a clone. I do not know that it could cause authentication issue or not, but I would recommend first identify your module. Do you have also on your board a missing crystal in the position what is shown on this picture:
http://nerdclub-uk.blogspot.com/2016/02/working-with-cheap-bluetooth-btle4.html
If it is missing it is a clone module.
EDITED:
I have just found on that blog in the comments that clone is not supporting authentication.
https://blog.yavilevich.com/2017/03/mlt-bt05-ble-module-a-clone-of-a-clone/
You're trying to change the password of the HM-10 Bluetooth Chip. To do this, you can issue an AT Command.
Assuming you're using an Arduino environment to interface with your embedded device, you'll want to go to the Serial Monitor found in Tools Serial Monitor and type in the following in the textfield:
AT + PASS [YOURPASSWORD]
Press enter or send and you should see the following:
OK + Set: [para1]
You can find more AT Commands for the HM-10 chip at http://fab.cba.mit.edu/classes/863.15/doc/tutorials/programming/bluetooth.html
Use AT command for set password:
AT+PASS?
AT+PASS[parameter]
Bond mode (0: not need PIN Code, 1: Auth not need PIN, 2: Auth with PIN, 3: Auth and bond):
AT+TYPE?
AT+TYPE[parameter]
Important: if your module version is less than V515, please don't use this command.
AT+VERR?
I'm looking into MAP profile (on iOS) because is under standard profiles and you don't need MFi to use it.
My question: is it possible to use MAP profile to transfer data (in messages)? or are you restricted to just messages, calls and emails? In other words - when I send data to phone over MAP profile is data accepted by any application or specifically my messages application (or phone application, or email application).
I hope I was clear :) thx
My own replay for purposes of "closing" the question.
I couldn't find the way of sending data over MAP - at least on iOS and event if I would manage to send it I'm almost certain that only specific application would be able to accept the data. So for example mail would be accepted by Mail application.
I need to get the IMEI number and serial number of the SIM card in iOS, i have done this in android using the telephonymanager, but how can i achieve this on iOS?
I need this value because I save it in a data base using a web service, each time a client attemp to log in, so it doesnt matter if the client changes celphone or not, the account will be the same because the SIM card will be the same one.
I have been searching on the web, and found a way with this:
NetworkController.m
But it seems like this class has been removed from the web. Another possible way to achieve my goal is to use:
UIDevice-IOKitExtensions.m
But no documentation is given. Any ideas?
Does apple accepts an app using private framework?
Apple does not allow the use of private framework / api. Also, getting the users IMEI number will cause Apple to reject the app.
is it possible to access the phone settings of an iOS Device programmatically? I'm currently building an app and there I will provide contact possibillities, for example a direct link for calling (you just push it and then the specific contact number is called).
But I only want to show that possibility, if the user isn't calling with an unknown number.
You can access the contacts stored in the phone using the Address Book framework. If you're unfamiliar with the framework, I suggest you take a look at this quick start tutorial.
EDIT It seems you wish to read the state of the Show My Caller ID system setting, however you cannot programmatically access the system settings.
Use ABAddressBook for getting contact details in your project...
see this