多IMSI卡切换IMSI日志流程

文章描述了一个多IMSI卡在尝试注册新IMSI并进行网络服务切换的过程。首先,卡尝试用第一个IMSI注册但失败,然后卡发起主动命令26和02,之后卡发起40命令开始切换IMSI。在新IMSI的注册过程中,卡尝试OPENCHANNEL但因未完成注册而失败。最终,新IMSI成功注册后,卡能正常执行OPENCHANNEL并进行数据传输,然后关闭通道。
摘要由CSDN通过智能技术生成

早就知道有多IMSI的卡,但多IMSI之间是怎么切换的一直没有机会看到日志。现在遇到了多IMSI卡切换的日志,记录一下,方便后续参考。

第一个IMSI注册多次一直注册不上:
 

//第一个IMSI注册多次一直注册不上:
……
[0xB0ED]                 OTA LOG                  15:50:29.974007          LTE NAS EMM Plain OTA Outgoing Message                      Attach request Msg                                          1 
     id_type = 1 (0x1) (IMSI)
      odd_even_ind = 1 (0x1)
      num_digits = 15 (0xf)
      digits[0] = 2 (0x2)
      digits[1] = 0 (0x0)
      digits[2] = 8 (0x8)
      digits[3] = 0 (0x0)
      digits[4] = 1 (0x1)
      digits[5] = 1 (0x1)
      digits[6] = 5 (0x5)
      digits[7] = 1 (0x1)
      digits[8] = 9 (0x9)
      digits[9] = 6 (0x6)
      digits[10] = 6 (0x6)
      digits[11] = 0 (0x0)
      digits[12] = 9 (0x9)
      digits[13] = 6 (0x6)
      digits[14] = 9 (0x9)
[0xB0EC]                 OTA LOG                  15:50:30.138015          LTE NAS EMM Plain OTA Incoming Message                      Attach reject Msg                                           1
  emm_attach_reject
    cause_value = 15 (0xf) (No Suitable Cells In tracking area)

[0xB0ED]                 OTA LOG                  15:51:45.821002          LTE NAS EMM Plain OTA Outgoing Message                      Attach request Msg                                          1
      id_type = 1 (0x1) (IMSI)
      odd_even_ind = 1 (0x1)
      num_digits = 15 (0xf)
      digits[0] = 2 (0x2)
      digits[1] = 0 (0x0)
      digits[2] = 8 (0x8)
      digits[3] = 0 (0x0)
      digits[4] = 1 (0x1)
      digits[5] = 1 (0x1)
      digits[6] = 5 (0x5)
      digits[7] = 1 (0x1)
      digits[8] = 9 (0x9)
      digits[9] = 6 (0x6)
      digits[10] = 6 (0x6)
      digits[11] = 0 (0x0)
      digits[12] = 9 (0x9)
      digits[13] = 6 (0x6)
      digits[14] = 9 (0x9)
[0xB0EC]                 OTA LOG                  15:51:45.955406          LTE NAS EMM Plain OTA Incoming Message                      Attach reject Msg                                           1
  emm_attach_reject
    cause_value = 15 (0xf) (No Suitable Cells In tracking area)

[0xB0ED]                 OTA LOG                  15:52:11.350005          LTE NAS EMM Plain OTA Outgoing Message                      Attach request Msg                                          1
[0xB0EC]                 OTA LOG                  15:52:11.601317          LTE NAS EMM Plain OTA Incoming Message                      Attach reject Msg                                           1
[0x713A/008/001]         OTA LOG                  15:52:44.222194          GMM_ATTACH_REQUEST                                          Direction: MS To Network Length: 70                         1
[0x713A/008/018]         OTA LOG                  15:52:47.707997          GMM_AUTHENTICATION_AND_CYPHERING_REQUEST                    Direction:  Network To MS Length: 40                        1
[0x713A/008/019]         OTA LOG                  15:52:47.743023          GMM_AUTHENTICATION_AND_CYPHERING_RESPONSE                    Direction: MS To Network Length: 25                         1
[0x713A/008/004]         OTA LOG                  15:52:48.778026          GMM_ATTACH_REJECT                                           Direction:  Network To MS Length: 3                         1
[0x713A/005/008]         OTA LOG                  15:52:48.780005          LOCATION_UPDATE_REQUEST                                     Direction: MS To Network Length: 23                         1
[0x713A/005/018]         OTA LOG                  15:52:51.977995          AUTHENTICATION_REQUEST                                      Direction:  Network To MS Length: 37                        1
[0x713A/005/020]         OTA LOG                  15:52:52.012005          AUTHENTICATION_RESPONSE                                     Direction: MS To Network Length: 12                         1
[0x713A/005/024]         OTA LOG                  15:52:52.167995          IDENTITY_REQUEST                                             IDENTITY_REQUEST                                            Direction:  Network To MS Length: 3                         1
[0x713A/005/025]         OTA LOG                  15:52:52.167995          IDENTITY_RESPONSE                                           Direction: MS To Network Length: 12                         1
[0x713A/005/004]         OTA LOG                  15:52:52.968050          LOCATION_UPDATE_REJECT                                      Direction:  Network To MS Length: 3                         1

