My question still is what if you have deleted all SMS and the new valid arrives at location 1?
Ioannis
My question still is what if you have deleted all SMS and the new valid arrives at location 1?
Ioannis
sms index 1,2,3,4 are used to store the emergency sms. These sms are used to notify the user .
Hi aratti . Thanks for your help. I have solved it.
Can you please inform me one more thing, When any new sms arrived, the GSM modem send a notification " +CMTI: "SM",5 " .
How i can use this notification to interrupt in my program.
Your program might be interrupted only by an Hardware Interrupt, say from the USART module.
So, if you want a fast interrupt system, have a look at Darrels Instant Interrupt.
Then every time you have an RS-232 activity, the ISR will take care of the event. Store the incoming data in an array and do a compare byte-to-byte with a stored reference array, say in the EEPROM.
I am working on a similar project and may post a snipet as soon as I get it working.
Ioannis
that would be nice
--
http://www.mtskola.com
The best way is the one that Ioannis suggested you in post #9.Can you please inform me one more thing, When any new sms arrived, the GSM modem send a notification " +CMTI: "SM",5 " .
How i can use this notification to interrupt in my program.
For "HSERIN" instruction you have to use specific pins of your pic micro (you didn't say the type), which are the USART module, plus the DT interrupt routine.
Serch the forum for DT interrupt to learn more or go to this link: http://www.picbasic.co.uk/forum/showthread.php?t=3251
XXXXX you can download the project for sms controller at this link:http://techni.caliti.es/blog/2008/12...ontroller.html
since the project is well documented, you could see the technique used to activate 8 relays or read the status of 8 inputs all via sms command.
Al.
Last edited by aratti; - 2nd April 2009 at 23:21.
All progress began with an idea
Bookmarks