Hi,
I have some problem reading the cell information using the ADL library, specifically the MNC (Mobile Network Code). I subscribe to adl_L3infoSubscribe ( ADL_L3INFO_CELL, myEvenHandler) and in myEvenHandler() I do the following:
wm_l3info_Cell_SyncCellInfo_t *p = (wm_l3info_Cell_SyncCellInfo_t*)Info;
uint16_t mcc = p->SyncCell[0].Lai[0]; // 1st and 2nd digits
mcc |= (uint16_t)((p->SyncCell[0].Lai[1] & 0x0F) << 8); // 3rd digit
uint16_t mnc = p->SyncCell[0].Lai[2]; // 1st and 2nd digits
mnc |= (uint16_t)((p->SyncCell[0].Lai[1] & 0xF0) << 4); // 3rd digit
However, the value of the mnc is 0xF10 insead of what I expect it to be and what AT+CCED reports, i.e. 0x001.
The raw bytes of the Lai[] array from wm_l3info_Cell_SyncCellParameter_t: 0x62, 0xF2, 0x10, 0x44, 0x60 and the documentation says:
u8 Lai[5]; ///< Location area identity : including MCC, MNC and LAC. \n
///< ______--8--7--6--5-|-4--3--2--1 \n
///< Byte 1 :MCC digit 2 | MCC digit 1 \n
///< Byte 2 :MNC digit 3 | MCC digit 3 \n
///< Byte 3 :MNC digit 2 | MNC digit 1 \n
///< Byte 4 : LAC \n
///< Byte 5 : LAC (cont) \n
My environment is:
SiWi module: WMP100
Developer Studio: 3.1.0
Open AT Framework package: 2.51.0.201206190958
Open AT OS Package: 6.51.0.201206010944
Firmware Package: 7.51.0.201205311751
Has anyone experienced similar issues? Is it a known bug in OpenAt? Should I use the AT+CCED command instead?
Thanks!