卡发起主动命令,‘26’:PROVIDE LOCAL INFORMATION

//终端用F2命令查询卡状态,卡顺便发起了主动命令,‘26’:PROVIDE LOCAL INFORMATION
[0x19B7]                 LOG                      15:53:08.365117          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 F2 00 0C 00  }
[0x19B7]                 LOG                      15:53:08.370098          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 0B  }
[0x19B7]                 LOG                      15:53:08.370098          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 0B  }
[0x19B7]                 LOG                      15:53:08.371102          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 09 81 03 01 26 00 82 02 81 82 90 00  }
[  21/   0]              MSG                      15:53:08.371102          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:08.371102          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x26, QUALIFIER: 0x0
[0x19B7]                 LOG                      15:53:08.372009          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 17  }
[0x19B7]                 LOG                      15:53:08.373115          UIM APDU                                                    SLOT_1 Type = RX Data = 14
//终端对卡主动命令‘26’的执行结果:03:Result tag;01:Length;'06' = Command performed successfully, limited service;
[0x19B7]                 LOG                      15:53:08.373115          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 26 00 02 02 82 81 03 01 06 FF FF FF FF FF FF FF FF FF FF FF  }
[0x19B7]                 LOG                      15:53:08.383099          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 0B  }
[0x19B7]                 LOG                      15:53:08.383099          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 0B  }

‘02’:MORE TIME

//‘02’:MORE TIME
[0x19B7]                 LOG                      15:53:08.385055          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 09 81 03 01 02 00 82 02 81 82 90 00  }
[  21/   0]              MSG                      15:53:08.385055          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:08.385055          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x2, QUALIFIER: 0x0
[0x19B7]                 LOG                      15:53:08.385055          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 0C  }
[0x19B7]                 LOG                      15:53:08.386116          UIM APDU                                                    SLOT_1 Type = RX Data = 14
[0x19B7]                 LOG                      15:53:08.386116          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 02 00 02 02 82 81 03 01 00  }
[0x19B7]                 LOG                      15:53:08.405097          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 28  }
[0x19B7]                 LOG                      15:53:08.406019          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 28  }

‘40’:OPEN CHANNEL

//‘40’:OPEN CHANNEL
[0x19B7]                 LOG                      15:53:08.409100          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 26 81 03 01 40 01 82 02 81 82 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 90 00  }
[  21/   0]              MSG                      15:53:13.409062          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:13.409062          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x40, QUALIFIER: 0x1
[0x19B7]                 LOG                      15:53:13.410077          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 14  }
[0x19B7]                 LOG                      15:53:13.410077          UIM APDU                                                    SLOT_1 Type = RX Data = 14
//终端对卡主动命令‘40’的执行结果:03:Result tag;02:Length;'20' = ME currently unable to process command;'04' = No service;
[0x19B7]                 LOG                      15:53:13.411075          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 40 01 02 02 82 81 03 02 20 04 35 01 03 39 02 02 00  }
[0x19B7]                 LOG                      15:53:13.413062          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 28  }
[0x19B7]                 LOG                      15:53:13.414017          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 28  }
//卡重复主动命令‘40’:OPEN CHANNEL,得到一样的结果
[0x19B7]                 LOG                      15:53:13.416066          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 26 81 03 01 40 01 82 02 81 82 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 90 00  }
[  21/   0]              MSG                      15:53:18.417011          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:18.417011          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x40, QUALIFIER: 0x1
[0x19B7]                 LOG                      15:53:18.418071          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 14  }
[0x19B7]                 LOG                      15:53:18.418071          UIM APDU                                                    SLOT_1 Type = RX Data = 14
[0x19B7]                 LOG                      15:53:18.418071          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 40 01 02 02 82 81 03 02 20 04 35 01 03 39 02 02 00  }
[0x19B7]                 LOG                      15:53:18.420051          UIM APDU                                                    SLOT_1 Type = RX Data = { 90 00  }

卡发起主动命令,‘26’,‘02’得到一样的结果:

