daleth
Newbie level 5
hello friends is it possible to program AT89C51 to receive a particular type of an SMS from modem connected to its serial port to drive a motor interfaced with ULN 2003
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
As a first step, you need to understand how to configure the modem to do what you want. I think it's reasonable to make the modem send all received SMS as unsolicited result directly to the terminal instead of storing them on the SIM card, which is the default mode. The +CNMI command can be used to change the setting.
The next step is to decode the +CMT SMS delivery messages in your program.
When a new sms has arrived, you will receive an asynchronous +CMT string (this means you will receive a string without a question from your side). All the above information you need is inside this string.aameer said:i have to wait for the message to arrive to modem,then i move it to atmega32, then i want to parse the sms to identify, whether it correct sms and phone number to switch on the motor, then switch the motor if the sms and phone number are correct
"AT+CMGD=1" can be used to delete selected sms as already pointed out, but since you are working with one message, there is the possibility to erase them all using the command "AT+CMGD=0,4".aameer said:then i go back to wait for another sms
If it is a number that is not to be changed ever, then you can store it in FLASH memory. When SMS arrives, you can compare the sender of the SMS with this number.daleth said:i want store a number that i use for sending the sms to run the stepper motor,and use it to verify any phone number used to sent sms to run the motor, where do i store this phone number? and how can achieved this?.