Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eCGI and CGI for LTE and GSM networks

I'm trying to determine the CGI (the Cell Global Identifier) the UE is connected to.

From the 3GPP specs, it's defined as follows:

  • 3G: CGI = PLMN-ID + LA code + CID
  • 4G: ECGI = PLMN-ID + ECI

I can already get the LAC (location area code) and CID (Cell ID) from the system. And I can generate the PLMN-ID from the MCC (Mobile Country Code) and MNC (Mobile Network Code).

My question is can I also get the CGI from the system?

like image 929
MikeW Avatar asked Jan 07 '14 20:01

MikeW


1 Answers

The CGI (2G and 3G) and eCGI (of 4G) is always a 15 decimal digit code

For 2G 3G and 4g networks the five first digits are the MCC (Mobile Country Code) and the MNC (Mobile Network Code)

For 2G and 3G networs the next 5 digits are the LAC (Location Area Code) and the last five the Cell ID within the LAC

For 4G networks the 10 digits are then eNB and split in a 7 digits code plus a 3 digits code for the Cell ID.

The point is that some systems or applications works with the whole CGI or eCGI and other systems works with the separate blocks: (MCC-MNC-LAC-CID or MCC-MCC-eNB)

Translating from a 15 digit code to the blocks require knowledge of the cell technology, in order to know if you have to split the last 10 digits in two 5 digits blocks or in a 7 and 3 digits blocks.

On the other hand, if you want to "translate" the blocks into a 15 digits code, you have to pad the blocks to reach the 15 digits length, so if you have 213-01-123-5 it can be 213010012300005 (2G or 3G) or 21301000012305

Google API of geolocation has a non-mandatory field for technology, but I think that it should be mandatory.

I'm afraid that it is really going to be a problem.

like image 97
user3227007 Avatar answered Sep 28 '22 11:09

user3227007