background image

   

www.rovingnetworks.com

 

Version 1.32r 10/9/2012

 

12

 

RN -W IFLY -E VAL-U M  

Associate with an Ad Hoc Network 

The WiFly module can associate with an ad hoc network created by another device. Type the commands: 

set wlan ssid my_adhoc_network 
save 
reboot 

To associate with an ad hoc network without saving the changes to the module’s flash memory, use the 

join

 command, 

e.g., 

join my_adhoc_network

 <cr>.  

If DHCP is enabled, the WiFly device obtains an IP address automatically when it associates with the ad hoc network. By 
definition, auto IP sets the first two bytes of the subnet to 169.254.

xxx.xxx

. The WiFly device requires 2 to 3 seconds to 

resolve the IP address. 

 

To set the IP address statically, disable DHCP and explicitly assign the IP address: 
 

set ip dhcp 0 
set ip address 169.254.1.2 

You can confirm that the device has properly associated with the ad hoc network using the 

ping

 keyword: 

 

ping 169.254.1.1 10 

Associate with the WiFly Module over an Ad Hoc Network from a Computer 

You can associate with the ad hoc network from a computer by specifying the network name (and password, if required) in 
the operating system. For example, choose Control Panel > Networking and Sharing > Networking and Sharing Center 
(Windows Vista) or Control Panel > Network Connections (Windows XP). You can then view available networks and select 
the name of the WiFly ad hoc network.   

NOTE:

  Once associated with the ad hoc network, Windows Vista may require a few minutes to allocate an IP address. 

To work around this issue, assign a static IP address under 

Network Settings > TCP/IP > Properties

.  

Once your computer is associated with the ad hoc network, you can use the WiFly module’s IP address to open a 
connection or connect using telnet as you would with an enterprise connection. 

NOTE:

  The WiFly module does not support ad hoc and infrastructure network modes simultaneously.  

Once you have associated with the other network, you can telnet into the WiFly module to configure it. Open the telnet 
connection using port 2000.  

NEXT STEPS 

Once you have set up the evaluation kit hardware and have gone through your initial evaluation using the instructions in 
this user guide, refer to the labs in the 

WiFly Training Presentation

 to get started developing applications. 

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Содержание WiFly RN-131-EK

Страница 1: ... RN WIFLY EVAL UM WiFly Evaluation Kit USER MANUAL 2012 Roving Networks All rights reserved RN WIFLY EVAL UM Version 1 32r 10 9 2012 Downloaded from Arrow com ...

Страница 2: ...rovides photographs and detailed information on each kit s contents To evaluate the module on the evaluation board you need a computer with a USB port running the Microsoft Windows or Mac OS X operating system NOTE Before beginning your evaluation you may need to install the driver for the USB cable You can download the drivers as well as other tools and utilities from the Roving Networks website ...

Страница 3: ...ARNING Sensors must not have more than 1 2 V DC Otherwise the module may be permanently damaged Table 2 RN 131 EK Evaluation Board LED Indicators Condition Blue LED Red LED Yellow LED Green LED On solid Unused Connected over TCP Fast blink Unused Not associated Rx Tx data transfer No IP address Slow blink Unused Associated no Internet IP address OK Off Unused Associated Internet OK Figure 2 shows ...

Страница 4: ...ace J4 RX input to evaluation board TX output from evaluation board Pin Description 1 3 3 VDC Output 2 GND 3 UART RX 4 UART TX 5 UART RTS 6 UART CTS 7 GPIO4 8 GPIO5 9 GPIO6 10 GPIO7 11 GPIO8 1 12 GPIO9 13 RESET Note 1 The RN 171 module drives GPIO8 HIGH on powerup which overrides software configured powerup values such as set sys value 0x0000 on GPIO8 LED Indicators UART Interface J4 Sensor Interf...

Страница 5: ...nto the battery pack Alternatively the USB cable can supply power to the board 2 Connect the USB cable to a USB port on your computer and to the USB connector on the evaluation board Windows should automatically install the drivers for the cable If it does not download and install the FTDI drivers from the Support page on the Roving Networks website at http www rovingnetworks com support php Note ...

Страница 6: ...tication password The WiFly module can only associate with one network at a time Roving Networks recommends that you begin your evaluation by configuring the WiFly module using an open access point to simplify the setup There are two ways to configure the WiFly module Over the UART which is connected to a computer or microprocessor Via Wi Fi using ad hoc networking You need a terminal emulator to ...

Страница 7: ... CoolTerm you can view and select the port from within the application NOTE Legacy evaluation boards use a USB to serial cable If you are using one of these boards use the COM port to which the USB to serial cable is attached 2 Open your terminal emulation program 3 Specify the COM port If you are using TeraTerm select Serial and choose the COM port number from the Port drop down list box NOTE The...

Страница 8: ...a to indicate a space e g MY NETWORK should be written as MY NETWORK Additionally you can use shorthand for the parameters For example the following commands are equivalent set uart baudrate 115200 set uart b 115200 set u b 15200 NOTE You cannot use shorthand for command keywords For example s uart baudrate 115200 is illegal The WiFly module supports a variety of command keywords The Advanced User...