//终端用F2命令查询卡状态,卡顺便发起了主动命令,‘26’,‘02’得到一样的结果:
[0x19B7]                 LOG                      15:53:32.421016          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 F2 00 0C 00  }
[0x19B7]                 LOG                      15:53:32.426432          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 0B  }
[0x19B7]                 LOG                      15:53:32.426432          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 0B  }
[0x19B7]                 LOG                      15:53:32.428021          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 09 81 03 01 26 00 82 02 81 82 90 00  }
[  21/   0]              MSG                      15:53:32.428021          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:32.428021          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x26, QUALIFIER: 0x0
[0x19B7]                 LOG                      15:53:32.428021          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 17  }
[0x19B7]                 LOG                      15:53:32.429089          UIM APDU                                                    SLOT_1 Type = RX Data = 14
[0x19B7]                 LOG                      15:53:32.429089          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 26 00 02 02 82 81 03 01 06 FF FF FF FF FF FF FF FF FF FF FF  }
[0x19B7]                 LOG                      15:53:32.440078          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 0B  }
[0x19B7]                 LOG                      15:53:32.440078          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 0B  }
[0x19B7]                 LOG                      15:53:32.441667          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 09 81 03 01 02 00 82 02 81 82 90 00  }
[  21/   0]              MSG                      15:53:32.441667          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:32.441667          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x2, QUALIFIER: 0x0
[0x19B7]                 LOG                      15:53:32.442005          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 0C  }
[0x19B7]                 LOG                      15:53:32.442005          UIM APDU                                                    SLOT_1 Type = RX Data = 14
[0x19B7]                 LOG                      15:53:32.442005          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 02 00 02 02 82 81 03 01 00  }
[0x19B7]                 LOG                      15:53:32.771198          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 0B  }
[0x19B7]                 LOG                      15:53:32.771198          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 0B  }

卡发起主动命令‘01’:REFRESH,这是切IMSI的开始:

//卡发起主动命令‘01’:REFRESH,这是切IMSI的开始:
[0x19B7]                 LOG                      15:53:32.772110          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 09 81 03 01 01 00 82 02 81 82 90 00  }
[  21/   0]              MSG                      15:53:32.772110          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:32.772110          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x1, QUALIFIER: 0x0
//终端执行REFRESH动作到ready:
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c  11587] Refresh: Refresh State is 0x0, Req Type is 0x0, retry_req is 0x4 for slot 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c  10969] FUNCTION mmgsdi_refresh_req_process_start, slot: 0x1, REFRESH req_type: 0x0
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c   5493] FUNCTION mmgsdi_refresh_process_init for slot: 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c   5629] Refresh: Need to wait for OK_TO_INIT: 0x1, OK_TO_PROCEED: 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c   1376] Refresh: Sending Event MMGSDI_REFRESH_EVT mode= 0x4, stage = 0x5, slot = 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x2, cb = 0xd9571d4c, name = GSDI
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [            mmgsdi.c   8241] Received event: 0x11 in mmgsdi_evt_cb
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c   3231] FUNCTION mmgsdi_refresh_process_evt, event: 0x11, Refresh MODE 0x4, Refresh STAGE: 0x5, Orig MODE 0x4, SLOT 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [            mmgsdi.c  10349] Queue of MMGSDI command: MMGSDI_REFRESH_REQ type 0x4 Status 0x0
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c   1376] Refresh: Sending Event MMGSDI_REFRESH_EVT mode= 0x4, stage = 0x5, slot = 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x60, cb = 0xd9042b48, name = ds
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c   1376] Refresh: Sending Event MMGSDI_REFRESH_EVT mode= 0x4, stage = 0x5, slot = 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x3d, cb = 0xd9645a80, name = gsdi
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c   1376] Refresh: Sending Event MMGSDI_REFRESH_EVT mode= 0x4, stage = 0x5, slot = 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x4f, cb = 0xdcc48c84, name = reg
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [    mmgsdi_refresh.c   1376] Refresh: Sending Event MMGSDI_REFRESH_EVT mode= 0x4, stage = 0x5, slot = 0x1
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x54, cb = 0xdccbb224, name = wms
[  21/   2]              MSG                      15:53:32.772995          User Identity Module/High                                   [            mmgsdi.c  10349] Queue of MMGSDI command: MMGSDI_REFRESH_REQ type 0x4 Status 0x0
[  21/   2]              MSG                      15:53:32.773984          User Identity Module/High                                   [    mmgsdi_refresh.c   1376] Refresh: Sending Event MMGSDI_REFRESH_EVT mode= 0x4, stage = 0x5, slot = 0x1
[  21/   2]              MSG                      15:53:32.773984          User Identity Module/High                                   [            mmgsdi.c  10349] Queue of MMGSDI command: MMGSDI_REFRESH_REQ type 0x4 Status 0x0
[  21/   2]              MSG                      15:53:32.773984          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x6f, cb = 0xdc9f5698, name = cm
[  21/   2]              MSG                      15:53:32.773984          User Identity Module/High                                   [            mmgsdi.c  10349] Queue of MMGSDI command: MMGSDI_REFRESH_REQ type 0x4 Status 0x0
[  21/   2]              MSG                      15:53:32.820005          User Identity Module/High                                   [            mmgsdi.c  10349] Queue of MMGSDI command: MMGSDI_REFRESH_REQ type 0x8 Status 0x0
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [            mmgsdi.c   3667] MMGSDI_PROCESS_COMMAND: 0x18, task 0x1, slot 0x4
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [    mmgsdi_refresh.c  11587] Refresh: Refresh State is 0x3, Req Type is 0x8, retry_req is 0x1 for slot 0x1
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [    mmgsdi_refresh.c  10342] REFRESH: OK_TO_PROCEED response received from session_id = 0x6f, with status = 0x1
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdiutil.c   7891] PIN1 Disabled No Replacement, Can proceed with post pin1
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [    mmgsdi_refresh.c   1573] Refresh: Sending Event MMGSDI_REFRESH_EVT mode= 0x4, stage = 0x0, slot = 0x1
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x2, cb = 0xd9571d4c, name = GSDI
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [    mmgsdi_refresh.c   3231] FUNCTION mmgsdi_refresh_process_evt, event: 0x11, Refresh MODE 0x4, Refresh STAGE: 0x0, Orig MODE 0x4, SLOT 0x1
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdiutil.c  12399] In mmgsdi_util_preinit_mmgsdi, app_type: 0x3, mode: 0x4, slot: 0x1
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_csg.c   3498] mmgsdi_csg_reset_eons_flags_in_app_info
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [       mmgsdicache.c   2306] mmgsdi_cache_delete_prov_file_attr_cache: session_type=0x0
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [       mmgsdicache.c   2383] mmgsdi_cache_delete_item
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [  mmgsdi_card_init.c   9100] In mmgsdi_card_init_build_internal_pup_req, session_id: 0x2, card_state: 0x2, app_state: 0x5
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [  mmgsdi_card_init.c   9173] Successful queue MMGSDI_INTERNAL_PUP_INIT_REQ command
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x11, cb = 0xd9479f64, name = modem
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x18, cb = 0xd9528f90, name = gstk
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [              gstk.c   4350] Queuing cmd: 0x7 0x5
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x47, cb = 0xd934c734, name = ps
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        gstk_state.c    133] gstk_process_state, State: 0x4, Slot: 0x1
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [            mmgsdi.c  10349] Queue of MMGSDI command: MMGSDI_REFRESH_REQ type 0x5 Status 0x0
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0xa1, cb = 0xd934c734, name = ps
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [            mmgsdi.c  10349] Queue of MMGSDI command: MMGSDI_REFRESH_REQ type 0x5 Status 0x0
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x34, cb = 0xd935fda4, name = ps
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x60, cb = 0xd9042b48, name = ds
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x31, cb = 0xdca92c0c, name = mmoc
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x3d, cb = 0xd9645a80, name = gsdi
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x48, cb = 0xd95ee880, name = pbm
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x4f, cb = 0xdcc48c84, name = reg
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x50, cb = 0xdcb8f0c0, name = reg
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x54, cb = 0xdccbb224, name = wms
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x76, cb = 0xd9892cb4, name = ims
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x5d, cb = 0xd9014950, name = hdrmc
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x72, cb = 0xdc85d210, name = sm_tm
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x65, cb = 0xdcac18ec, name = qmi_m
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x6a, cb = 0xd92a30c8, name = dcc
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_evt.c   1041] Sending event 0x11 to client - id_low = 0x0, session - id_low = 0x6f, cb = 0xdc9f5698, name = cm
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [           qmi_uim.c  18551] Refresh event: stage=0x0, mode=0x4, slot=0x1
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [            mmgsdi.c   4562] MMGSDI_PROCESS_RESPONSE for cmd 0x18, task 0x1, slot 0x1, protocol 0x2
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [           qmi_uim.c  18582] Refresh event: slot=0x1, refresh_index=0x0
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [        mmgsdi_cnf.c   1557] In mmgsdi_cnf_build_and_queue, original request type = 0x18,request type = 0x18,slot id = 0x1, status = 0x0
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [           qmi_uim.c   4139] Sending refresh indication (cl_id=0x0)
[  21/   2]              MSG                      15:53:32.821004          User Identity Module/High                                   [  mmgsdi_card_init.c   9214] Internal power-up, curr_card_state: 0x2, curr_app_state: 0x5
[0x19B7]                 LOG                      15:53:32.823013          UIM APDU                                                    SLOT_1 Type = TX Data = { 00 B0 83 00 04  }
[0x19B7]                 LOG                      15:53:32.826007          UIM APDU                                                    SLOT_1 Type = RX Data = { B0 00 00 00 02 90 00  }
[0x19B7]                 LOG                      15:53:32.826007          UIM APDU                                                    SLOT_1 Type = TX Data = { 00 B0 87 00 09  }
[0x19B7]                 LOG                      15:53:32.828009          UIM APDU                                                    SLOT_1 Type = RX Data = { B0 08 49 45 00 36 43 21 90 96 90 00  }
[  21/   2]              MSG                      15:53:32.905000          User Identity Module/High                                   [  mmgsdi_card_init.c   9214] Internal power-up, curr_card_state: 0x2, curr_app_state: 0x6
[  21/   2]              MSG                      15:53:33.099519          User Identity Module/High                                   [            mmgsdi.c   8458] MMGSDI_SUBSCRIPTION_READY_EVT, app: 0x3, slot: 0x1


