Datasheet
Microchip MRF24W Getting Started Guide for MRF24WB0MA/B, MRF24WG0MA/B for MLA v5
DS52108A-page 56 Preliminary 2013 Microchip Technology Inc.
4.7.2 Network Type: CFG_WF_ADHOC
The security mode supported by MRF24WB0MA/B and MRF24WG0MA/B is Open
mode and WEP security. In the following example, open security is used.
In the WF_Config.h file, perform these actions:
1. Define the MY_DEFAULT_NETWORK_TYPE as CFG_WF_ADHOC.
2. Ensure that the MY_DEFAULT_SSID_NAME is defined to be unique and
different from the SSID name used in the CFG_WF_INFRASTRUCTURE. For
example, MY_DEFAULT_SSID_NAME is defined as
Adhoc_MCHPDemoAP_123.
FIGURE 4-30: AD HOC NETWORK ENVIRONMENT SETUP
3. MRF24WB0MA/B or MRF24WG0MA/B Wi-Fi
®
PICtail™ is the first station to
broadcast the message to create the network. After successful creation of the
network, connection successful message will be displayed, see Figure 4-31.
Note: In this demonstration, iPhone is used as the smart device. Alternatives can
be used instead of the iPhone, such as laptop with wireless network
adapter.