iwconfig Commands

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
iwconfig Commands

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

 

iwconfig commands take the following structure:

iwconfig 
[ ssid <name> ][ mode <idle|managed|adhoc> ]
[ channel <channel list|all> ]
[ power <reenable|disable|unicast|all> ]
[ domain <name> ]
[ rts <length> ]
[ scan ]
[ hibernate ]
[ wakeup ] 

Note: iwconfig with no options will display wireless status.

ssid 
 
name 
1-32 ASCII characters.

Currently doesn't accept spaces in the SSID name. 
mode 
 
idle 
Forces the MRF24WB0M / MRF24WG0M to disconnect from any currently connected network (adhoc or infrastructure). 
managed 
The MRF24WB0M / MRF24WG0M will connect to the SSID in infrastructure mode. Note that all the network parameters must be correct before this command is called. 
adhoc 
The MRF24WB0M / MRF24WG0M will connect to the SSID in adhoc mode. Note that all the network parameters must be correct before this command is called. 
channel 
 
channel list 
A comma separated list of all the channels to scan. 
all 
Sets the MRF24WB0M / MRF24WG0M to scan all channels in the given regulatory domain. 
power 
 
reenable / all 
Enables all power saving features (PS_POLL) of the MRF24WB0M / MRF24WG0M. MRF24WB0M / MRF24WG0M will wake up to check for all types of traffic (unicast, multicast, and broadcast). 
disable 
Disables any power savings features. The MRF24WB0M / MRF24WG0M will always be in an active power state. 
unicast 
The MRF24WB0M / MRF24WG0M will be in it's deepest sleep state, only waking up at periodic intervals to check for unicast data. The MRF24WB0M / MRF24WG0M will not wake up on the DTIM period for broadcast or multicast traffic. 
domain 
 
fcc 
United States channels 1-11. 
ic 
Canada channels 1-11. Applicable for MRF24WB0M only. 
etsi 
European channels 1-13. 
spain 
Spanish channels 10-11. Applicable for MRF24WB0M only. 
france 
French channels 10-13. Applicable for MRF24WB0M only. 
japan 
Japanese channel 1-14. Applicable for MRF24WG0M only. 
japana 
Japanese channel 14. Applicable for MRF24WB0M only. 
japanb 
Japanese channels 1-11. Applicable for MRF24WB0M only. 
rts 
 
length 
Set the requested number of bytes to send. Default max is 2347. 
scan 
 
 
Instructs the MRF24WB0M / MRF24WG0M to perform an active site scan. Scan results will be displayed to the output terminal. 
hibernate 
 
 
Turns off LDO of the MRF24W module, which is equivalent to removing power to the MRF24WB0M / MRF24WG0M. Has the same effect of resetting MRF24WB0M / MRF24WG0M. MRF24W state is not maintained when transitioning to hibernate mode. 
wakeup 
 
 
Restores power to the MRF24WB0M / MRF24WG0M and reconnects. 

Note: scan is only supported by the WiFi EZConfig demo.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.