background image

         

RN-131G

 

   

 

rn-131-um.pdf  5/14/2009

 

 

 

www.rovingnetworks.com 

[email protected] 

Phone 408-395-6539    

 

- 8 -

 

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>

 

sets the name of the backup DNS server 

 

set dns domain <string>

 

sets the name of the DNS domain 

 

 
 

5.3

 

FTP Parameters  

 

 

set ftp filename  <file>

   

sets the name of the file transferred when issuing the ftp get 
command.  If the file is not found on server the connection will 
time out.

 

set  ftp addr  <addr>

   

sets the ftp server IP address. 

 

set ftp user <name>

   

sets the ftp user name for accessing the FTP server.  

 

set ftp pass <pass>

   

sets the ftp password for accessing the FTP server.  

 

 

5.4

 

IP Parameters 

 

set ip address  <addr>

 

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:  

“set ip a 10.20.20.1”

 

 

 

set ip dchp <0,1>

 

enable or disable DHCP client.  If DHCP is turned on, the IP, 
gateway and net mask are assigned and overwritten during 
association with the access point. 

 

set ip gateway <addr>

 

sets the gateway IP address, If DHCP is turned on, the gateway IP 
address is assign and overwritten during association with the 
access point. 

 

set ip host  <addr>

 

sets the remote host IP address.  This command is used for 
making connections from the WiFly module to a TCP/IP server at 
the IP address <addr>.  

 

set ip backup  <addr>

 

sets a secondary host IP address. 

 

set ip localport  <num>

 

sets the local port number. 

 

Summary of Contents for RN-131G

Page 1: ...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 ...

Page 2: ...SYSTEM Parameters 9 5 6 TIME Server Parameters 10 5 7 UART Parameters 10 5 8 WLAN Parameters 10 6 GET Commands 11 7 STATUS Commands 11 8 ACTION Commands 12 8 1 FILE IO Commands 13 8 2 System timers and other features 13 8 3 Wake on Sensor INPUTs 14 8 4 Wake on UART 14 8 5 Uart Receiver RTS CTS Hardware Flow Control 15 8 6 Setting PIO directions Disabling LED drivers 15 8 7 Alternate IO functions 1...

Page 3: ...ory and 128 KB RAM UART and SPI future data control interfaces 10 general purpose digital I O 8 analog inputs Real time clock for wakeup and time stamping Accepts 3 3V regulated or 2 3V battery Supports Adhoc connections On board ECOS OS TCP IP stacks Wi Fi Alliance certified for WPA2 PSK FCC CE ICS certified and RoHS compliant Features Host Data Rate Up to 2 7 Mbps for UART Memory 128 KB RAM 2MB ...

Page 4: ...monitor 2 3 UART Connect a common ground when using the external TX RX inputs For a 3 wire DB 9 interface tx rx gnd only Factory default is hardware flow control disabled CTS and RTS are not required When using a 5 0Vdc Input PIO s and UART pins require a 10K ohm series resistor PIO s are 0 3 3Vdc not 5 volt tolerant Warning Do NOT exceed the voltage ratings on the 3 3V pins damage to the module w...

Page 5: ...bled 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 settings are correct Most valid commands will return an AOK response and invalid ones will return an ERR description To exit command mode type exit cr NOTE You can...

Page 6: ...trieve the permanently stored information for display to user STATUS COMMANDS See what is going on with the interface IP status etc ACTION COMMANDS Perform action such as scan connect disconnect etc FILE IO COMMANDS Upgrade load and save configuration delete files etc NOTE You must save the configuration or the module will load the previous settings upon reboot or power up When the system boots al...

Page 7: ...mmand with no string parameter Max string length is 32 characters 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 the command with no string parameter Max string length is 32 characters set comm idle secs sets the Idle Timer Value This is the number of seconds with no transmit or receive data before the connection...

Page 8: ...e ftp password for accessing the FTP server 5 4 IP Parameters set ip address addr 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 set ip a 10 20 20 1 set ip dchp 0 1 enable or disable DHCP cli...

Page 9: ...ect This command can be used to have the module periodically connect to the host 0 is the default and disables auto connect set sys autosleep num 10ms UDP mode sets the auto sleep timer 0 disables set sys iofunc value sets the IO port alternate functions Bit mapped value For more details see section 8 7 set sys mask mask sets the IO port direction mask Bit mapped value For more information see sec...