Страница 9: ...SSID channel and security options Find Available Networks Once you are in command mode you can instruct the WiFly module to search for available networks Type scan cr in the terminal emulator to view a list of Wi Fi networks within range See Figure 7 Figure 7 Scan for Networks Associate with an Access Point You use the join keyword to associate with an open access point As shown in the scan list r...

Страница 10: ...this case type set wlan ssid roving1 set wlan pass rubygirl save reboot See Figure 8 You can confirm the security settings by typing get wlan cr Figure 8 Connect to a Secure Network Configuration Using Ad Hoc Mode You can configure the WiFly module over the air via an ad hoc network Ad hoc networks are useful for point to point communication In ad hoc mode the WiFly appears as an access point with...

Страница 11: ...n chan 1 Set the WiFly module s IP address and netmask Because automatic IP assignment fixes the first two bytes of the IP address use 255 255 0 0 as the netmask so that other devices connecting to the module can be reached You can also set the netmask to a smaller subnet if the other device s IP addresses begin statically at the same subnet as the ad hoc device set ip address 169 254 1 1 set ip n...

Страница 12: ... Networking and Sharing Center Windows Vista or Control Panel Network Connections Windows XP You can then view available networks and select the name of the WiFly ad hoc network NOTE Once associated with the ad hoc network Windows Vista may require a few minutes to allocate an IP address To work around this issue assign a static IP address under Network Settings TCP IP Properties Once your compute...

Страница 13: ...ON KIT CONTENTS ORDERING INFORMATION Table 5 shows the evaluation kit contents and ordering information Table 5 Evaluation Kit Contents Kit Photo Contents RN 131 EK RN 131 EK Evaluation board for the RN 131 module USB cable RN 171 EK RN 171 EK Evaluation board for the RN 171 module USB cable Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Dow...

Страница 14: ...n serial cable to the USB to serial cable 10 pin serial cable Connects from the board s RS 232 header to a DB9 connector 9 V battery clip Provides power to the evaluation board requires a battery Antenna cable U FL and reverse SMA connectors 4 dipole antenna Reverse SMA connector Figure 10 shows the RN 134 evaluation board and pin information Table 7 describes the LED indicators Downloaded from Ar...

Страница 15: ...or PWR 2 Resistor network to Sensor 4 3 Resistor network to Sensor 4 4 Sensor 7 5 Sensor 4 6 Sensor 5 7 Sensor 6 8 GND WARNING Sensors must not have more than 1 2 V DC Otherwise the module may be permanently damaged Jumper Block J2 Pins Description 1 Ad hoc mode and factory reset 2 Config 1 3 Config 2 4 Config 3 LED Indicators RS 232 Interface J1 Jumper Block J2 UART Interface J3 Power J5 Sensors ...

Страница 16: ... Internet OK Figure 11 shows the RN 174 evaluation board and pin information and Table 3 describes the LED indicators Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow ...

Страница 17: ...tolerant 3 Sensor 5 3 3 V tolerant 4 Sensor 7 1 2 V only 5 Sensor 5 1 2 V only 6 Sensor 4 1 2 V only 7 Sensor 6 1 2 V only 8 Sensor 3 1 2 V only 9 GND WARNING Voltage on pins marked 1 2 V Only should not exceed 1 2 V or permanent damage will occur Power J7 Pin Description 1 External DC 2 to 3 3 V or 5 to 12 V see J4 2 GND2 Pull Up Down J2 Ad Hoc Mode Factory Reset J6 LED Indicators RS 232 Interfac...

Страница 18: ...Yellow LED Green LED On solid Not used Connected over TCP Fast blink Not used Not associated Rx Tx data transfer No IP address Slow blink Not used Associated no Internet IP address OK Off Not used Associated Internet OK 2 4 6 8 10 12 14 16 1 3 5 7 9 11 13 15 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded ...

Страница 19: ...ached the cable 4 Connect the USB to serial cable to the 10 pin serial cable using the null modem Figure 12 shows the completed hardware setup for the RN 134 and RN 174 evaluation boards NOTE By default the WiFly module uses either the on board chip antenna RN 131G EVAL and RN 134 or the PCB trace antenna RN 174 If an antenna is included in your kit you do not need to install it for the evaluation...

Страница 20: ...ector 10 way ribbon cable with male DB 9 termination Null modem Battery clip RN 174 K Kit RN 174 Evaluation board for RN 171 module RN USB SERIAL USB to serial cable with male DB 9 connector 10 way ribbon cable with male DB 9 termination Null modem Battery clip Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Download...

Страница 21: ...oaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Страница 22: ...e Roving Networks components To minimize customer product risks customers should provide adequate design and operating safeguards Roving Networks products are not authorized for use in safety critical applications such as life support where a failure of the Roving Networks product would reasonably be expected to cause severe personal injury or death unless officers of the parties have executed an ...

Отзывы: