Confused STK communication between RIL and Telephony

96 views
Skip to first unread message

Guobin

unread,
Sep 19, 2010, 9:34:10 AM9/19/10
to android-porting, zhang...@leadcoretech.com
1. What's a SIM Session?
2. Can I list all SIM Sessions?
3. All the message sequences of every Session are defined in 3GPP TS
51.014 and TS 11.14?

4. Is this right?
For every RIL_REQUEST_STK_SEND_TERMINAL_REPSONSE/
RIL_REQUEST_SEND_ENVELOPE_COMMAND
If the status response word SW1/SW2 == 90xx or 91xx, RIL reports to
Telephony RIL_UNSOL_STK_SESSION_END

My sequence flow does not work with StkService

SEND Short Message -- Event Notify
Terminal Response
SW1/SW2 == 90xx or 91xx
send RIL_UNSOL_STK_SESSION_END
DISPLAY TEXT
Terminal Response
// It's broken here
//It failed to pass the validateResponse() test in handleCmdResponse()
of StkService.java

5. I have done this :
All proactive commands are reported as
RIL_UNSOL_STK_PROACTIVE_COMMAND,
Must RIL differ RIL_UNSOL_STK_PROACTIVE_COMMAND and
RIL_UNSOL_STK_EVENT_NOTIFY first, then report to Telephony?

e.g.
SEND Short Message =>RIL_UNSOL_STK_PROACTIVE_COMMAND

6. ril.h says:
RIL_UNSOL_STK_EVENT_NOTIFY
Indicate when SIM notifies applcations some event happens. Generally,
application does not need to have any feedback to SIM but shall be
able to indicate appropriate messages to users.

Can I consider this: No Terminal Response is needed for
RIL_UNSOL_STK_EVENT_NOTIFY?

7. http://source.android.com/porting/stk.html says:
RIL_UNSOL_STK_EVENT_NOTIFY
The upper layers handle the UI and the STK RIL handles all other
aspects of each command, which means that the STK RIL sends the
terminal response (it is never sent by the STK App).
It means: Telephony Send the terminal response?

But what's meaning of the "no response" in following:
SEND SMS (6.4.10) – no response
no terminal response?

Thanks in advance!



Guobin

unread,
Sep 19, 2010, 7:06:16 PM9/19/10
to android-porting
Looking forward to your help, Thanks a lot!

Guobin
Reply all
Reply to author
Forward
0 new messages