[0x19B7]                 LOG                      15:53:33.116016          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 F2 01 01 12  }
[0x19B7]                 LOG                      15:53:33.155026          UIM APDU                                                    SLOT_1 Type = RX Data = { F2 84 10 A0 00 00 00 87 10 02 FF FF F0 01 89 00 00 01 FF 90 00  }
[0x19B7]                 LOG                      15:53:33.158001          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 0C  }
[0x19B7]                 LOG                      15:53:33.159009          UIM APDU                                                    SLOT_1 Type = RX Data = 14
//终端把成功执行refresh命令的结果发给卡:
[0x19B7]                 LOG                      15:53:33.159009          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 01 00 02 02 82 81 03 01 00  }
[0x19B7]                 LOG                      15:53:33.164413          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 28  }
[0x19B7]                 LOG                      15:53:33.164413          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 28  }

卡再次发起主动命令40’:OPEN CHANNEL

//卡再次发起主动命令40’:OPEN CHANNEL,新IMSI的卡还没注册,还是无法执行:03:Result tag;02:Length;'20' = ME currently unable to process command;'04' = No service;
[0x19B7]                 LOG                      15:53:33.167035          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 26 81 03 01 40 01 82 02 81 82 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 90 00  }
[  21/   0]              MSG                      15:53:38.167917          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:38.167917          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x40, QUALIFIER: 0x1
[0x19B7]                 LOG                      15:53:38.167995          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 14  }
[0x19B7]                 LOG                      15:53:38.169402          UIM APDU                                                    SLOT_1 Type = RX Data = 14
[0x19B7]                 LOG                      15:53:38.169402          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 40 01 02 02 82 81 03 02 20 04 35 01 03 39 02 02 00  }
[0x19B7]                 LOG                      15:53:38.172162          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 28  }
[0x19B7]                 LOG                      15:53:38.172162          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 28  }
//卡再次发起主动命令40’:OPEN CHANNEL
[0x19B7]                 LOG                      15:53:38.175183          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 26 81 03 01 40 01 82 02 81 82 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 90 00  }
[  21/   0]              MSG                      15:53:38.175183          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:38.175183          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x40, QUALIFIER: 0x1

新IMSI的卡开始注册:

//新IMSI的卡开始注册:
[0xB0ED]                 OTA LOG                  15:53:40.923005          LTE NAS EMM Plain OTA Outgoing Message                      Attach request Msg                                          1
      id_type = 1 (0x1) (IMSI)
      odd_even_ind = 1 (0x1)
      num_digits = 15 (0xf)
      digits[0] = 4 (0x4)
      digits[1] = 5 (0x5)
      digits[2] = 4 (0x4)
      digits[3] = 0 (0x0)
      digits[4] = 0 (0x0)
      digits[5] = 6 (0x6)
      digits[6] = 3 (0x3)
      digits[7] = 3 (0x3)
      digits[8] = 4 (0x4)
      digits[9] = 1 (0x1)
      digits[10] = 2 (0x2)
      digits[11] = 0 (0x0)
      digits[12] = 9 (0x9)
      digits[13] = 6 (0x6)
      digits[14] = 9 (0x9)
[0xB0EC]                 OTA LOG                  15:53:41.419078          LTE NAS EMM Plain OTA Incoming Message                      Authentication request Msg                                  1
[0xB0ED]                 OTA LOG                  15:53:41.460047          LTE NAS EMM Plain OTA Outgoing Message                      Authentication response Msg                                 1
[0xB0EC]                 OTA LOG                  15:53:41.498030          LTE NAS EMM Plain OTA Incoming Message                      Security mode command Msg                                   1
[0xB0ED]                 OTA LOG                  15:53:41.499018          LTE NAS EMM Plain OTA Outgoing Message                      Security mode complete Msg                                  1
[0xB0E2]                 OTA LOG                  15:53:41.547069          LTE NAS ESM Plain OTA Incoming Message                      ESM information request Msg                                 1
[0xB0E3]                 OTA LOG                  15:53:41.547069          LTE NAS ESM Plain OTA Outgoing Message                      ESM information response Msg                                1
    access_point_name
      num_acc_pt_val = 7 (0x7)
      acc_pt_name_val[0] = 6 (0x6) (length)
      acc_pt_name_val[1] = 109 (0x6d) (m)
      acc_pt_name_val[2] = 111 (0x6f) (o)
      acc_pt_name_val[3] = 98 (0x62) (b)
      acc_pt_name_val[4] = 105 (0x69) (i)
      acc_pt_name_val[5] = 108 (0x6c) (l)
      acc_pt_name_val[6] = 101 (0x65) (e)
[  21/   0]              MSG                      15:53:43.175045          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:43.175045          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x40, QUALIFIER: 0x1
[0x19B7]                 LOG                      15:53:43.176062          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 14  }
[0x19B7]                 LOG                      15:53:43.176062          UIM APDU                                                    SLOT_1 Type = RX Data = 14
//由于新IMSI的卡注册过程还没完成,命令40’:OPEN CHANNEL,依然还是无法执行:03:Result tag;02:Length;'20' = ME currently unable to process command;'04' = No service;
[0x19B7]                 LOG                      15:53:43.177074          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 40 01 02 02 82 81 03 02 20 04 35 01 03 39 02 02 00  }
[0x19B7]                 LOG                      15:53:43.178050          UIM APDU                                                    SLOT_1 Type = RX Data = { 90 00  }
[  21/   0]              MSG                      15:53:43.178050          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x1, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:43.178050          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x0, TYPE OF CMD: 0x81, QUALIFIER: 0xff

//attach完成:
[0xB0EC]                 OTA LOG                  15:53:47.627002          LTE NAS EMM Plain OTA Incoming Message                      Attach accept Msg                                           1
          access_point
            num_acc_pt_val = 26 (0x1a)
            acc_pt_name_val[0] = 6 (0x6) (length)
            acc_pt_name_val[1] = 109 (0x6d) (m)
            acc_pt_name_val[2] = 111 (0x6f) (o)
            acc_pt_name_val[3] = 98 (0x62) (b)
            acc_pt_name_val[4] = 105 (0x69) (i)
            acc_pt_name_val[5] = 108 (0x6c) (l)
            acc_pt_name_val[6] = 101 (0x65) (e)
            acc_pt_name_val[7] = 6 (0x6) (length)
            acc_pt_name_val[8] = 109 (0x6d) (m)
            acc_pt_name_val[9] = 110 (0x6e) (n)
            acc_pt_name_val[10] = 99 (0x63) (c)
            acc_pt_name_val[11] = 48 (0x30) (0)
            acc_pt_name_val[12] = 48 (0x30) (0)
            acc_pt_name_val[13] = 48 (0x30) (0)
            acc_pt_name_val[14] = 6 (0x6) (length)
            acc_pt_name_val[15] = 109 (0x6d) (m)
            acc_pt_name_val[16] = 99 (0x63) (c)
            acc_pt_name_val[17] = 99 (0x63) (c)
            acc_pt_name_val[18] = 52 (0x34) (4)
            acc_pt_name_val[19] = 53 (0x35) (5)
            acc_pt_name_val[20] = 52 (0x34) (4)
            acc_pt_name_val[21] = 4 (0x4) (length)
            acc_pt_name_val[22] = 103 (0x67) (g)
            acc_pt_name_val[23] = 112 (0x70) (p)
            acc_pt_name_val[24] = 114 (0x72) (r)
            acc_pt_name_val[25] = 115 (0x73) (s)
          pdn_addr
            pdn_addr_len = 5 (0x5)
            pdn_type = 1 (0x1) (IPv4)
            ipv4_addr = 183266952 (0xaec6e88) (10.236.110.136)
[0xB0E2]                 OTA LOG                  15:53:47.627002          LTE NAS ESM Plain OTA Incoming Message                      Activate default EPS bearer context request Msg             1
[0x19B7]                 LOG                      15:53:47.629002          UIM APDU                                                    SLOT_1 Type = TX Data = { 00 D6 9E 00 12  }
[0x19B7]                 LOG                      15:53:47.631007          UIM APDU                                                    SLOT_1 Type = RX Data = D6
[0x19B7]                 LOG                      15:53:47.631007          UIM APDU                                                    SLOT_1 Type = TX Data = { FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00  }
[0xB0ED]                 OTA LOG                  15:53:47.632001          LTE NAS EMM Plain OTA Outgoing Message                      Attach complete Msg                                         1
[0x19B7]                 LOG                      15:53:47.674070          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 0B  }
[0x19B7]                 LOG                      15:53:47.674070          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 0B  }
[0x19B7]                 LOG                      15:53:47.676056          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 09 81 03 01 02 00 82 02 81 82 90 00  }
[  21/   0]              MSG                      15:53:47.676056          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:47.676056          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x2, QUALIFIER: 0x0

[0x19B7]                 LOG                      15:53:47.850072          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 0C  }
[0x19B7]                 LOG                      15:53:47.851002          UIM APDU                                                    SLOT_1 Type = RX Data = 14
[0x19B7]                 LOG                      15:53:47.851002          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 02 00 02 02 82 81 03 01 00  }
[0x19B7]                 LOG                      15:53:47.870012          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 28  }
[0x19B7]                 LOG                      15:53:47.870012          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 28  }

卡再次发起主动命令40’:OPEN CHANNEL

