GS2101M IP2WiFi Adapter Command Reference Guide
1VV0301499
Rev. 2.0
108
2019-08-05
5.3.3.5 WPA-PSK and WPA2-PSK Key Calculation
This command is used to compute and store the value of the WPA/WPA2 PSK, derived
from the SSID and Passphrase values. Computation of the PSK from the passphrase is
complex and consumes substantial amounts of time and energy. To avoid recalculating this
quantity every time the GS node associates, the GS node provides the capability to compute
the PSK once and store the resulting value. The key value is stored in the SRAM copy of
the current profile; the profile needs to be saved in flash memory for this value to persist
during a transition to Standby.
Command Syntax
AT+WPAPSK=<SSID>,<passphrase>
Parameter Description
describes the WPA-PSK and WPA2-PSK Key Calculation parameters.
Synchronous Response
describes the synchronous responses and remarks for the WPA-PSK and
WPA2-PSK Calculation command.
Table 82 WPA-PSK and WPA2-PSK Key Calculation Parameters
Parameter
Optional/Mandatory
Value
Description
SSID
Mandatory
1-32
The SSID is a string of between 1 and 32 ASCII
characters. See
2.7.3 SSID and Passphrase, page 29
PASSPHRASE
Mandatory
8-63
The passphrase is a string containing between 8 and 63
ASCII characters used as a seed to create the WPA
pre-shared key
.
Table 83 WPA-PSK and WPA2-PSK Calculation Synchronous Responses
Responses
Remarks
Computing PSK from SSID and
Passphrase
OK
Success
The GS node immediately responds with this message along with standard
OK response (0 in non-verbose). The current profile parameters PSK
Valid, PSK-SSID, and WPA Passphrase are updated and can be queried
with AT&V (see
4.3.7 Identification Information, page 70
time the GS node associates to the given SSID, the PSK value is used
without being recalculated.
After the PSK has been computed, the command AT&W (to save the
relevant profile) and AT&Y (to ensure that the profile containing the new
PSK is the default profile) should be issued. The PSK will then be
available when the GS node awakens from Standby mode. See
4.3.4 Select Default Profile, page 67
for profile management.
ERROR:INVALID INPUT
If parameters are not valid.