SIM Telephone Number
-
Hello,
i hope this is the right place to ask. In one of our projects we need to get
the telephone number of a m2m sim card locally.
We need to get it with some AT or USSD code which we can call via build in modem.
We tried “*135#” already but this does not work.
The card type is “M2M TMSP GSIM”. The cards are able to send and receive sms.
Maybe someone can point us in the right direction.
Best Regards,
Robert -
you can use AT+CRSM command to read file EF_MSISDN (MSISDN) from the SIM.
EF_MSISDN : Identifier: ‘6F40’ = '28480’dec
This EF contains MSISDN(s) related to the subscriber.e.g.:
AT+CRSM=176,28480,0,0,14
+CRSM: 144,0,“0791942143658709FFFFFFFF”Where '07 is lenght and ‘91’ is coding.
Number starts at byte 3 and the values is LSB first…means, each byte needs to be turned:
‘94 21 43 65 87 09’ wents to be:
49 12 34 56 78 90 -> +491234567890