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.
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.
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.
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.
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 •...
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>...
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.
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>...
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.
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...
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 .
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.
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.
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.
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.
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...
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.
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 •...
Need help?
Do you have a question about the WiFly RN-131GSX and is the answer not in the manual?
Questions and answers