http://www.wavecom.com/forum

Open AT ®  Release version:
4.10

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?+WOPEN: <state> , <password>
OK
AT+WOPEN=?+WOPEN: (0-6) , (20)
OK
AT+WOPEN= <state> , <password> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
state0-6cf +WOPEN documentationmandatory
password20Password needed on modes 0 and 5mandatory

 

  AT+WDWL (Download command)
CommandAnswers
AT+WDWL=?+WDWL: (20)
OK
AT+WDWL= <password> +CME ERROR: 3
or
OK
 
ParameterValues rangeDescriptionDefault value
password20Password needed to start XModem downloadermandatory

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: Tue Sep 19 17:14:31 CEST 2006;