maheshece28
Junior Member level 2
Hi guys,
I'm trying to send a SMS from my Modem(PIC24FJ128GA202 interfaced with M95 Quectel GSM) to my mobile phone. I've successfully read received SMS from my mobile. But cannot send SMS from my modem. I thought that i'm doing something wrong while i give ctrl+z. I've tried appending "\r\n" with "0x1A" i.e. "0x1A\r\n" but its not working. Below is the send SMS code....
Below is the response i'm seeing in hyperterminal
I'm trying to send a SMS from my Modem(PIC24FJ128GA202 interfaced with M95 Quectel GSM) to my mobile phone. I've successfully read received SMS from my mobile. But cannot send SMS from my modem. I thought that i'm doing something wrong while i give ctrl+z. I've tried appending "\r\n" with "0x1A" i.e. "0x1A\r\n" but its not working. Below is the send SMS code....
Code:
uart3str("AT+CMGF=1\r");
Delayms(300);
uart1str(gprs_buffer); //gprs_buffer has response of AT commands (Response: "OK")
clear(); //Clear gprs_buffer
uart3str("AT+CMGS=\"+91900xxxxxxx\"\r\n"); //+91 is the country code
Delayms(300);
uart3str("Hello"); //Message i'm trying to send
uart3str("0x1A"); // Ctrl+Z
uart3str("\r\n");
uart1str(gprs_buffer);
Below is the response i'm seeing in hyperterminal
Code:
AT+CMGF=1
OK
AT+CMGS="+91900xxxxxxx"
> Hello0x1A
>