wait for a string


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default

    My question still is what if you have deleted all SMS and the new valid arrives at location 1?

    Ioannis

  2. #2
    Join Date
    Mar 2009
    Posts
    9


    Did you find this post helpful? Yes | No

    Wink

    sms index 1,2,3,4 are used to store the emergency sms. These sms are used to notify the user .

  3. #3
    Join Date
    Mar 2009
    Posts
    9


    Did you find this post helpful? Yes | No

    Thumbs up thanks aratti

    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.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,139


    Did you find this post helpful? Yes | No

    Default

    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

  5. #5
    Join Date
    Mar 2009
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Ioannis View Post
    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

  6. #6
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    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.
    The best way is the one that Ioannis suggested you in post #9.

    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

  7. #7
    Join Date
    Mar 2009
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aratti View Post
    The best way is the one that Ioannis suggested you in post #9.

    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.
    yes but i want to make my own ....."why make things simple if you could complicate them"

Similar Threads

  1. How about String Variables?
    By mytekcontrols in forum PBP Wish List
    Replies: 40
    Last Post: - 20th January 2015, 12:53
  2. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  3. HARDWARE I2C SAMPLE CODE question
    By Michael Wakileh in forum Code Examples
    Replies: 2
    Last Post: - 16th June 2009, 21:07
  4. Visual Basic 6 & Access 2000
    By Demon in forum Off Topic
    Replies: 33
    Last Post: - 7th September 2006, 04:39
  5. USB Interface using PIC
    By Tissy in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 22nd May 2006, 16:04

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts