Getting Started with the RN-XV WiFly

Similar documents
Explore Scientific PMC-Eight Application Note PMC8-AN002 DOC-ESPMC8-AN002 Rev July 17 Page 1 of 5

Wifi Attachment Manual

RN-WIFLY-EVAL-UM. WiFly Evaluation Kit Roving Networks. All rights reserved. RN-WIFLY-EVAL-UM-1.0 Version /8/2011 USER MANUAL

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

linkzone User ManUal

ET-WiFly GSX. User s Manual of ET-WiFly GSX. ETT CO.,LTD -1-

WIFLY SERIAL ADAPTER RN-370 & RN-374

Overview. Introduction. Key Features

SparkFun Blocks for Intel Edison - Base Block

RN-WIFLY-SRL-UM. WiFly Serial Adapter Roving Networks. All rights reserved. RN-WIFLY-SRL-UM-1.0 Version /11/2011 USER MANUAL

Overview. Introduction. Key Features

TOSR14x. TOSR14x USB/Wireless Relay Module. User Manual. Tinysine 2015 Version 1.2

TOSR-04-5 TOSR-10B/C. LazyBone V4. Smartphone Controlled Switch. User Manual

User Manual V1.1 Date: WiFi RS-232 Adapter. Red LED: IP Address Blue LED: TX/RX 5V Out (Pin 9)

TOSR-04-5 TOSR-10B/C. LazyBone. Smartphone Controlled Switch. User Manual

Sierra Radio Systems. WiFly Configuration. Quick Reference. Version 1.0

quick setup tp-link

RN-XV-EK Evaluation Board

Overview. Introduction. Features

Arduino Dock 2. The Hardware

Quick Installation Guide. Live! Titanium

Canlan INSTALLATION MANUAL

IpAlarm Module Set Up VirtuAlarm model

GreenEye Monitor. GEM Communication Setup Manual. For GEM model: GEM-W. (Wifi Only Option)

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

RN-134. WiFly GSX Super Module SuRF Board. Features. Description. Applications. ~ page 1 ~ rn-134-ds v1.

Getting Started with the M30X / M306 Wireless Ethernet Monitor

keyestudio Keyestudio MEGA 2560 R3 Board

Lab 0: Intro to running Jupyter Notebook on a Raspberry Pi

ARDUINO YÚN Code: A000008

Appendix A - Configuring the WiFi Module Option

WiFiBee MT7681 (Arduino WiFi Wireless Programming) SKU: TEL0107

BT LE RN4020 USB Dongle Datasheet

Getting to Know Your Mobile WiFi

Port Forwarding Setup (RTA1025W Rev2)

RN-171-EK Evaluation Board

Medium parts count, through-hole components (with exception of optional surface mount MAC IC).

STT41AS1 v7.0 FUNCTIONAL DESCRIPTION

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT

Guidelines of Ethernet for Using a Star Dvice. - Windows - Rev. 2.0

Thank you for purchasing the RGB Multi-MCU base and driver board from SuperTech-IT and TheLEDCube.com

SR-201 Network Relay Quick Start Guide

TA0297 WEMOS D1 R2 WIFI ARDUINO DEVELOPMENT BOARD ESP8266

Click on Close button to close Network Connection Details. You are back to the Local Area Connection Status window.

Field Download of GTOCP4 Software

ESPWiFi Shield SHIELD ESP WIFI Rev2.0

Appendix A - Configuring the WiFi Module Option

IpAlarm Module Set Up

8.9.2 Lab: Configure an Ethernet NIC to use DHCP in Windows Vista

Setting up T&D s TR-7wf Data Loggers With the TR-7wf/nw for Windows Software

VLAN HOW-TO USER GUIDE

User Manual V1.2 Date: WiFi RS-232 Adapter. Red LED: IP Address Blue LED: TX/RX 5V Out (Pin 9)

Setting up ADSL2MUE 2.18-AU firmware for Bridge Mode

RN-174. WiFly GSX Super Module. Features. Description. Applications. rn-174-ds v1.1 1/24/2011

Using the NM150 with Adulticiding

NETAFIM WILL NOT ACCEPT RESPONSIBILITY FOR DAMAGE RESULTING FROM THE USE OF NETAFIM'S PRODUCTS OR THE USE OF THIS MANUAL.

RN-171-XV b/g Wireless LAN Module

MagicSoft Version 3.02

XPort Direct+ Demonstration Kit Quick Start Guide

RN-174 WiFly Super Module

IO Expansion Shield User Manual

BC4 Users Guide. Revision 1.1 September 22, Copyright 2008 by BitWise Controls, LLC All Rights Reserved.

XC4614 AT Commands Guide

ARDUINO YÚN MINI Code: A000108

