background image

         

RN-131G

 

   

 

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

 

 

 

www.rovingnetworks.com 

[email protected] 

Phone 408-395-6539    

 

- 2 -

 

 
 
 

Contents 

1

 

RN-131G Overview .......................................................................................................................... 3

 

2

 

Hardware Interface............................................................................................................................ 4

 

2.1

 

Power ......................................................................................................................................... 4

 

2.2

 

Reset .......................................................................................................................................... 4

 

2.3

 

UART ........................................................................................................................................ 4

 

2.4

 

LED Indictors ............................................................................................................................. 5

 

3

 

Configuration .................................................................................................................................... 5

 

3.1

 

Entering Command Mode ........................................................................................................... 5

 

4

 

WiFly Command Reference .............................................................................................................. 6

 

4.1

 

Command Syntax ....................................................................................................................... 6

 

4.2

 

Command Organization .............................................................................................................. 6

 

5

 

SET Commands ................................................................................................................................ 7

 

5.1

 

COMM Parameters ..................................................................................................................... 7

 

5.2

 

DNS Parameters ......................................................................................................................... 8

 

5.3

 

FTP Parameters .......................................................................................................................... 8

 

5.4

 

IP Parameters ............................................................................................................................. 8

 

5.5

 

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

 

8.8

 

Setting Debug Print levels ........................................................................................................ 16

 

9

 

Joining Networks and Making Connections .................................................................................... 17

 

10

 

Firmware Upgrade over FTP ........................................................................................................... 19

 

11

 

Setting Adhoc Mode and Restoring Configuration Settings ............................................................. 20

 

12

 

Default Configuration Settings ........................................................................................................ 21

 

13

 

Know issues and Errata ................................................................................................................... 22

 

 

Содержание RN-131G

Страница 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 ...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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 ...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: