Siemens M1 User Manual

Page 42

Advertising
background image

41

GSM M1 Module, English: A24859-N4000-A100-1-7677

gsm-m1-e.fm

Technical reference section

6.3.96

Example:

You enter the correct PIN2:

Enter:

AT+CPIN2=“1234“

GSM module:

OK

You enter an incorrect PIN2:

Enter:

AT+CPIN2=“1234“

GSM module:

+CME: ERROR: WRONG PASSWORD

This command allows you to change the password. Since more than one password will
be available for future uses, you must specify the name of the password upon entering
it.

Example:

Enter:

AT+CPWD=?

Requests the list of passwords (SC = SIM,
PS = device code, P2 = PIN2)

GSM module:

+CPWD: (“SC,8“,“PS,8“, “P2,8“)

OK

Enter:

AT+CPWD= “sc“,“1234“,“4321“

GSM module:

OK

Password was successfully changed.

The following result code is returned if the old PIN you enter is incorrect:

Enter:

AT+CPWD= “sc“,“0123“,“4321“

GSM module:

+CME ERROR: INCORRECT PASSWORD

The password was not changed because the
old PIN was incorrect.

AT+CPWD - Change password

AT+CPWD

Command

Result

AT+CPWD=?

Displays a list of the passwords supported. These cur-
rently include the PIN, device code and PIN2.

AT+CPWD=<name>,
<old password>,
<new password>

This command instructs the GSM module to change the
relevant password. When changing the password, you
must enter both the old and new password. This ensures
that changes can be made only if access is authorized.

Advertising