http://www.wavecom.com/forum

Open AT ®  Release version:
3.13

Sample - Temperature

Changes

Dependencies

This sample depends on the following libraries :

Application Description

This application monitors a SPI temperature sensor to display temperature indications.

As this application uses the MultiApp library, the following start/stop command has to be used to control the application execution.

 

  AT+TEMPSTART (Temperature monitor start/stop command)
CommandAnswers
AT+TEMPSTART?+TEMPSTART: <state>
OK
AT+TEMPSTART=?+TEMPSTART: (0-1)
OK
AT+TEMPSTART= <state> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
state0-1The current application running state. This parameter is stored in non-volatile memory.0

The init entry point sent to the MultiApp library is the temp_init() function. The start/stop entry points linked to the +TEMPSTART command are the temp_start() and temp_stop() functions.

This application gets the temperature from the MAX 6662 temperature sensor, using the Drivers library appropriate driver.

The temperature is get with the +TEMP command :

 

  AT+TEMP (Temperature read command)
CommandAnswers
AT+TEMP=? OK
AT+TEMP?+TEMP: <temperature>
OK
 
ParameterValues rangeDescriptionDefault value
temperatureNARead temperature, from MAX 6662 chip (in C degrees)NA

Updated: Wed Apr 4 13:16:31 CEST 2007;