Microcontroller › PIC › reading sms from gsm modem and comparing with predefind one
- This topic has 23 replies, 7 voices, and was last updated 8 years, 1 month ago by narasimha rao.
-
AuthorPosts
-
August 6, 2012 at 6:43 am #8405AmrithParticipant
if you are using GSM module then there is no need of level converter between your controller & GSM module.
Note: Remember GSM Modem is different fromGSM module.
August 6, 2012 at 8:59 am #8412tdParticipantthanks for reply.
how can i connect level converter in between modem and pic?now i connected
pic tx
modem rxpic rx
modem txand connected max232 input pin(rx)
modem txmax232 output pin(tx)
modem rxie, level convertr parallelly.
without connecting this max232, i can send sms in to mobile.
but the problem is response of modem is not going to pic
August 19, 2012 at 4:35 am #8478tdParticipanthere i m using gsm module. i directly connect gsm module and controller.
i have connected rx,tx,vcc,power key and ground of modem.is there any extra connections in modem?
when i load the pgm to pic, and connected with modem, i can send sms from modem to mobile. but the response of the modem is not going to pic.ie, when i give through pic, AT+CMGR=1, modem can read the sms.but that the response of modem(+CMGR: “REC READ”,”+918108111649″,,”12/07/22,14:24:11+22″
Hello
OK) is not going to pic.please give me solution.. please guide me…
August 19, 2012 at 2:49 pm #8481Mukundan devakiantherjanamParticipanthello
i am also having a same issue in my project, i am using sim 900 module, when i connect to pc i am getting correct response, but when i connect to PIC i am getting the command back. i am not getting the response. i am sending first “A”,then “T” and then finally 0x0D. i am getting same back on my LCD. when i connect PIC to PC i am getting the correct response.
August 21, 2012 at 7:52 am #8490tdParticipanthere i m using 8mhz internal oscillator.for that i use
OSCCON =0b01100010;
(in 18f45k20)
is ther any additional registers i have to set for this?may be because of this, receiver part is not ok.
and we are using baud rate 9600.
please guide me..
August 28, 2012 at 5:55 am #8510tdParticipanti didnt get any solution……………..
now also the response of the modem is not going to pic………..
February 18, 2013 at 1:57 pm #9152Bharath SinghParticipantHi freinds ……. i need help from u … how to compare the string that as beed present in GSM modem as a msg in inbox after sending a Read command to GSM modem AT+CMGR………
September 15, 2016 at 10:09 am #14137AnonymousGuesthi frnds…i need help ….how to read a particular number msg only ..? from gsm modem
i am using pic16f877a. ccs compiler ..pls give me the reference code..
September 16, 2016 at 7:09 pm #14138narasimha raoParticipantFrom the AT Command set,<CR><LF> are sent from the module before data(message) is sent.
So, try to collect the entire reply given by the module in an array.
After time delay, check from the array the character <CR> which is decimal 13.
Then, from the second character the message starts.
This code snippet may work:
do{q++;}while(gsm_response[q]!=13); //<CR><LF>MESSAGE<CR> 13=<CR>for(q=q+2,temp=0;gsm_response[q]!=13;q++,temp++){message[temp]=gsm_response[q];} -
AuthorPosts
- You must be logged in to reply to this topic.