- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
SMS发送流程
SMS协议及发送消息流程
一. SMS协议结构
CDMA模式中SMS协议结构如图所示,包括SMS Relay Layer,SMS Transport Layer和SMS Teleservice Layer。
SMS Relay Layer. This section defines the requirements for the lower layer of the SMS bearer service protocols. The SMS Relay Layer provides the interface between 25
the Transport Layer and the Link Layer used for message transmission. 26
SMS Transport Layer. This section defines the requirements for the upper layer of the SMS bearer service protocols. The SMS Transport Layer manages the end- to-end delivery of messages. 29
SMS Teleservice Layer. This section defines the requirements for the SMS Teleservice Layer, which provides application-level data formats and procedures.
二.发送短信流程
三. UI层程序分析
发送短信时函数依次调用
uinusms_initial_smsi(smsi_msg_type * smsi_msg_ptr) 函数中将短信做初始化, 主要是一些参数的配置. 之后编辑短信内容及收件人号码并将这些内容也都依据IS637协议规定填进结构中.具体参数定义请看IS637协议.
uiuasms_get_next_msg_id() 得到当前发送短信的MSG_ID.
uasmsu_convert_from_smsi
(
smsi_msg_type * smsi_ptr,
uasms_client_message_type * cl_ptr
)
uasms_status_e_type uasms_send_message
(
const void * user_data,
/* The client can pass a void* pointer with any chosen value.
The UAPI later delivers the message submission status with this
same user_data pointer, so that the client can correlate the message
submitted in this function with the status of it.
*/
const uasms_client_message_type * cl_msg_ptr
/* The message to be sent. */
)
这个函数是CM层函数, 在这个函数中将发送短信指令加入命令队列中, 然后一层一层发下去。调用这个函数并不等于短信发送成功了,因为一,只是将指令添加到队列中;二,发送短信需要与网络交互,只有网络反馈回发送结果信息才能真正结束发送短信过程。
短信发送状态监听函数:
void uiuasms_status_listener
(
const void * user_data,
uasms_error_class_e_type error_class,
uasms_status_e_type status
)
开机时CM设置了这个回调函数,这个函数在发送过程中会被调用,反馈短信发送状态。本函数中给UI TASK发命令。收到命令之后调用以下函数处理
void uinusms_sms_process_msg_status
(
const void * user_data,
uasms_error_class_e_ty
您可能关注的文档
最近下载
- 中职《幼儿心理学》课程教学课件-项目二任务3 感知觉规律的运用.pptx VIP
- Hasselblad哈苏H6中文说明书.pdf
- (人教2024版)一年级数学上册《数学游戏》单元复习讲义.docx
- 木材人造板制造工艺考核试卷.docx VIP
- 百家争鸣(共张PPT)-PPT课件模版[1].pptx
- 《无障碍设施施工验收及维护规范》(GB50642—2011)的解读.pdf VIP
- 13_一等奖丨清华大学丨“三位一体,三创融合,开放共享”创新创业教育体系和平台的创建(20220427推文).pdf VIP
- 百得两用燃烧机TBML 1200 ME电子控制器调试安装说明书.pdf
- 磁共振成像原理与临床应用完整版.ppt VIP
- 人教2024版英语七年级上册Starter Unit 1- Unit 3基础知识练习(含答案).docx VIP
文档评论(0)