http://www.wavecom.com/forum

Release version:
4.01

Sample - External Storage

Changes

Dependencies

This sample depends on the following libraries :

Application Description

This application uses the Drivers library to access external storage chips.

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

 

  AT+EXTSTART (External Storage start/stop command)
CommandAnswers
AT+EXTSTART?+EXTSTART: <state>
OK
AT+EXTSTART=?+EXTSTART: (0-1)
OK
AT+EXTSTART= <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 es_init() function. The start/stop entry points linked to the +EXTSTART command are the es_start() and es_stop() functions.

The application uses the Drivers library to store and read bytes in/from an external storage chip. It provides two AT commands, for each write and read process, and another one to select the current chip.

 

  AT+CHIP (External storage chip selection command)
CommandAnswers
AT+CHIP=?+CHIP: (0-1)
OK
AT+CHIP?+CHIP: <chip>
OK
AT+CHIP= <chip> OK
 
ParameterValues rangeDescriptionDefault value
chip0-1Used chip ID (stored in a flash object)
0: M95640 SPI E2P chip, connected on SPI2 bus
1: M24C64 I2C E2P chip, connected on I2C bus
0

 

  AT+WRITE (External storage chip write command)
CommandAnswers
AT+WRITE=?+WRITE: (0-8191) , (64)
OK
AT+WRITE= <address> , <bytes> OK
 
ParameterValues rangeDescriptionDefault value
address0-8191Data start address of the bytes to storemandatory
bytes64Bytes to write (hexadecimal format)mandatory

 

  AT+READ (External storage chip read command)
CommandAnswers
AT+READ=?+READ: (0-8191) , (1-128)
OK
AT+READ= <address> , <length> +READ: <address>,<bytes>
OK
 
ParameterValues rangeDescriptionDefault value
address0-8191Data start address of the bytes to readmandatory
length1-128Number of bytes to read1
bytesNARead bytes, in hexadecimal formatNA

Updated : Thu Aug 24 13:06:46 CEST 2006