Sim Toolkit preventing network registration.

12 thoughts on “Sim Toolkit preventing network registration.

  1. HI
    I am using the HE910-D. The issue I am having is that intermittently I
    am getting unsolicited STN: 37 message while waiting for network
    registration ( +CCREG: 1 ). After receiving the STN:37 no mater how long
    I wait it will never become registered in the network.
    I am not really sure what the #STN: 37 message means?
    Also I have disable the SIM toolkit (AT#STIA=0 ) but this does not seem to help.
    Any ideas?

    [Data A] – Host Comms
    [Data B] – Modem Module
     
    [Data A] 09/24/14 10:30:12 AT&F1CR
    [Data B] 09/24/14 10:30:12 AT&F1CRCRLFOKCRLF
    [Data A] 09/24/14 10:30:12 ATE0CR
    [Data B] 09/24/14 10:30:12 ATE0CRCRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT+CMEE=1CR
    [Data B] 09/24/14 10:30:12 CRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT+CREG=1CR
    [Data B] 09/24/14 10:30:12 CRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT+CGREG=1CR
    [Data B] 09/24/14 10:30:12 CRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT#QSS=2CR
    [Data B] 09/24/14 10:30:12 CRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT&D2CR
    [Data B] 09/24/14 10:30:12 CRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT#STIA=0CR
    [Data B] 09/24/14 10:30:12 CRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT#REGMODE=1CR
    [Data B] 09/24/14 10:30:12 CRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT#QSS?CR
    [Data B] 09/24/14 10:30:12 CRLF#QSS: 2,1CRLFCRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT#QSS=0CR
    [Data B] 09/24/14 10:30:12 CRLFOKCRLF
    [Data A] 09/24/14 10:30:12 AT+CPIN?CR
    [Data B] 09/24/14 10:30:12 CRLF+CPIN: READYCRLFCRLFOKCRLFCRLFCRLF#STN: 37CRLF
    [Data A] 09/24/14 10:32:11 AT#SHDNCR
     
    (Above the program is waiting for 2 minutes before shut-down, I have extend to 5 minutes and had no success )

    Here is a successful upload for comparison.

     
    [Data A] 09/24/14 10:29:04 AT&F1CR
    [Data B] 09/24/14 10:29:04 AT&F1CRCRLFOKCRLF
    [Data A] 09/24/14 10:29:04 ATE0CR
    [Data B] 09/24/14 10:29:04 ATE0CRCRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT+CMEE=1CR
    [Data B] 09/24/14 10:29:04 CRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT+CREG=1CR
    [Data B] 09/24/14 10:29:04 CRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT+CGREG=1CR
    [Data B] 09/24/14 10:29:04 CRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT#QSS=2CR
    [Data B] 09/24/14 10:29:04 CRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT&D2CR
    [Data B] 09/24/14 10:29:04 CRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT#STIA=0CR
    [Data B] 09/24/14 10:29:04 CRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT#REGMODE=1CR
    [Data B] 09/24/14 10:29:04 CRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT#QSS?CR
    [Data B] 09/24/14 10:29:04 CRLF#QSS: 2,1CRLFCRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT#QSS=0CR
    [Data B] 09/24/14 10:29:04 CRLFOKCRLF
    [Data A] 09/24/14 10:29:04 AT+CPIN?CR
    [Data B] 09/24/14 10:29:04 CRLF+CPIN: READYCRLFCRLFOKCRLFCRLF+CREG: 2CRLFCRLF+CGREG: 2CRLFCRLF+CREG: 1CRLFCRLF+CGREG: 1CRLF
    [Data A] 09/24/14 10:29:38 AT+CGDCONT = 1,"IP","telstra.internet","0.0.0.0",0,0CR
    [Data B] 09/24/14 10:29:38 CRLFOKCRLF
    [Data A] 09/24/14 10:29:38 AT+CGACT?CR
    [Data B] 09/24/14 10:29:38 CRLF+CGACT: 1,0CRLF+CGACT: 2,0CRLFCRLFOKCRLF
    [Data A] 09/24/14 10:29:38 AT#SGACT=1,1CR
    [Data B] 09/24/14 10:29:39 CRLF#SGACT: 10.100.192.173CRLFCRLFOKCRLF
    [Data A] 09/24/14 10:29:39 AT+CSQCR
    [Data B] 09/24/14 10:29:39 CRLF+CSQ: 7,5CRLFCRLFOKCRLF
    [Data A] 09/24/14 10:29:39 AT#SCFG=1,1,0,60,600,50CR
    [Data B] 09/24/14 10:29:39 CRLFOKCRLF
    [Data A] 09/24/14 10:29:39 AT#SCFGEXT=1,1,0,0CR
    [Data B] 09/24/14 10:29:39 CRLFOKCRLF
    [Data A] 09/24/14 10:29:39 AT#SD=1,0,80,"data.macemeters.com",0,0,1CR
    [Data B] 09/24/14 10:29:40 CRLFOKCRLF
    [Data A] 09/24/14 10:29:40 AT#SSENDEXT=1,130CR
    [Data B] 09/24/14 10:29:40 CRLF>
    [Data A] 09/24/14 10:29:40 GET /status HTTP/1.1CRLFHOST:
    data.macemeters.comCRLFUser-Agent: MACE-WCSM/V1.02.14CRLFAuthorization:
    Basic **************************************
    [Data B] 09/24/14 10:29:40 CRLFOKCRLFCRLFSRING: 1,271CRLF
    [Data A] 09/24/14 10:29:41 AT#SRECV=1,271CR
    [Data B] 09/24/14 10:29:41 CRLF#SRECV: 1,271CRLFHTTP/1.1 200 OKCRLFDate:
    Wed, 24 Sep 2014 00:29:41 GMTCRLFServer: ApacheCRLFX-Powered-By:
    MACE-DATA-SERVERCRLFContent-Length: 114CRLFContent-Type:
    application/jsonCRLFCRLF{"latest-record":"2014-09-23T09:52:01+10:00","server-date":"2014-09-24T10:29:41+10:00","max-upload-size":"102400"}CRLFCRLFOKCRLF
    [Data A] 09/24/14 10:29:41 AT#SSENDEXT=1,205CR
    [Data B] 09/24/14 10:29:41 CRLF>
    [Data A] 09/24/14 10:29:41 POST /upload HTTP/1.1CRLFHOST:
    data.macemeters.comCRLFUser-Agent: MACE-WCSM/V1.02.14CRLFContent-Type:
    text/csvCRLFTransfer-Encoding: chunkedCRLFAuthorization: Basic 
    ************************************** =CRLF
    [Data B] 09/24/14 10:29:41 CRLFOKCRLF
    [Data A] 09/24/14 10:29:41 AT#SSENDEXT=1,235CR
    [Data B] 09/24/14 10:29:41 CRLF>
    [Data A] 09/24/14 10:29:41
    CRLFe5CRLF!Program,WCSM,V1.02.14LF!Device,"FloPro"LF!SerialNo,9999999LF!Ident,"TotalAg"LF!Version,V3.05.9LF!Battery,"OK",13.794,20.665LF!Signal

    strength,7LF!Channels,1LF!Names,"bat"LF!Units,"V"LF!Interval,30LF2014/09/23
    09:52:01,*Note,"Unit stopped"LF
    [Data B] 09/24/14 10:29:41 CRLFOKCRLF
    [Data A] 09/24/14 10:29:41 AT#SSENDEXT=1,7CR
    [Data B] 09/24/14 10:29:41 CRLF>
    [Data A] 09/24/14 10:29:41 CRLF0CRLFCRLF
    [Data B] 09/24/14 10:29:41 CRLFOKCRLFCRLFSRING: 1,191CRLF
    [Data A] 09/24/14 10:29:42 AT#SRECV=1,191CR
    [Data B] 09/24/14 10:29:42 CRLF#SRECV: 1,191CRLFHTTP/1.1 200 OKCRLFDate:
    Wed, 24 Sep 2014 00:29:42 GMTCRLFServer: ApacheCRLFX-Powered-By:
    MACE-DATA-SERVERCRLFVary: Accept-EncodingCRLFContent-Length:
    18CRLFContent-Type: text/plainCRLFCRLFUpload data saved.CRLFCRLFOKCRLF
    [Data A] 09/24/14 10:29:42 AT#SH=1CR
    [Data B] 09/24/14 10:29:42 CRLFOKCRLF
    [Data A] 09/24/14 10:29:42 AT#SHDNCR

    Thanks
    Ryan

  2. Hi Ryan,

    the unsolicited indication #STN: 37: it means the SAT/USAT main menu is ready.

    If you want to disable USAT function the procedure is: 

    AT#STIA=0

    AT&W0

    AT&P0

    Restart the module. Only after the module is restarted, USAT is disable. But I do not recommend to do it. USAT can be used by the network operator to update the SIM info.

     

    About your issue it is not clear what happens between AT+CPIN? and AT#SHDN. Do you wait for +CREG? unsolicited and without URCs you shutdown? What is the response of AT+CREG? AT+CGREG? AT+COPS? during these 2 minutes? It could help me to understand.

    1. Hi Andrea,

      Your right I was not save the settings and profile, after doing this I no longer received the unsolicited message STN: 37.

      Thanks for the heads up, I had concerns about disabling.

      While the modem is turn on I am setting AT+CGREG=1 to receive unsolicited network registration. 
      After AT+CPIN? the program is waiting to receive +CGREG: 1 or +CGREG: 5
      to know that it’s registered. If it’s not registered after 2 minutes
      then it’s shutdown and the power is turned off. 

      I have re-enabled the SIM toolkit and tried to get the responses that
      you asked for but it’s an intermittent problem and I just can’t seem to
      catch it. I think it might be related to changing the SIM toolkit mode
      while it’s trying to be activated. By saving the settings and profile I
      think I might be avoid it as it starts up with the same setting that are
      being set with the initialisation commands.

      Is there anyway to force the modem to retry network registration? Maybe I could do this if it times out waiting for +CGREG: 1.

      Thanks
      Ryan

      1. Hi Ryan,

         

         what is strange is that you don’t get any status change for+CREG and +CGREG, at least o indicate that the module is searching for an available network (+CREG: 2).

         

        In case, if no URCs are received I could suggest to try with AT+COPS=0  (it restart the automatic selection) or AT+COPS=? to verify which are the available operators and AT+COPS=1 for manual selection. 

  3. Hi Andrea,

    I am having trouble turn off unsolicited toolkit messages AT#STIA=1. I
    am now sending AT&W0 and AT&P0 but after a restart the setting
    has not changed?

    The list of command below will run each time the modem performs an
    upload, is there any problem with saving non-volatile data each time the
    modem is used? Is there a limited number of writes?

    Because I cant be sure what settings have been applied in the modem I
    always set the modem to defaults with AT&F1 then apply the
    settings I need each time, Is this a valid thing to do? would it be
    causing any problems?  

    [Data A] 09/29/14 11:46:30 AT&F1CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 ATE0CR
    [Data B] 09/29/14 11:46:30 ATE0CRCRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT+CMEE=1CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT+CREG=1CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT+CGREG=1CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT#QSS=2CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT&D2CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT#REGMODE=1CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT#STIA=1CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT&W0CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT&P0CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT#QSS?CR
    [Data B] 09/29/14 11:46:30 CRLF#QSS: 2,2CRLFCRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT#QSS=0CR
    [Data B] 09/29/14 11:46:30 CRLFOKCRLF
    [Data A] 09/29/14 11:46:30 AT+CPIN?CR
    [Data B] 09/29/14 11:46:30 CRLF+CPIN: READYCRLFCRLFOKCRLFCRLFCRLF#QSS:
    2CRLFCRLF#STN: 37CRLFCRLF+CREG: 2CRLFCRLF+CREG: 1CRLFCRLF+CGREG: 1CRLF
    [Data A] 09/29/14 11:47:14 AT+CGDCONT = 1,"IP","telstra.internet","0.0.0.0",0,0CR
    [Data B] 09/29/14 11:47:14 CRLFOKCRLF
    [Data A] 09/29/14 11:47:14 AT+CGACT?CR
    [Data B] 09/29/14 11:47:14 CRLF+CGACT: 1,0CRLF+CGACT: 2,0CRLFCRLFOKCRLF
    [Data A] 09/29/14 11:47:14 AT#SGACT=1,1CR
    [Data B] 09/29/14 11:47:16 CRLF#SGACT: 10.100.24.240CRLFCRLFOKCRLF
    [Data A] 09/29/14 11:47:16 AT+CSQCR
    [Data B] 09/29/14 11:47:16 CRLF+CSQ: 6,0CRLFCRLFOKCRLF
    [Data A] 09/29/14 11:47:16 AT#SCFG=1,1,0,60,600,50CR
    [Data B] 09/29/14 11:47:16 CRLFOKCRLF
    [Data A] 09/29/14 11:47:16 AT#SCFGEXT=1,1,0,0CR
    [Data B] 09/29/14 11:47:16 CRLFOKCRLF
    [Data A] 09/29/14 11:47:16 AT#SD=1,0,80,"data.macemeters.com",0,0,1CR
    [Data B] 09/29/14 11:47:18 CRLFOKCRLF
    [Data A] 09/29/14 11:47:18 AT#SSENDEXT=1,130CR
    [Data B] 09/29/14 11:47:18 CRLF>
    [Data A] 09/29/14 11:47:18 GET /status HTTP/1.1CRLFHOST:
    data.macemeters.comCRLFUser-Agent: MACE-WCSM/V1.02.15CRLFAuthorization:
    Basic ****CRLFCRLF
    [Data B] 09/29/14 11:47:18 CRLFOKCRLFCRLFSRING: 1,271CRLF
    [Data A] 09/29/14 11:47:20 AT#SRECV=1,271CR
    [Data B] 09/29/14 11:47:20 CRLF#SRECV: 1,271CRLFHTTP/1.1 200 OKCRLFDate:
    Mon, 29 Sep 2014 01:47:19 GMTCRLFServer: ApacheCRLFX-Powered-By:
    MACE-DATA-SERVERCRLFContent-Length: 114CRLFContent-Type:
    application/jsonCRLFCRLF{"latest-record":"2014-09-29T10:28:01+10:00","server-date":"2014-09-29T11:47:20+10:00","max-upload-size":"102400"}CRLFCRLFOKCRLF
    [Data A] 09/29/14 11:47:20 AT#SSENDEXT=1,205CR
    [Data B] 09/29/14 11:47:20 CRLF>
    [Data A] 09/29/14 11:47:20 POST /upload HTTP/1.1CRLFHOST:
    data.macemeters.comCRLFUser-Agent: MACE-WCSM/V1.02.15CRLFContent-Type:
    text/csvCRLFTransfer-Encoding: chunkedCRLFAuthorization: Basic ***=CRLF
    [Data B] 09/29/14 11:47:20 CRLFOKCRLF
    [Data A] 09/29/14 11:47:20 AT#SSENDEXT=1,235CR
    [Data B] 09/29/14 11:47:20 CRLF>
    [Data A] 09/29/14 11:47:20
    CRLFe5CRLF!Program,WCSM,V1.02.15LF!Device,"FloPro"LF!SerialNo,9999999LF!Ident,"TotalAg"LF!Version,V3.05.9LF!Battery,"OK",13.786,20.564LF!Signal

    strength,6LF!Channels,1LF!Names,"bat"LF!Units,"V"LF!Interval,30LF2014/09/29
    10:28:01,*Note,"Unit stopped"LF
    [Data B] 09/29/14 11:47:20 CRLFOKCRLF
    [Data A] 09/29/14 11:47:20 AT#SSENDEXT=1,7CR
    [Data B] 09/29/14 11:47:20 CRLF>
    [Data A] 09/29/14 11:47:20 CRLF0CRLFCRLF
    [Data B] 09/29/14 11:47:20 CRLFOKCRLFCRLF#QSS: 3CRLFCRLF+CGREG: 2CRLFCRLF+CGREG: 1CRLFCRLFNO CARRIERCRLF
    [Data A] 09/29/14 11:47:35 AT#SHDNCR

    Power was disconnected and powered up.

    [Data A] 09/29/14 11:49:04 AT#STIA?CR
    [Data B] 09/29/14 11:49:04 CRLF#STIA: 1,2,1,ffffffff7f9d00ffbf00001f2200000000c9CRLFCRLFOKCRLFCRLF

    Thanks
    Ryan

    1. Hi Ryan,

      there is something I don’t understand  in all this
      story. The SIM Toolkit default settings of HE910-D is AT#STIA=1 as
      reported in the AT command guide:

      1 – enable SAT without unsolicited indication #STN (default)

       

      In fact starting from a new and fresh module the answer is: 

      at#stia?
      #STIA: 1,1,2,ffffffff7f9d00ffff00001f2200000003c9

      OK

       

      Therefore you wouldn’t have to change the #STIA settings since URCs shouldn’t be displayed.

      This
      is the strange part since, from the beginning you said that #STN: 37
      came out from the serial port, i.e. AT#STIA=2 was already set.

      After you have sent the sequence

      [Data A] 09/29/14 11:46:30 AT#STIA=1CR
      [Data B] 09/29/14 11:46:30 CRLFOKCRLF
      [Data A] 09/29/14 11:46:30 AT&W0CR
      [Data B] 09/29/14 11:46:30 CRLFOKCRLF
      [Data A] 09/29/14 11:46:30 AT&P0CR

      can you check AT#STIA? response before the module is shutdown?

       

      How many modules do you have behaving in the same way? Can you reflash this module with the same firmware and remove AT#STIA=1, AT&W0, AT&P0 to verify that SIM toolkit is correctly started but with URC disabled?

       

  4. Hi Andrea.

     

    Tested a few new modems stright out of that box, all reported 

     
    AT#STIA?
    #STIA: 1,2,1,ffffffff7f9d00ffff00001f2200000003c9

     

    The modems are shipped with 12.00.32, I only have 12.00.2, so i upgraded one of the modules and it still reported mode 2.

     

     at
    OK
    AT+CGMR
    12.00.024

    OK
    AT#STIA?
    #STIA: 1,2,1,ffffffff7f9d00ffff00001f2200000003c9

    OK

     

    How should I set the modems back to factory settings, AT&F1 dose not seem to be doing it? 

     

     

    1. ok I probably understood what is the issue. Can you check if AT#ENS? returns #ENS: 1  ?

      In this case the HE910-D you bought, have a special configuration for AT&T provider.

      If you can copy here a couple of IMEIs I can double check.

       

      Anyway, do you have to use your applications in US with AT&T?

       

      With AT#ENS=1 set the AT#STIA <mode> is automatically set to 2 with URCs enabled.

      If you don’t need AT&T configuration you can set AT#ENS=0, This is automatically stored in NVM and at next power cycle the #STN URCs will be disable.

  5. Hi Andrea,

     

    Yes the modules have ENS set to 1.

     

    IMEI:351579051658852

    IMEI:351579051736369

     

    Yes some of our users have AT&T as there provider, other will use verizon and sprint.

    We use optus and telstra in Australia.

     

     

    Is there any problem using ENS=1 when connecting to other providers? Do diffrent provders require diffrent settings?

     

    1. Hi Andrea,

       

      Still waiting your response..and it would be great to get some feedback on the command sequence we are using.  information you have provided retrying the network registration and saving profile settings has been useful.

       

      Thanks 

      Ryan

      1. Hi Ryan,

         

        I apologize for the late reply.  I confirm you the modules you have, have special AT&T configuration. Normally it is not an issue to keep AT#ENS=1 with other providers, anyway if you want to disable this setting which include also AT#STIA=2, it is ok, just keep it for AT&T.