How to retrieve network info | developer.brewmp.com How to retrieve network info | developer.brewmp.com

Developer

How to retrieve network info

Forums:

Hi.,

I am trying to retrieve the network info (Networkname and ID) as shown below in Moto V3c and emulator.

if (SUCCESS != ITELEPHONE_GetServingSystemInfo(pMe->telephone, &ss_info, sizeof(ss_info)))
{
return FALSE;
}

fullname = (char*)ss_info.mm_information.full_name.name;
ShortName = (char*)ss_info.mm_information.short_name.name;

Here i am getting the null values.
is there any other way to retrieve the values.

Regards,
Vijay

Check if ss_info.srv_status == AEET_SRV_STATUS_NO_SRV? if yes, device doesn’t have service.

Check if ss_info.srv_status == AEET_SRV_STATUS_NO_SRV? if yes, device doesn’t have service.

Hi Atul,
Thanks for reply.
i am getting AEET_SRV_STATUS_SRV it means service is available.
but i am not able to get the names.
Is there any way to get name or operator ID which is unique for every operator?
what all i need is.
I need some information(operatorId or operatorname or some thing) which is unique for an operator.
Regards,
Vijay

Hi Atul,
Thanks for reply.
i am getting AEET_SRV_STATUS_SRV it means service is available.
but i am not able to get the names.
Is there any way to get name or operator ID which is unique for every operator?
what all i need is.
I need some information(operatorId or operatorname or some thing) which is unique for an operator.
Regards,
Vijay

Try getting NID (Netwrok ID) using:
ret = ITELEPHONE_GetServingSystemInfo(pITelephone, &sTSSInfo, sizeof(sTSSInfo));
if (SUCCESS == ret)
{
// sTSSInfo.sys_id.id.is95.sid and sTSSInfo.sys_id.id.is95.nid respectively
// represents SID and NID of the selected network
}
Also, You can get carrier ID using:
ret = ISHELL_GetDeviceInfoEx(pMe->m_pIShell, AEE_DEVICEITEM_CARRIER_ID, NULL, &nItemLen);
pItemBuff = (char *) MALLOC(nItemLen);
if(pItemBuff)
ret = ISHELL_GetDeviceInfoEx(pMe->m_pIShell, AEE_DEVICEITEM_CARRIER_ID,(void *) pItemBuff, &nItemLen);

Try getting NID (Netwrok ID) using:
ret = ITELEPHONE_GetServingSystemInfo(pITelephone, &sTSSInfo, sizeof(sTSSInfo));
if (SUCCESS == ret)
{
// sTSSInfo.sys_id.id.is95.sid and sTSSInfo.sys_id.id.is95.nid respectively
// represents SID and NID of the selected network
}
Also, You can get carrier ID using:
ret = ISHELL_GetDeviceInfoEx(pMe->m_pIShell, AEE_DEVICEITEM_CARRIER_ID, NULL, &nItemLen);
pItemBuff = (char *) MALLOC(nItemLen);
if(pItemBuff)
ret = ISHELL_GetDeviceInfoEx(pMe->m_pIShell, AEE_DEVICEITEM_CARRIER_ID,(void *) pItemBuff, &nItemLen);