title: SIM800L: AT+CIICR always goes to PDP DEACT state
body: <p>I'm trying to send data to a server using my SIM800L which is connected to a LoPy. Using the attached diagram I want to go from state 0 to 6 in order to send and the issue I encounter is at state 2 ( AR+CIIR that returns an error ).
  <a href="https://i.stack.imgur.com/mOSUs.jpg" rel="nofollow noreferrer">SIM800L diagram</a> </p>
  
  <p>I know that only <strong>AT+CSTT=“apn”,“pass”</strong>, <strong>AT+CIICR</strong> and <strong>AT+CIFSR</strong> where needed but I’ve used the other commands to show more usefull(?) info.</p>
  
  <p>My output: </p>
  
  <pre><code>=========== ATI =============
  ATI
  SIM800 R14.18
  
  OK
  
  =========== AT+CIPSHUT ===========
  AT+CIPSHUT
  SHUT OK
  
  =========== AT+CIPSTATUS ===========
  AT+CIPSTATUS
  OK
  
  STATE: IP INITIAL
  
  =========== AT+CSTT ===========
  AT+CSTT="internet.vodafone.ro","",""
  OK
  
  =========== AT+CIPSTATUS ===========
  AT+CIPSTATUS
  OK
  
  STATE: IP START
  
  =========== AT+CGATT ===========
  AT+CGATT?
  +CGATT: 1
  
  OK
  
  AT+CGATT=1
  OK
  
  =========== AT+CGDCONT ===========
  AT+CGDCONT= 1,"IP","internet.vodafone.ro","0.0.0.0",0,0
  OK
  
  =========== AT+COPS ===========
  AT+COPS?
  +COPS: 0,0,"CONNEX GSM"
  
  OK
  
  =========== AT+CREG ===========
  AT+CREG?
  +CREG: 1,1
  
  OK
  
  AT+CREG=1
  OK
  
  AT+CREG?
  +CREG: 1,1
  
  OK
  
  =========== AT+CIPSTATUS ===========
  AT+CIPSTATUS
  OK
  
  STATE: IP START
  
  =========== AT+CIICR ===========
  AT+CIICR=?
  OK
  
  AT+CIICR
  +PDP: DEACT
  
  ERROR
  
  =========== AT+CIPSTATUS ===========
  AT+CIPSTATUS
  OK
  
  STATE: PDP DEACT
  
  =========== AT+CIFSR ===========
  AT+CIFSR
  ERROR
  
  =========== AT+CIPSTATUS ===========
  AT+CIPSTATUS
  OK
  
  STATE: PDP DEACT
  </code></pre>
  
  <p>I don't know why it does not work to pass to state 3, any help is usefull, thank you !</p>