EM7565 Dual SIM visibility

Hi

I have an EM7565 with 2 SIM cards connected tot he modem.

In the initial configuration of the modem with the firmware ‘01.00.02.00_GENERIC’ as it was delivered by Sierra, I was able to see the 2 SIM cards with :
qmicli -d /dev/cdc-wdm0 --uim-get-card-status

qmicli -d /dev/cdc-wdm0 --uim-get-card-status

[/dev/cdc-wdm0] Successfully got card status
Provisioning applications:
Primary GW: slot ‘0’, application ‘0’
Primary 1X: session doesn’t exist
Secondary GW: slot ‘1’, application ‘0’
Secondary 1X: session doesn’t exist
Card [0]:
Card state: ‘present’
UPIN state: ‘not-initialized’
UPIN retries: ‘0’
UPUK retries: ‘0’
Application [0]:
Application type: ‘usim (2)’
Application state: ‘ready’
Application ID:
A0:00:00:00:87:10:02:FF:44:FF:12:89:00:00:01:00
Personalization state: ‘ready’
UPIN replaces PIN1: ‘no’
PIN1 state: ‘disabled’
PIN1 retries: ‘3’
PUK1 retries: ‘10’
PIN2 state: ‘enabled-not-verified’
PIN2 retries: ‘3’
PUK2 retries: ‘10’
Application [1]:
Application type: ‘isim (5)’
Application state: ‘detected’
Application ID:
A0:00:00:00:87:10:04:FF:FF:FF:FF:89:07:03:00:00
Personalization state: ‘unknown’
UPIN replaces PIN1: ‘no’
PIN1 state: ‘disabled’
PIN1 retries: ‘3’
PUK1 retries: ‘10’
PIN2 state: ‘not-initialized’
PIN2 retries: ‘0’
PUK2 retries: ‘0’
Application [2]:
Application type: ‘unknown (0)’
Application state: ‘detected’
Application ID:
A0:00:00:00:63:50:4B:43:53:2D:31:35
Personalization state: ‘unknown’
UPIN replaces PIN1: ‘no’
PIN1 state: ‘not-initialized’
PIN1 retries: ‘0’
PUK1 retries: ‘0’
PIN2 state: ‘not-initialized’
PIN2 retries: ‘0’
PUK2 retries: ‘0’
Card [1]:
Card state: ‘present’
UPIN state: ‘not-initialized’
UPIN retries: ‘0’
UPUK retries: ‘0’
Application [0]:
Application type: ‘usim (2)’
Application state: ‘ready’
Application ID:
A0:00:00:00:87:10:02:FF:44:FF:12:89:00:00:01:00
Personalization state: ‘ready’
UPIN replaces PIN1: ‘no’
PIN1 state: ‘disabled’
PIN1 retries: ‘3’
PUK1 retries: ‘10’
PIN2 state: ‘enabled-not-verified’
PIN2 retries: ‘3’
PUK2 retries: ‘10’
Application [1]:
Application type: ‘isim (5)’
Application state: ‘detected’
Application ID:
A0:00:00:00:87:10:04:FF:FF:FF:FF:89:07:03:00:00
Personalization state: ‘unknown’
UPIN replaces PIN1: ‘no’
PIN1 state: ‘not-initialized’
PIN1 retries: ‘0’
PUK1 retries: ‘0’
PIN2 state: ‘not-initialized’
PIN2 retries: ‘0’
PUK2 retries: ‘0’
Application [2]:
Application type: ‘unknown (0)’
Application state: ‘detected’
Application ID:
A0:00:00:00:63:50:4B:43:53:2D:31:35
Personalization state: ‘unknown’
UPIN replaces PIN1: ‘no’
PIN1 state: ‘not-initialized’
PIN1 retries: ‘0’
PUK1 retries: ‘0’
PIN2 state: ‘not-initialized’

But I was only able to connect with SIM card 1 that was configured as primary SIM.
So I searched for a way to swithc primary SIM.
I did it by using AT command AT!UIMS=0 or 1 (to select SIM1 or SIM2 as primary SIM).
But after that I have only one SIM card reported present by the command :
qmicli -d /dev/cdc-wdm0 --uim-get-card-status
It is only primary SIM taht is reported present (wether it is SIM 1 or SIM 2). I can still switch correctly from one to the other. I can connect with one or the other. But I can’t anymore have information on the secondary SIM.
I thought it could be a problem with the firmaware version and updated to V.01.05.01.00
But I have the same behaviour.
The qmicli -d /dev/cdc-wdm0 --uim-get-card-status reprots the SIM card as follow when 2 SIM cards are present in slots :

qmicli -d /dev/cdc-wdm0 --uim-get-card-status

[/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]:
Application type: ‘usim (2)’
Application state: ‘pin1-or-upin-pin-required’
Application ID:
A0:00:00:00:87:10:02:FF:FF:FF:FF:89:03:02:00:00
Personalization state: ‘unknown’
UPIN replaces PIN1: ‘no’
PIN1 state: ‘enabled-not-verified’
PIN1 retries: ‘3’
PUK1 retries: ‘10’
PIN2 state: ‘enabled-not-verified’
PIN2 retries: ‘3’
PUK2 retries: ‘10’
Card [1]:
Card state: ‘absent’
UPIN state: ‘not-initialized’
UPIN retries: ‘0’
UPUK retries: ‘0’

I thought the problem could be that SIM2 is powered OFF but if you look at the reported status, it is “absent” status while the card is really present. It would be “powered-off” status if it was really powered OFF.

So my question : I know that we can only connect one SIM card at a time so it is not really a problem to see only the primary SIM that is the one we will connect. But is it correct to report secondary SIM absent while it is plugged ? I am not sure.
Morevover, this was working correctly (2 SIM s reported) before I used the AT!UIMS=0 or 1 command to select primary SIM. So the use of this command possibly chnaged some configuration in the modem itself resulting in only 1 SIM being showed by the --uim-get-card-status command. So is AT!UIMS=0 or 1 the correct way to switch primary SIM ? Is there another way that would keep both SIM reported present ?
Is it that I do things the wrong way or a problem in the firmware ?
Or is it on purpose that only one SIM is reported present ? In thta case, why are 2 SIM cards reported present while we do not use AT!UIMS=0 or 1 command ?

Thanks in advance.

In Technical Note 2174122, regarding AT!UIMS on EM74xx, it says “Even though 2 SIM cards are supported,
only one slot will be active and monitored at any given time. The SIM in the inactive slot is not monitored.”

So, I guess that what you are probably seeing on the EM7565 with qmicli is that Card[0] represents the !UIMS-mux’d SIM1/SIM2 channel, and Card[1] is the eSIM channel?

Hi pmonnie,

I have been using EM7565 with the most recent 01.08.04_GENERIC firmware/PRI and run into the exact thing as you did last year.

My feeling is that, the --uim-get-card-status can only report the information for the currently activated slot, and I am also trying to figure out if it is possible at all to tell if a SIM is available or not in the un-activated slot

My other finding is that, if only one slot is with SIM, using the UIMS AT command to switch to the empty slot, then using the UIMS AT command to change back to the previous slot with SIM, the SIM can’t be detected by ModemManager any more.

My feeling is that using UIMS AT command to switch to an empty slot will make the modem in some state unable to respond to further UIMS AT command, but I can’t prove it yet.

Harry

See Dual SIM mangament in QMI or AT commands for some comments regarding AT!UIMS vs the associated slot management QMI commands.

1 Like

Thanks a lot for your further information! Looking forward to using the new --uim-get-slot-status command!