Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
BlackBerry Development Advisor
MSohm
Posts: 14,685
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Is SIM Id Really Exist ?

Quote from the previous forum:


VipulPathak

Posts: 54
From: Columbia, MD
Registered: Apr, 2008

Is SIM Id Really Exist ?
Posted: Jun 19, 2008 10:09 AM
 
Hi,

Is there some thing like "SIM ID" really exists ? or is it simply the same IMSI number (obtained using SIMCardInfo.getIMSI)

If the above 2 are different, is SIM ID (or SIM number) the part of IMSI number ? If no, Is there any way, to programmatically obtaining the SIM Id ?

Thanks in Advance,

*(Vipul)() ;

 


Guest
Re: Is SIM Id Really Exist ?
Posted: Jul 23, 2008 4:16 AM
 
OK, I am doing this to figure out the SIM Id:

//====================
String imsi = GPRSInfo.imeiToString(SIMCardInfo.getIMSI()) ;
//====================

This returns some thing like this:
"404939.31.173418.5"
On the SIM, it is physically printed like this-
"H-2 899183030811734185 6"

I have read it some where the description about the numbers below:

getIMSI():

404 - Mobile Country Code - 404, 405 for India.
93 – Represents the MNC (Mobile Network Code).
93 – ?? Unknown
11 - refers to switch configuration Mode.
734185 – Refers to SIM Number.

Physically Printed Number:

89 – represents Telecom ID (it will be on all SIM’s).
91 – represents Country Code.
83 – refers Network Code.
0308 – refers month and year of manufacturing.
11 – refers to switch configuration Mode.
734185 – Refers to SIM number.
6 – is a check digit.

The artical claims that using the getIMSI() method, we can obtain a unique number which is also printed on the SIM card physically.

I tried it and it really seems to return the said set of digits. However, I am not sure if the extracted set of digits is officially refered as the SIM Number or SIM Id.

Can any one confirm ?

 

What reference are you referring to?  Something shown in the BlackBerry options, a document, etc...?  The SIMCardInfo.getIMSI() method returns the International Mobile Subscriber Identity number.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
VipulPathak
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320

Re: Is SIM Id Really Exist ?

[ Edited ]

Interesting !!

 

I tried the solution provided above. It returns the information as claimed above for most of the cases. I tried the above with a number of SIM cards:

 

1. Number Printed on SIM:  89 91 78 11 0606 309503 8 ;   SIMCardInfo.getIMSI():  404 780 1 10 309503 ;

2. Number Printed on SIM:  89 91 93 02 0011 743155 6 ;   SIMCardInfo.getIMSI():  404 939 3 11 743155 ;

3. Number Printed on SIM:  89 01 26 04 2001 129574 1 ;   SIMCardInfo.getIMSI():  310 260 4 21 129574 ;

4. Number Printed on SIM:  89 91 78 20 0040 647673 7 ;   SIMCardInfo.getIMSI():  404 780 2 00 047673 ;

5. Number Printed on SIM:  89 91 58 60 2032 232652 6 ;   SIMCardInfo.getIMSI():  404 582 2 00 326526 ;

6. Number Printed on SIM:  89 01 26 07 5001 124461 1 ;   SIMCardInfo.getIMSI():  310 260 7 51 124461 ;

7. Number Printed on SIM:  89 01 26 07 5001 183076 4 ;   SIMCardInfo.getIMSI():  310 260 7 51 183076 ;

8. Number Printed on SIM:  89 01 41 04 2121 606845 1 ;   SIMCardInfo.getIMSI():  310 410 2 12 606845 ;

 

However, I noticed that instead of 6 digits before the check digit (the last digit in the printed number on SIM), some time 5 and some time only 4 digits are matching.

 

We know that in the IMSI number returned by SIMCardInfo class, the first 5 or 6 digits are country and network identity (MCC and MNC). Reset of the number is operator specific.

 

Are these matching digits (4, 5 or 6 digits) really SIM Number or the whole 15 digit IMSI number is refered to as the SIM

number ?

 

Thanks in Advance,

 

Message Edited by VipulPathak on 09-29-2008 11:10 AM
*(Vipul)() ;
Please use plain text.
Developer
VipulPathak
Posts: 81
Registered: ‎07-16-2008
My Device: Curve - 8320

Re: Is SIM Id Really Exist ?

OK, Is there anyway to obtain the Number physically printed on the SIM, e.g.,

       89919 30200 21733 156 6

 

The number can be seen as "ID" by navigating to: Options -> Advanced Options -> SIM Card.

 

As far as now, I try to find a suitable API that return me this number. But till this time, I came accross only SIMCardInfo.getIMSI() which returns the IMSI number and not the number physically printed on the SIM.

 

Mark ? Peter ? Richards ?  Any one ?

 

TIA,

 

*(Vipul)() ;
Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,685
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Is SIM Id Really Exist ?

There is no public BlackBerry API that returns the sim card ID.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.