Roving Networks WiFly RN-131GSX User Manual And Command Reference

Roving Networks WiFly RN-131GSX User Manual And Command Reference

802.11 b/g wireless lan module

Advertisement

Quick Links

802.11 b/g wireless LAN Module
User Manual and Command Reference
Copyright © 2009 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 or consequent damage that is caused by this
document.
W
F
I
LY
Version 1.1
RN-131G
rn-131-um.pdf 5/14/2009
GSX
All Rights Reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WiFly RN-131GSX and is the answer not in the manual?

Questions and answers

Summary of Contents for Roving Networks WiFly RN-131GSX

  • Page 1 Copyright © 2009 Roving Networks, Inc. All Rights Reserved. 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 or consequent damage that is caused by this...
  • Page 2 RN-131G rn-131-um.pdf 5/14/2009 Contents RN-131G Overview .......................... 3 Hardware Interface..........................4 Power ............................4 Reset ............................4 UART ............................4 LED Indictors ..........................5 Configuration ............................ 5 Entering Command Mode ......................5 WiFly Command Reference ......................6 Command Syntax ........................6 Command Organization ......................
  • Page 3: Rn-131G Overview

    RN-131G rn-131-um.pdf 5/14/2009 RN-131G Overview The RN-131g “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.
  • Page 4: Hardware Interface

    RN-131G rn-131-um.pdf 5/14/2009 Hardware Interface See the RN-131 data sheet on the Roving Networks website for technical specifications and layout information. (Document rn-131-ds.pdf 2.1 Power There are two options for powering the RN-131G module directly. 1. DC SUPPLY: Apply 3.3 VDC power to VBATT (pin 20), AND V3.3IN (pin 21) Tie 3.3VREG-IN (pin 18) to GROUND.
  • Page 5: Configuration

    9600 baudrate, 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.
  • Page 6: Wifly Command Reference

    RN-131G rn-131-um.pdf 5/14/2009 WiFly Command Reference 4.1 Command Syntax 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 is also case sensitive. The first command is fully decoded and must be complete.
  • Page 7: Set Commands

    RN-131G rn-131-um.pdf 5/14/2009 SET Commands These commands begin with “set”. There are 6 major categories. COMM - communication and data transfer, timers, matching characters • - DNS host and domain • - FTP host address and login information • - IP settings •...
  • Page 8: Dns Parameters

    RN-131G rn-131-um.pdf 5/14/2009 5.2 DNS Parameters set dns address <addr> sets the IP address of the DNS sever. This is auto-set when using DHCP, so only used used in STATIC IP mode. set dns name <string> sets the name of the DNS server set dns backup <string>...
  • Page 9: System Parameters

    RN-131G rn-131-um.pdf 5/14/2009 set ip netmask <value> sets the network mask. If DHCP is turned on, the net mask is assign and overwritten during association with the access point. set ip protocol <value> sets the IP protocol. This is a bit mapped setting. To connect to the WiFly GSX module over TCP/IP such as Telnet the device must have the use the TCP Server protocol.
  • Page 10: Time Server Parameters

    RN-131G rn-131-um.pdf 5/14/2009 5.6 TIME Server Parameters set time address <addr> sets the time server address. set time port <num> sets the time server port number. set time enable <value> Enable or disable time server. 1= get time once on powerup. Or, get time continuously every <value>...
  • Page 11: Get Commands

    RN-131G rn-131-um.pdf 5/14/2009 set wlan phrase <string> sets the passphrase for WPA and WPA2 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.
  • Page 12: Action Commands

    RN-131G rn-131-um.pdf 5/14/2009 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 show i Displays IO pin levels status in this HEX format: 8ABC Example: show I returns 8103 indicates pins 0, 1 and 9 high...
  • Page 13: File Io Commands

    RN-131G rn-131-um.pdf 5/14/2009 reboot forces a reboot of the device (similar to power cycle) scan Performs an active probe scan of access points on all 13 channels, and prints out MAC address, receive signal strength, and SSID name. NOTE: Unlike the RN-111B, this command can scan for access point and remain associated .
  • Page 14: Wake On Sensor Inputs

    RN-131G rn-131-um.pdf 5/14/2009 Upon the start of transmission of the first UDP data packet this timer will count down. set sys autosleep <value> UDP mode: sets the auto-sleep timer. 0 disables the timer is decremented every 10 milliseconds. Because the timer is asynchronous, the actual value can vary by 10ms.
  • Page 15: Uart Receiver, Rts/Cts Hardware Flow Control

    RN-131G rn-131-um.pdf 5/14/2009 8.5 Uart Receiver, RTS/CTS Hardware Flow Control The UART receive buffer is approx. 1024 bytes, and at lower baudrates (9600, 19200) the system can process data into the device without need for flow control. If constant streaming of data into RX on the device is required, care should be taken to set the comm parameters to optimize the performance.
  • Page 16: Alternate Io Functions

    RN-131G rn-131-um.pdf 5/14/2009 8.7 Alternate IO functions There are a number of alternate IO functions that can be enabled. These functions override the default IO function given in section 4.4, and described in the LED table of section 2.3. If no bits are set for a particular PIO pin, that pin is available to be used as general purpose input or output, based on the IOMASK setting.
  • Page 17: Joining Networks And Making Connections

    RN-131G rn-131-um.pdf 5/14/2009 Joining Networks and Making Connections Configuring the module to make connections is a two set process. First you need to associate with a network access point and second you need to open a connection. To configure the module over the WiFi link is a chicken and egg problem. The module must be associated to a network to connect to it and program the network settings.
  • Page 18 RN-131G rn-131-um.pdf 5/14/2009 You could also have specified the roving1 access point by using the command join # 1 If the access point is security enabled you will need to set the pass phrase prior to issuing the join command. The RN-131G module will attempt to inquire and determine the security protocol of the access point so you do not have to set the authentication mode.
  • Page 19: Firmware Upgrade Over Ftp

    WiFly contains a built in FTP client for getting files and updating the firmware. The client uses passive mode FTP, which allows operation thru firewalls and the Internet. To upload the latest released firmware from Roving Networks the following setting are required: FTP username = roving FTP password = Pass123 FTP filename = wifly-GSX.img...
  • Page 20: Setting Adhoc Mode And Restoring Configuration Settings

    RN-131G rn-131-um.pdf 5/14/2009 11 Setting Adhoc Mode and Restoring Configuration Settings Adhoc mode PIO(9) is used to put the module into adhoc mode and reset the configuration setting to the original factory defaults. For adhoc mode PIO9 should be set high (3.3V) at power up time. On the RN-134 PIO9 is on the jumper block.
  • Page 21: Default Configuration Settings

    RN-131G rn-131-um.pdf 5/14/2009 12 Default Configuration Settings COMM PARAMETERS Close string *OPEN* Open string *CLOS* Remote string *HELLO* FlushSize MatchByte FlushTimer IdleTimer IP PARAMETERS dhcp (enabled) protocol TCP-Server address 0.0.0.0 localport 2000 netmask 255.255.255.0 gateway 0.0.0.0 host 0.0.0.0 remoteport 2000 208.109.78.34 ( roving default update server ) (port fixed at 21) IP PARAMETERS protocol...
  • Page 22: Know Issues And Errata

    RN-131G rn-131-um.pdf 5/14/2009 UART PARAMETERS Baudrate 9600 parity n (none) flow 0=disabled WLAN PARAMETERS channel ssid roving1 rate 1 (1= 1Mbit) 13 Know issues and Errata As of firmware version 2.06 Web server interface is not available – Configuration over telnet and the UART •...

This manual is also suitable for:

Rn-131g

Table of Contents