EM7565: UMI card status remain absent for more than 1 min when Powerup in Roaming countries

When EM7565 modem is powered up in the Roaming country then the QMI UIM card status returns Card state: ‘absent’ for almost 67 seconds (worst case) before it actually returns card present. This is very inconsistent. Sometimes on powerup, it immediately returns Card state: ‘present’.
When same operation is performed in Home country then every time Card state: ‘present’. within in couple of seconds as soon as modem is powered up.
[10 Apr 2023, 19:14:08] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
[/dev/cdc-wdm0] Successfully got card status
Provisioning applications:
Primary GW: session doesn’t exist
Primary 1X: session doesn’t exist
Secondary GW: session doesn’t exist
Secondary 1X: session doesn’t exist
Card [0]:
Card state: ‘absent’
UPIN state: ‘not-initialized’
UPIN retries: ‘0’
UPUK retries: ‘0’

~ # qmicli -p -d /dev/cdc-wdm0 --uim-get-card-status
[10 Apr 2023, 19:15:15] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
[/dev/cdc-wdm0] Successfully got card status
Provisioning applications:
		Primary GW:   slot '0', application '0'
		Primary 1X:   session doesn't exist
		Secondary GW: session doesn't exist
		Secondary 1X: session doesn't exist
Card [0]:
		Card state: 'present'
		UPIN state: 'not-initialized'
				UPIN retries: '0'
				UPUK retries: '0'
		Application [0]:

Did anyone has recommendation or suggestion for this inconsistent behavior in Roaming vs Home country powered up.

have you checked with AT command “AT+CPIN?” first
Which FW are you using?

Hi, I am using SWI9X50C_01.14.13.00_GENERIC_002.048_000 FW.
It seems Modem is storing/caching the UIM status on reset. So if we have one SIM only in Slot1 and that SIM s in Roaming (does not connect) then when Modem start attempting connecting with slot2 (no interface is available) then there is a window of time ~10 seconds in which both SIM status is reported as Absent/Absent (see below). In this duration if modem is reset then on power up UIM status shows same status as Absent/Absent.
Hence my next question is : Does EM7565 cache the last UIM status?
~ # qmicli -p -d /dev/cdc-wdm0 --uim-get-card-status
[10 Apr 2023, 19:14:08] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
[/dev/cdc-wdm0] Successfully got card status
Provisioning applications:
Primary GW: session doesn’t exist
Primary 1X: session doesn’t exist
Secondary GW: session doesn’t exist
Secondary 1X: session doesn’t exist
Card [0]:
Card state: ‘absent’
UPIN state: ‘not-initialized’
UPIN retries: ‘0’
UPUK retries: ‘0’
Card [1]:
Card state: ‘absent’
UPIN state: ‘not-initialized’
UPIN retries: ‘0’
UPUK retries: ‘0’

have you checked with AT command “AT+CPIN?” first

It is reported as at+cpin?
+CME ERROR: SIM not inserted

could it be hardware issue on sim slot or sim card?
What if you don’t connect antenna?

Hi,

Could you please help me why i get in between (momentarily) PLMN: '000000 in the Roaming location? Is this from service provider or inbuilt message from the Modem?

[14 Apr 2023, 23:19:05] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
[/dev/cdc-wdm0] Successfully got cell location info
Intrafrequency LTE Info
UE In Idle: ‘yes’
PLMN: ‘000000’
Tracking Area Code: ‘65535’
Global Cell ID: ‘4294967295’
EUTRA Absolute RF Channel Number: ‘5110’ (E-UTRA band 12: 700 a)
Serving Cell ID: ‘448’
Cell Reselection Priority: ‘0’
S Non Intra Search Threshold: ‘0’
Serving Cell Low Threshold: ‘0’
S Intra Search Threshold: ‘0’
Interfrequency LTE Info
UE In Idle: ‘yes’
LTE Info Neighboring GSM
UE In Idle: ‘yes’
LTE Info Neighboring WCDMA
UE In Idle: ‘yes’

as Second after this was the Cell Info.
[14 Apr 2023, 23:19:04] -Warning ** [/dev/cdc-wdm0] requested auto mode but no MBIM QMUX support available
[/dev/cdc-wdm0] Successfully got cell location info
Intrafrequency LTE Info
UE In Idle: ‘no’
PLMN: ‘310026’
Tracking Area Code: ‘13331’
Global Cell ID: ‘226003222’
EUTRA Absolute RF Channel Number: ‘5035’ (E-UTRA band 12: 700 a)
Serving Cell ID: ‘34’
Cell [0]:
Physical Cell ID: ‘34’
RSRQ: ‘-10.5’ dB
RSRP: ‘-82.3’ dBm
RSSI: ‘-59.9’ dBm
Cell [1]:
Physical Cell ID: ‘121’
RSRQ: ‘-18.7’ dB
RSRP: ‘-91.9’ dBm
RSSI: ‘-65.5’ dBm
Interfrequency LTE Info
UE In Idle: ‘no’
Frequency [0]:
EUTRA Absolute RF Channel Number: ‘39874’ (E-UTRA band 41: TD 2500)
Selection RX Level Low Threshold: ‘0’
Cell Selection RX Level High Threshold: ‘0’
Frequency [1]:
EUTRA Absolute RF Channel Number: ‘40072’ (E-UTRA band 41: TD 2500)
Selection RX Level Low Threshold: ‘0’
Cell Selection RX Level High Threshold: ‘0’
Frequency [2]:
EUTRA Absolute RF Channel Number: ‘675’ (E-UTRA band 2: 1900 PCS)
Selection RX Level Low Threshold: ‘0’
Cell Selection RX Level High Threshold: ‘0’
LTE Info Neighboring GSM
UE In Idle: ‘no’
LTE Info Neighboring WCDMA
UE In Idle: ‘no’
e[He[JEvery 1.0s: qmicli -d /dev/cdc-wdm0 -p --nas-get-cell-location-2023-04-14 23:19:05

did you check AT+COPS?
e.g.
AT+COPS=3,2
AT+COPS?

It seems EM7565 remember the card[0] and card[1] state on on reboot. Hence, we were seeing the card state as absent on powerup.