How to get the SIM number (ICCID) of a modem using AT commands

57,690

Solution 1

It works with AT+CRSM and also AT+CSIM.

Solution 2

Try "AT^ICCID?". tested on Huawei E173.

Solution 3

for sim900 AT+CCID gives CCID. e.g.89912200000280775659

The first two digits (89 in the example) refers to the Telecom Id. The next two digits (91 in the example) refers to the country code (91-India). The next two digits (22 in the example(MNC of IDEA)) refers to the network code.

Solution 4

AT+ICCID on galaxy S4 in modem mode.

Solution 5

AT+CICCID on an Iridium satellite modem.

Share:
57,690
Forge
Author by

Forge

SOreadytohelp

Updated on July 09, 2022

Comments

  • Forge
    Forge almost 2 years

    I'm trying to get the SIM number (ICCID, not IMSI) of my 3G Huawei E5830 modem using AT commands (also called Hayes command set).

    Unfortunately, it's not specified in the modem formal documentation.

  • Forge
    Forge over 13 years
    there are a few more commands that do that, s.a - AT!ICCID. each device supports it's own at commands, to get those commands use AT+CLAC
  • Gabriel
    Gabriel almost 13 years
    I try to use that commands but i allways get CME ERROR: 50, i'm usign a modem huawei e173, do you have any ideas?
  • Pelle
    Pelle over 7 years
    This works on my EM820W as well, but with the digits pair-wise swapped, eg AT^ICCID? ^ICCID: "981344xyxyxyxyxyxyxyxyxy" where the number printed on the sim is 893144yxyxyxyxyxyx etc.
  • lornova
    lornova over 2 years
    Also works with Huawei ME906s-158 with the following command: mmcli -m 0 --command AT^ICCID? after restarting NetworkManager and ModemManager in debug mode