1. Package Contents: WiFi RS-232 adapter x 1 Battery power line with connector x 1 User manual x 1 USB Cable x 1 2 dbi Dipole Antenna x 1 WiFi RS-232 Adapter White box: Dimension: 10 x 5.5 x 5 (cm) Weight: 122 g 2. Product profile: DB9 Connector Red LED: IP Address Blue LED: TX/RX 5V Out (Pin 9) Reset / WPS DCE/DTE Mini USB Power S/W External Battery Antenna 3. Power input: 3.1 Mini USB: The USB cable is included in the package 3.2 DB9 Pin 9: 5VDC input, please select power S/W to Power in side. 3.3 External battery Standard A, AA or AAA battery: 3 units for each model. 4. Power output: Li-Polymer Battery: 3~3.7 VDC. The capacity depends on the applications. General working power consumption: 100 mah (for reference) The Pin 9 of DB9 will output 5VDC with 1 A Max. to external devices. Please slide the DIP switch to 5V Out direction on the top hole before use the function. 1
5. Default setting of the COM port Baud rate: 9600 bps Data bit: 8 Parity: none Stop bit: 1 Flow control: none Restore the factory settings by the Reset button for 5 times. (Pressed with a clip or pin into the hole) 6. DCE/DTE Slide Switch DCE: data communication Equipment, EX: Modem DTE: data terminal equipment Use the slide switch to swap the TX and RX direction. By default, the DCE side which towards the DB9 connector side. 7. LED Status: Condition Red LED Blue LED On solid Connected over TCP Fast blink No IP address RX/TX data transfer Slow blink IP address OK 8. RS232 Interface 8.1 Pin-out: 8.2 Signals: Pin Signal DTE DCE Description 1 CD Input Output Not connected 2 TxD Output Input Transmitted data 3 RxD Input Output Received data 4 DSR Input Output Contact manufacturer to set this 5 GND N/A N/A Signal ground 6 DTR Output Input Contact manufacturer to set this 7 CTS Input Output Clear to send 8 RTS Output Input Request to send (Default) 9 Vout Output Output Power output to Pin 9 of DB9 connector (5VDC, 1.5A Max.), please slide the DIP switch toward the 5V Out direction (Section 4) 2
9. Command set 9.1 Data mode & Command mode Launch commad mode Run Tera Term Open the assigned COM port Serial port settings: 9600 baud, 8 bits, No Parity, 1 stop bit Type $$$ Module will respond with <CMD> NOTE: The escape sequence is $$$ ONLY. There is no carriage return or line feed after the third dollar sign. Once in command mode, all commands terminate with a carriage return. 9.2 Configuration setting Changes are persistent and are reloaded after power cycling Changes are kept using the SAVE command Many settings require a reboot to take effect. 9.3 Command rules Case sensitive Spaces cannot be used, a $ is a substitute. e.g. MY NETWORK = MY$NETWORK 9.4 Shorthand's can be used set uart baudrate 115200 (valid) set uart b 115200 (valid) set u b 115200 (valid) s uart baudrate 115200 (NOT valid) 9.5 Command type (The details are listed on the document of command set) Set: Immediate effect, permanent if saved to config file Set Command AdHoc Broadcast COMM DNS FTP IP Option Sys Time UART WLAN Function controls the adhoc parameters controls the broadcast hello/heartbeat UDP message communication and data transfer, matching characters DNS host and domain FTP host address and login information IP settings optional and not frequently used parameters system settings such as sleep and wake timers Real time clock settings serial port settings such as baudrate and parity wireless interface, such as SSID, chan, and security options Get: Retrieve and display the permanently stored information Status: Current status of interface, IP address, etc. 3
Action: Perform actions such as scan, connect, disconnect File: Upgrade, load and save configuration, delete files, etc. 9.6 Networking 9.6.1 Search for networks Enter command mode ($$$) scan 9.6.2 Join a network join # 1 (remember the spaces) leave (disconnects the module from the currently associated Access Point) join <SSID string> leave Remark: If the Network is secure you must set the pass phrase first with the set wlan pass <string> command before trying to join the network 9.6.3 Auto join a network with persistent configurations set wlan ssid <string> set wlan pass <string> save 4
reboot 9.7 COM Port Setting set uart baud <rate> set the UART baud rate. Valid settings are {2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600}. Example: set u b 9600 sets the baud rate to 9600 baud.. set uart flow <0,1> sets the flow control mode. Default=0=Disabled, 1= hardware RTS/CTS. NOTE: Once flow control is enabled, it is important to properly drive the CTS pin (active LOW enabled) If CTS is HIGH, data will NOT be sent out the UART, and further configuration in command mode will be problematic as no response will be received. 10. WPS: Wi-Fi Protected Setup, WPS is a standard for easy and secure establishment of a wireless network via WiFi. The most common mode of WPS is the Push Button Mode (PBC) in which the user simply pushes a button on both the AP and the wireless client, the RS-232 adapter. 10.1 Before you use the function, please check the version will be version 2.28 and later by ls command. 10.2 Firmware upgrade: The following instructions detail the process of upgrading the module to version 2.28 and installing the WPS app. Send the command ftp u wifly7-227.img Send the command reboot Send the command factory R to reset to factory defaults Associate the module to the network Send the command ftp r wps7.img 10.3 Launching WPS App: Once the module is updated to version 2.28 (or later) and the WPS App is installed, there are two modes of invoking the WPS function: From the console, use the wps command Push the WPS button on the top of the RS-232 adapter by the clip. 10.4 Scan format updated to show AP that support WPS: In the above diagram, the APs that support WPS are listed with WPSPB in the security suites. When the WPS button is pushed on an AP, it will show up as A shown below. 5
11. Reset to default: Restoring Default configuration settings: 11.1 From command interface use the factory RESET command to restore the defaults. This command automatically loads default settings, and executes a save command. You then need to issue the reboot command so that the module reboots with the default configurations. 11.2 From hardware, press the Reset button and toggle 5 times by clip or pin on the top of the adapter. Reset is sampled at about 1 Hz, please make sure that transitions (H to L or L to H) are at least 1 second long. 12. Utility Software TeraTerm: terminal emulator, 3 rd party software (http://ttssh2.sourceforge.jp) PortPeeker: packet sniffer (http://www.rovingnetworks.com/resources/show) Virtual COM port emulator: 3 rd party software. Not include in the package. (http://www.eterlogic.com/products.vspe.html) 13. Default value: version 2.28 firmware 13.1 ADHOC PARAMETERS Beacon 100 (milliseconds) Probe 5 (seconds to look for beacons before declaring adhoc is lost) Reboot 0 (Unused parameter for future development. Please leave it to default values) 13.2 BROADCAST PARAMETERS IP address 255.255.255.255 Port 55555 Interval 0x7 (corresponds to 8 seconds) 13.3 COMM PARAMETERS Close string *OPEN* Open string *CLOS* Remote string *HELLO* Flush size 64 Match character 0 Flush timer 10 (milliseconds ) Idle timer 0 Cmd char $ 13.4 DNS PARAMETERS IP address 0.0.0.0 6
Name server1 Backup backup2 13.5 FTP PARAMETERS Server address 208.109.78.34 (roving default update server) (port at 21) File wifly-gsx.img User roving Password Pass123 Dir public Timeout 80 FTP_mode 0x0 13.6 IP PARAMETERS DHCP ON (1=enabled) IP address 0.0.0.0 Net mask 255.255.255.0 Local port 2000 Gateway 0.0.0.0 Host 0.0.0.0 Remote port 2000 Protocol TCP MTU 1524 Flags 0x7 TCP mode 0x0 Backup 0.0.0.0 13.7 OPTIONAL PARAMETERS Device ID WiFly-GSX Join timer/wpa timer 1000 Replacement char 0x24 (corresponds to $) Format 0x00 Password (no password enforced) Signal 0 Average 5 13.8 SYSTEM PARAMETERS Sleep timer 0 Wake timer 0 Trigger 0x1 (SENS0 pin wakes up the device) Auto connect 0 IOfunc 0x0 (no alternate functions ) IOmask 0x20F0 (for RN-131) / 0x21F0 (for RN-171) IOvalue 0x0 Print level 0x1 (prints enabled) Debug Register 0x0 (Unused parameter for future development. Please leave it to default values) 13.9 TIME SERVER PARAMETERS 7
Enable 0 (disabled) Server address 129.6.15.28 (fixed to port 123 - SNTP protocol) Zone 7 (pacific USA time) 13.10 UART PARAMETERS Baudrate 9600 Flow 0 (disabled) Mode 0 Cmd_GPIO 0 13.11 WLAN PARAMETERS SSID roving1 Channel 0 (automatic scan) External antenna 0 (Off: use on-board chip antenna. Applies to RN-131 ONLY) Join mode 1 (automatically scan and join based on ssid ) Authentication mode OPEN Mask 0x1FFF ( all channels ) Rate 12 (24Mbit) Linkmon 0 Passphrase rubygirl TX Power 0 (which implies 12 dbm) Applicable to RN-171 module only 14. Specification: 14.1 The WiFi RS-232 adapter is made by the model RN-171, please check the site for more informatio. http://www.rovingnetworks.com/products/rn_171 14.2 The WA-232 model support RS-232 interface only. If you need the WiFi to RS-422/485 adapter, please check the model WA-422R or WA-485R products. 14.3 If you need the digital I/O or analog I/O functions, please contact us for customized design. Remark: 1. Please visit the site to download all the documents and software of the model RN-171. http://www.rovingnetworks.com/resources/show 2. All the copyright of the RN-171 resources are belonging to Roving Networks Inc. 3. All contents are subject to change without prior notice. 8