background image

     

 

 

WiFly Serial Adapter 

 

www.rovingnetworks.com

 

 

 

 

 

            wifly-serial-um  6/30/2010

 

809 University Avenue 

 Los Gatos, CA 95032  

• 

Tel (408) 395-6539 

  

[email protected]

 

~ 1 ~ 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

W

I

F

LY 

S

ERIAL ADAPTER

 

RN-370

 

&

 

RN-374 

 

 

Battery Powered 802.11 b/g Serial Adapter 

 

Install Guide and User Manual 

Version 1.00 

Sept 19

th

 2009 

 

 

Copyright © 2010 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 document. 

Summary of Contents for WiFly RN-370

Page 1: ...ial Adapter Install Guide and User Manual Version 1 00 Sept 19th 2009 Copyright 2010 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 cau...

Page 2: ... 2 2 Creating a network setu 8 2 3 Connection Modes 9 2 4 Waiting for the remote host to connect to the serial adapter listen mode 10 3 0 Device Configuration 12 3 1 Local configuration over the serial port 12 3 2 Remote connection over the air via a Telnet 12 3 3 Getting into command mode 13 4 0 Command Summary 14 4 1 COMM Parameters 14 4 2 IP Parameters 14 4 3 System Parameters 16 4 4 UART Param...

Page 3: ...kets applications can control and monitor hundreds of Wi Fi Serial adapters remotely distributed across a building LAN or campus WAN Other usage modes can be setup When configured in auto connect mode the WiFly Serial Adapter will connect out to a pre stored IP address whenever data is written to the serial port The WiFly Serial Adapter can also be set to automatically go to sleep once idle and wa...

Page 4: ...teries fully from low battery External power can be applied from either the 5 VDC plug or pin 9 on the DB9 connector The power plug is center pin positive outer cylinder GND Input MUST be 5 VDC for proper battery charging Higher voltages can permanently damage the charger and battery In configuration mode the show bat command will return the current battery voltage Note that with rechargeable NiMh...

Page 5: ...change them Hold the devices with the DB9 connector facing to the right the switches are numbered one to four from bottom to top The off position is towards the DB9 connector Switch 1 Adhoc and restoring factory defaults With this switch ON the device powers up in adhoc mode The SSID of the adhoc network will be Wifly GSX NN where NN is the last two digits of the devices mac address To restore fac...

Page 6: ...ks com wifly serial um 6 30 2010 809 University Avenue Los Gatos CA 95032 Tel 408 395 6539 info RovingNetworks com 6 Switch 2 Sensor pin 2 Currently not used Switch 3 Sensor pin 3 Currently not used Switch 4 Sensor pin 7 Currently not used ...

Page 7: ... Network setup is useful when the WiFly serial adapter is making connections to a server and uploading data 2 1 Creating a Point to Point setup The WiFly Serial adapter can be configured for adhoc network via hardware or software commands In Adhoc mode the device looks like access point so that other WiFi devices to join WiFly adhoc network and open connections to the WiFly serial adapter Note cur...

Page 8: ... name of the WiFly Serial Adapter adhoc network in the list of available networks and select it to associate Note Once associated with the adhoc network since there is likely no active DHCP server Auto IP is used This 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 TCP IP Properties menu Once assoc...

Page 9: ...ost connection This section will go through the configuration for each of these setups The set ups are shown using infrastructure network i e with an access point however the same can be done with adhoc networking Initiating a connection from the WiFly serial adapter Step 1 Set up the wlan properties so the device will connect to the network automatically upon power up In this example we want to c...

Page 10: ...cation that you can download off the web It is available at http www linklogger com portpeeker htm 2 4 Waiting for the remote host to connect to the serial adapter listen mode In this example we are using a static IP so that the remote host knows where the WiFly Serial adapter is on the network Alternatively you can write your application software to listen for the broadcast UDP packet automatical...

Page 11: ...he remote host The trade of with these timers is the longer you sleep the better battery performance but the longer the latency the remote host sees when connecting WARNING do not set the sleep timer below 5 seconds or it will be impossible to get into command mode to reprogram this mode without it going back to sleep set sys wake 20 Wake after 20 seconds set sys sleep 10 Go to sleep after 10 seco...

Page 12: ...port Connect the WiFly Serial Adapter to the serial port your computer You may need a null modem cable DB9 pins 2 and 3 swapped if you have a RN 370M or a straight cable if you have a RN 370F If your computer does not have a serial port you can use a USB serial cable such as the RN USB SERIAL to connect the WiFly Serial Adapter to your computer The RN 374 will require a RS422 to RS232 converter or...

Page 13: ... 1 1 Also select the Telnet radio button and set the port to 2000 Hit OK The module will reply with the string HELLO indicating that the connection has been established 3 3 Getting into command mode Type 3 dollar signs into the terminal emulator or telnet window you should see CMD returned to you If you see CMD you know that your connection and terminal settings are correct Entering CR command ret...

Page 14: ...local UART when the TCP port is opened If no string is desired use 0 as the string parameter Max string length is 32 characters Default is OPEN set comm remote string sets the string that is sent to the remote TCP client when the TCP port is opened If no string is desired use 0 as the string parameter Max string length is 32 characters Default is HELLO 4 2 IP Parameters set ip address addr sets th...

Page 15: ...ress This command is used for making connections from the WiFly module to a TCP IP server at the IP address addr set ip localport num sets the local port number used to listen 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 Value is a bit mapped setting To conn...

Page 16: ...s sleep secs sets the sleep timer 0 disables set sys wake secs sets the auto wake timer 0 disables 4 4 UART Parameters 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 NOTE the RS 232 interface on the RN 370 does not work reliably above 230400 set uart instant rate This imm...

Page 17: ...imited by setting the channel mask 3 Reserved Not used 4 Create an Adhoc network using stored SSID IP address and netmask Channel MUST be set DHCP should be 0 static IP or set to Auto IP with this policy unless another Adhoc device can act as DHCP server This policy is often used instead of the hardware jumper to creat a custom Adhoc network set wlan mask value sets the wlan channel mask used for ...

Page 18: ...llow brick road 4 6 Display commands get everything displays all configuration settings useful for debug get com display comm settings get ip display IP address and port number settings get optional display the optional settings like device ID get sys display system settings sleep wake timers etc get time display the time server UDP address and port number get wlan display the ssid chan and other ...

Page 19: ...nd and the module rebooted for them to take effect join ssid joins the network ssid If network is security enabled you must set the pass phrase with the set wlan phrase command prior to issuing the join command open addr port opens a TCP connection to the given IP port and address If no arguments are provided the device will attempt to connect to the stored remote host IP address and remote port n...

Page 20: ...ltage range of 4 75 to 5 25 VDC RXD and TXD each have a 4 7K pull up to 5VDC RXD and TXD each have a 4 7K pull down to GND NOTE The RS232 interface uses the SIPEX SP3232ECA chip with capacitor switch to generate the and signals and thus is not driving the full RS232 voltages Devices stealing power from the RS232 pins may not have enough voltage 5 1 Null modem and Flow control Jumpers The WiFly Ser...

Page 21: ...m 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 Drive DCD on pin 1 of the male DB9 Jumpper 9 10 10 8 6 4 2 9 7 5 3 1 10 8 6 4 2 9 7 5 3 1 10 8 6 4 2 9 7 5 3 1 10 8 6 4 2 9 7 5 3 1 10 8 6 4 2 9 7 5 3 1 10 8 6 4 2 9 7 5 3 1 10 8 6 4 2 9 7 5 3 1 ...

Reviews: