微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > mt2503 mt6261平台不插SIM卡无信号

mt2503 mt6261平台不插SIM卡无信号

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
在61之前平台,即使不插SIM卡,默认会以SIM 1去注册网络显示信号,以可拨打紧急电话。但在61平台,不插SIM卡,则不再显示信号。
[SOLUTION]
在61平台以下函数代码做了改动:
static void MMI_nw_info_signal_set_strength(
mmi_sim_enum sim,
S32 strength_in_percentage)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
S32 percent = strength_in_percentage;
S32 mainLCD_icon_id = STATUS_ICON_INVALID_ID,
sublcd_icon_id = STATUS_ICON_INVALID_ID;
srv_nw_info_service_availability_enum service_availability = srv_nw_info_get_service_availability(sim);
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
mmi_nw_info_signal_get_icon_id(
sim,
&mainlcd_icon_id,
&sublcd_icon_id);
/*下面这个判断即是判断没插SIM卡,或不是full service状态,就将信号格的percent置为0 */
if (!srv_sim_ctrl_is_inserted(sim) || service_availability != SRV_NW_INFO_SA_FULL_SERVICE)
{
percent = 0;
}
/*客户若要不插SIM卡显示信号,可将此代码去掉*/
MMI_TRACE(MMI_NW_INFO_TRC_GROUP, TRC_MMI_NW_INFO_SIGNAL_ICON_CHANGED,
sim, percent);
wgui_status_icon_bar_change_icon_level(mainlcd_icon_id, percent);
if (sublcd_icon_id != STATUS_ICON_INVALID_ID)
{
wgui_status_icon_bar_change_icon_level(sublcd_icon_id, percent);
}
wgui_status_icon_bar_update();
}

手机不插SIM要求能拨打紧急电话,这好像是全世界运营商的要求吧?

SandFoam大神,以后遇到困难还请多多指教

KAN BU DONG 努力学习

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

网站地图

Top