detecting MCC / MNC: what's the difference between..? | developer.brewmp.com detecting MCC / MNC: what's the difference between..? | developer.brewmp.com

Developer

detecting MCC / MNC: what's the difference between..?

Forums:

I see that I can use ITELEPHONE_GetServingSystemInfo() to retrieve ServingSystemInfo. But given that, I see two different paths for retrieving plmn (where MCC / MNC is encoded). What's the difference between these two paths, and in what context does each matter?

IF (pSSInfo->mm_information.plmn_avail)...
pSSInfo->mm_information.plmn
//  Serving System information
//    Mobility management information i.e. network
//      plmn identity of the network


IF (pSSInfo->sys_id.id_type==AEET_SYS_ID_TYPE_UMTS)...
pSSInfo->sys_id.id.plmn
//  Serving System information
//    ID of the selected system
//      system identifier
//        plmn identity: UMTS (WCDMA/GSM) system ID

Thanks.

-steve

as per aeeteldef.h,
sys_id.id.plmn is only for UMTS
 

typedef
 
union
{
AEETIS95SysID is95;

 

/* IS-95 system ID */
 

byte is856[16];

 

/* IS-856 system ID */
 

AEETPLMNID plmn;

 

/* UMTS (WCDMA/GSM) system ID */
 

} AEETSysIDData;

as per aeeteldef.h,
sys_id.id.plmn is only for UMTS
 

typedef
 
union
{
AEETIS95SysID is95;

 

/* IS-95 system ID */
 

byte is856[16];

 

/* IS-856 system ID */
 

AEETPLMNID plmn;

 

/* UMTS (WCDMA/GSM) system ID */
 

} AEETSysIDData;

Thanks for the response.
But am not clear that moves me forward. In my original query, I intended (and obviously failed) to convey what I already know. e.g., [IF (pSSInfo->sys_id.id_type==AEET_SYS_ID_TYPE_UMTS)...]
I know that sys_id.id applies for UMTS. What I don't know is why the second (pSSInfo->mm_information) has an availability flag. Is it reasonable to infer from this that (from within a UMTS network) the second plmn (pSSInfo->sys_id.id.plmn) could be reported as unavailable when the first (pSSInfo->mm_information.plmn) contains valid info?
If so, what's the difference?
If not, and the values will always be the same, why bother with two separate paths to the same info?
 
ideas?
 
Thanks.

Thanks for the response.
But am not clear that moves me forward. In my original query, I intended (and obviously failed) to convey what I already know. e.g., [IF (pSSInfo->sys_id.id_type==AEET_SYS_ID_TYPE_UMTS)...]
I know that sys_id.id applies for UMTS. What I don't know is why the second (pSSInfo->mm_information) has an availability flag. Is it reasonable to infer from this that (from within a UMTS network) the second plmn (pSSInfo->sys_id.id.plmn) could be reported as unavailable when the first (pSSInfo->mm_information.plmn) contains valid info?
If so, what's the difference?
If not, and the values will always be the same, why bother with two separate paths to the same info?
 
ideas?
 
Thanks.

as said sys_id would contain a plmn if the network is UMTS.
And mm_information.plmn says available becoz plmn is available. use either of it.
 

as said sys_id would contain a plmn if the network is UMTS.
And mm_information.plmn says available becoz plmn is available. use either of it.