Microcontroller › PIC › reading sms from gsm modem and comparing with predefind one › Hi,As you send command
As you send command AT+CMGR =1 to GSM modem, you will receive the message data. you might not capturing the data properly in the buffer. Avoid delay functions in between this communication.
Important Note: Take care that you are connecting Tx pin of GSM module to Rx pin of DB9 serial cable & Rx pin of GSM module to Tx pin of DB9 serialcable.