Microchip Technology RN111B Wifly module User Manual WiFly ver1 with FCC warning
Microchip Technology Inc. Wifly module WiFly ver1 with FCC warning
Users manual
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.com Phone 408-395-6539 -2- 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. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: -Reorient or relocate the receiving antenna. -Increase the separation between the equipment and receiver. -Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. -Consult the dealer or an experienced radio/TV technician for help. Operation is subject to the following two conditions: 1) this device may not cause interference and 2) this device must accept any interference, including interference that may cause undesired operation of the device. FCC RF Radiation Exposure Statement: This equipment complies with FCC radiation exposure limits set forth for an uncontrolled environment. End users must follow the specific operating instructions for satisfying RF exposure compliance. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 -3- 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. These limits are designed to provide reasonable protection against harmful interference in a residential installation. This equipment generates, uses and can radiate radio frequency energy and, if not installed and used in accordance with the instructions, may cause harmful interference to radio communications. However, there is no guarantee that interference will not occur in a particular installation. If this equipment does cause harmful interference to radio or television reception, which can be determined by turning the equipment off and on, the user is encouraged to try to correct the interference by one or more of the following measures: * Reorient or relocate the receiving antenna. * Increase the separation between the equipment and receiver. * Connect the equipment into an outlet on a circuit different from that to which the receiver is connected. * Consult the dealer or an experienced radio/TV technician for help. Operation is subject to the following two conditions: 1) this device may not cause interference and 2) this device must accept any interference, including interference that may cause undesired operation of the device. IC RF Radiation Exposure Statement: This equipment complies with IC radiation exposure limits set forth for an uncontrolled environment. End users must follow the specific operating instructions for satisfying RF exposure compliance. This transmitter must not be co-located or operating in conjunction with any other antenna or transmitter. www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 -4- Roving Networks Wifly RN-111B User Guide Version 1.16 Table of Contents 1.1. RN-111B Overview 1. About WiFLY RN-111B 1.1. RN-111B Overview 1.2. RN-111B Features 1.3. RN-111B Options 1.4. RN-111B Specificattions 1.5. RN-111B Block Diagram 1.6. RN-111B Electrical Characteristics 1.7. RN-111B Operating and Environmental Conditions 1.8. RN-111B Dimensions 1.9. RN-111B Pin Description Introduction Hardware interfaces 2.2. Configuration 2.3. LED indications 2. 2.1. 3. RN-111B Command Reference 10 Set Commands 11 3.2. Get Commands 14 3.3. Status Commands 14 3.4. Action Commands 15 3.5. File IO Commands 15 System timers and other features 16 Wake on SENSE inputs 16 3.1. 4. 4.1. 4.2. Wake on UART 16 4.3. Setting diagnostic print levels 17 4.4. Setting PIO directions 18 4.5. Setting alternate IO functions 18 5. FTP Upgrade and Image Storing 19 6. Factory Default Power up Settings 20 www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 -5- 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. • 32bit CPU, 230K ROM, 80KRAM, 4MB on board flash. • On board ECOS -OS, TCP/IP stacks. • 3.3V UART and SPI interfaces available to various applications. • Accepts wide voltage range input 3.3V – 12VDC. • Multiple Antennae options, SMA, U.FL, ceramic Chip, ¼ wave wire. • Conforms to FCC, CE and the EMI standard of each country. • Modular Approval: • RoHS compliance. 1.2. FCC ID: T9J-RN111b, ICS: 6514A-RN111b, CE: 0681 RN-111B Features • Baud rate speeds: 1200bps up to 921.6Kbps and non-standard baudrates. • Ultra low power consumption (110mA TX, 40ma RX, 12uA deep sleep). • Real time clock for timestamping, auto-sleep and auto-wake modes. • UART local configuration using simple ASCII commands. • Over the air firmware upgrade (FTP), and data file upload. • 3 on board LEDs for status. • 6 Programmable IO pins, 8 analog sensor inputs. • On board flash can be used to store multiple applications, and for data logging, and stored data forwarding at intervals to the networks. • Small-form factor low profile radio modem 25mm x 36mm x 5mm. • 32 pin Standard 2mm DIP socket pin spacing. 1.3 RN-111B Options • Larger flash memory (up to 16Mb) for data logging. • On board boost regulator can power from low voltage 2-3V battery source. • SMA, Chip, U.FL or wire ANT. www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 -6- 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.com Phone 408-395-6539 -7- 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.7 mA 110 180 RN-111B Operating and Environmental Conditions Operating Temperature Range -40 oC ~ 85 oC Storage Temperature Range -40 oC ~ 85 oC Relative Humidity (Operating) ≤90% Relative Humidity (Storage) ≤90% www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 -8- mA Roving Networks Wifly RN-111B User Guide Version 1.16 1.8 1.9 RN-111B Dimensions RN-111B Pin Description Pin Pin Name Pin Pin Name NO CONNECT 32 GND VDD_SW (NO CONNECT) 31 SENSE-1 (WAKE GPIO) SENSE-5 30 SENSE-2 (WAKE GPIO) SENSE-6 29 SENSE-3 (WAKE GPIO) SENSE-4 (WAKE GPIO) SENSE-7 28 SENSE-8 27 TX – data output PIO6 (RED LED) 26 RX – data input PIO9 (factory reset ) 25 CTS (PIO2) input NO CONNECT 24 RTS (PIO3) output 10 NO CONNECT 23 PIO4 (GREEN LED) 11 RESET* (active LOW ) 22 PIO5 (YELLOW LED) 12 SHUTDOWN (NO CONNECT) 21 SPI_MI 13 VIN (3.6-16VDC) 20 SPI_CS 14 VREG (3.3V LDO output) 19 SPI_CK 15 VBATT (TIE to VREG) 18 SPI_MO 16 GND 17 VDD (3.3V ) *** NOTE: Any unused pins should be left floating. www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 -9- 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.1 Hardware Interface There are 3 options to power the RN-111b. 1. 2. 3. Supply 3.6 to 16VDC power to VIN (pin 13). Tie VREG (pin 14) to VBATT(pin 15). Apply 3.3VDC regulated power to VDD (pin 17). Apply battery = 2.0 to 3.0VDc to VBATT (pin 15). If VIN is powered, VREG will supply 3.3VDC output and can be used for other circuits, with a current limitation of 50 ma. Reset is active LOW, is optional and does not need to be connected. There is a built in voltage monitor that will pull Reset LOW (open drain FET) if the input voltage drops below 2.7VDC. If external reset is desired, use an OPEN DRAIN driver and do not drive the Reset pin to any voltage > 1.0 Vdc. Warning: Do NOT exceed the voltage ratings on the 3.3V pins, damage to the module will result. Important Notes: #1: RESET input is a low voltage (1.2VDC ) input, with a 10K pullup and built in power monitor circuits. If external reset is desired, use pull down (open drain or collector) only. #2: The Sensor inputs SENS1-7 are extremely sensitive to over voltage. Under no conditions should these pins be pulled high above 1.2VDC. Placing any voltage above this will permanently damage the radio module and render it useless. #3: Placing 5VDC or any voltage above 3.3Vdc into the VDD pins of the module will permanently damage the radio module. Be sure to use the VIN = pin 13 power pin for any power supplied that is > 3.3VDC. #4: Placing 3.3Vdc into the PIO’s while they are set as outputs will permanently damage the radio modules. The failure mode is a short across GND and VCC. Use a 10KΩ resistor in series or a 10KΩ pull up resistor for input and output PIO’s respectively. • • • Connect a common ground when using the external TX, RX inputs. For a 3 wire DB-9 interface (tx, rx, gnd only) connect/short CTS to RTS, Factory default is hardware flow control disabled, CTS and RTS not connected. When using a 5.0Vdc Input, PIO’s require a 10K ohm series resistor. PIO’s are 03.3Vdc not 5 volt tolerant. www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 - 10 - 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. While in command mode, the device will accept ASCII bytes as commands. Use a normal RS-232 pass through cable from PC passing ASCII characters through the terminal to the RN-111b. The communications settings should match the settings used when RN-111b connects, for example: the default is 115,200bps, 8 bits, No Parity, 1 stop bit, and hardware flow control disabled. Run your favorite terminal emulator, Roving Networks provides a free one, Teraterm, at http://www.rovingnetworks.com/support/teraterm.zip. Type “$$$” on your emulator. You should see “CMD” returned to you. This will verify that your cable and comm. settings are correct. Most valid commands will return an “AOK”, response, and invalid ones will return an Error description. Commands that are not recognized will return a “ERROR: Unknown Cmd”. To exit command mode, type “exit“ . NOTE1 : You can enter command mode locally over the serial port at any time when not connected, and also when connected if the appropriate settings are enabled. 2.3 LED indications Condition ON Solid GREEN YELLOW CONNECTED over TCP RED LED NOT ASSOCIATED WiFI Receive Packet Fast BLink NO IP ADDRESS Slow Blink IP ADDRESS OK ASSOCIATED, but no Internet NO power ASSOCIATED and Internet OK OFF www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 - 11 - 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. For example, set uart baudrate 115200 is valid, set uart b 115200 set u b 115200 is also valid, is also valid, however, s uart baudrate 115200 is NOT valid. ENTERING VALUES Numbers can be entered as either decimal, (like 115200 above ) or HEX. To enter HEX, use 0x . For example, the HEX value FF would be entered as 0xFF. Commands fall into 5 general categories: 3.1 SET COMMANDS -Take effect immediately, permanently (save command issued). 3.2 GET COMMANDS -Retrieve the permanently stored information for display to user. 3.3 STATUS COMMANDS -See what is going on with the interface, IP status, etc. 3.4 ACTION COMMANDS- Perform action such as scan, connect, disconnect, etc. 3.5 FILE IO COMMANDS - Upgrade, load and save configuration, delete files, etc. IMPORTANT: HOW CONFIGURATION WORKS When the system boots, all configuration data is loaded into RAM variables from the file called “config”. The set commands actually only modify the RAM copy of variables in the system. This allows temporary change of parameters “on the fly” to test features, minimizes power usage and saves on flash re-write cycles. Once all configuration is complete, the user should be sure to use the save command to store the configuration data, otherwise it will not take effect upon reboot or reset. Multiple configurations can be stored by using the save command, and these configurations can be loaded using the load command. These files can be upload to remote FTP site, such that once a desired configuration is created, it can quickly be copied into additional devices (cloning). www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 - 12 - 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. COMM PARAMETERS – TCP connection status strings set comm close sets the string to send locally when the port is closed. If no string is desired, use the command set comm close (without the parameter) set comm open sets the string to send locally when the port is opened. set comm remote sets the number of bytes to receive before forwarding. COMM PARAMETERS – receive data forwarding set comm idle sets the idle disconnect timer in seconds, causes disconnect if no transmit or receive data is seen. set comm match sets the decimal value of the matching character to search for to initiate forwarding. 0 disables. set comm size sets the number of bytes to receive before forwarding 0-1 forwards immediately. maximum value = 255 bytes. set comm time sets the number of 10 millisecond intervals after a byte is received to begin forwarding data. 0 disables. IP PARAMETERS set ip address sets the IP address. Numbers are SPACE delimited. Example : “set ip a 10 10 10 2” set ip dchp <0,1> Enable or disable DHCP client. set ip gateway sets the gateway address. set ip host sets the remote host address. set ip localport sets the local port number. set ip netmask sets the netmask. set ip protocol <0,1,2> sets the protocol. 0=UDP, 1=TCP client, 2= TCP server. www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 - 13 - 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. sets the IO port direction mask. Bit-mapped value. set sys printlvl sets numerous print functions. Bit-mapped value. set sys output sets output PIO pins to HIGH or LOW. Bit-mapped value. Optional mask only sets a subset of pins. set sys sleep sets the sleep timer. 0 disables. set sys trigger sets the sensor input to wake on (1-4). set sys wake 0 disables. sets the auto wake timer. 0 disables. TIME SERVER PARAMETERS set time address sets the time server address. This is also the server address for UDP packet mode. set time port sets the time server port number. set time enable <0,1,2> Enable or disable time server. 1= get time on powerup. 2=get time continuously every 60 seconds. UART PARAMETERS set uart parity sets the UART parity. Example : “set u p e” sets even parity set uart baud {1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600 }. Example : “set u b 9600” sets the baudrate to 9600 baud. set uart raw sets a RAW uart value. Used to set non-standard rates. Example : “set u r 760” sets the baudrate to 7200 baud. www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 - 14 - 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. If 0 is set, then a probe scan is performed, using the ssid, for all the channels set in the channel mask. set wlan key sets the WEP key. key must be EXACTLY 13 bytes (26 ASCII chars). Data is expected in HEX format, “0x” should NOT be used here. Example : “set w k 112233445566778899AABBCCDD” Hex digits > 9 can be either upper or lower case. set wlan mask sets the wlan channel mask, bit-mapped value. Bit 0 = ch 1. set wlan num sets the default WEP key to use. 1-4 is the valid range. Example : “set w n 2” sets the default key to 2. set wlan phrase sets the passphrase for WPA security modes. 1-64 chars. The passphrase can be alpha and numeric, and is used along with the ssid to generate a unique 32 byte Pre-shared key (PSK), which is then hashed into a 256 bit number. However, if exactly 64 chars are entered, it is assumed that this entry is already an ASCII HEX representation of the 32 byte PSK and no such processing is done. Example : “set w p password” sets the phrase. set wlan ssid sets the wlan ssid to associate with. 1-32 chars. set wlan rate sets the preferred wlan data rate. Default = 1. Valid settings are: 1 = 1MBit, 2 = 2Mbit, 4=5Mbit, 8 = 11Mbit. Note that the effective range will be reduced as the datarate is increased. set wlan window sets the TCP max. buffer windo size, useful when doing FTP transfers. Default is 1460 bytes. www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 - 15 - 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. get wlan display the ssid, chan, and other wlan settings. get uart display the UART settings. In addition to the above, there are a few other useful commands available. ver 3.3. return the software release version STATUS COMMANDS These commands begin with “show”, and they return the current values of variables in the system. In some cases, for example IP addresses, the current values are received from the network, and may not match the stored values. show net Displays current network status, association, authentication, etc. show rssi Displays current last received signal strength. show stats Displays current statistics, packet rx/tx counters, etc. show time Displays number of seconds since last powerup or reboot www.rovingnetworks.com support@rovingnetworks.com Phone 408-395-6539 - 16 - 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. open Connect The device will attempt to connect to the remote stored address and port number. Ping Ping remote host. Default sends 1 packet. Optional sends pings at 10 pings per second. If = 0xFFFF, pings continuously as fast as possible to test link. Use “Ping 0” to terminate a ping command. A few handy ping g ping h ping t ping f reboot “shortcuts”: pings the gateway pings the host pings the timeserver pings the ftp server Forces a complete reboot of the device (similar to a power cycle) forcing a WATCHDOG timeout. This action takes about 5 seconds. scan
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.4 Linearized : No XMP Toolkit : 3.1-701 Producer : Acrobat Distiller 7.0 (Windows) Creator Tool : PScript5.dll Version 5.2 Modify Date : 2008:07:22 17:05:16+08:00 Create Date : 2008:07:22 17:05:16+08:00 Format : application/pdf Title : Microsoft Word - WiFly-ver1 with FCC warning.doc Creator : Martin Shay Document ID : uuid:c2474e2e-f7b7-41ed-9464-09f8363ded62 Instance ID : uuid:187fe831-0854-4c49-b878-0a11736a8ddc Page Count : 24 Author : Martin ShayEXIF Metadata provided by EXIF.tools