西门子RIL线程分析

-> ->
 RIL同样采用的是流接口,包括了
RIL_INIT,RIL_OPEN等等十个标准流接口.绝大部分操作都在RIL_IOCTRL中完成
QueueCmd将AT命令的请求加入请求队列,由执行者线程负责执行.
同样,存在一个Responed 队列.
CResponse类承担了858 AT_Parser中的工作,每一条响应作为CResponse的一个实例.
 
线程:
CmdThreadProc
    负责从命令队列取出命令并发送给串口,并读取应答.
 
ReadThreadProc
    负责从串口读取解析,将响应放置到gRspQ队列
 
SIMUnlockThreadProc
    HandleRsp 发送SetEvent(g_hSIMUnlockEvent);
    线程WaitForSingleObject(g_hSIMUnlockEvent, INFINITE),负责SIM Ready后的初始化工作,完成后退出
 
SimReadyThreadProc
    当模块启动后,启动此线程
    Launch a thread to see if the SIM is ready or not
    HandleRsp  SetEvent(m_hSimReadyEvent);
    线程启动后,检测SIM Staus是否Ready,否则WaitForSingleObject(m_hSimReadyEvent, apiiInfo.dwTimeout),完成一部分初始话工作.
 
RHAEventThreadProc
    处理硬件消息.g_hRHAEvent由底层RHA Driver触发.
 
SwitchPortsThreadProc
    可能是完成multipliex mode的切换和使用
 
CloseComPortThreadProc
    关闭串口
    
AckSMSThreadProc
    SMS ACK.部分模块需要手工ACK SMS.
 
RequeueThreadProc
    // Place the command into the command queue
    //    (this may block if the queue is full)
    
 WCETimeoutThread
    // We timed out -- cancel WaitCommEvent() in progress
 
HangupThreadProc
 
    //ExATTimeoutThreadProc
 
 ShutdownTimeoutThread
 
MonitorThreadProc
    Thread responsible for monitoring RIL
 
SIMTKThreadProc
     C wrapper for the SIM toolkit thread
 
PromptForSimAndRequeueCmdProc
    好象是用来检查SIM卡PIN的
 
DataCmdTimeoutThread
    当时间到了提醒DATA 超时?
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值