UTRAN Cell Identity returned by getCid()

后端 未结 4 1467
南笙
南笙 2021-02-02 04:09

In UMTS I get a large number returned by getCid() (larger than the allowed value). Is this the UTRAN Cell Identity (UC-ID)?

UC-Id = RNC-Id + C-Id
         


        
4条回答
  •  青春惊慌失措
    2021-02-02 04:48

    If CID is > 65536, it's not actually the cell-ID, but a linear combination of the real cell-ID and RNC-ID:

    UTRAN_CELL_ID = RNCID x 65536 + CellID
    

    To extract the cellID, use the modulo operation:

    CellID = UTRAN_CELL_ID % 65536
    

    To extract the RNCID, get the integer part:

    RNCID = UTRAN_CELL_ID / 65536
    

提交回复
热议问题