Cannot send sms from M95 Quectel GSM Module-PIC24F

Find out how to setup your programmer's software and how to solve many common problems.

Moderator: phalanx

Post Reply
picmh123
Posts: 13
Joined: Mon Jun 29, 2015 11:00 pm

Cannot send sms from M95 Quectel GSM Module-PIC24F

Post by picmh123 » Fri Aug 26, 2016 2:51 am

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....

Code: Select all

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: Select all

AT+CMGF=1
OK
AT+CMGS="+91900xxxxxxx"
> Hello0x1A
>

ahmadtanveer
Posts: 5
Joined: Mon Sep 12, 2016 11:41 pm

Re: Cannot send sms from M95 Quectel GSM Module-PIC24F

Post by ahmadtanveer » Tue Sep 13, 2016 2:16 am

why are you using /n/r both?

Post Reply