Jason Delport Home

Blog Feed Blog Feed

Paxmodept Website Paxmodept Website

Contact Information


Jason Delport

+44(0)7931445721

jason@paxmodept.com

Download vCard


Mobile Portal


~mobile.paxmodept.com~
QR Code

Blog Archive & Stats


MonthPosts
June 2010(2)
May 2010(1)
April 2010(4)
February 2010(1)
January 2010(2)
December 2009(1)
November 2009(3)
October 2009(3)
September 2009(7)
August 2009(1)
July 2009(2)
June 2009(4)
May 2009(7)
April 2009(5)
March 2009(10)
February 2009(10)
January 2009(19)
December 2008(11)
November 2008(16)
October 2008(28)
September 2008(7)
August 2008(19)
July 2008(17)
June 2008(13)
May 2008(11)
April 2008(11)
March 2008(18)
February 2008(17)
January 2008(19)
December 2007(8)
November 2007(29)
October 2007(38)
September 2007(30)
August 2007(50)
July 2007(46)
June 2007(38)
May 2007(20)
April 2007(16)
March 2007(35)
February 2007(28)
January 2007(36)
December 2006(26)
November 2006(42)
October 2006(39)
September 2006(26)
August 2006(16)
July 2006(4)
Total796


© 2010 Jason Delport

Finding the Cellid from Java ME on Sony Ericsson Devices

Sony Ericsson are really getting it together on the Java ME front!!

List of Network Properties

com.sonyericsson.net.mcc

- Home Mobile Country Code. Three digits.
- E.g. "240"

com.sonyericsson.net.mnc

- Home Mobile Network Code. Two or three digits.
- E.g. "01"

com.sonyericsson.net.cmcc

- Current (Network) Mobile Country Code. Three digits.
- E.g. "240"

com.sonyericsson.net.cmnc

- Current (Network) Mobile Network Code. Two or three digits.
- E.g. "01"

com.sonyericsson.net.isonhomeplmn

- Returns "true" when the ME is camping on the home PLMN (the mnc of the network matches the mnc of the SIM), "false" otherwise. Returns "false" if there is no network.
- E.g. "true"

com.sonyericsson.net.rat

- Returns the current (if any) Radio Access Technology, RAT. Possible values are "WCDMA", "GSM" or null (in flightmode).
- E.g. "GSM", null

com.sonyericsson.net.cellid

- Returns the identity of the cell the ME is currently camping on (if any). For GSM network this is a four digit number and for WCDMA network this is a eight digit number. Returns null when the radio is not enabled.
- E.g. "0123", "00192345", null

com.sonyericsson.net.lac

- Returns the four digit location area code the ME is currently camping in (if any), or null.
- E.g. "0064", null

com.sonyericsson.net.status

- Network status, "Home PLMN", "Available", "Preferred", "No Network", null
- E.g. "Home PLMN"


[Via the Sony Ericsson Developer's Forum.]

Update: More recent information here.



~Comments~

alaa declares...

my friend i want your help to update my device

Date Wed, 07 May 2008 at 16:00:40

sandymc declares...

any idea why does a cellphone camp on GSM instead of WCDMA network? and the other way around? while they are capable to connect to either one of them..

i've tried 'com.sonyericsson.net.cellid', sometimes i got GSM network, and WCDMA the other time

thanks :)

Date Mon, 16 Jun 2008 at 05:38:52

Jason declares...

Hi sandymc,

Sorry, I'm not sure. Moving between networks has probably been highly optimised by the device makers because it is a power hungry requirment.

Date Mon, 16 Jun 2008 at 10:22:50

Milan declares...

What is exactly location area code? I see it changes virtually with every cell id change.

Date Wed, 06 Aug 2008 at 01:44:43

ashok declares...

is there any sony ericsson software available in internet to get network parameter...

Date Sun, 08 Feb 2009 at 11:23:05

walee declares...

i have used System.getProperty("com.sonyericsson.net.cellid")
for my sony ericsson w810i phone it returned null

Date Sun, 03 May 2009 at 12:32:19

sandymc declares...

Hi again Jason and thank you for answering my previous question :)

I have tested above codes are working fine with Sony Erricson devices. But the same code doesn't work on symbian devices like nokia. Example: http://wiki.forum.nokia.com/index.php/CS000947_-_Getting_Cell_ID_in_Java_ME

Nokia Forum has in-depth discussion on this, but they haven't found any solution to retrieve cellID with J2ME on symbian devices. Only native C++ apps can access those LBS function. do you have any thought on this?

thanks :)

Date Sun, 07 Jun 2009 at 15:56:54

Jason declares...

Unfortunately we've never got the cell-id to work on either S40 or S60. We have always used JSR-179 (GPS) for location on Nokia S60 devices.

Date Mon, 08 Jun 2009 at 15:37:10

Jigar declares...

I have tested the same code in my Sony Erricson W300i.
it returns "null"

is it device specific or company specific(i.e. diff property for nokia,SE,moto..)

how can i get it in my SE?


Date Thu, 09 Jul 2009 at 10:34:39

Jason declares...

The W300i is quite an old phone so it might not have support for these features. Also, I have heard that some network operators used to ask phone manufacturers to disable these features.

Date Thu, 09 Jul 2009 at 10:39:03

RAPHAEL SACCOMANI declares...

Hello, my cellID returns 006f761e, that's right? is hex number? need i to cast this?

thanks!!

Date Sun, 06 Sep 2009 at 19:23:35

Jason declares...

Sorry Raphael, I'm not sure what format the cellID comes in.

Date Mon, 07 Sep 2009 at 14:57:47

HH declares...

On SonyE the cell ID is indeex a hex number. Just convert to int and it is identical to the cell number (eg. returned by Nokia and used in cell databases)

Date Tue, 22 Sep 2009 at 17:29:35

ameya declares...

is gprs connection required to access a cell id.. pls reply..

Date Tue, 29 Sep 2009 at 20:18:45

Jason declares...

The cellid comes from the network operator so the device must be connected to the network but I don't think you need to be connected via GPRS in order to retrieve it.

Date Wed, 30 Sep 2009 at 10:09:41

ameya declares...

thanks jason
i am having sony erricson w302 . the above commands return null. my search tells me that my cell needs to have atleast jp 7.3 . how do i knw that if my phone supports jp 7.3 or it is not necessary

Date Fri, 02 Oct 2009 at 21:11:39

Carlyle declares...

http://en.wikipedia.org/wiki/Sony_Ericsson_Java_Platform

u need a SE JP7/ JP8 higher device to get the above

--------------------
no, not human :p

Date Fri, 06 Nov 2009 at 09:13:31

~Add Comment~

Name
Email
Website
Website
Website
Comment (No HTML)
Human? Human?