Troubles working with EXTERNAL_SLOT_2 on WPx5xx

We have the same problem with WP8548 (on MangoH Green, primary CF3) and WP7502 (on our custom board). Using ‘cm sim select’ command we can’t switch to EXTERNAL_SLOT_2. E.g.

login as: root
Linux swi-mdm9x15 3.14.29ltsi-5d7a6bf7c6_ed88cc68b5 #2 PREEMPT Sat Feb 6 02:37:18 PST 2016 armv7l GNU/Linux
root@swi-mdm9x15:~# cm radio
Power: OFF
Current Network Operator:
Status: Not registered and not currently searching for new operator (LE_MRC_REG_NONE)
Signal: No signal strength (0)

root@swi-mdm9x15:~# cm sim info
Type: EXTERNAL_SLOT_1
ICCID: 89701202115300878591
Home Network Operator: Tele2 RU
IMSI: 250202106237359
Phone Number:
root@swi-mdm9x15:~# cm sim select EXTERNAL_SLOT_2
root@swi-mdm9x15:~# cm sim info
Type: EXTERNAL_SLOT_2
ICCID:
Home Network Operator: MegaFon RUS
IMSI:
Phone Number:
root@swi-mdm9x15:~# cm sim
SIM card is absent (LE_SIM_ABSENT).

root@swi-mdm9x15:~#

But when we reboot the board with the EXTERNAL_SLOT_2 selected, ‘cm sim info’ gives us meaningfull information (after reboot completed), ‘cm sim’ reports READY for the second slot and we can establish a connection using ‘cm data connect’ command. When we switch from SLOT_2 to SLOT_1 and back then SIM 2 is reported as ABSENT again (until next reboot). SLOT_1 is always reported as READY.
Could anyone help? Is there a tricky command sequence?

SIM1 has SIM DETECT signal and doesn’t need to power cycle after insertion. But you need to power cycle each time you remove and insert the SIM2.

Habib. Thank you for your reply.
In my first message I wasn’t clear enought. So let me clarify. I have a mangOH Green board with WP8548 installed in a primary CF3. I also have 2 SIM cards installed (for 2 different mobile network operators: Megafon and Tele2 - they work in Russia) in two different UIM sockets on my mangOH board. I DON’T physically switch/remove/reinstall those SIMs during my work. I’m just trying to switch between them with “cm sim select EXTERNAL_SLOT_*” commands. The problem is that I can’t switch to EXTERNAL_SLOT_2 without power cycling the board: “cm sim” reports “LE_SIM_ABSENT” for the second slot.
So if you (or someone else on this forum who have a mangOH Green board with a WPx5xx and 2 SIMs installed) could run few commands through SSH on your mangOH Green board and post results here I would be sooo happy! :slight_smile: Here are these commands:
cm sim select EXTERNAL_SLOT_1
cm sim
cm sim select EXTERNAL_SLOT_2
cm sim
cm sim info

By the way. I’ve found out that I still CAN switch between SIMs through AT-commands. So strange.

Here you go:
root@swi-mdm9x15:~# cm sim select EXTERNAL_SLOT_1
root@swi-mdm9x15:~# cm sim
SIM card is inserted and unlocked (LE_SIM_READY).

root@swi-mdm9x15:~# cm sim select EXTERNAL_SLOT_2
root@swi-mdm9x15:~# cm sim
SIM card is inserted and unlocked (LE_SIM_READY).

root@swi-mdm9x15:~# cm sim info
Type: EXTERNAL_SLOT_2
ICCID: 89332401000004349797
Home Network Operator: I TIM
IMSI: 222013094567002
Phone Number:

1 Like

Habib,
Thank you so much! One more thing to verify. Do you use a custom build firmware or downloaded one? I use a downloaded:
root@swi-mdm9x15:~# cm info firmware
SWI9X15Y_07.12.14.00 r34472 CARMD-EV-FRMWR1 2017/11/29 18:24:42

Just a quick update.
I’ve updated legato framework on a target (WP8548/mangOH Green) to the latest version so far - 18.05. It still reports LE_SIM_ABSENT for the second SIM but I can connect with ‘cm data connect’ command (after the second attempt though). That’s a big step further!

hi when i select the sim 2 slot receiving the message as unable to select
the command issued is cm sim select EXTERNAL_SLOT_2
the response is Unable to select ‘EXTERNAL_SLOT_2’.

can any one guide me how to select the SIM Slot 2 and the firmware version used is
SWI9X07Y_02.18.05.00 000000 jenkins 2018/07/19 17:40:21

how about using AT!UIMS=1

AT!UIMS=1
OK
cm sim select EXTERNAL_SLOT_2
Unable to select ‘EXTERNAL_SLOT_2’.

Then can it read the IMSI of the SIM card in slot 2?
AT+CPIN?
AT+CCID

AT!UIMS=1
OK
AT+CPIN?
+CPIN: READY

OK
AT+CCID
+CCID: 89332500000010664981,89033025817621002125110029481692

OK

Then it should switch to SIM slot 2

root@swi-mdm9x28-wp:~# cm sim info
Type: EMBEDDED
ICCID: 89332500000010664981
Home Network Operator: Sierra Wireless
EID:
IMSI: 234500040766490
Phone Number:

but i kept sim card in External slot 2 and Network operator is BSNL

it is using the embedded sierra SIM now.

is there any option to make it to use External SIM Instead of embedde sim

you can see here in PTS:

can i get this reference document and the AT command document

you can search in source.sierrawireless.com

ok thank you so much …