title: Telit GSM/GPRS modem HE910, AT#HTTPRCV giving ERROR
body: <p>I am using Telit modem HE910 in my project :
  AT+CGMR
  12.00.004</p>
  
  <p>OK</p>
  
  <p>I am implementing firmware update over the air for which I need to download my firmware from a http link. To implement this I used AT#SD command to dial a socket and then used http to download the file in a chunk of 512 bytes at a time because of my UART buffer limitation. This is is working fine but taking too long to download the file.</p>
  
  <p>Now I am trying other method to download using Telit HTTP client using the AT commands:</p>
  
  <p>AT#HTTPCFG=0,"XXXXXXX",80,0,,,0,120,1</p>
  
  <p>AT#HTTPQRY=0,0,"/ud/myfirmware.hex"
  OK</p>
  
  <h1>HTTPRING: 0,200,"application/octet-stream",2083</h1>
  
  <p>Now if I run AT#HTTPRCV=0 I am getting my firmware data as:</p>
  
  <p>AT#HTTPRCV=0
  &lt;&lt;&lt;:10000000E0C500002FC600002DC600002BC6000072
  :1000100029C6000027C6000025C6000023C6000030
  :1000200021C600001FC600001DC600001BC6000040...............</p>
  
  <p>But this is big for my UART buffer.
  As per the data sheet I can use AT#HTTPRCV command to download part wise but I when I execute the command like below I get ERROR:</p>
  
  <p>AT#HTTPRCV=0,64
  +CME ERROR: 4</p>
  
  <p>as per the datasheet:
  Description 
  AT$HTTPRCV AT command is used to receive HTTP data from remote server.</p>
  
  <p>AT#HTTPRCV=[,] --  - Max number of bytes to read at a time Range:0,64-1500 (default is 0 which means infinite size)</p>
  
  <p>Can any one please help me?</p>