WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Overview 1.0. The Battery powered WiFly Serial Adapter supports RS-232 interfaces. When connected to a remote host, the WiFly serial adapter transfers data read or written to the serial interface to a remote application such as an iPhone app, data logger or PC control console.
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Batteries and Charging 1.2. • Before using charger, be sure to have batteries installed. Do not attempt to operate the unit purely on charger, without batteries, permanent damage to the device will result. • Only use the charger with NiMH batteries, do not use the charger with Alkaline batteries. Attempting to charge Alkaline batteries will cause battery acid to leak and destroy the device (and surrounding environment) •...
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 The blue LED also indicates battery status and will blink slowly when the batteries are low except when charging. When charging the blue LED remains off. If the device is on while the batteries are charging the blue LED will come solid when the batteries are fully charged When using switch1 to enable adhoc mode, after the device powers on, all LEDs will blink in succession from green to blue.
Page 6
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Switch 2 – Sensor pin 2: Currently not used Switch 3 – Sensor pin 3: Currently not used Switch 4 – Sensor pin 7: Currently not used 809 University Avenue • Los Gatos, CA 95032 •...
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 WiFi Connections 2.0. The WiFi serial adapter is used to create a WiFi connection to a variety of application, some examples are: • Remote environmental sensors • Linking mobile devices like GPS and light sensors •...
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 set wlan join 4 set wlan ssid my_adhoc_network set wlan chan 1 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.
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 for WPA use the command set wlan phrase <string>. For WEP set the key using the set wlan key <num> command. To configure the WiFly serial adapter to remember network, use the command set wlan ssid my_network. Next save the SSID and Pass Phrase/Key to the configuration file using the save command.
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 save // Save configuration> Note: If autoconn=1, the WiFly will only make one attempt to auto connect. Step 3: Set the wake up and sleep conditions. By default the serial adapter will wake whenever there is data written to the serial interface.
Page 11
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 set ip dhcp 0 // Turn off DHCP Step 3: Set the wake up and sleep conditions. In this mode the sleep and wake timers are used to conserver battery. Since we don’t know when the remote host will connect, the module should to occasionally wake up and listen for the remote host.
Telnet connection. Serial configuration is the simplest in that you do not have to set adhoc mode and associate with the network. NOTE: We suggest using TeraTerm. It has both a terminal emulator and Telnet capability. This is available for download from the Roving Networks website. http://www.rovingnetworks.com/support/teraterm.zip Local configuration over the serial port 3.1.
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 • Enable adhoc mode by turning on switch 1, power on the WiFly Serial adapter. • Associate to the Adhoc network from your computer. Use ping to verify the WiFly serial adapter is visible on the network. •...
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Command Summary 4.0. All configuration information is stored in flash memory. The “set” commands modify only the RAM copy of the configuration. Using the “save” command stores the configuration into flash memory. The WiFly only reads the configuration from flash when powering up or after a reboot.
Page 15
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Mode Protocol DHCP OFF, use stored static IP address DHCP ON, get IP address and gateway from AP Auto-IP, generally used with Adhoc networks DHCP Cache mode, Uses previous IP address if lease is not expired (lease survives reboot) Reserved for future use set ip gateway <addr>...
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. NOTE: the RS-232 interface on the RN-370 does not work reliably above 230400 set uart instant <rate>...
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 WLAN Parameters 4.5. set wlan channel <value> sets the wlan channel, 1-13 is the valid range for a fixed channel. If 0 is set, then scan is performed, using the ssid, for all the channels set in the channel mask.
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Example : “set w p password” sets the phrase. set wlan ssid <string> sets the wlan ssid to associate with. 1-32 chars. NOTE: If the passphrase or ssid contain the SPACE ( ‘ ‘) characters, these can be entered using substitution via the “$”...
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Action Commands 4.7. 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 250ms window, command mode will not be entered and these bytes will be passed on to other side.
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Serial Connector Specification 5.0. DB9 connector Pin Out RN-370M RN-370F RN-374M Male DB9 Female DB9 Male DB9 RXD- DTR (=PIO7) DON’T USE TXD+ DSR (=PIO8) 5V DC (input) 5 VDC (input) RXD+ TXD- 5V DC Only 5V DC Only NOTE: The RS422 interface uses the MAX490 transceiver.
Page 21
WiFly Serial Adapter www.rovingnetworks.com wifly-serial-um 6/30/2010 Male DB9 (Default Config) Male DB9 - Null Modem Jumper 1<>2, 3<>4 Jumper 2<>4, 1<>3 Female DB9 (Default Config) Female DB9 - Null Modem Jumper 2<>4, 1<>3 Jumper 1<>2, 3<>4 Drive DSR on pin 6 of the male DB9 Jumpper 5<>6 Drive DTR on pin 4 of the male DB9 Jumpper 7<>8...
Need help?
Do you have a question about the WiFly RN-370 and is the answer not in the manual?
Questions and answers