===============================================================================
                                W A V E C O M
===============================================================================

OPEN AT V2.00
Updated : January 22th, 2003

===============================================================================

(To print this file : use Notepad and remove all margins and default header.)

                       ---------------------------------
                              Content of this file
                       ---------------------------------

SMS and recall (Cooperative mode, with flash storage) sample application
description

I.      Changes
II.     Application description
III.    Application States



   
I - Changes
===========

* 03/01/22  -   V2.00
  Initial revision.


II - Application description
============================

 This application is waiting for an incoming SMS (+CMTI result).
 When it receives one, it read the text with the AT+CMGR command : if this one
is "Recall me", the application gets the SMS sender phone number, and stores it
in a free flash object. After that, it returns to IDLE mode.

 In IDLE mode, the application is also waiting for an AT+RECALL command,
described bellow :

        (Read Command)
        AT+RECALL?
        <ID> : <Phone Number>
        OK
        
            This command lists all the stored phone numbers, with the
            corresponding flash object IDs. (<ID> starts from 1, see bellow)
        
        (Parameters Command)
        AT+RECALL=<action>
        OK
        
            <action> : 0 to delete all stored numbers
                       <ID> to setup a call to corresponding stored number



III - Application States
========================

 * SMS reception

          ********
          * INIT *
          ********
            |
            |   Wait for +WIND: 4 indication
            |
            V
          ********
       +->* IDLE *
       |  ********
       |    |
       |    |   Incoming SMS (+CMTI result)
       |    |
       |    V
normal |  *********************
SMS    +--* Read the SMS text * With AT+CMGR command
text   |  *********************
       |    |
       |    |   The SMS text is "Recall me"
       |    |   
       |    V
       |  **************
       |  * Delete SMS * With AT+CMGD command ;
       |  ************** Also display the phone number in an unsolicited result
       |    |
       |    |   
       |    |   
       |    V
       |  ******************************
       |  * Store the phone number in  *
       |  * a free flash object        *
       |  ******************************
       |    |
       |    |   
       +----+
       
       
       
 * AT+RECALL command processing
       
       
       
          ********
       +->* IDLE *
       |  ********
       |    |
       |    |   AT+RECALL command
       |    |
       |    V
       |  *******************
       |  * Process command *
       |  *******************
       |    |
       |    +------------------+-------------------+
       |    | =0               | =<ID>             | ?
       |    |                  |                   |
       |    V                  V                   V
       |  **************    **************       ***************
       |  * Delete all *    * Setup Call *       * Display all *
       |  * stored nbs *    * to nb      *       * stored nbs  *
       |  **************    **************       ***************
       |    |                  |                   |
       |    |                  |                   |
       +----+------------------+-------------------+