//卡再次发起主动命令40’:OPEN CHANNEL
[0x19B7]                 LOG                      15:53:47.873110          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 26 81 03 01 40 01 82 02 81 82 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 90 00  }
[  21/   2]              MSG                      15:53:47.873110          User Identity Module/High                                   [       gstk_s_idle.c    736] Received Proactive cmd
[  21/   0]              MSG                      15:53:47.873110          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:47.873110          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x40, QUALIFIER: 0x1
[  21/   2]              MSG                      15:53:47.873110          User Identity Module/High                                   [          estk_bip.c  10920] estk_notify_proactive_command, command=0x40, slot_id=0x1
[  21/   2]              MSG                      15:53:47.873110          User Identity Module/High                                   [      gstk_open_ch.c    446] IN GSTK_OPEN_CH_REQ
//终端执行主动命令40’:OPEN CHANNEL,进行数据拨号:
[0xB0E3]                 OTA LOG                  15:53:49.745006          LTE NAS ESM Plain OTA Outgoing Message                      PDN connectivity request Msg                                1
  pdn_connectivity_req
    pdn_type = 3 (0x3) (Ipv4v6)
    req_type = 1 (0x1) (initial request)
    info_trans_flag_incl = 0 (0x0)
    access_pt_name_incl = 1 (0x1)
    access_pt_name_
      num_acc_pt_val = 4 (0x4)
      acc_pt_name_val[0] = 3 (0x3) (length)
      acc_pt_name_val[1] = 105 (0x69) (i)
      acc_pt_name_val[2] = 109 (0x6d) (m)
      acc_pt_name_val[3] = 115 (0x73) (s)
[0xB0E2]                 OTA LOG                  15:53:53.166003          LTE NAS ESM Plain OTA Incoming Message                      Activate default EPS bearer context request Msg             1
    access_point
      num_acc_pt_val = 25 (0x19)
      acc_pt_name_val[0] = 5 (0x5) (length)
      acc_pt_name_val[1] = 119 (0x77) (w)
      acc_pt_name_val[2] = 98 (0x62) (b)
      acc_pt_name_val[3] = 99 (0x63) (c)
      acc_pt_name_val[4] = 102 (0x66) (f)
      acc_pt_name_val[5] = 103 (0x67) (g)
      acc_pt_name_val[6] = 6 (0x6) (length)
      acc_pt_name_val[7] = 109 (0x6d) (m)
      acc_pt_name_val[8] = 110 (0x6e) (n)
      acc_pt_name_val[9] = 99 (0x63) (c)
      acc_pt_name_val[10] = 48 (0x30) (0)
      acc_pt_name_val[11] = 48 (0x30) (0)
      acc_pt_name_val[12] = 48 (0x30) (0)
      acc_pt_name_val[13] = 6 (0x6) (length)
      acc_pt_name_val[14] = 109 (0x6d) (m)
      acc_pt_name_val[15] = 99 (0x63) (c)
      acc_pt_name_val[16] = 99 (0x63) (c)
      acc_pt_name_val[17] = 52 (0x34) (4)
      acc_pt_name_val[18] = 53 (0x35) (5)
      acc_pt_name_val[19] = 52 (0x34) (4)
      acc_pt_name_val[20] = 4 (0x4) (length)
      acc_pt_name_val[21] = 103 (0x67) (g)
      acc_pt_name_val[22] = 112 (0x70) (p)
      acc_pt_name_val[23] = 114 (0x72) (r)
      acc_pt_name_val[24] = 115 (0x73) (s)
    pdn_addr
      pdn_addr_len = 5 (0x5)
      pdn_type = 1 (0x1) (IPv4)
      ipv4_addr = 181053997 (0xacaaa2d) (10.202.170.45)
[0xB0E3]                 OTA LOG                  15:53:53.170008          LTE NAS ESM Plain OTA Outgoing Message                      Activate default EPS bearer context accept Msg              1


[0x19B7]                 LOG                      15:53:53.170008          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 F2 00 0C 00  }
[0x19B7]                 LOG                      15:53:53.201042          UIM APDU                                                    SLOT_1 Type = RX Data = { 90 00  }
[0x19B7]                 LOG                      15:53:53.201042          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 17  }
[0x19B7]                 LOG                      15:53:53.202039          UIM APDU                                                    SLOT_1 Type = RX Data = 14
//终端成功执行主动命令40’:OPEN CHANNEL,将结果返回给卡
[0x19B7]                 LOG                      15:53:53.202039          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 40 01 02 02 82 81 03 01 00 38 02 81 00 35 01 03 39 02 02 00  }
[0x19B7]                 LOG                      15:53:53.204032          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 31  }
[0x19B7]                 LOG                      15:53:53.204032          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 31  }

卡发起主动命令‘43’:SEND DATA