ROUTER SET UP GUIDE: Huawei B618 LTE-A Router

User Manual. ESP8266 Wifi Shield

EPSON TM-P60 WIRELESS PRINTER. Installation and Setup Guide

Downloaded from manuals search engine. Quick Start

Manual. Specifications. Contents. Options

Internet User Guide. For the ZTE H298N routers. LAN4 LAN3 LAN2 LAN1 WAN Phone USB2 WAN WLAN WLAN

Arduino WiFi Shield. Quick Start. Tinyos 2012 Version 1.0

Vodafone B315. Self-Install Guide for Wireless Broadband

PowerView. Hub. by LUXAFLEX WINDOW FASHIONs

Exen Mini. Setup Guide - V1. nerdonic.com

Setting up the SL Screen on your wireless network

Thank you for purchasing the Mobile WiFi. This Mobile WiFi brings you a high speed wireless network connection.

SB72EX User's Manual

Exen Mini. Setup Guide - V2. nerdonic.com

NATIONAL CONTROL DEVICES Wi-Fi Quick Start Guide

How to upgrade firmware in DSL-xxx series router

WIRELESS 150N USB 2.0 ADAPTER

WiSpan Quick Start Guide

Quick Installation Guide. PG-9142s. Powerline Ethernet Adapter with WiFi. Copyright Page 1

Building Interactive Devices and Objects. Prof. Dr. Michael Rohs, Dipl.-Inform. Sven Kratz MHCI Lab, LMU München

Halloween Pumpkinusing. Wednesday, October 17, 12

RV2458 Router User Manual

GET STARTED AC 1200 High Power Dual Band Wi-Fi Range Extender

INNOV.NET PTY LTD. User guide

INNOV.NET PTY LTD. User guide

ARDUINO INDUSTRIAL 1 01 Code: A000126

RN-111B-EVAL IGRN111B-EVAL 3/10/2009. WiFly evaluation Kit. Features. Description. Getting Started

Part Number Density Product Type Operation Temperature. W25Q80NESNIG 8Mb 1.2V Serial NOR Flash Memory Industrial (-40 C to +85 C)

How to setup EW-7428HCn as a range extender for an existing Wi-Fi network

S32K148 EVB QUICK START GUIDE REV1 APPLIES FOR: S32K148 EVB (SCH REV A/B) EXTERNAL USE

CSCI 6907 PROJECT PROPOSAL LIGHTS OUT MANAGEMENT

Getting to Know Your Mobile WiFi Note: Thank you for choosing VIVA LTE Mobile WiFi

8-Port Gigabit Ethernet Smart Managed Plus Switch with Integrated Cable Management User Manual

Radiolabs Bridge in a Box Setup

Please note, instructions in this guide are based on a PC running Windows 7. Please adapt the actions to suit your operating system.

EC-11 Ethernet Converter

Transcription:

1 Introduction Getting Started with the RN-XV WiFly October, 2018 Revision 3 This guide will introduce you to using the RN-XV (or RN-171-XV) WiFly wireless LAN module with the Arduino UNO via the Wireless Proto Shield. 1.1 What s Covered This guide will teach you the following: Some general information concerning the hardware involved How to connect the WiFly to the Arduino How to configure the WiFly using only the Arduino s USB to serial interface How to establish a connection between the WiFly and a WLAN access point 1.2 What You ll Need A computer with Arduino IDE installed A USB A to Mini-B cable Arduino UNO Arduino Wireless Proto Shield RN-XV WiFly module WiFi router 2 Hardware Overview 2.1 RN-XV WiFly The WiFly is a Microchip Technology, Inc. (formerly Roving Networks) RN-171 module mounted on a break-out board. Three status LEDs are provided to relay information to user. See Table 2 for a summary of their functions. 1

Table 1: WiFly Status LED Summary Condition Red LED (D3) Yellow LED (D2) Green LED (D1) On solid Connected over TCP Fast Blink Not associated Data Transfer No IP address Slow Blink Associated, no Internet IP address OK Off Associated, Internet OK * Table duplicated from [1] 2.2 Wireless Proto Shield The hardware connection between the WiFly and Arduino is accomplished using the Wireless Proto Shield. This Shield has two rows of headers for the WiFly to plug into, a Serial Select Switch, a Reset button and some status LEDs. 2.2.1 Serial Select Switch The Serial Select Switch connects the WiFly on the Wireless Proto Shield to either one of two devices on the Arudino board: the microcontroller or the USB-to-Serial chip. The USB position allows the WiFly to connect directly to a computer using the USB-to-Serial chip so that it may be configured. The MICRO position connects it to the Arduino s ATmega328P microcontroller for normal operation. Please note that the switch has to be in the USB position to program the Arduino while the Wireless Proto Shield is attached. Figure 1: The Serial Select Switch Table 2: Serial Select Switch Function Summary Position Connection Usage USB WiFly < > USB-to-Serial chip Configuring WiFly using a computer MICRO WiFly < > Arduino microcontroller Normal operation The Arduino cannot be programmed with the switch in this position October, 2018 2 UG-WFLY Rev. 3

