RN-134-K Roving Networks Inc, RN-134-K Datasheet

KIT EVAL WIFLY GSX 802.11 RN-134

RN-134-K

Manufacturer Part Number
RN-134-K
Description
KIT EVAL WIFLY GSX 802.11 RN-134
Manufacturer
Roving Networks Inc
Type
Transceiver, 802.11 b/gr
Datasheets

Specifications of RN-134-K

Frequency
2.4GHz
Wireless Frequency
2402 MHz to 2480 MHz
Interface Type
RS-232, UART
Modulation
CKK, DSSS, DBPSK, DQPSK, OFDM
Security
128 WEP, WPA, TKIP
Operating Voltage
3 V to 12 V
Operating Temperature Range
- 40 C to + 85 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
RN-134
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
740-1035
constitute any binding undertakings from Roving networks. Roving Networks is not responsible under any
constitute any binding undertakings from Roving networks. Roving Networks is not responsible under any
constitute any binding undertakings from Roving networks. Roving Networks is not responsible under any
circumstances for direct, indirect, unexpected or consequent damage that is ca
circumstances for direct, indirect, unexpected or consequent damage that is caused by this document.
The contents of this document can be changed by Roving networks without prior notice and do not
www.rovingnetworks.com
809 University Avenue
User Manual and Command Reference
User Manual and Command Reference
User Manual and Command Reference
Copyright © 2010 Roving Networks, Inc. All Rights Reserved.
Copyright © 2010 Roving Networks, Inc. All Rights Reserved.
ocument can be changed by Roving networks without prior notice and do not
ocument can be changed by Roving networks without prior notice and do not
RN-131G,
RN-121,
Los Gatos, CA 95032
Los Gatos, CA 95032
W
W
131G, RN-131C, RN-134,
802.11 b/g
802.11 b/g wireless LAN Modules
121, RN-123 & RN-125
I
July 11
F
Version 2.21
LY
~ 1 ~
th
Tel (408) 395-6539
, 2010
GSX
• info@RovingNetworks.com
info@RovingNetworks.com
WiFlyGSX-um
WiFly GSX
WiFly GSX
used by this document.
um
9/16/2010

Related parts for RN-134-K

RN-134-K Summary of contents

Page 1

... University Avenue • GSX I LY 802.11 b/g wireless LAN Modules 802.11 b/g 131G, RN-131C, RN-134, 121, RN-123 & RN-125 Version 2.21 th July 11 , 2010 Los Gatos, CA 95032 Los Gatos, CA 95032 • Tel (408) 395-6539 ~ 1 ~ WiFly GSX WiFly GSX ...

Page 2

... System Timers and Auto Connect Timers ...................................................................................... 28 Opening a TCP Connection: ........................................................................................................................ 30 10.2. Wake on Sensor Input ..................................................................................................................... 31 10.3. Wake on UART .............................................................................................................................. 31 10.5. Setting GPIO direction, Alternate Functions and Disabling LEDs ................................................ 33 10.6. Setting Debug Print levels .............................................................................................................. 36 10.7. Using the Real Time Clock Function ............................................................................................. 36 10.8. Time Stamping Packets .................................................................................................................. 37 11 ...

Page 3

Controlling Connections using PIO5 and PIO6 .............................................................................. 43 12.5. Using DNS settings ......................................................................................................................... 43 12.6. Utilizing the Backup IP address/connect function .......................................................................... 44 13. Using HTML client feature .................................................................................................................. 45 13.1. Built-in HTML Client Modes ......................................................................................................... 45 13.2. ...

Page 4

... High throughput 4Mbps sustained data rate with TCP/IP and WPA2 • Ultra-low power (4uA sleep, 40mA Rx, 210mA max Tx) • Small, compact surface mount module • On board ceramic chip antenna and U.FL connector for external antenna • 8 Mbit flash memory and 128 KB RAM • UART and SPI (future) data/control interfaces • ...

