This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to read the SMS centre number on the SIM card using AT command on the nRF9160?

To be able to SMS we need the SMSC number stored in the SIM card.

I did not find an AT command to read this, so I gues we need to use the +CSIM or +CRSM?

Regards,

Frode

Parents
  • Hi,

     

    You can fetch the SMSC using AT+CRSM:

    AT+CRSM=178,28482,1,4,0

    The return is this on my telenor sim card:

    +CRSM: 144,0,"54454C454E4F52FFFFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF06917409001200FFFFFFFFFFFFFFFF"

     

    This data format is described in "3GPP TS 31.102 version 15.1.0 Release 15", chapter 4.2.27:

    The alpha identifier is variable in length. As the "Service Centre address" is defined in the middle of the read out format (length of string - 15 bytes, 12 bytes long), you have to start counting from the end:

    54454C454E4F52FFFFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF06917409001200FFFFFFFFFFFFFFFF

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    You can fetch the SMSC using AT+CRSM:

    AT+CRSM=178,28482,1,4,0

    The return is this on my telenor sim card:

    +CRSM: 144,0,"54454C454E4F52FFFFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF06917409001200FFFFFFFFFFFFFFFF"

     

    This data format is described in "3GPP TS 31.102 version 15.1.0 Release 15", chapter 4.2.27:

    The alpha identifier is variable in length. As the "Service Centre address" is defined in the middle of the read out format (length of string - 15 bytes, 12 bytes long), you have to start counting from the end:

    54454C454E4F52FFFFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF06917409001200FFFFFFFFFFFFFFFF

     

    Kind regards,

    Håkon

Children
Related