| http://www.wavecom.com/forum Open AT ® Release version: 4.21

# Sample - Telemetry

- Changes
- Dependencies
- Application Description

## Changes

- V1.00 : Initial revision.
- V1.10 : New Wavecom sample library.
- V2.00 : Now using ADL. The +TELESTART command disables/enables the application.
- V2.10 : Sample behaviour updates
- V3.00 : Multi-Uart support ; MultiApp library support ; New Q2501 product
- V4.00 : New call stack declaration format; New Q2686 product
- V4.10 : Q2686/Q2687 Wireless CPU dynamic detection

## Dependencies

This sample depends on the following libraries :

- MultiApp
  This MultiApp sample library provides start/stop mechanism to handle several running ADL applications.

## Application Description

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: (dynamic list...) OK
AT+IOSET? | +IOSET: <settings> OK
AT+IOSET= <settings> | WRONG PARAMETER or OK

Parameter | Values range | Description | Default value
settings | dynamic list... | Up to 15 GPIO identifiers to monitor. The available GPIO list is dynamically built according to the currently enabled features on the module. On any programmed input state change, the SMS report is sent. | NA

Updated: Tue May 22 20:10:52 CEST 2007;