//卡发起主动命令‘43’:SEND DATA。可以猜出卡一直OPEN CHANNEL目的是向它的服务器发送数据的:
[0x19B7]                 LOG                      15:53:53.207038          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 2F 81 03 01 43 01 82 02 81 21 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 90 00  }
[  21/   0]              MSG                      15:53:53.207038          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:53.207038          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x43, QUALIFIER: 0x1
[  21/   2]              MSG                      15:53:53.207038          User Identity Module/High                                   [          estk_bip.c  10920] estk_notify_proactive_command, command=0x43, slot_id=0x1
[  21/   0]              MSG                      15:53:53.207038          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:53.207038          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x43, QUALIFIER: 0x1
[  21/   2]              MSG                      15:53:53.207038          User Identity Module/High                                   [          estk_bip.c   8926] estk_process_send_data_req: cmd_detail_reference: 0x11d0000, ch_id: 0x1
[  21/   2]              MSG                      15:53:53.207038          User Identity Module/High                                   [          estk_bip.c   1558] estk_bip_write_sock, index=0x0, cmd_ref_id=0x11d0000, p_dest_addr_v4=0xe32d8e30
[  21/   2]              MSG                      15:53:53.207038          User Identity Module/High                                   [          estk_bip.c   1573] Send Data len 0x24
[0x19B7]                 LOG                      15:53:53.209004          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 0F  }
[0x19B7]                 LOG                      15:53:53.210072          UIM APDU                                                    SLOT_1 Type = RX Data = 14
//终端成功执行了主动命令‘43’:SEND DATA,将结果返回给卡,卡关闭了主动会话:
[0x19B7]                 LOG                      15:53:53.210072          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 43 01 02 02 82 81 03 01 00 37 01 FF  }
[0x19B7]                 LOG                      15:53:53.212002          UIM APDU                                                    SLOT_1 Type = RX Data = { 90 00  }

[  21/   0]              MSG                      15:53:53.212002          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x1, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:53.212002          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x0, TYPE OF CMD: 0x81, QUALIFIER: 0xff
[  21/   2]              MSG                      15:53:53.212002          User Identity Module/High                                   [gstk_proactive_cmd.c   1799] END Proactive session

[0x19B7]                 LOG                      15:53:53.315159          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 C2 00 00 10  }
[0x19B7]                 LOG                      15:53:53.316009          UIM APDU                                                    SLOT_1 Type = RX Data = C2
[0x19B7]                 LOG                      15:53:53.316009          UIM APDU                                                    SLOT_1 Type = TX Data = { D6 0E 19 01 09 02 02 82 81 FF FF FF FF FF FF FF  }
[0x19B7]                 LOG                      15:53:53.318009          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 0E  }
[0x19B7]                 LOG                      15:53:53.319012          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 0E  }

卡发起主动命令‘42’:RECEIVE DATA

//卡发起主动命令‘42’:RECEIVE DATA:
[0x19B7]                 LOG                      15:53:53.320013          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 0C 81 03 01 42 00 82 02 81 21 B7 01 34 90 00  }
[  21/   0]              MSG                      15:53:53.320013          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:53.320013          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x42, QUALIFIER: 0x0
[0x19B7]                 LOG                      15:53:53.321078          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 45  }
[0x19B7]                 LOG                      15:53:53.321078          UIM APDU                                                    SLOT_1 Type = RX Data = 14
[0x19B7]                 LOG                      15:53:53.322044          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 42 00 02 02 82 81 03 01 00 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  }
[0x19B7]                 LOG                      15:53:53.348023          UIM APDU                                                    SLOT_1 Type = RX Data = { 91 0B  }
[0x19B7]                 LOG                      15:53:53.348023          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 12 00 00 0B  }

卡发起主动命令‘41’:CLOSE CHANNEL

//卡发起主动命令‘41’:CLOSE CHANNEL:
[0x19B7]                 LOG                      15:53:53.350012          UIM APDU                                                    SLOT_1 Type = RX Data = { 12 D0 09 81 03 01 41 00 82 02 81 21 90 00  }
[  21/   0]              MSG                      15:53:53.350012          User Identity Module/Low                                    [gstk_proactive_cmd.c    886]  COMMAND DETAILS TAG: 0x81, TAG LEN: 0x3
[  21/   2]              MSG                      15:53:53.350012          User Identity Module/High                                   [gstk_proactive_cmd.c    890]  COMMAND DETAILS CMD NUM: 0x1, TYPE OF CMD: 0x41, QUALIFIER: 0x0
//终端执行命令‘41’:CLOSE CHANNEL,进行断拨号:
[0xB0E3]                 OTA LOG                  15:53:53.352002          LTE NAS ESM Plain OTA Outgoing Message                      PDN disconnect request Msg                                  1
[0x19B7]                 LOG                      15:53:53.354003          UIM APDU                                                    SLOT_1 Type = TX Data = { 80 14 00 00 0C  }
[0x19B7]                 LOG                      15:53:53.355144          UIM APDU                                                    SLOT_1 Type = RX Data = 14
[0x19B7]                 LOG                      15:53:53.355144          UIM APDU                                                    SLOT_1 Type = TX Data = { 81 03 01 41 00 02 02 82 81 03 01 00  }
[0xB0E2]                 OTA LOG                  15:53:53.492007          LTE NAS ESM Plain OTA Incoming Message                      Deactivate EPS bearer context request Msg                   1
[0xB0E3]                 OTA LOG                  15:53:53.493005          LTE NAS ESM Plain OTA Outgoing Message                      Deactivate EPS bearer context accept Msg                    1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值