http://users.zipworld.com.au/~rmills/MCCandMNCValues.htm
Network Data information
1.http://en.wikipedia.org/wiki/Mobile_country_code
2.http://en.wikipedia.org/wiki/Mobile_Network_Code
For Blackberry:
I tested this code on 8800,8320,8100,8300 got all correct network information.
GPRSCellInfo cellinfo;
cellinfo = GPRSInfo.getCellInfo();
mcc=GPRSInfo.getHomeMCC();
mnc=GPRSInfo.getHomeMNC();
lac=cellinfo.getLAC();
cellid=cellinfo.getCellId();
For Motorola :
Tested on v3xx,v3x .for testing this code your application must be signed.
cellID=System.getProperty("CellID")
lac = System.getProperty("LocAreaCode")
imsi = System.getProperty("IMSI")
mcc = imsi.substring(0,3);
mnc = imsi.substring(3,6);
For Windows Mobile :
Tested on motorola MC35 (windows mobile 5,.net 2.0)
HTC s710(windows mobile 6.0,.net 2.0)
DLL needed : ril.dll,cellcore.dll
RILCELLTOWERINFO rilCellTowerInfo = new RILCELLTOWERINFO();
Marshal.PtrToStructure(lpData, rilCellTowerInfo);
uint UiValue = rilCellTowerInfo.dwCellID;
cellid = String.Format("{0:X2}", UiValue);
mcc = rilCellTowerInfo.dwMobileCountryCode;
mnc = rilCellTowerInfo.dwMobileNetworkCode;
UiValue = rilCellTowerInfo.dwLocationAreaCode;
lac = String.Format("{0:X2}", UiValue);
IMEI will get using tapi class
For Sony-Ericsson :
All sony-ericsson 7.3 platform above will support this.
IMEI=System.getProperty("com.sonyericsson.imei")
MCC=System.getProperty(s1 = "com.sonyericsson.net.cmcc")
MNC=System.getProperty("com.sonyericsson.net.cmnc")
LAC=System.getProperty("com.sonyericsson.net.lac")
CELLID=System.getProperty("com.sonyericsson.net.cellid")
On Nokia .....(From reference) :
IMEI:
>>> import com.symbian.epoc.etel
>>> a = com.symbian.epoc.etel.Etel
>>> b= a.getPhone()
>>> print b.getPhoneId().serialNumber
IMSI:
>>> import com.symbian.javax.telephony.mobile
>>> m = com.symbian.javax.telephony.mobile.EpocGsmMobileTerminal(tad,p)
>>> mads = m.getAddresses()
>>> m = mads[0]
>>> print m.getSubscriptionId
This is not "pure" java, but Jython which acesses Javaphone library, but you should get the point.
And, once you read the IMEI and IMSI... and hence you detect your SIM has been changed by the THIEF who STOLE your phone, you can start a call which can't be stopped by the phone user!
import com.symbian.javax.telephony.mobile
p = com.symbian.javax.telephony.mobile.EpocGsmMobileProvider
ts = p.getTerminals()
t = ts[0]
tads = t.getAddresses()
tad = tads[0]
mc = p.createCall()
call = mc.connect(t,tad,"number")
Getting IMEI from all major platforms:
- Nokia
- System.getProperty("phone.imei");
- System.getProperty("com.nokia.imei");
- System.getProperty("com.nokia.mid.imei"); ....For S40 fp1 onwards but binary need to be signed
- Sony Ericsson
- System.getProperty("com.sonyericsson.imei");
- Samsung
- System.getProperty("com.samsung.imei");
- Motorola
- System.getProperty("IMEI");
- System.getProperty("com.motorola.IMEI");
- Siemens
- System.getProperty("com.siemens.IMEI");
- LG
- System.getProperty("com.lge.imei");
17 comments:
know you this function for nokia? thnks.
Hi Dear !
For nokia series 40 you will not get all parameter which i mentioned in blog.
But for nokia series 60 you can use symbian code to get these parameter.
The Nokia information is quite useless as it requires the javaphone APIm which is not available on CLDC. It was only ever used in the 9210. However you can of course doi these things from Symbian and very probably from python (suing PyS60).
Hi,
for Moto,
imsi = System.getProperty("IMSI")
mcc = imsi.substring(0,3);
mnc = imsi.substring(3,6);
Does Google map need mcc/mnc from imsi?
How about the roaming situation in which current PLMN is not the same as imsi?
Google map doesn't need of MCC/MNC its working on longitude and latitude.
But for getting Lon and Lat you will need MCC and MNC if device doesnt support GPS
Hi Ajay,
Where can i get some information related to Google map API used for cell-locationg methord without GPS feature?
BR
no u can not work on google map without GPS..for that u need to get MCC,MNC,LAC which will help u to get long and lati.
But u need to have DB related to this to work on MCC,MNC which is not possible without help of operator.
AJAY: Sorry, but you're wrong. Google do have a cellid database, and continously build it with the help of the mobile gmaps application. Whenever a GPS enabled device makes a query it also sends the cell id info which they assemble into a map. Devices without a GPS will send the cell id info only (of course MNC, etc.) and google will show them their approximate location. I don't know how it works (how the requests should look like), but this is the mechanics behind.
Yes,the same thing i was explained.
Google map has DB of long and lati..which was created with help of MCC,MNC..this is Standard DB created in world..not exact but aprox.
Check my work with ..
www.locle.com
Here you will feel EXP.
Do you know if it is possible to get actual RSSI values for S40 or S60 phones?
Hi ,
Receiver Signal Strength Indicator (RSSI) is not part of my work,but as per my knowledge for S60 CTelphone class can help to get these values.
But for S40 its quite difficult case ,please try "com.nokia.mid.networksigna" in system properties.
http://wiki.forum.nokia.com/index.php/TSJ000306_-_MIDP:_System_properties
Is it possible to detect neighbour cell tower information on BlackBerry?
Hi, this is nagu my request is using j2me how can i get cell ID from nearest tower.This should be compitable on all java enabled phones.Please help me.
hello ajay,
will u help me for ,
get cell id in Nokia S60 & s40..
??
Thanks & Regards
Nilesh
hi Ajay!
can you help me to identify Samsung mobile CellID,IMEI no.
System.getProperty("com.samsung.cellid") and System.getProperty("device.cellid")
I try this but it is not working.
thanks.
Your blog information has very good effort.This is one of the significant post.
Thank you for the info. It sounds pretty user friendly. I guess I’ll pick one up for fun. thank u
J2ME Developer
Post a Comment