title: How can I detect the last character of GSM modem response
body: <p>I am using a GSM modem "SIM900"
  I have tested it with hyper terminal and main command is ok.</p>
  
  <p>Then I burnt the code to send the AT command to dial a number on the Microcontroller to the GSM modem using UART and it works fine.</p>
  
  <p>But I'm having a problem with the response.
  The GSM replies with stream of characters but it doesn't end with Null '\0' !</p>
  
  <p>How can I get the whole response in array to parse it later? And, how can I detect the end of response?</p>
  
  <p>AT\r\n   response is ==>  OK</p>
  
  <p>AT+CMGR=1 response is ==> +CMGR: "REC UNREAD" ,"+2347060580383","10/10/27,18:54:32+04"</p>
  
  <p>Thanks in advance.</p>