http://www.wavecom.com/forum Open AT ® Release version: 3.13 |
This sample depends on the following libraries :
As this application uses the MultiApp library, the following start/stop command has to be used to control the application execution.
AT+TELESTART (Telemetry start/stop command)
Command | Answers |
AT+TELESTART? | +TELESTART:
<state>
OK |
AT+TELESTART=? | +TELESTART:
(0-1)
OK |
AT+TELESTART= <state> | +CME ERROR: 3 or OK |
Parameter | Values range | Description | Default value |
state | 0-1 | The current application running state. This parameter is stored in non-volatile memory. | 0 |
The init entry point sent to the MultiApp library is the tele_init() function. The start/stop entry points linked to the +TELESTART command are the tele_start() and tele_stop() functions.
This application checks some GPIO states every 3 seconds. On a state change, it sends a SMS report to the number set by the application (via the +TEL command) :
AT+TEL (Phone number set command)
Command | Answers |
AT+TEL=? | +TEL:
(20)
OK |
AT+TEL? | +TEL:
<number>
OK |
AT+TEL= <number> | WRONG PARAMETER or OK |
Parameter | Values range | Description | Default value |
number | 20 | Destination phone number for GPIO SMS report | mandatory |
This command is always available. When number is set in IDLE state, the
SMS report is sent. When it is set out of IDLE state, the SMS will be sent as
soon as the Application returns to IDLE state.
The read GPIO are set by the +IOSET command :
AT+IOSET (GPIO settings command)
Command | Answers |
AT+IOSET=? | +IOSET:
(1-2047)
OK |
AT+IOSET? | +IOSET:
<settings>
OK |
AT+IOSET= <settings> | WRONG PARAMETER or OK |
Parameter | Values range | Description | Default value |
settings | 1-2047 | Gpio settings, according to current product see below). On any programmed input state change, the SMS report is sent. | 0 |
The Gpio settings are, for each product :
Updated: Wed Apr 4 13:16:16 CEST 2007;