“Backwardmovebyuser”(0x11)
“Noresponsefromuser”(0x12)
PLAYTONE(6.4.5)
ThiscommandisprocessedbyToneDialog.
Theuserseesadialogboxwithapromptforthedurationofthetoneoruntiltheuserpressesthebackkey.
Terminalresponsesinclude:
"OK"(0x00)ifthetoneisplayedtocompletion
“Sessionterminatedbyuser”(0x10)ifbackbuttonispressed
SETUPMENU(6.4.8)
ThiscommandisprocessedbyStkAppService.ItinstallstheSTKICONonthehomepageandpreparestheMainmenuforusewhentheICONisselected.TypicallythisisthefirstRILunsolicitedcommandandshouldnotbesentuntilaftertheRIL_RadioFunctions.getVersionroutineiscalled.
Terminalreponses:
“OK”(0x00)
Atalatertime,theSTKICONwillbeselectedandStkMenuActivitywilllaunchanddisplaytheMainmenutotheuser.Ifanitemisselected,itwillbereturnedtotheRILinRIL_REQUEST_STK_SEND_ENVELOPE_COMMANDwiththeitemid.Ifnoitemisselected,theStkMenuActivitywillreceiveatimeoutmessageandreturntotheMainmenuandnomessagewillbesenttotheRIL.
Dependinguponwhatitemisselected,theSIMmayperformanotheraction,suchassendinganothersetofmenuitemsviaaSELECTITEMcommandorperforminganactionlikesendanSMSortextdisplay.
SELECTITEM(6.4.9)
ThiscommandisprocessedbyStkMenuActivity.InsteadofdisplayingtheMainmenu,thelistofmenuitemsprovidedinthiscommandaredisplayed.
Terminalresponses:
“OK”(0x00)
ThecommandthenproceedsasintheSETUPMENU.
SETUPIDLEMODETEXT(6.4.22)
StkAppServicedisplaysthemessageandoriconasanAndroidnotification.
Terminalresponsesinclude:
OK”(0x00)
LAUNCHBROWSER(6.4.26)
ThiscommandisinitiallyhandledbyStkDialogActivityandpresentstheuserwithaconfirmationdialog,aURL,andOK,andcancelbuttons.IftheuserpressesOK,thebrowserislaunchedusingtheURL.
Terminalresponsesinclude:
“OK”(0x00)thebrowserhasbeenlaunched
“Sessionterminatedbyuser”(0x10)
“Backwardmovebyuser”(0x11)
“Noresponsefromuser”(0x12)
RIL_UNSOL_STK_EVENT_NOTIFY
Thecommandsinthissectionareproactiveinnature.TheyarehandledbytheSTKRILandtheupperlayersanddeliveredusingRIL_UNSOL_STK_EVENT_NOTIFYmessage.ThisdistinctionisanimplementationdetailofAndroidandisnotdefinedinthe3GPPsepcifications.
TheupperlayershandletheUIandtheSTKRILhandlesallotheraspectsofeachcommand,whichmeansthattheSTKRILsendstheterminalresponse(itisneversentbytheSTKApp).Eachcommandmustbeaproperlery-formedproactivecommand.Itisnotnecessarytoremoveunusedfields.ThebehaviorofanyothercommandwithinthiscontextsentbyRIL_UNSOL_STK_EVENT_NOTIFYisundefined.SeeEventNotifyCommandDetails.
SENDSMS(6.4.10)–noresponse
SENDSS(6.4.11)–noresponse
SENDUSSD(6.4.12)–noresponse
SETUPCALL(6.4.13)–respondswithRIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM
SENDDTMF(6.4.24)–noresponse
RIL_UNSOL_SIM_REFRESH
UsedtosendtheREFRESHcommand.Noresponse.
REFRESH(6.4.7)
RIL_UNSOL_STK_SESSION_END
SentbytheSIMtosignaltheendofasession.Nocontentandnoresponse.
RIL_UNSOL_STK_SESSION_END
SentbySIMtosignalendofsession.Nocontentandnoresponse.
Communicationfromtheapplicationdown
CommunicationfromtheupperlayerstotheRILusesthecommandsbelow(definedinril.h):
RIL_REQUEST_STK_SEND_TERMINAL_REPSONSE
UsedtosendaterminalresponseforcommandssentviaRIL_UNSOL_STK_PROACTIVE_COMMAND.
ContentsincludeTERMINALRESPONSE(6.8).
RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND
UsedtosendinformationfromtoSIMencodedasBER-TLVtags(seeR96section13).Twotagsaresupported:
BER_MENU_SELECTION_TAG(0xd3);Contents:
MENUSELECTION(8)
BER_EVENT_DOWNLOAD_TAG(0xd6);Contents:
EVENTDOWNLOADLanguageselection(11.8)
Contentforthesetagsinclude:
MENUSELECTION(8)
EVENTDOWNLOADLanguageselection(11.8)
RIL_REQUEST_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM
Returnsasingle-byteparameter:
1:
accepted
0:
notaccepted
ThisshouldcausetheterminalresponsetobesenttotheSIM.
Telephony
STKTelephonyisaprotocoltranslationlayerusedtoconvertmessagesfromBERL-TLVformattoApplicationmessagesandback.
OntheSTKRILside,STKTelphonyreceivesrawbuffermessagesfromRILI/Fanddecodesthemintoacommandparameterscontainerbeforepassingthemontotheapplication.OntheApplicationside,thislayerreceivesapplicationresponsesforcommandsandencodesthemintorawbuffermessages,whichthengetsentovertheRILI/FbacktotheSIMcard.
FeatureList
FeatureSupportImplementedby
PROFILEDOWNLOAD-beforeradioturn-onYESBaseband
SETUPMENUYESME
SELECTITEMYESME
GETINPUTYESME
GETINKEYYESME
DISPLAYTEXTYESME
SETUPIDLEMODETEXTYESME
SENDSHORTMESSAGEYESBaseband–ME
SENDSSYESBaseband–ME
SENDUSSDYESBaseband–ME
SENDDTMFYESBaseband–ME
LAUNCHBROWSERYESME
SETUPCALLYESBaseband–ME
PLAYTONEYESME
POLLINTERVALYESBaseband
POLLINGOFFYESBaseband
TIMERMANAGEMENTYESBaseband
MORETIMEYESBaseband
PROVIDELOCALINFORMATION(MCC,MNC,LAC,CellID&IMEI)YESBaseband
PROVIDELOCALINFORMATION(NMR)YESBaseband
PROVIDELOCALINFORMATION(TimingAdvance)YESBaseband
PROVIDELOCALINFORMATION(batterystate)YESBaseband
PROVIDELOCALINFORMATION(IMEISV)YESBaseband
PROVIDELOCALINFORMATION(NMR(UTRAN))YESBaseband
PROVIDELOCALINFORMATION(SearchModechange)YESBaseband
REFRESHYESME
SETUPEVENTLISTYESBaseband–ME
Event:
MTcallYESBaseband
Event:
Callconnected(allmodes)YESBaseband
Event:
Calldisconnected(allmodes)YESBaseband
Event:
IdlescreenavailableNO
Event:
BrowserterminationNO
Event:
LocationstatusYESBaseband
Event:
DataavailableNO
Event:
ChannelstatusNO
Event:
AccessTechnologychangedYESBaseband
Event:
LocalConnectionNO
Event:
NetworkSearchModeChangeYESBaseband
GETREADERSTATUSNO
POWERONCARDNO
POWEROFFCARDNO
PERFORMCARDADPUNO
RUNATCOMMANDNO
OPENCHANNELNO
CLOSECHANNELNO
RECEIVEDATANO
SENDDATANO
GETCHANNELSTATUSNO
CALLCONTROLBYSIMYESBaseband
SMS-PPdatadownloadYESBaseband
SMS-CBdatadown