Technical Note RN-111b-UG-1.0 WiFLy RN-111B 802.11b “wifi” wireless LAN – OEM Module Integration Guide and Users Manual Version 1.16 June 16, 2008 Copyright © 2008 Roving Networks, Inc. The contents of this document can be changed by Roving networks without prior notice and do not constitute any binding undertakings from Roving networks. Roving networks is not responsible under any circumstances for direct, indirect, unexpected damage or consequent damage that is caused by this document.
Roving Networks Wifly RN-111B User Guide Version 1.16 All rights reserved. Release: 1-02-08 Document version: 1.0 Document number: RN-Wifly-UserGuide-1.0 Printed in the United States of America. Trademarks Registered trademarks from other companies are: www.rovingnetworks.com support@rovingnetworks.
Roving Networks Wifly RN-111B User Guide Version 1.16 Federal Communications Commission (FCC) Statement 15.21 You are cautioned that changes or modifications not expressly approved by the part responsible for compliance could void the user’s authority to operate the equipment. 15.105(b) This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC rules.
Roving Networks Wifly RN-111B User Guide Version 1.16 Industry Canada (IC) Statement 15.21 You are cautioned that changes or modifications not expressly approved by the part responsible for compliance could void the user’s authority to operate the equipment. 15.105(b) This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the IC rules.
Roving Networks Wifly RN-111B User Guide Version 1.16 Table of Contents 1.1. RN-111B Overview 1. About WiFLY RN-111B 4 1.1. RN-111B Overview 4 1.2. RN-111B Features 4 1.3. RN-111B Options 5 1.4. RN-111B Specificattions 5 1.5. RN-111B Block Diagram 6 1.6. RN-111B Electrical Characteristics 6 1.7. RN-111B Operating and Environmental Conditions 7 1.8. RN-111B Dimensions 7 1.9. RN-111B Pin Description 7 Introduction 8 Hardware interfaces 8 2.2. Configuration 9 2.3.
Roving Networks Wifly RN-111B User Guide Version 1.16 1.1. RN-111B Overview The RN-111b “WiFly” radio module is a complete, stand alone, embedded wireless LAN access device. The device has on board TCP/IP stack and applications. Requiring only 4 pins (POWER, TX, RX, GND) to design in. Once initial configuration is set, the radio can automatically access the WiFi network and send/receive serial data over UART. • Fully Qualified 2.4GHz IEEE 802.11b Wireless LAN radio module.
Roving Networks Wifly RN-111B User Guide Version 1.16 1.4. RN-111B Specifications Item Specifications Frequency 2402 ~ 2480MHz Modulation DSSS(CCK-11, CCK-5.5, DQPSK-2, DBPSK-1) Channel intervals 5MHz Number of channels 13CH Transmission rate (over the air) 11/5.5/2/1 Mpbs Receive sensitivity -85dBm typ. Output level (Class1) 12dBm max. Dimensions 1.5. With antenna 25.4(W)X36(L)X5(H)mm RN-111B Block Diagram www.rovingnetworks.com support@rovingnetworks.
Roving Networks Wifly RN-111B User Guide Version 1.16 1.6 RN-111B Electrical Characteristics Min Typ. Max. Unit Supply Voltage VIN 4.0 5.0 12 VDC Supply Voltage VDD 3.0 3.3 3.6 VDC Supply Voltage (VBATT option) 2.0 3.0 3.3 VDC - 35 - mA 12 20 900 uA (micro) Average power consumption Standby/Idle (default settings) Sleep Connected(idle, RX) 40 Connected( TX) 1.
Roving Networks Wifly RN-111B User Guide Version 1.16 1.8 1.
Roving Networks Wifly RN-111B User Guide Version 1.16 2. Introduction Scope This Integration and Users Guide, along with the RN-111b module have been developed to assist users in embedding Wifi technology into their serial, SPI, and sensor devices. The goal is to make the implementation of embedded Wifi wireless networks as seamless and easy as possible. This document will explain how to setup and establish communications between the RN-111b and Wifi enabled networks for data applications. 2.
Roving Networks Wifly RN-111B User Guide Version 1.16 2.2 Configuration Command Mode (vs Normal Data mode)- Upon powerup, the device will be in data mode. To enter command mode, The characters “$$$” must be sent. The device will respond with “CMD”. To exit command mode, send “exit”. The device will respond with “EXIT”. Parameters, such as the SSid, Channel, IP address, Serial Port settings, and all other settings can be viewed and configured.
Roving Networks Wifly RN-111B User Guide Version 1.16 3.0 WiFLY Command Reference The commands begin with a keyword, and have optional additional parameters, generally space delimited. Commands and options are case sensitive. hex input data can be upper or lower case. String text data, such as SSID, are also case sensitive. The first keyword is fully decoded, and the optional parameters can be short-formed.
Roving Networks Wifly RN-111B User Guide Version 1.16 3.1. SET COMMANDS These commands begin with “set”. There are 6 major categories. 1. COMM- communication and data transfer, timers, matching chars. IP -IP settings. SYS - system settings such as sleep and wake timers. TIME - timer server settings. UART - serial port settings such as baudrate and parity. WLAN - wireless interface settings, such as ssid, chan, and security options. 2. 3. 4. 5. 6.
Roving Networks Wifly RN-111B User Guide Version 1.16 set ip remote set ip ftp sets the remote host port number. sets the ftp server address. set ip uport sets the ftp server port number. SYSTEM PARAMETERS set sys autoconn TCP mode: sets the auto-connect TCP timer. 0 disables. set sys autosleep UDP mode: sets the auto-sleep timer. 0 disables. set sys iofunc set sys mask sets the IO port alternate functions. Bit-mapped value.
Roving Networks Wifly RN-111B User Guide Version 1.16 set uart flow <0,1,x> sets the flow control mode. 0=off, 1= hardware RTS/CTS, x = XON/XOFF. set uart tx <0, 1> Disables or enables the TX pin= PIO0 of the UART. set PIO0 to an INPUT with weak pulldown. Disable will WLAN PARAMETERS set wlan auth sets the authentication level. 0= disabled, 1=WPA-PSK, 2=WPA2-PSK, 3=WEP-128. set wlan channel sets the wlan channel, 1-13 is the valid range for a fixed channel.
Roving Networks Wifly RN-111B User Guide Version 1.16 3.2. GET COMMANDS These commands begin with “get”. They represent the stored values as configured. get com display comm. settings. get ip display IP address and port number settings. get mac display the device MAC address. get port return current value of the PIO pins in hex format. get sys display system settings, sleep, wake timers, etc. get time display the time server UDP address and port number.
Roving Networks Wifly RN-111B User Guide Version 1.16 3.4. ACTION COMMANDS $$$ Enter command mode Characters are PASSED until this exact sequence is seen. If any bytes are seen before these chars, or after these chars, in a 1 second window, command mode will not be entered and these bytes will be passed on to other side. close Causes a network disconnect to occur. exit Exit command mode. Exit command mode. “EXIT” will be displayed.
Roving Networks Wifly RN-111B User Guide Version 1.16 set factory 1 Loads factory defaults into the RAM configuration. ftp upload Retrieves a file from the remote FTP server. specified, “wifly.img” filename is used. If not ftp upload b Retrieves remote file and updates the boot image. www.rovingnetworks.com support@rovingnetworks.
Roving Networks Wifly RN-111B User Guide Version 1.16 4.0 System timers and other features There are 2 timers that can be used to put the module to sleep, and perform a wake up. If the sleep timer is enabled, the module will automatically go into low power mode after the timer counts down to 0. The countdown is disabled if the module has an IP connection, or the module is in COMMAND mode. The timer is reset when characters are received on the UART.
Roving Networks Wifly RN-111B User Guide Version 1.16 4.2 Wake on UART When the module is in Sleep mode, the UART itself is disabled. However, wake on UART can be accomplished using a resistor divider from the data RX pin to the SENS1-4 pin. Good values for this are a 24K ohm resistor in series from RX to SENS1, and 10K ohms from SENS1 to Ground. To enable or disable this function, use: set sys trig 1.
Roving Networks Wifly RN-111B User Guide Version 1.16 4.4 Setting PIO directions, Disabling LED drivers The table below shows the usage of the PIO pins and their default values: Use the command: set sys mask to enable or disable certain pins as outputs. For example, set sys mask 0 will default all pins to INPUT. Note that PIO 7, and 8 are used internally by the module and cannot be changed. Setting or clearing bits in these locations will be ignored.
Roving Networks Wifly RN-111B User Guide Version 1.16 5. FTP Upgrade and Image Storage Image Storage WiFly contains a built file system for storing the firmware image(s). Files can be viewed with the ls command. Here is an example result: File# Size 2 12 wifly-1.05 14 1 config 113 Free, Boot=2, Backup=22. Multiple files can be stored, and the boot image can be modified per below. FTP Upload and Upgrade WiFly contains a built in FTP client for getting files and updating the firmware.
Roving Networks Wifly RN-111B User Guide Version 1.16 6. Factory Default Power up Settings Note: PIO(9) IF pulled HIGH (3.3V) at power up time, and then toggled 3 times will change all settings below back to their factory values. COMM PARAMETERS Close string Open string Remote string FlushSize MatchByte FlushTimer IdleTimer CLOSE OPEN Hello 32 13 ( = ‘\r’) 0 0 IP PARAMETERS protocol address localport netmask gateway host remoteport ftp dhcp TCP-Server 0.0.0.0 2000 0.0.0.0 0.0.0.0 0.0.0.0 2000 64.62.
Roving Networks Wifly RN-111B User Guide Version 1.16 THIS IS THE END OF THE DOCUMENT www.rovingnetworks.com support@rovingnetworks.