ImageVerifierCode 换一换
你正在下载:

stk.docx

[预览]
格式:DOCX , 页数:11 ,大小:93.41KB ,
资源ID:8692925      下载积分:12 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/8692925.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(stk.docx)为本站会员(b****7)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

stk.docx

1、stkSim Toolkit Application (STK)This document offers a high-level overview of the SIM Toolkit Application for Android 1.0 and is primarily of interest for implementors of the Radio Interface Layer (RIL). The STK is R96 compatible (3GPP TS 11.14 v5.9.0) and complies partially with R99 (3GPP TS 101.26

2、7 v8.17.0). See the STK Feature List for the complete feature list. .The Android STK implementation includes three layers:STK RIL: Low-level layer provided by the vendor plus libril.STK Telephony: Protocol translation layer that converts raw messages provided by the STK RIL to application level mess

3、ages.STK Application: Provides the user interface interactions needed by the STK.The Sim Toolkit communication flow is bi-directional and commands can originate from the STK RIL packaged in RIL_UNSOL_STK_PROACTIVE_COMMAND, RIL_UNSOL_STK_EVENT_NOTIFY, RIL_UNSOL_REFRESH and RIL_UNSOL_STK_SESSION_END m

4、essages.Commands originating from the STK App or STK Telephony layers are packaged in RIL_REQUEST_STK_SEND_TERMINAL_REPSONSE, RIL_REQUEST_SEND_ENVELOPE_COMMAND or RIL_REQUEST_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM.For commands sent or recieved by the STK RIL, its not necessary to remove unused sub-com

5、mands because the upper layers will gracefully ignore unused information contained in the message. The content of each message is encoded in the BER-TLV format except for two:RIL_UNSOL_STK_SESSION_END: has no data RIL_REQUEST_HANDLE_CALL_SETUP_REQUESTED_FROM_SIM: has a single byte of data that indic

6、ates accept/reject.See the Android Platform Development Kit for details.Communication from the RIL upCommunication to the upper layers is done using the RIL_UNSOL_xxx family of commands defined in /hardware/ril/include/ril.h. The payload for each command is encoded using BER-TLV. As stated above, it

7、 is not necessary to remove extraneous fields. This allows the SIM to pass a complete command to the upper layers and simplifies STK RIL code. Below is the mapping from RIL_UNSOL_xxx commands to the SIM commands.RIL_UNSOL_STK_PROACTIVE_COMMANDThe Sim Toolkit communication flow is bi-directional and

8、commands can originate from the STK RIL packaged in RIL_UNSOL_STK_PROACTIVE_COMMAND, RIL_UNSOL_STK_EVENT_NOTIFY, RIL_UNSOL_REFRESH and RIL_UNSOL_STK_SESSION_END messages.DISPLAY TEXT (6.4.1)This command is handled by StkDialogActivity. If the immediate response flag is set, the terminal response is

9、sent with an OK (0x00) result code when the message is first received. Otherwise the terminal response is sent when the dialog is dismissed either from user action or it times out.The user sees a dialog box with a message and / or icon, an OK button, and a Cancel button.Terminal responses include:OK

10、 (0x00)Session terminated by user (0x10)Backward move by user (0x11)No response from user (0x12)GET IN KEY (6.4.2)This command is processed by StkInputActivity. It displays a dialog box with a prompt and or an icon and yes and no buttons.Terminal responses include:“OK” (0x00) with “Yes” or “No” as t

11、he response text“Session terminated by user” (0x10) Currently not supported“Backward move by user” (0x11)“No response from user” (0x12)GET INPUT (6.4.3)This command is handled by StkInputActivity. The user sees a dialog box with a prompt and / or an icon, a text box with optional default text, and a

12、n OK button. digits only, min, max, and hidden modes are all supported. Terminal responses include:OK” (0x00) if the input criteria is met “Session terminated by user” (0x10) Currently not supported “Backward move by user” (0x11) “No response from user” (0x12) PLAY TONE (6.4.5)This command is proces

13、sed by ToneDialog.The user sees a dialog box with a prompt for the duration of the tone or until the user presses the back key.Terminal responses include:OK (0x00) if the tone is played to completion “Session terminated by user” (0x10) if back button is pressed SET UP MENU (6.4.8)This command is pro

14、cessed by StkAppService. It installs the STK ICON on the home page and prepares the Main menu for use when the ICON is selected. Typically this is the first RIL unsolicited command and should not be sent until after the RIL_RadioFunctions.getVersion routine is called.Terminal reponses:“OK” (0x00) At

15、 a later time, the STK ICON will be selected and StkMenuActivity will launch and display the Main menu to the user. If an item is selected, it will be returned to the RIL in RIL_REQUEST_STK_SEND_ENVELOPE_COMMAND with the item id. If no item is selected, the StkMenuActivity will receive a timeout mes

16、sage and return to the Main menu and no message will be sent to the RIL.Depending upon what item is selected, the SIM may perform another action, such as sending another set of menu items via a SELECT ITEM command or performing an action like send an SMS or text display. SELECT ITEM (6.4.9)This comm

17、and is processed by StkMenuActivity. Instead of displaying the Main menu, the list of menu items provided in this command are displayed.Terminal responses: “OK” (0x00) The command then proceeds as in the SETUP MENU. SET UP IDLE MODE TEXT (6.4.22)StkAppService displays the message and or icon as an A

18、ndroid notification.Terminal responses include:OK” (0x00)LAUNCH BROWSER (6.4.26)This command is initially handled by StkDialogActivity and presents the user with a confirmation dialog, a URL, and OK, and cancel buttons. If the user presses OK, the browser is launched using the URL.Terminal responses

19、 include:“OK” (0x00) the browser has been launched “Session terminated by user” (0x10) “Backward move by user” (0x11)“No response from user” (0x12)RIL_UNSOL_STK_EVENT_NOTIFYThe commands in this section are proactive in nature. They are handled by the STK RIL and the upper layers and delivered using

20、RIL_UNSOL_STK_EVENT_NOTIFY message. This distinction is an implementation detail of Android and is not defined in the 3GPP sepcifications.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 se

21、nt by the STK App). Each command must be a properlery-formed proactive command. It is not necessary to remove unused fields. The behavior of any other command within this context sent by RIL_UNSOL_STK_EVENT_NOTIFY is undefined. See Event Notify Command Details. SEND SMS (6.4.10) no responseSEND SS (

22、6.4.11) no responseSEND USSD (6.4.12) no responseSET UP CALL (6.4.13) responds with RIL_REQUEST_STK_HANDLE_CALL_SETUP_REQUESTED_FROM_SIMSEND DTMF (6.4.24) no responseRIL_UNSOL_SIM_REFRESHUsed to send the REFRESH command. No response.REFRESH (6.4.7)RIL_UNSOL_STK_SESSION_ENDSent by the SIM to signal t

23、he end of a session. No content and no response.RIL_UNSOL_STK_SESSION_ENDSent by SIM to signal end of session. No content and no response.Communication from the application downCommunication from the upper layers to the RIL uses the commands below (defined in ril.h):RIL_REQUEST_STK_SEND_TERMINAL_REP

24、SONSEUsed to send a terminal response for commands sent via RIL_UNSOL_STK_PROACTIVE_COMMAND. Contents include TERMINAL RESPONSE (6.8).RIL_REQUEST_STK_SEND_ENVELOPE_COMMANDUsed to send information from to SIM encoded as BER-TLV tags (see R96 section 13). Two tags are supported:BER_MENU_SELECTION_TAG

25、(0xd3); Contents: MENU SELECTION (8)BER_EVENT_DOWNLOAD_TAG (0xd6); Contents: EVENT DOWNLOAD Language selection (11.8)Content for these tags include: MENU SELECTION (8)EVENT DOWNLOAD Language selection (11.8)RIL_REQUEST_HANDLE_CALL_SETUP_REQUESTED_FROM_SIMReturns a single-byte parameter:1: accepted0:

26、 not acceptedThis should cause the terminal response to be sent to the SIM.TelephonySTK Telephony is a protocol translation layer used to convert messages from BERL-TLV format to Application messages and back. On the STK RIL side, STK Telphony receives raw buffer messages from RIL I/F and decodes th

27、em into a command parameters container before passing them on to the application. On the Application side, this layer receives application responses for commands and encodes them into raw buffer messages, which then get sent over the RIL I/F back to the SIM card.Feature ListFeature Support Implement

28、ed byPROFILE DOWNLOAD - before radio turn-on YES BasebandSET UP MENU YES MESELECT ITEM YES MEGET INPUT YES MEGET INKEY YES MEDISPLAY TEXT YES MESET UP IDLE MODE TEXT YES MESEND SHORT MESSAGE YES Baseband MESEND SS YES Baseband MESEND USSD YES Baseband MESEND DTMF YES Baseband MELAUNCH BROWSER YES ME

29、SET UP CALL YES Baseband MEPLAY TONE YES MEPOLL INTERVAL YES BasebandPOLLING OFF YES BasebandTIMER MANAGEMENT YES BasebandMORE TIME YES BasebandPROVIDE LOCAL INFORMATION (MCC, MNC, LAC, Cell ID & IMEI) YES BasebandPROVIDE LOCAL INFORMATION (NMR) YES BasebandPROVIDE LOCAL INFORMATION (Timing Advance)

30、 YES BasebandPROVIDE LOCAL INFORMATION(battery state) YES BasebandPROVIDE LOCAL INFORMATION (IMEISV) YES BasebandPROVIDE LOCAL INFORMATION (NMR(UTRAN) YES BasebandPROVIDE LOCAL INFORMATION (Search Mode change) YES BasebandREFRESH YES MESET UP EVENT LIST YES Baseband MEEvent: MT call YES BasebandEven

31、t: Call connected (all modes) YES BasebandEvent: Call disconnected (all modes) YES BasebandEvent: Idle screen available NO Event: Browser termination NO Event: Location status YES BasebandEvent: Data available NO Event: Channel status NO Event: Access Technology changed YES BasebandEvent: Local Conn

32、ection NO Event: Network Search Mode Change YES BasebandGET READER STATUS NO POWER ON CARD NO POWER OFF CARD NO PERFORM CARD ADPU NO RUN AT COMMAND NO OPEN CHANNEL NO CLOSE CHANNEL NO RECEIVE DATA NO SEND DATA NO GET CHANNEL STATUS NO CALL CONTROL BY SIM YES BasebandSMS-PP data download YES BasebandSMS-CB data down

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1