mt2503 提示Currently not available
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
BT Dialer执行disconnect操作一直提示Currently not available,除非手机关机。
[SOLUTION]
1. btconnscr.c文件中:
static const MMI_bt_dialer_conn_callback_item
*mmi_bt_dialer_next_callback_item(srv_bt_cm_connection_type conn_type)
{
。
if (g_mmi_btdialer_callback_tbl.type == conn_type)
{
//g_bt_dialer_connecting &=~(1<<i);// remove this code.
g_bt_dialer_connecting &=~(1<<g_mmi_btdialer_callback_tbl.indx);// add this code
MMI_TRACE(MMI_CONN_TRC_G7_BT, MMI_BT_CONN_CONNECTING_STATUS,g_bt_dialer_connecting);
MMI_TRACE(MMI_CONN_TRC_G7_BT, MMI_BT_CONN_CBTBL, i, conn_type);
break;
}
。
}
2. 请将所有的 MMI_TRACE(MMI_CONN_TRC_G7_BT, MMI_BT_CONN_CONNECTING_STATUS);
替换成: MMI_TRACE(MMI_CONN_TRC_G7_BT, MMI_BT_CONN_CONNECTING_STATUS,g_bt_dialer_connecting);
3. plutommi\service\avrcpsrv.c:
srv_avrcp_connect_ind_hdlr() function大概945行:
g_mmi_avrcp_cntx[avrcp_chnl].cmgr_id = srv_bt_cm_start_conn(MMI_TRUE,
profile_id, (srv_bt_cm_bt_addr*)&msg_p->device_addr, NULL);
前添加:
if (g_mmi_avrcp_cntx[avrcp_chnl].cmgr_id > 0)
{
srv_bt_cm_stop_conn(g_mmi_avrcp_cntx[avrcp_chnl].cmgr_id);
}
BT Dialer执行disconnect操作一直提示Currently not available,除非手机关机。
[SOLUTION]
1. btconnscr.c文件中:
static const MMI_bt_dialer_conn_callback_item
*mmi_bt_dialer_next_callback_item(srv_bt_cm_connection_type conn_type)
{
。
if (g_mmi_btdialer_callback_tbl.type == conn_type)
{
//g_bt_dialer_connecting &=~(1<<i);// remove this code.
g_bt_dialer_connecting &=~(1<<g_mmi_btdialer_callback_tbl.indx);// add this code
MMI_TRACE(MMI_CONN_TRC_G7_BT, MMI_BT_CONN_CONNECTING_STATUS,g_bt_dialer_connecting);
MMI_TRACE(MMI_CONN_TRC_G7_BT, MMI_BT_CONN_CBTBL, i, conn_type);
break;
}
。
}
2. 请将所有的 MMI_TRACE(MMI_CONN_TRC_G7_BT, MMI_BT_CONN_CONNECTING_STATUS);
替换成: MMI_TRACE(MMI_CONN_TRC_G7_BT, MMI_BT_CONN_CONNECTING_STATUS,g_bt_dialer_connecting);
3. plutommi\service\avrcpsrv.c:
srv_avrcp_connect_ind_hdlr() function大概945行:
g_mmi_avrcp_cntx[avrcp_chnl].cmgr_id = srv_bt_cm_start_conn(MMI_TRUE,
profile_id, (srv_bt_cm_bt_addr*)&msg_p->device_addr, NULL);
前添加:
if (g_mmi_avrcp_cntx[avrcp_chnl].cmgr_id > 0)
{
srv_bt_cm_stop_conn(g_mmi_avrcp_cntx[avrcp_chnl].cmgr_id);
}