XBee® Wi-Fi RF Modules
© 2013 Digi International, Inc. 38
Note that ad hoc networks are point to point and that there can only be two nodes in
the network, a creator and a joiner. Set up the creator first, and then the joiner.
Ad Hoc Creator
Set up the following parameters for the creator:
• AH1 designates the node as an Ad hoc creator.
• MA1 specifies static IP addresses. (No DHCP is supported in Ad Hoc mode.)
• EE0 specifies no security. (Security is not available in Ad Hoc mode.)
• CH may be any channel from 1 to 0xB.
• ID sets the SSID, which is any string of choice, as long as it isn’t the same as
another SSID in the vicinity.
• MY sets IP address of creator node.
• DL specifies IP address of joiner node.
• MK sets IP mask for both of the above addresses.
Ad Hoc Joiner
Set up the following parameters for the joiner:
• AH0 designates the node as an Ad hoc joiner.
• MA1 specifies static IP addresses. (No DHCP is supported in Ad Hoc mode.)
• EE0 specifies no security. (Security is not available in Ad Hoc mode.)
• ID sets the SSID, which must match the ID of the creator. Problems arise if it
matches the SSID of an access point in the vicinity.
• MY sets IP address of joiner node.
• DL specifies IP address of creator node.
• MK sets IP mask for both of the above addresses.
Network Basics
Clients will need to join the wireless network before they can send data across it. This is
called Association. In order for a device to associate it must know the following items
about the desired wireless network:
• SSID: the name of the wireless network.
• Encryption: if and how the network encrypts or scrambles its data.
• Authentication: how and if the network requires its members to ―prove their
identity.
• Channel: what channel (frequency range) the wireless network uses.
Once a device is associated it can send and receive data from other associated devices
on the same network. When the client is done or needs to leave, it then can Dis-
associate and be removed from the wireless network.