modem侧qmi消息
时间:10-02
整理:3721RD
点击:
modem 收到ril层下发的qmi消息事件后,处理流程是怎样的?请将大概流程及关键点介绍一下,谢谢!
比如拨号时,ril层会发msg_id=QMI_VOICE_DIAL_CALL_REQ_V02的事件,modem侧会收到QMI_VOICE_DIAL_CALL_REQ_V02的事件,但不知道modem具体是怎么处理的,请贴一些关键代码,大概讲解一下后续具体流程,不胜感激。
qmi_client_error = qmi_client_send_msg_async ( qcril_qmi_client_get_user_handle ( QCRIL_QMI_CLIENT_VOICE ),
QMI_VOICE_DIAL_CALL_REQ_V02,
&dial_call_req_msg,
sizeof(dial_call_req_msg),
&dial_call_resp_msg,
sizeof(dial_call_resp_msg),
qcril_qmi_voice_command_cb,
(void*)user_data,
&txn_handle );
比如拨号时,ril层会发msg_id=QMI_VOICE_DIAL_CALL_REQ_V02的事件,modem侧会收到QMI_VOICE_DIAL_CALL_REQ_V02的事件,但不知道modem具体是怎么处理的,请贴一些关键代码,大概讲解一下后续具体流程,不胜感激。
qmi_client_error = qmi_client_send_msg_async ( qcril_qmi_client_get_user_handle ( QCRIL_QMI_CLIENT_VOICE ),
QMI_VOICE_DIAL_CALL_REQ_V02,
&dial_call_req_msg,
sizeof(dial_call_req_msg),
&dial_call_resp_msg,
sizeof(dial_call_resp_msg),
qcril_qmi_voice_command_cb,
(void*)user_data,
&txn_handle );
其实很容易,通过QMI_VOICE_DIAL_CALL_REQ_V02这个地址,可以查到地址为OX0002,同样在modem那侧也可以找到这个地址,就可以进行通信了