微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > mt2503Meta mode如何获取SIM卡的IMSI

mt2503Meta mode如何获取SIM卡的IMSI

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
Meta mode如何获取SIM卡的IMSI.
[SOLUTION]
开机进入Meta mode,SIM task正常运行,SIM初始化过程会将IMSI保存在NVRAM_EF_MS_SECURITY_LID中的last_imsi。
所以可以在Meta mode读这个NVRAM item获取得IMSI号。
因为NVRAM 的特性,不插卡的时候,NVRAM_EF_MS_SECURITY_LID仍然会记录上一次插卡的IMSI。
所以为了准确得获得这个状态,需要先判断当前是否有插SIM卡。
Meta判断是否插卡的API可以参考:
META_RESULT __stdcall META_MISC_CheckSIM1Inserted_r(const int meta_handle,
const unsigned int ms_timeout, unsigned char* inserted);
META_RESULT __stdcall META_MISC_CheckSIM2Inserted(const unsigned int
ms_timeout,unsigned char* inserted);
META_RESULT __stdcall META_MISC_CheckSIM2Inserted_r(const int meta_handle,
const unsigned int ms_timeout, unsigned char* inserted);
META_RESULT __stdcall META_MISC_CheckGeminiPlusSIMInserted(const unsigned
int ms_timeout, unsigned char sim_module_index, unsigned char* inserted);
META_RESULT __stdcall META_MISC_CheckGeminiPlusSIMInserted_r(const int
meta_handle, const unsigned int ms_timeout, unsigned char
sim_module_index, unsigned char* inserted);

如果resturn META_SUCCESS并且inserted为非零则代表有插上SIM卡。

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top