Discussion in "GSM and CDMA Discussion" started by    sathishg    Feb 15, 2014.
Sat Feb 15 2014, 09:44 am
#1
my project based on security system ;
i programmed to recive message when motor start and got output for that now how to switch off the motor when replayed to that message;
i required at-command for that and need program in c
Mon Feb 17 2014, 06:56 am
#2
What have you actually got working ?
Have a look in our GSM forums for similar questions and answers.
Wed Feb 19 2014, 10:24 pm
#3
if you know how to turn on the motor then you should know how to turn off the motor. and i did not understand this statement:

"when replayed to that message;"

did you mean replied?
Fri Feb 21 2014, 10:00 am
#4
for 8051 i need program to switch off motor


[ Edited Fri Feb 21 2014, 10:08 am ]
Fri Feb 21 2014, 10:06 am
#5
ajay bhargav : when i press switch motor will run and gsm modem will send message (motor turn on)to number which is stored on gsm ,then when i replay to that message motor will stop:
i got output (for when i press switch motor run and gsm send message to me)
now i need to know how to program to switch off motor when i replay to that message
and i know at+command for message indication (AT+CNMI) but i did not know how to program

Fri Feb 21 2014, 10:10 am
#6
help me to complete this project


[ Edited Fri Feb 21 2014, 10:11 am ]
Tue Feb 25 2014, 04:45 pm
#7
You need to send read command "AT+CMGR" with location where SMS is stored. Now there are two things you can do.
1. always poll first location for new SMS by sending "AT+CMGR=1" if sms is there you will get a reply with +CMGR else you will just get OK from modem. one SMS is read and processed you can delete it.

2. read the new message indication.. "+CMTI: "SM", 1" this should be done using UART interrupt as its an unsolicited response from Modem.

We have a "GSM notice board project" which shows how to capture +CMTI response, and search in GSM forum you will find the other ways too.

If you are new to all this.. then I would recommend using first method.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am
utaletxcyw
Wed Apr 17 2024, 10:21 am
Anthonyvab
Wed Apr 17 2024, 08:48 am
RobertCix
Wed Apr 17 2024, 06:46 am