PIN error

11 thoughts on “PIN error

  1. Hello, I’ve this kind of command sequence, any idea of what happens? AT+CSCA is sent 10 seconds after the receive of READY

    AT

    >OK

    AT&K0

    >OK

    AT+CPIN?

    >+CPIN:SIM PIN

    AT+CPIN=1234

    >OK

    AT+CPIN?

    >+CPIN:READY

    AT+CSCA=”+33610137835″

    +CMS ERROR : 311

      1. Yes, I have CPIN : READY

        I don’t wait 10 secs : I check for the network establishement using AT+CSQ. It indeed takes about 10 secs for the signal quality to be in the 10-30 boundaries.

  2. what I mean is:

    CMS ERROR: 311  should mean SIM PIN required.

    You wrote “AT+CSCA is sent 10 seconds after the receive of READY”

    So I propose this test:

    AT+CPIN=1234

    wait for READY,

    wait for 10 s

    issue  AT+CPIN? command:

    what is the answer?

    1. Here is the whole protocol, I may miss something… Of course at the end, the network is never registered, even if I wait for long.

      AT
      OK
      AT&F1
      OK
      AT&K0
      OK
      AT+CMEE=2
      OK
      AT+CPIN?
      +CPIN: SIM PIN
      OK
      AT#PCT
      #PCT: 3
      OK
      AT+CPIN=1234
      OK
      AT+CPIN?
      +CPIN: READY
      OK

      (WAIT 10s)
      AT+CPIN?
      +CPIN: SIM PIN
      OK
      AT#PCT
      #PCT: 3
      OK
      AT+CPIN=1234
      OK
      AT+CPIN?
      +CPIN: READY
      OK
      AT#NITZ=15,0
      OK
      AT+CSQ
      +CSQ: 25,0
      OK
      AT+CMGF=1
      OK
      AT+CREG?
      +CREG: 0,0

      1. I’ve closer to the power supply, it seems there is a 250mV glitch at startup. The voltage doesn’t fall below 3.5V as it’s said in the hardware user manual, it should be ok (3.4V in the user manual).

        Anyway, I’ve doubled the input capacitor to see if it’s better.

          1. Seems that the problem is still here, sometimes. I have to show the system tomorrow morning and it’s not safe.

            AT
            OK
            AT&K0
            OK
            AT+CMEE=2
            OK
            AT+CPIN?
            +CPIN: SIM PIN
            OK
            AT#PCT
            #PCT: 3
            OK
            AT+CPIN=1234
            OK
            AT+CPIN?
            +CPIN: READY
            OK
            AT+CPIN?
            +CPIN: SIM PIN
            OK
            AT#PCT
            #PCT: 3
            OK
            AT+CPIN=1234
            OK
            AT+CPIN?
            +CPIN: READY
            OK
            AT#NITZ=15,0
            OK
            AT+CSQ
            +CSQ: 99,99
            OK
            AT+CSQ
            +CSQ: 0,0
            OK
            AT+CSQ
            +CSQ: 0,0
            OK
            AT+CSQ
            +CSQ: 99,99
            OK
            AT+CSQ
            +CSQ: 0,0
            OK
            AT+CSQ
            +CSQ: 25,0
            OK
            AT+CMGF=1
            +CMS ERROR: 311
            AT+CREG?
            +CREG: 0,0
            OK
            AT
            OK
            AT&K0
            OK
            AT+CMEE=2
            OK
            AT+CPIN?
            +CPIN: SIM PIN
            OK
            AT#PCT
            #PCT: 3
            OK
            AT+CPIN=1234
            OK
            AT+CPIN?
            +CPIN: READY
            OK
            AT+CPIN?
            ERROR

          2. maybe you need to pay attention that sufficient time has to be put after each command.

            Please give a careful reading at

            3.2.4. Command Response Time-Out

            3.2.5. Command Issuing Timing

            paragraphs of the AT commands Reference guide

            Another approach is  to put  a guard time at the beginning after each command and then tune this interval in more steps

          3. As I wait the OK after sending each command, I suppose it is sent when the message have been treated.

            Anyway, something stranger : I had to work at 20km from where I am now. The system worked…

            Something more obvious, it still doesn’t work when connected to a switching power supply (my system is made for battery power, so that there is not enough filtering). But the results are the same. I just guess my problem as something to do with EMC, I work on it…

          4. As I wait the OK after sending each command, I suppose it is sent when the message have been treated.

            Anyway, something stranger : I had to work at 20km from where I am now. The system worked…

            Something more obvious, it still doesn’t work when connected to a switching power supply (my system is made for battery power, so that there is not enough filtering). But the results are the same. I just guess my problem as something to do with EMC, I work on it…