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

Forge picture Forge · Nov 17, 2010 · Viewed 51.8k times · Source

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.

Answer

SMITA picture SMITA · Mar 8, 2014

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.