le_sim_GetIMSI doesn't seem to work


#21

Regarding R10 I’m not sure, but I think it this should arrive very soon and should be based on Legato 18.06.
I’m notified the team to see if we can squeeze that fix in, but since we have issues reproducing the bug it would be good to have your feedback first (and I apologize for missing your previous feedbacks where you had issues using the patch :frowning: ).

Thanks


#22

Actually it seems that the issue was solved in 18.03.0, can you confirm the version of Legato that you’re working with?


#23

@CoRfr, yes, 18.03, with R9 although it isn’t the “stock” version as I’ve removed apps I don’t use. But even with R9 stock version, it doesn’t work. Again, this is for a WP7601 which is the Verizon flavor.


#24

@CoRfr, Here is the info from the stock version of SW’s Verizon R9:

root@swi-mdm9x28:~# cm info
Device: WP7601-1
IMEI: 351xxxxxxxxxx (removed for security)
IMEISV: 1
FSN: WC741xxxxxx (removed for security)
Firmware Version: SWI9X07Y_02.10.00.00 000000 jenkins 2017/11/02 23:09:00
Bootloader Version: SWI9X07Y_02.10.00.00 000000 jenkins 2017/11/02 23:09:00
MCU Version: 002.009
PRI Part Number (PN): 9907596
PRI Revision: 001.001
Carrier PRI Name: VERIZON
Carrier PRI Revision: 002.014_002
SKU: 1103728
Last Reset Cause: Unknown
Resets Count: Expected: 443 Unexpected: 116
root@swi-mdm9x28:~# cm sim info
Type: EXTERNAL_SLOT_1
ICCID: 8914800000xxxxxxxxxx (removed for security)
Home Network Operator:
EID:
IMSI:
Phone Number: +1xxxxxxxxx (removed for security)
root@swi-mdm9x28:~# legato version
18.03.0_b463e04cf08fb8d8f1ea5ee00d7894c0


#25

Could you gather some logs through:

log level DEBUG
logread -f &
cm sim imsi

I tried on my side and can’t reproduce the issue since my AT+CIMI doesn’t return the IMSI in INSERTED state.


#26

@CoRfr,

Sure.

Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | configTree[671]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (27).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | configTree[671]/configTree T=main | treeUser.c GetUserInfo() 244 | ** Found user <0x7f59036c>: ‘root’, 0 with default tree, ‘system’.
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (98).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (99).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (100).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (101).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (102).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (103).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (104).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (105).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (106).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | cellNetService[685]/framework T=main | LE_FILENAME ExtractFileDescriptor() 34 | Received fd (15).
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 807 | QMI_UIM_GET_CARD_STATUS_RESP_V01 sent to Modem
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 807 | QMI_UIM_GET_SLOTS_STATUS_REQ_V01 sent to Modem
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/le_pa T=main | pa_sim_qmi.c GetUimSlots() 1258 | physical_slot_status_len.2 (QMI value)
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/le_pa T=main | pa_sim_qmi.c RetrieveSimApplicationType() 1888 | QMI SIM index 0
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/le_pa T=main | pa_sim_qmi.c RetrieveSimApplicationType() 1894 | Card Status Validity 1
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/le_pa T=main | pa_sim_qmi.c RetrieveSimApplicationType() 1906 | Card state 1 (err 0)
Jan 6 00:04:50 swi-mdm9x28 user.warn Legato: -WRN- | modemDaemon[689]/le_pa T=main | pa_sim_qmi.c RetrieveSimApplicationType() 1924 | More than one application 4)
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/le_pa T=main | pa_sim_qmi.c RetrieveSimApplicationType() 1967 | SIM application type 3
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/le_pa T=main | pa_sim_qmi.c GetSimApplicationType() 2029 | SIM application type 3
Jan 6 00:04:50 swi-mdm9x28 user.err Legato: =ERR= | modemDaemon[689]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 813 | Sending QMI_NAS_GET_3GPP2_SUBSCRIPTION_INFO_RESP_MSG_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=25.[0x19]
Jan 6 00:04:50 swi-mdm9x28 user.err Legato: =ERR= | modemDaemon[689]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 813 | Sending QMI_NAS_GET_3GPP2_SUBSCRIPTION_INFO_RESP_MSG_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=25.[0x19]
Jan 6 00:04:50 swi-mdm9x28 user.err Legato: =ERR= | modemDaemon[689]/le_pa T=main | pa_sim_qmi.c GetCdmaIMSI() 2176 | Failed to copy IMSI
Jan 6 00:04:50 swi-mdm9x28 user.err Legato: =ERR= | modemDaemon[689]/modemDaemon T=main | le_sim.c le_sim_GetIMSI() 1173 | Failed to get the IMSI of sim identifier.1
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | configTree[671]/configTree T=main | requestQueue.c ProcessRequestQueue() 287 | ** Processing request queue now.
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | configTree[671]/configTree T=main | treeUser.c GetUserInfo() 244 | ** Found user <0x7f59036c>: ‘root’, 0 with default tree, ‘system’.
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | configTree[671]/framework T=main | le_cfg_server.c CleanupClientData() 169 | Client 0x7f5ff06c is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | configTree[671]/framework T=main | le_cfg_server.c CleanupClientData() 190 | Found session ref 0x7f5db9f4; does not match
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | configTree[671]/framework T=main | le_cfg_server.c CleanupClientData() 190 | Found session ref 0x7f57da14; does not match
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | cellNetService[685]/framework T=main | le_cellnet_server.c CleanupClientData() 148 | Client 0x7f57db34 is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | cellNetService[685]/framework T=main | le_cellnet_server.c CleanupClientData() 169 | Found session ref 0x7f57dbc4; does not match
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/modemDaemon T=main | le_mrc.c CloseSessionEventHandler() 1199 | SessionRef (0x7f61b074) has been closed
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_mrc_server.c CleanupClientData() 148 | Client 0x7f61b074 is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_mrc_server.c CleanupClientData() 169 | Found session ref 0x7f61a01c; does not match
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_mrc_server.c CleanupClientData() 169 | Found session ref 0x7f618b6c; does not match
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_mdc_server.c CleanupClientData() 148 | Client 0x7f61ae7c is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/modemDaemon T=main | le_sim.c CloseSessionEventHandler() 878 | SessionRef (0x7f61ad4c) has been closed
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_sim_server.c CleanupClientData() 148 | Client 0x7f61ad4c is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_sim_server.c CleanupClientData() 169 | Found session ref 0x7f618844; does not match
Jan 6 00:04:50 swi-mdm9x28 user.err Legato: =ERR= | modemDaemon[689]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2311 | SessionRef (0x7f61ab54) has been closed
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_sms_server.c CleanupClientData() 148 | Client 0x7f61ab54 is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_info_server.c CleanupClientData() 148 | Client 0x7f61aa24 is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_adc_server.c CleanupClientData() 148 | Client 0x7f61a82c is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/modemDaemon T=main | le_temp.c CloseSessionEventHandler() 226 | SessionRef (0x7f61a6fc) has been closed
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_temp_server.c CleanupClientData() 148 | Client 0x7f61a6fc is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_ips_server.c CleanupClientData() 148 | Client 0x7f61a504 is closed !!!
Jan 6 00:04:50 swi-mdm9x28 user.debug Legato: DBUG | modemDaemon[689]/framework T=main | le_rtc_server.c CleanupClientData() 148 | Client 0x7f61a3d4 is closed !!!


#27

Hi @CoRfr,
I now have R10.1 for the WP7601, and unfortunately, it still has the same issue. I can still get the IMSI via the AT+CIMI command with the AT port.