Page 5

Real time clock for time stamping, auto-sleep and auto-wakeup modes • Configuration over UART or wireless interfaces using simple ASCII commands • Over the air firmware upgrade (FTP), and data file upload. • Secure Wi-Fi authentication WEP-128, WPA-PSK ...

Page 6

... There is a built-in brownout monitor which will shut down the chip when the voltage drops below 2.0 VDC. WARNING: Do NOT exceed the voltage ratings damage to the module will result. #1: The Sensor inputs SENS0-7 are extremely sensitive to over voltage. Under no conditions should these pins be driven above 1 ...

Page 7

... PIO’s are not 5.0 VDC tolerant. If using a 5.0 VDC circuit, input, PIO and UART input pins require a resistor divider. A suggestion is to use a 10K resistor in series with 20k resistor to ground. 2.4. Status Indictors PIO 4, 5 and 6 are active high and can be connected to external LEDs to provide network, connection and data status. Condition ...

Page 8

... To enable adhoc mode via hardware set PIO9 high (3.3V) at power up. On the RN-134 PIO9 is on the J1 jumper block. When the module powers up with PIO9 set high, the WiFly module creates an adhoc ...

Page 9

The IP address assigned by Auto IP must be on the subnet 169.254.x.y otherwise the WiFly GSX module will not be accessible. NOTE: If your machine has both wireless and wired interface hardware you will need to disable the ...

Page 10

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 ...

Page 11

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. In general, the IP, WLAN and UART settings ...

Page 12

UDP message is sent. set broadcast port <port> 5.3. COMM Parameters set comm $ <char> set comm close <string> set comm open <string> set comm remote <string> set ...

Page 13

DNS Parameters set dns address <addr> set dns name <string> set dns backup <string> 5.5. FTP Parameters set ftp filename <file> set ftp addr <addr> set ftp remote <port> set ftp user <name> set ...

Page 14

... University Avenue • sets the IP address of the WiFly GSX module. If DHCP is turned on, the IP address is assigned and overwritten during association with the access point. IP addresses are “.” delimited. Note this is different from the RN- 111b module which is space delimited! Example: “ ...

Page 15

... WiFly module to a TCP/IP server at the IP address <addr>. sets the local port number. sets the network mask. If DHCP is turned on, the net mask is assign and overwritten during association with the access point. sets the IP protocol. Value 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 / bit 2 set ...

Page 16

Optional Parameters set opt jointmr <msecs> set option sensor <mask> set opt format <mask> set opt replace <char> set opt deviceid <string> set opt password <string> 809 University Avenue • Join timer is the time in milliseconds (default=1000) ...

Page 17

... Default=0 disables. timer is used as a quick sleep function. Device will sleep sets the IO port alternate functions. Bit-mapped value. For more details see section 10.5 sets the IO port direction mask. Bit-mapped value. For more information see section 10 ...

Page 18

... Example : “set u b 9600” sets the baud rate to 9600 baud. NOTE: the RS232 interface on the RN-134 does not work above 230400 settings, or switching baudrate “on the fly” remotely while connected over TCP. This setting does not affect configuration. Returns the AOK response, and then this command will exit command mode ...

Page 19

If this setting is enabled (set uart mode 0x10), ...

Page 20

University Avenue • sets the policy for automatically joining/associating with network access points. This policy is used when the module powers up, including wake up ...

Page 21

University Avenue • sets the link monitor timeout threshold. If set more, WiFly will scan ...

Page 22

University Avenue • Value Wireless Data Rate Mbit/sec (default sets the wlan ssid to ...

Page 23

... 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. ...

Page 24

... Displays number of seconds since last powerup or reboot show q <0-7> Display the value of the an analog interface pin from The value returned will be in the format 8xxxxx where xxxxx is voltage in microvolts sampled on the channel you request with the 8 in front as a start marker. ...

Page 25

... Ping 10.20.20.12 10 – pings IP address 10 times ping g pings the gateway, the gateway IP address is loaded if DHCP is turned on, otherwise it should be set with the set ip gateway <addr> command ping h pings the stored host IP address, the host IP address can be set with the set ip host <addr> command pings a known Internet server at www ...

Page 26

... University Avenue • Performs an active probe scan of access points on all 13 channels. Returns MAC address, signal strength, SSID name, security mode. Default scan time is 200ms / channel = about 3 seconds. time is an optional parameter, this is the time in ms per channel. ...

Page 27

... When the module wakes up from sleep, it takes a certain amount of time (in milliseconds) to initialize the internal hardware. During this time, any data that is sent to the WiFly module over the uart will not be processed. You can monitor certain signals that indicate that the module is ready to accept data. These are described below ...

Page 28

... This mode is designed for the HTML client feature. Use the set uart mode 2 Uart mode 2 uart data command to automatically connect out to host on uart data Alternative Set the alternative functions for GPIO 4, 5 and 6 (Refer section 10.5.1). Set GPIO 5 GPIO GPIO 5 HIGH to trigger TCP connection, LOW to disconnect functions 10 ...

Page 29

There are 2 timers that can be used to put the module to sleep, and perform a wake up. If the sleep timer is There are 2 timers that can be used to put the module to sleep, and ...

Page 30

UDP sleep and Connection timers 10.1.1. In UDP Only protocol mode (set ip proto 1), the autoconn timer is used as an auto-sleep timer. Upon the start of transmission of the first UDP data packet this timer will count ...

Page 31

... SENSE pins to the RX data or CTS pin. (Using the appropriate divider resistors mentioned above) The SuRF board (RN-134) has a built in resistor divider connecting SENSE 0 and SENSE 1 to RXD and CTS respectively. This allows wake on RX and CTS using a 3.3V signal. ...

Page 32

... Maximum value = 1460 bytes which is the size of a single Ethernet frame. set comm time <value> sets the flush timer, this is used to make sure that any partial data sitting the RX buffer if no additional data is seen for “ ...

Page 33

... The LEDs on the Surf Board (RN-134) are connected to GPIO 4, 5 and 6. To disable the LEDs, enter set sys mask 0x20d0 NOTE: The Yellow, Red and Green LEDs can be turned off. The Blue LED on the Surf board is the power LED and cannot be turned OFF. ...

Page 34

... State Default Function NOTE: The Blue LED is connected to GPIO7 on the Wi-Fi Serial Adapter (RN-370). The Blue LED is not connected to GPIO7 on the Surf Board (RN-134 not possible to power off the Blue LED on the Surf Board. 10.5.1. Setting the alternate GPIO functions The defaults for GPIO control the LED functionality. This default functionality can be overridden to allow user programmable IO or alternate IO functionality by using the set sys iofunc < ...

Page 35

... In embedded applications it is useful to monitor and control the status of the TCP/IP connection. This can be done by using the alternate function for GPIO-5 and GPIO-6. With the alternate function for these GPIO set, the module will connect to the stored remote host IP address and port when GPIO-5 is driven high and disconnect when driven low. ...

Page 36

... DHCP and IP address status information Once the configuration has been checked; this can then be turned off so that these messages do not interfere with the data. 10.7. Using the Real Time Clock Function The real time clock in the module keeps track of the number of seconds since the module was powered on and the actual time when synchronized with the sNTP time server ...

Page 37

... NOTE: the WiFly module must by successfully associated with a network for the module to contact the sNTP server. Alternatively, the module can be configured to get the time whenever it powers up by setting the time enable to 1. Any value greater than 1 gets time continuously every <value> minutes. ...

Page 38

TCP checksum so it will pass thru the TCP stack correctly. This register counts at 32,768 Hz. If the timeserver function is enabled, the RTC should accurately reflect the real time. This register is also counting while ...

Page 39

UART data will be sent over the Wi-Fi link via the UDP protocol (in this case) and the data coming over the Wi-Fi link (via UDP protocol in this case) will be sent to ...

Page 40

The MAC address of the associated AP, channel, and RSSI value are available in this packet, thus enabling a simple location and tracking based function. By default the WiFly module now sends out a UDP broadcast to 255.255.255.255 ...

Page 41

Joining Networks and Making Connections Configuring the module to make connections is a two set process. First you need to associate with a access point (AP) and second you need to open a connection. To configure the module ...

Page 42

... 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. To set the pass phrase for WPA use the command set wlan phrase < ...

Page 43

In the following example assume the network SSID and security have been set correctly and autojoin is set to 1. This will also work in adhoc mode(autojoin 4), however there will be delay in connecting to the adhoc network ...

Page 44

Once the address is resolved an automatic connection will be made. To manually lookup the IP address of a host, use this command: Lookup <string> string is the hostname. 12.6. Utilizing the Backup IP address/connect function WiFly contains a ...

Page 45

... Built-in HTML Client Modes WiFly can be setup to automatically post data to and get data from a web server without any external HOST CPU. The advanced web features are enabled using the “set option format <mask>” command. This is a bit mapped register ...

Page 46

... HTTP mode=0x10 + TCP mode = 0x2 NOTE1: when HTTP mode is set, the WiFly automatically appends the \n\n to the end of the packet. NOTE2: if the html header contains spaces, the $ is required when entering the string. Space is the command delimiter ...

Page 47

... WiFly will use DNS // standard webserver port // sample server application // automatically connect using data TRIGGER mode // turn on HTTP mode=0x10 + TCP mode = 0x2 //name of your webserver // so WiFly will use DNS // standard webserver port // sample server application //Converts user binafy data in ASCII hex format Los Gatos, CA 95032 • ...

Page 48

... Set ip proto 18 Set com remote GET$/mike.php?ID=1234 //set up the string Set sys auto 10 Set option format 7 809 University Avenue • // turn on HTTP mode=0x10 + TCP mode = 0x2 //name of your webserver // so WiFly will use DNS // standard webserver port // sample server application Channel Channel ...

Page 49

... Save Reboot Result: You will receive a 200 OK returned from the web server as seen in the screenshot below. Example#2: Posting UART data to web server The WiFly module is capable of auto posting serial UART data in ASCII or Binary format. In this example we will configure the WiFly module such that when the serial UART data comes in, the WiFly will connect and automatically send data to the web server in the following format: GET /mike.php?ID=< ...

Page 50

GET$/mike.php?ID= set sys auto 10 set uart mode 2 save reboot With the above settings enabled, the WiFly module will connect out to the web server every time ...

Page 51

... FTP Upload and Upgrade 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 update to the latest released firmware from Roving Networks the following setting are required: ...

Page 52

The previous firmware will become the backup image. Here is an example of what you should see after a successful update: FL# SIZ FLAGS WiFly_GSX-2. config WiFly_GSX-2.21 208 Free, Boot=30, ...

Page 53

... Adhoc mode can be set via hardware or software commands. To enable adhoc mode via hardware: Set PIO9 high (3.3V) at power up. On the RN-134 PIO9 the jumper block. When the module powers up in adhoc mode the WiFly module creates an adhoc network with the following ...

Page 54

... Turn off DHCP and set the IP address and netmask so other devices know where to connect to the adhoc WiFly GSX. Since auto IP fixes the first two bytes of the IP address you want to use the netmask of 255.255.0.0 so that other device connecting to the module can be reached. Alternatively you can set the netmask to a smaller subnet if the other device’ ...

Page 55

Note: Once associated with the adhoc network, Vista auto IP may take a couple minutes to allocate an IP address for your computer. To work around this you can assign a static IP address in the network settings / ...

Page 56

... To read a sensor pin, send the following command: show q <channel> Channel is the analog sensor input from The value for the analog sensor input is measured in microvolts and is returned as 8xxxxx. The 8 in front is a start marker. You can also sample multiple channels by using a bit mask: show q 0x1<mask> ...

Page 57

... The values used for setting the power are described in the table below: ON BOARD TEMPERATURE OPTION (RN-121 TEMP) show q t The return values are the format: T=207\r\n this would be 20.7° C. show enables automatic sampling and output once per second. show turns off automatic sampling and output of temperature ...

Page 58

Default Configuration Settings ADHOC PARAMETERS Beacon 100 (milliseconds) Probe 60 (seconds to look for beacons before declaring adhoc is lost ) BROADCAST PARAMETERS IP address 255.255.255.255 Port 55555 Interval 7 (seconds) COMM PARAMETERS Close string *OPEN* Open string ...

Page 59

... Password “” Sensor 0x00 SYSTEM PARAMETERS Sleep timer 0 Wake timer 0 Trigger 1 Auto connect 0 IOfunc 0 (no alternate functions ) IOmask 0x21F0 Print level 1 TIME SERVER PARAMETERS Enable 0 (disabled) Server address 129.6.15.28 (fixed to port Zone 7 (pacific USA time) UART PARAMETERS Baudrate 9600 ...

Page 60

PIO9 is sampled at about 1 Hz using a CPU to generate the signal, make sure that PIO9 transitions ( are at least 1 second long. User file option As ...

Page 61

Supported Access Points Access points that are set to MIXED mode (WPA1 and WPA2) may cause problems during association because some of these incorrectly report their security mode. We also currently do not support WPA2-Enterprise (radius server authentication, ...

Page 62

... Flow control: RTS may fail to de-assert quickly enough for some high speed CPUs to correctly stop sending data bytes. For high speed transfers at baudrates > 460800 best to limit RX data to the maximum Ethernet frame (1460 bytes) and have a protocol to acknowledge data is received by the remote host. ...

Page 63

... DHCP client now inserts the DEVICEID string into the HOST name when requesting a DHCP lease. This string is displayed by most routers and DHCP servers in their lease tables. • show n n command returns the MAC Address of the Access Point currently associated. • get i a command returns only the IP address of the WiFly. ...

Page 64

... DHCP cache The set ip dhcp 3 command is now used to enable DHCP address caching. Once caching is turned on, the initial DHCP settings are stored in NVRAM. This is most useful in battery systems, when using the sleep mode. Upon waking from sleep, as long as the DHCP lease time is still valid and the WiFly is associated to the same AP, DHCP caching does not survive a power cycle or usage of the hardware reset pin ...

Page 65

NOTE: For consistency, the command prompt response <2.xx> now also contains \r\n appended string when in this mode Version 2.12 9/17/2009 • Fixed problem with some newer 802.11n - association attempts cause module ...

Page 66

... Current Firmware Version 2.09 7/10/2009 • Sleep mode was drawing 70uA instead of the expected 4uA due to an oscillator that was not disabled before going to sleep. Refer to the RN-131G datasheet for the proper low-power hardware configuration. • Fixed closing of TCP port on TCP RESET. Previously the module was not handling remote TCP reset correctly and would disconnect which resulted in a printout of ERR= -5, TCP port was not closed properly ...

Page 67

... Fixed the alternate I/O functions to allow connection based on PIO5. The manual has been updated to include a much better description of this functionality. See section 10 firmware version 2.08 6/08/2009 • Connecting out an IP address does not use the DNS and backup DNS if the connection to the primary IP address fails. Connecting using DNS if the IP address if 0. • ...

Page 68

... Roving Networks products are not authorized for use in safety-critical applications (such as life support) where a failure of the Roving Networks product would reasonably be expected to cause severe personal injury or death, unless officers of the parties have executed an agreement specifically governing such use. 809 University Avenue • ...

Related keywords