Page 10: ...aud rate to 7200 baud set uart flow 0 1 sets the flow control mode 0 off 1 hardware RTS CTS set uart tx 0 1 Disables or enables the TX pin PIO0 of the UART Disable will set PIO0 to an INPUT with weak pulldown 5 8 WLAN Parameters set wlan antenna 0 1 determines which antenna is active use 0 for chip antenna 1 for UF L connector set wlan channel value sets the wlan channel 1 13 is the valid range fo...

Page 11: ...ote that the effective range will be reduced as the data rate is increased set wlan window value sets the IP max buffer size Default is 1460 bytes 6 GET Commands These commands begin with get They display the current values get com display comm settings get dns display DNS settings get ftp display FTP settings get ip display IP address and port number settings get mac display the device MAC addres...

Page 12: ... before these chars or after these chars in a 1 second window command mode will not be entered and these bytes will be passed on to other side close disconnect a TCP connection exit exit command mode Exit command mode EXIT will be displayed 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...

Page 13: ...t the RESET must be capitalized After this command the new settings must be save to the config file using the save command and the module rebooted for them to take effect ftp get name Retrieves a file from the remote FTP server If name not specified the stored ftp filename is used ftp update name Deletes the backup image retrieves new image and updates the boot image 8 2 System timers and other fe...

Page 14: ... series with 10K to ground as a divider network from the UART RX or CTS pin should be used WARNING Under no conditions should the voltage on any SENS0 7 input exceed 1 2VDC Permanent damage to the module will result The SENS0 3 inputs have a small current source that is activated in sleep mode This source is approximately 100nA and will cause the input to float up to about 1 2VDC IF SENSE1 for exa...

Page 15: ...livered on the remote side before the next packet is sent However given the uncertainty of packet delays in a TCP IP network and the affects of loss and retries inherent in wireless networks flow control is usually required to guarantee no data is lost GPIO 12 and 13 implement UART hardware flow control if enabled By default flow control is disabled To enable hardware flow contol use set uart flow...

Page 16: ...mapped value Bit Function 4 PIO4 Output HIGH once associated authenticated and have IP address 5 PIO5 Input Set HIGH to trigger TCP connection LOW to disconnect 6 PIO6 Output HIGH when connected over TCP LOW when disconnected 8 8 Setting Debug Print levels There are a number of print functions that can be enabled to assist in debugging the operation and status of the module The following command i...

Page 17: ...dhoc mode open up a telnet window on IP address 169 254 1 1 port 2000 If configuring the module using the UART mode either using the RS232 or development board open a terminal emulator on the COM port associated with that deveice The default baud rate is 9600 8 bits no parity Associate with a network access point From within the terminal window put the WiFly GSX module into command mode by typing ...

Page 18: ... IP socket and connect to the IP address of the module Telnet is a simple way to test this connection From in Telnet type open addr port In the example above the telnet command you look like open 10 20 20 62 2000 Once open you can type characters into the UART window and see them on the Telnet window or visa versa To make a connection from the module you will need IP address and port number of you...

Page 19: ...ng FTP password Pass123 FTP filename wifly GSX img FTP directory public this parameter can not be modified To use FTP to upgrade the firmware enter the following command ftp upload string string is an optional filename use to bypass the stored FTP filename The ftp upload command will retrieve the file and switch the boot image to the new file The previous firmware will become the backup image Here...

Page 20: ...te Once associatd with the WiFly GSX 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 To check the status of the adhoc network ping the WiFly module at IP address 169 254 1 1 or open a telnet window using port 2000 From telnet you can send data to the WiFly or enter command mode and configure the modu...

Page 21: ...0 host 0 0 0 0 remoteport 2000 ftp 208 109 78 34 roving default update server port fixed at 21 IP PARAMETERS protocol TCP Server address 0 0 0 0 localport 2000 netmask 255 255 255 0 gateway 0 0 0 0 host 0 0 0 0 remoteport 2000 ftp 208 109 78 34 roving default update server port fixed at 21 dhcp 1 enabled SYSTEM PARAMETERS sleeptimer 0 waketimer 0 trigger 1 SENS0 pin wakes up the device auto connec...

Page 22: ...on 2 06 Web server interface is not available Configuration over telnet and the UART UART flow control is not functional The module may drop data at high data rates Sensor pins for reading analog signals are not supported Wake on UART RXD or CTS is not working on current revision REV2 of the SuRFBoard The fast autosleep timer for UDP mode is not implemented Fixes since fimware version 2 05 Configu...

Reviews: