# 智能卡学习 **Repository Path**: gldsys/smart-card-learning ## Basic Information - **Project Name**: 智能卡学习 - **Description**: 智能卡学习笔记 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-30 - **Last Updated**: 2023-11-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 智能卡学习 #### 介绍 智能卡学习笔记 #### 使用说明 一、DISPLAY TEXT(102223.6.6.1) | Description | Clause | M/O/C | Min | Length | |---|---|---|---|---| | Proactive UICCcommand Tag | 9.2 | M | Y | 1 | | Length (A+B+C+D+E+F+G+H) | - | M | Y | 1or2 | | Command details | 8.6 | M | Y | A | | Device identities | 8.7 | M | Y | B | | Text string | 8.15 | M | Y | C | | Icon identifier | 8.31 | O | Y | D | | Immediate response | 8.43 | O | N | E | | Duration | 8.8 | O | N | F | | Text Attribute | 8.72 | O | N | G | | Frame Identifier | 8.80 | O | N | H | Contents: the required duration for execution of the command before the timeout expires. Resolution and the precision of the time value are in accordance with clause 6.4.21. 编码格式:SMS默认字母表中的压缩格式(8.15.2);SMS默认字母表中的解包格式(8.15.2);UCS2字母表格式(8.15.3) 注1:文本字符串最多可包含240个字节 1.ProactiveHandler init: (1)the command type:命令类型 命令类型规定了所需的后续数据对象解释以及所需的终端程序,具体编码见9.4。 (2)the command qualifier:命令限定符 (102223.8.6) 告知终端显示文本之后的操作。 bit 1:0=正常优先级;1=高优先级 bit2-7:=RFU。 bit 8:0=延迟后的清除消息;1=等待用户清除消息 (3)the destination device;目标设备标识 保存在随后的数据对象中的信息的目的地设备 '01' = Keypad; '02' = Display; '03' = Earpiece; '10' to '17' = Additional Card Reader x (0 to 7). Value assigned by terminal; '21' to '27' = Channel with Channel identifier x (1 to 7). Value assigned by terminal in the Channel status Comprehension TLV of the TERMINAL RESPONSE following an OPEN CHANNEL command; '31' to '3F' = eCAT client identifier (1 to F); '81' = UICC; '82' = terminal; '83' = network; All other values are reserved 2.ProactiveHandler appendTlv: 二、GET INPUT 1.ProactiveHandler initGetput: (1)qualifier - Get Input command qualifier bit 1: 0 = digits (0 to 9, *, #, and +) only; 1 = alphabet set. bit 2: 0 = SMS default alphabet; 1 = UCS2 alphabet. bit 3: 0 = terminal may echo user input on the display; 1 = user input shall not be revealed in any way (see note). bit 4: 0 = user input to be in unpacked format; 1 = user input to be in SMS packed format. bits 5 to 7: = RFU. bit 8: 0 = no help information available; 1 = help information available. (2)dcs - data coding scheme (3)buffer - reference to the displayed text string source buffer (4)offset - offset of the displayed text string in the source buffer (5)length - length of the displayed text string in the source buffer (6)minRespLength - minimal length of the response text string (7)maxRespLength - maximal length of the response text string Proactive UICC command Tag 9.2 M Y 1 Length (A+B+C+D+E+F+G+H) - M Y 1 or 2 Command details 8.6 M Y A Device identities 8.7 M Y B Text string 8.15 M Y C Response length 8.11 M Y D Default Text 8.23 O N E Icon identifier 8.31 O N F Text Attribute 8.72 O N G Frame Identifier #### 特技 refresh '00'=NAA初始化和完整文件更改通知; '01'=文件更改通知; '02'=NAA初始化和文件更改通知; '03'=NAA初始化; '04'=UICC重置; '05'=NAA应用程序重置,仅适用于3G平台; '06'=NAA会话重置,仅适用于3G平台; '07'=由3GPP保留(“漫游指导”REFRESH支持); '08'=由3GPP保留(用于I-WLAN的漫游指导); '09'=eUICC配置文件状态更改; '0A’至FF’=保留值。 // ProactiveResponseHandler rspHdlr; // rspHdlr = ProactiveResponseHandlerSystem.getTheHandler(); //使用getinput // ph.initGetInput((byte)qualifier,(byte)0x08,(byte[]) text, (short)0x00, (short)text.length , (short)min, (short)max); // phResult1 = ph.send(); // rspHdlr.copyTextString(text, (short)0); //使用display