Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
GsmCellLocation.getCid() returns very large numbers.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richard Schilling  
View profile  
 More options Mar 26 2009, 1:17 pm
From: Richard Schilling <richard.rootwirel...@gmail.com>
Date: Thu, 26 Mar 2009 10:17:46 -0700 (PDT)
Local: Thurs, Mar 26 2009 1:17 pm
Subject: GsmCellLocation.getCid() returns very large numbers.
For the most part, when we call GsmCellLocation.getCid, we get normal
looking numbers:

public synchronized static int GetCellId() {

        GsmCellLocation location = (GsmCellLocation) phoneMan.getCellLocation
();
        return (location.getCid());

}

This method often times returns small numbers under 10000 which seem
in line with other phones:
        -1 (unknown, but expected per the documentation
        3151
        4252
        8251

etc ... all these look fine.  But, recently we're noticing some rather
large numbers come back:

        21267748
        21267756
        27821304

Has anyone seen this?  And, does anyone know what accounts for such a
dramatic change in numbers?  Do the larger numbers contain other bits
about the tower that I need to extract using bitwise flags?

Thanks

Richard Schilling
Root Wireless


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ahmad  
View profile  
 More options Feb 2 2010, 11:47 pm
From: Ahmad <ahm...@gmail.com>
Date: Tue, 2 Feb 2010 20:47:06 -0800 (PST)
Local: Tues, Feb 2 2010 11:47 pm
Subject: Re: GsmCellLocation.getCid() returns very large numbers.
Sorry for bringing up this topic from the past, but I was wondering if
the OP or anyone else knows the cause or a solution to this problem

I'm to get the LAC:CID on the G1 (android 1.6) and it’s always
returning larger than allowed (ffff is max allowed) numbers (or -1).

I get the exact same numbers whether I use getCid() from
GsmCellLocation or use onCellLocationChanged() from PhoneStateListener

http://developer.android.com/intl/de/reference/android/telephony/gsm/...
http://developer.android.com/intl/de/reference/android/telephony/Phon...

Any guidance would be appreciated

On Mar 26 2009, 9:17 am, Richard Schilling


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ne0  
View profile  
 More options Feb 10 2010, 7:10 am
From: Ne0 <liamjamesalf...@googlemail.com>
Date: Wed, 10 Feb 2010 04:10:09 -0800 (PST)
Local: Wed, Feb 10 2010 7:10 am
Subject: Re: GsmCellLocation.getCid() returns very large numbers.
Large ones are more then likely 3G CellId's. Put the phone on 2G only
and see if you get any large numbers.

On 3 Feb, 04:47, Ahmad <ahm...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Curro  
View profile   Translate to Translated (View Original)
 More options Mar 24 2010, 1:08 pm
From: Curro <arturo.oj...@gmail.com>
Date: Wed, 24 Mar 2010 10:08:51 -0700 (PDT)
Local: Wed, Mar 24 2010 1:08 pm
Subject: Re: GsmCellLocation.getCid() returns very large numbers.
I get the same Cell IDs when I set the phone to 2G only, I still get
very large numbers. Any other ideas?

Thanks!

On Feb 10, 6:10 am, Ne0 <liamjamesalf...@googlemail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Murphy  
View profile   Translate to Translated (View Original)
 More options Mar 31 2010, 7:36 am
From: Murphy <murphy2...@gmail.com>
Date: Wed, 31 Mar 2010 04:36:35 -0700 (PDT)
Local: Wed, Mar 31 2010 7:36 am
Subject: Re: GsmCellLocation.getCid() returns very large numbers.
I think that's the opposite: large numbers corresponds to 2G cells.
Check the network type using TelephonyManager.getNetworkType().

On 24 mar, 19:08, Curro <arturo.oj...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ken H  
View profile  
 More options Apr 1 2010, 5:57 pm
From: Ken H <hunt1...@gmail.com>
Date: Thu, 1 Apr 2010 14:57:10 -0700 (PDT)
Local: Thurs, Apr 1 2010 5:57 pm
Subject: Re: GsmCellLocation.getCid() returns very large numbers.
That's a hex number. I just do this:

GsmCellLocation cl = (GsmCellLocation)
myTelephonyManager.getCellLocation();
int CELLID = cl.getCid();
int ci = CELLID & 0xffff;

and ci contains a "normal" 4-5 digit cell id. The GsmCellLocation is
from Eclair, but I originally wrote this for Donut...works fine.

Ken


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »