iwpriv Commands

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
iwpriv Commands

Note that these items should not be changed while the device is in a connected state to a network. 

 

iwpriv commands take the following structure:

iwpriv 
[ enc <none|wep|wpa-psk|wpa-phrase> ]
[ key <[1]|[2]|[3]|[4]> <value> ]
[ psk <value> ]
[ phrase <value> ] 

Note iwpriv by itself will display network security settings.

enc 
 
none 
The MRF24WB0M / MRF24WG0M will not use any encryption to connect to the specified network. 
wep 
The MRF24WB0M / MRF24WG0M will use either WEP-40 (short) or WEP-104 (long) encryption to connect to the specified network. 
wpa-psk 
The MRF24WB0M / MRF24WG0M will use the specified 32-byte PSK to connect to the WPA/WPA2 network. 
wpa-phrase 
The MRF24WB0M / MRF24WG0M will take the given 1-32 ASCII character passphrase, along with the SSID, and compute the required 32-byte PSK for the network.

Note that doing so takes approximately 30 seconds to complete the calculation. 
key 
 
[1] [2]
[3] [4] 
Instructs the MRF24WB0M / MRF24WG0M to use this key for connecting to the WEP encrypted network.

Note that only key 1 is considered safe to use among different AP vendors. Keys 2-4 can have implementation specific entries that may not be compatible from AP to AP. 
value 
If value is specified, this will instruct the MRF24WB0M / MRF24WG0M to use the specified key number and also program the device with this key value. For WEP-40 networks, this implies the key is either 5 ASCII characters of 10 hex characters in length. For WEP-104 networks, this implies the key is either 13 ASCII characters or 26 hex characters in length.

The console only accepts hex WEP keys. Therefore, the user must do the ASCII to hex conversion for their ASCII keys. 
psk 
 
value 
32-byte hex value for the PSK.

This value can be calculated from the following website hosted on the Wireshark website
phrase 
 
value 
An 8-63 ASCII character phrase (delimited with quotes if using spaces). This phrase will be used along with the SSID to generate the 32-byte PSK value for the network. 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.