http://www.wavecom.com/forum

Open AT ®  Release version:
3.13

Sample - Secured Control

Changes

Dependencies

This sample depends on the following libraries :

Application Description

This application protects AT+WDWL and AT+WOPEN commands with a password.

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

 

  AT+SECSTART (Secured Control start/stop command)
CommandAnswers
AT+SECSTART?+SECSTART: <state>
OK
AT+SECSTART=?+SECSTART: (0-1)
OK
AT+SECSTART= <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 sc_init() function. The start/stop entry points linked to the +SECSTART command are the sc_run() and sc_stop() functions.

When the application is enabled, it subscribes to the Application safe mode service, and filters the AT+WDWL and AT+WOPEN=0/5 commands. A new syntax is required for these commands :

 

  AT+WOPEN (Open AT control command)
CommandAnswers
AT+WOPEN= <state> ,[ <password> ]+CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
state0-6cf +WOPEN documentationmandatory
password20Password needed on modes 0 and 5mandatory

cf +WOPEN documentation for more details on this command.

 

  AT+WDWL (Download command)
CommandAnswers
AT+WDWL=[ <password> ]+CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
password20Password needed to start XModem downloader if the application is running (AT+SECSTART) mandatory

cf +WDWL documentation for more details on this command.

The password is defined by the following command :

 

  AT+PASSWORD (Change Password command)
CommandAnswers
AT+PASSWORD=?+PASSWORD: (20) , (20)
OK
AT+PASSWORD= <oldpassword> , <newpassword> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
oldpassword20Current password ("openat" by default)mandatory
newpassword20New passwordmandatory

Updated: Wed Apr 4 13:15:08 CEST 2007;