3 Using the WiFly 3.1 Preparing the Hardware 1. Connect Wireless Proto Shield, Arduino and WiFly together. 2. Using a jumper, short the Reset and GND positions on the WiFly Proto Shield s header as shown in Figure 2. This will hold the Arduino in reset while the WiFly is being configured. 3. Move the Serial Select Switch to USB position. 4. Connect the Arduino to the computer. Figure 2: Shorting Reset to GND 3.2 Configuring the WiFly 3.2.1 Entering Command Mode The WiFly has two modes: Data mode and Command mode. Data mode is the normal operating mode of the WiFly and it will output status messages over its serial interface while in this mode. Command mode is used to configure the WiFly. To enter Command do the following: 1. Open the Arduino IDE and bring up the Serial Monitor from the Tools menu 2. Ensure that No Line Ending and 9600 baud are selected 3. Type $$$ in the input field and hit Send; the WiFly will respond with CMD as in Figure 3. Additionally, its green status LED will begin blinking rapidly to indicate that it is in Command mode. 4. The WiFly will only accept commands if they are followed by Carriage Return, so change that setting now. In general, the WiFly will return AOK for most commands, and ERR for invalid commands October, 2018 3 UG-WFLY Rev. 3

Figure 3: Successfully Entering Command Mode 3.2.2 Factory Reset If the WiFly s configuration is in an unknown state, it s a good idea to perform a Factory Reset and name the device before going any further. 1. Enter Command mode 2. Send factory RESET 3. Send reboot to restart the device and save the default settings 4. Re-enter command mode 5. Send set opt deviceid <string> where <string> is the name your WiFly will have on the network 6. Send save 7. Send reboot 3.2.3 Connecting to an Access Point Connecting to an access point is accomplished by doing the following: 1. Enter Command mode 2. Send set wlan ssid <string> where <string> is the name of the access point you wish to connect to 3. Send set wlan join 1 so that the WiFly connects automatically after rebooting 4. Send save 5. Send reboot to restart the device to connect to access point October, 2018 4 UG-WFLY Rev. 3

3.2.4 Verifying the Connection Now that the WiFly is connected to an access point, use get ip a to verify that the WiFly has been assigned an IP address by the router. Table 3: Some Useful Commands Command Description get mac returns the WiFly s MAC address (can be obtained anytime, no WLAN connection necessary) get ip returns the IP address and the port the WiFly is listening on, along with other settings get ip a returns the IP address only get wlan display information about the current WLAN connection set ip localport 1025 change the port the WiFly listens on to 1025 (default is 2000) join connect to the access point saved in the WiFly s configuration leave disconnect from the access point See [2] For a complete description of the WiFly s commands 3.3 Communicating with the WiFly via TCP over WiFi For this part of the guide, you ll need to connect your computer to the same WiFi access point as the WiFly. In Windows 1, open a command prompt and begin a telnet session by typing telnet and hitting the enter key. The prompt will change to say Mircrosoft Telnet. Now, do the following: 1. Issue o <ip address> 2000 (<ip address> will have the form 192.168.X.X) to connect to the WiFly 2. Once connected, type some characters into the prompt; they should show up in Arduino IDE s serial monitor 3. Send some characters through the serial monitor as well, they ll show up in the telnet session 3.4 Communicating with the WiFly via the Mercury Competition Router This time, the WiFly will connect to the competition router and your computer will connect to the internet via another access point; that is they will be on separate networks. 1. Get your WiFly s MAC address using get mac 2. Change the port it listens on using set ip localport <port>, where <port> is a four digit number 3. Give the MAC and port number to the person running the router, they will tell you the public IP and port to connect to 4. Once your WiFly is whitelisted on the router, it will connect 5. Telnet into the WiFly using the public IP and port you ve been assigned 1 Telnet has to be enabled in Window 10 October, 2018 5 UG-WFLY Rev. 3

References [1] Roving Networks, RN-171-XV 802.11 b/g Wireless LAN Module, Datasheet, version 1.04, Oct. 29, 2012. [Online]. Available: http://ww1.microchip.com/downloads/en/devicedoc/rn- 171- xv- dsv1.04r.pdf. [2] Microchip Technology, Inc., WiFly Command Reference Manual, Manual, version B, Sep. 2015. [Online]. Available: http://ww1.microchip.com/downloads/en/devicedoc/50002230b.pdf. October, 2018 6 UG-WFLY Rev. 3