Home
WIFLY GSX - Round Solutions
Contents
1. BI CA iis 12 11 10 9 8 7 6 5 4 5 le la lo Position GPIO GPIO GPIO GPIO Signal 13 12 11 10 GPIO GPIO GPIO GPIO GPIO GPIO N A N A N N A Name UART UART UART UART 9 8 7 6 5 4 A RTS CTS RX TX Default Outp Outp Outp Outp Outp N State Output Input Input Output Input ut ut ut t ut N A N A A N A mw 9 x 9 5 3j r E 9 gt z D o amp iw 2 Fag pm o cr 5 8 5 o a O pa 8 4 g z ct lt 8S9 S Sog c c m haie sm 2 a oft 358 c m r m Default 225228 5822 5 m ge m o O m o a c z Function jo 3 9 Fos zi RU 0 z co oor he x O m m w r m Ra ol 4 iw iw m Jg o z Oo iw 2g I 5 ca o a o lt Q a zx a 9 a 8 m T ee Oe a2 m o m g E I 0 0 c oi T o wn 10 5 2 Setting the alternate GPIO functions The defaults for GPIO 4 5 6 is to control the LED functionality This default functionality can be overridden to allow user programable IO or alternate IO functionality by using the set sys iofunc lt value gt command Value is entered as a hex number The hex value represents a bit mask that controls each bit in the lt value gt represents a particular GPIO pin If a bit is 0 then that GPIO is driven read by the firmware per the default function The IO function value is encoded as such Bit IO DIRECTION Function 0 GPIO 4 output Disable LED function so IO can be used as GPIO 1 GPIO 5 output Disable LED fu
2. TIME SERVER PARAMETERS Enable Server address zone UART PARAMETERS Baudrate parity flow Mode WLAN PARAMETERS SSID Channel External antenna Join mode Authentication mode Mask Rate Passphrase Key number Key O disabled 129 6 15 28 fixed to port 123 SNTP protocol 7 pacific USA time 9600 n none this is the only option available 0 disabled 0 rovingi 0 automatic scan 0 off use on board chip antenna 1 automatically scan and join based on ssid OPEN Ox1FFF all channels 12 24Mbit rubygirl 1 0000000000000 15 1 Restoring Default configuration settings As of version 2 10 you can now specify a USER configuration as the factory reset settings Prior to this release only the hardcoded factory defaults would be restored From command interface use the factory RESET command to restore the defaults From hardware setting PIO9 high on power up arms the factory reset functional and toggling PIO9 five 5 times there after causes the configuration setting to restored to the factory reset Now however if there is a config file named user it is read in as the factory defaults instead of using the previous hardcoded defaults If no user config file is present the hardcoded factory defaults are used The user config file is created using the save user command which saves the current configuration settings into the user file Even if there is a user config file
3. The Wifly GSX should work with any standard Access Point We have tested the WiFly GSX module with the following access points Cisco Aeronet series Linksys both standard and openWRT linux Netgear WGR614 v8 Netgear WGN54 DLINK dir 615 Airlink 101 Apple Airport express e ADHOC MODE Apple Iphone Microsoft windows PC with XP Vista Ubuntu Linux www rovingnetworks com support rovingnetworks com Phone 408 395 6539 36 D RUIN IN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 18 Release Notes 18 1 Known problems e The UART does not support odd or even parity only no parity is supported Flow control RTS may fail to properly de assert when RX buffer 2048 bytes is exceeded For high speed transfers it is best to limit RX data to the maximum Ethernet frame 1460 bytes and have a protocol to acknowledge data is received by the remote host 18 2 Current Firmware features and fixes As of Version 2 15 10 15 2009 e Fixed a problem whereby the first UART RX character received on power up is received but does not sent until receipt of 2nd character e Fixed a problem with some APs that violate Wi Fi specifications by not responding to WPA authentication within 250ms The set option jointimer xxxx command which specifies the timeout in ms for a join now also applies to the WPA timeout The default is now 1000ms or 1 second Note some APs require up to 1500ms to respond e When connected over TCP and
4. scan lt time gt time WiFlyGSX um pdf 11 11 2009 Performs an active probe scan of access points on all 13 channels Returns MAC address signal strength SSID name security mode Default scan time is 200ms channel about 3 seconds time is an optional parameter this is the time in ms per channel For example scan 30 reduces the total scan time down to about 1 second This command also works in Adhoc mode version 2 11 Sets the Real time clock by synchronizing with the time server specified with the time server parameters see section 5 9 This command sends a UDP time server request packet 9 FILE IO Commands del name num load name Is save Save name boot image num ftp get name ftp update name Deletes a file Optional num will override the name and use the sector number shown in the Is command Reads in a new config file Displays the files in the system Saves the configuration to config the default file Saves the configuration data to a new file name Makes file num the new boot image Retrieves a file from the remote FTP server If name not specified the stored ftp filename is used Deletes the backup image retrieves new image and updates the boot image www rovingnetworks com support rovingnetworks com Phone 408 395 6539 19 D RUIN IN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 10 Advanced Features and Settings 10 1
5. FCC CE ICS certified and RoHS compliant Features e Host Data Rate Up to 2 7 Mbps for UART e Memory 128 KB RAM 2MB ROM 2 KB battery backed memory 8 Mbit Flash e Intelligent built in power management with programmable wakeup e Can be powered from regulated 3 3 3 7V source or 2 0 3 0V batteries e Real time clock for time stamping auto sleep and auto wakeup modes e Configuration over UART or wireless interfaces using simple ASCII commands e Over the air firmware upgrade FTP and data file upload e Secure WiFi authentication WEP 128 WPA PSK TKIP WPA2 PSK AES e Built in networking applications DHCP client UDP DNS client ARP ICMP ping FTP HTTP e 802 11 power save and roaming functions www rovingnetworks com support rovingnetworks com Phone 408 395 6539 3 DY NUN COMIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 2 Hardware Interface See the RN 131 or RN 134 data sheets on the Roving Networks website for technical specifications and layout information of these modules 2 1 Power There are two options for powering the RN 131G module directly DC SUPPLY Apply 3 3 VDC power to VBATT pin 20 and V3 3IN pin 21 Tie 3 3VREG IN pin 18 to GROUND 3 3V REG OUT Pin 17 leave floating BATTERY Apply battery 2 0 to 3 3VDC to VBATT pin 20 V3 3IN pin 21 floating Tie pin 17 to pin 18 This enables the on board battery boost 3 3V switcher There is a built in voltage brownout monito
6. For consistency the command prompt response lt 2 xx gt now also contains r n appended string when in this mode As of Version 2 12 9 17 2009 Fixed problem with some newer 802 11n association attempts cause module to crash reboot Such as Linksys WRT160NL Fixed problem with send on match character i e set comm match char Match char is now operational During an open TCP session a second incoming connection would be accepted Second connection is now accepted but then immediately closed Hardware flow control is now supported To enable use the set uart flow 1 command DHCP renew and rebind is fully supported Previously DHCP renew rebind would update IP settings and if a TCP session was active it would enter a hung state TCP connections now survive a DHCP renew rebind Features TCP connection password This optional pass word is enabled with the command set opt pass lt string gt incoming connections will be challenged and the stored password must be matched or the connection will be closed UART instant baudrate The set uart instant lt rate gt command immediately changes the baudrate This is useful when testing baudrate settings or switching baudrate on the fly remotely while connected over TCP Analog interface commands The show q command will now enable and show the digital value of the analog interface pins See section 14 As of Version 2 11 9 8 2009 Limited release please update to 2
7. 12 As of Version 2 10 8 14 2009 Added a 250ms guard band in parsing of The module now looks for three and only three within a 250ms period with no additional characters following for 250 ms Do not send cr or Mf after the Fixed problem with UART dropping data In cases with large data transfers gt 100KB the UART would become over whelmed and drop data We no longer pass serial data received into the UART back over telnet when in remote command mode Features www rovingnetworks com support rovingnetworks com Phone 408 395 6539 38 D RUINE AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 User specified default configuration You can now specified a USER configuration as the factory reset settings The function of PIO9 has been changed slightly See section 15 1 Configurable Device ID There is now an additional user programmable device ID that can be used for storing serial numbers product name device type or other information The device ID is part of the broadcast hello UDP message that the module sends out to identify itself Use the command show deviceid to display the current setting For more information on using this command see the set optional section command UDP broadcast packet By default the Wifly module now sends out a UDP broadcast to 255 255 255 255 on port 55555 at a programmable interval The broadcast address port and interval are set using the set broadc
8. System Timers and Auto Connect Timers There are 2 timers that can be used to put the module to sleep and perform a wake up If the sleep timer is enabled the module will automatically go into deep sleep low power mode once the timer counts down to 0 The sleep timer is disabled if the module has an IP connection or the module is in COMMAND mode The timer is reset when characters are received on the UART The sleep timer is set with set sys sleep lt time gt time decimal in seconds The wake timer will bring the module out of deep sleep The wake timer is set with set sys wake lt time gt time decimal in seconds For example if you wanted the module to wake up join a network and be available to accept TCP connections for 30 seconds every 2 minutes you would set the timers as such set wlan ssid my_net set wlan passphrase my_pass set sys sleep 30 set sys wake 90 save reboot UDP sleep and Connection timers There is another timer than can be used to put the device to sleep In UDP protocol mode the autoconn timer is used as an auto sleep timer Upon the start of transmission of the first UDP data packet this timer will count down set sys autosleep value UDP mode sets the auto sleep timer 0 disables the timer is decremented every xx milliseconds based on the value of the comm flushtimer Using a minimum value of 2 when the default flushtime 10 ms is recommended to ensure that the UDP packet gets transmitted For larger pac
9. VU COMIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 10 7 Using the Real Time Clock Function The real time clock in the module keeps track of the number of seconds since the module was powered on and the actual time when synchronized with the sNTP time server By default the module keeps track of up time but does not synchronize with the time server since this requires being associated with a network that can access the sNTP server The default sNTP server is at ADDR 129 6 15 28 123 ZONE 7 GMT 7 Use the show time command to see the current time and uptime lt 2 09 gt show t Time 08 43 10 UpTime 10 s Time can be set by using the time command lt 2 09 gt show t Time NOT SET UpTime 8 s lt 2 09 gt time lt 2 09 gt show t Time 08 51 31 UpTime 15 s NOTE the WiFly module must by successfully associated with a network for the module to contact the sNTP server Alternatively the module can be configured to get the time whenever it powers up by setting the time enable to 1 Any value greater than 1 gets time continuously every lt value gt minutes To configure the Wifly module to get time upon power up lt 2 09 gt set time enable 1 AOK lt 2 09 gt get time ENA 1 ADDR 129 6 15 28 123 ZONE 7 To view a complete listing of the time variable use the command lt 2 09 gt showtt Time 09 02 10 UpTime 653 s Powerup 1792 s RTC 7753271426558 ms timera 66885 www rovingnetworks com support
10. arming and toggling PIO9 7 times will override the user settings and restore the wifly module to the factory hardcoded defaults This is a bypass mechanism in case a bad configuration is saved into the user file Note Factory defaults should be saved to the config file using the save command and the module rebooted for the new settings to take effect www rovingnetworks com support rovingnetworks com Phone 408 395 6539 35 D RUIN AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 16 Boot up Timing Values Function Description Time in ms Power up Powerup Time from Reset HIGH or power good to boot 70 code loaded Initialization Initialize ECOS 500 Ready Load configuration and Initialize application 30 otal time to READY 600 Join Associate using channel 0 full channel scan mask 80 Ox1FFF Associate using channel 0 primary channel scan mask 15 0x421 Associate using channel X fixed channel 5 20 Authentication Authenticate using WPA1 or 2 highly dependent on 50 250 Access Point response Aquire IP DHCP obtain IP address highly dependent on DHCP 30 server response time 17 Supported Access Points Access points that are set to MIXED mode WPA1 and WPA2 may cause problems during association because some of these incorrectly report their security mode We also currently do not support WPA2 Enterprise radius server authentication EAP TLS
11. can be used for storing serial numbers product name or other device information This information is sent as part of the broadcast hello packet that is sent as a UDP The current value can be shown with the get option or show deviceid commands Max string size is 32 bytes The default is WiFly GSX TCP connection password Used to challenge the remote device to authenticate the connection When set all incoming connections will be challenged and the first characters sent must match the stored password or the connection will be closed When the password is set the WiFly module will send the string PASS to the remote connection All characters in the string must be sent in one TCP packet Max string size is 32 bytes To disable the password feature use string 0 which is the default 5 8 SYSTEM Parameters set sys autoconn secs set sys autosleep num TCP mode sets the auto connect timer This command causes the module periodically connect to the host The timer secs determines how often to connect to the stored remote host If set to 1 the module will only make one attempt to auto connect upon power up If set to 2 or greater auto connect will re open the connection after the connection is closed Default 0 disables Sets the auto sleep timer 0 disables If the protocol is set to UDP ONLY this timer is used as a quick sleep function Device will sleep num ms after transmission of the first UDP packet www ro
12. en hu Sev h ER RE ER UN Ru qo AE EE ERE CREE Y ga RU x Ce ER FERE Lp QA SEDE FF EREEDNS 16 7 STATUS Commands iiie eese retentu te qa Sa aua Tu ta SE eus qe De nats Quake s OR 2a Ke gue dE QE DR Prada cs aU ga PEE USA ana 17 8 ACIION Commands ieceece oe rena tenub tuens ek Er eR ERA RAE AR eu ERE ENAN NAERA RATARA RANEI ERE RAReEE 18 OF PILE TO COMMAS tis ctane hano due epe E Nea EnexRaN ARE REPRE RAE QAAE REMAIN I RURA UR RUNI URMN KH EVER ER 19 10 Advanced Features and Settings essssssssssssessssesssseesenee hehehe s ams senem nemis sese nnn 20 10 1 System Timers and Auto Connect Timers sesssssssseseseeee enne nennen nnn nnne nnn nnns 20 10 2 Wake On I jol le nslloje U eec 21 10 3 Wake ori UART isxesxxexi vissri pep nanena RRERER ER ARR XE S KXRMEEER FIRE UR EEMUNARRNREVEER ANE SPERAT TEATA ANA ENAA 21 10 4 UART Receiver RTS CTS Hardware Flow Control essen menn nnn 21 10 5 Setting GPIO direction Alternate Functions and Disabling LEDS sees 22 10 6 Setting Debug Print levels rete instrinsik ne aia nra iaiaaeaia vive 24 10 7 Using the Real Time Clock Function cccce cece sence eee ee eee eens eene eene enne nnn nnns 25 10 8 Using the UDP Broadcast function cece cece teeter eee eee ene nemen nemen enne 26 11 Joining Networks and Making CONNECTIONS cccecc cece cece eee eee nennen nennen nnn nnn EE EE EES 27 11 1 Associate with a network access point 1 ce
13. or disable fetching time from the specified sNTP time server Default O disabled A value or 1 gets time only once on power up Any value 1 gets time continuously every value minutes 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 RS232 interface on the RN 134 does not work above 230400 This immediately changes the baudrate This is useful when testing baudrate settings or switching baudrate on the fly remotely while connected over TCP This setting does not affect configuration www rovingnetworks com support rovingnetworks com Phone 408 395 6539 12 D RUINE AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 Returns the AOK response and then this command will exit command mode set uart raw lt rate gt sets a RAW UART value Used to set non standard rates The lowest possible baud rate is 2400 Example set u r 7200 sets the baud rate to 7200 baud set uart flow lt 0 1 gt sets the flow control mode Default O off 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 set uart mode lt value gt sets the UART mode register This is a bit ma
14. rovingnetworks com Phone 408 395 6539 25 A ROWING DET WIRELESS FOR LESS 10 8 Using the UDP Broadcast function WiFly GSX WiFlyGSX um pdf 11 11 2009 The WiFly module can be setup to automatically generate UDP broadcast packets This is useful for a number of reasons Some Access Points will disconnect devices that sit idle and don t send any packets after a time Using the UDP broadcast informs the AP that WiFly is alive and wants to stay associated This feature can be used by application programs to auto discover and auto configure the WiFly module If an application is listening for the UDP broadcast a number of useful parameters are present in the package that can be used for auto discovery the IP address and port number of the WiFly are both part of the packet and thus the Wifly can be connected to and configured remotely with this information The MAC address of the associated AP channel and RSSI value are available in this packet thus enabling a simple location and tracking based function For example By default the Wifly module now sends out a UDP broadcast to 255 255 255 255 on port 55555 ata programmable interval The broadcast address port and interval are set using the set broadcast commands The format of the packet is 94 bytes of data AP MAC Chan RSSI Local Real Time Battery Temp ASCII Version User Sensor address TCP port Clock Vol
15. rovingnetworks com support rovingnetworks com Phone 408 395 6539 33 D RUINE AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 15 Default Configuration Settings ADHOC PARAMETERS Beacon Probe 100 milliseconds 5 retries before declaring adhoc is lost BROADCAST PARAMETERS IP address Port Interval COMM PARAMETERS Close string Open string Remote string Flush size Match byte Flush timer Idle timer Cmd char DNS PARAMETERS IP address Name Backup FTP PARAMETERS Server address File User Password IP PARAMETERS DHCP IP address Net mask Local port gateway host remote port protocol OPTIONAL PARAMETERS Join timer WPA timer Replacement char Device ID Password SYSTEM PARAMETERS Sleep timer Wake timer Trigger Auto connect 255 255 255 255 55555 7 seconds OPEN CLOS HELLO 64 0 10 milliseconds 0 0 0 0 0 serveri backup2 208 109 78 34 roving default update server port at 21 Wifly GSX img roving Pass123 ON 1 enabled 0 0 0 0 255 255 255 0 2000 2 TCP server and client 1000 0x24 WiFly GSX iu not used at this time SENSO pin wakes up the device OHOO www rovingnetworks com support rovingnetworks com Phone 408 395 6539 34 D RUIN AIN WIRELESS FOR LESS IOfunc IOmask Print level WiFly GSX WiFlyGSX um pdf 11 11 2009 O no alternate functions 0x21F0 1 prints enabled
16. secs set comm match value set comm size value set comm time num 5 4 DNS Parameters set dns address lt addr gt set dns name string set dns backup string 5 5 FTP Parameters set ftp filename file set ftp addr addr set ftp remote port set ftp user name set ftp pass pass 5 6 IP Parameters set ip address addr ROWING DET WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 sets the Idle Timer Value This is the number of seconds with no transmit or receive data before the connection is closed automatically Default is 0 never disconnect on idle sets matching character initiate forwarding data across the TCP IP connection The value is entered as the decimal value of the of the ASCII character Default is 0 disabled For more information see section 10 4 sets the Flush Size value This is the number of bytes to receive on the UART before forwarding O disables forwarding based on byte count Default is 64 bytes at 9600 Maximum value 1420 bytes NOTE This value is set automatically when the baudrate is set in an attempt to optimize the link It is assumed that higher baudrates suggest larger buffer sizes and hence the size will increase at higher baudrate settings sets the Flush Timer This is the number of 1 millisecond intervals after the last UART byte is received before the data is sent over Wifi 1 is the minimum value Default is 10 10 millis
17. sensor input exceed 1 2VDC Permanent damage to the module will result An open drain FET is a good device to tie to the SENSE pin The threshold is about 500mV Additional pullup to 1 2VDC may be used if the circuit has an impedance due to leakage current of less than 5Mohms 500mv 100nA SENSE O to 3 pins that are not used should be left unconnected 10 3 Wake on UART When the module is in sleep mode the UART itself is disabled However wake on UART can be accomplished by connecting the SENSE1 pin to the RX data pin Using the appropriate divider resistors mentioned above The SuRF board RN 134 has a built in resistor divider connecting SENSE 0 and SENSE 1 to RXD and CTS to allow waking up the module Note On SuRF board rev 2 the resistor pack connecting RX and CTS signals is not correctly connected to the sensors To wake on UART RX place a jumper from pin 3 on the Evaluation board header to pin 2 on the sensor header To wake on UART CTS place a jumper from pin 10 on the Evaluation board header to pin 3 on the sensor header To enable wake on RXD use set sys trig 1 It should be noted that the first or possibly multiple byte sent into the module will likely be lost so the designer should take care to send a preamble byte to wake up the module before sending valid data bytes A better way to do this is to use the CTS input to wake the module and wait until it is ready to accept data To enable this use set sys trig 2
18. string is an optional filename use to bypass the default firmware filename The ftp upload command will retrieve the file and switch the boot image to the new file lt 2 10 gt ftp update lt 2 10 gt FTP connecting to 208 109 78 34 FTP file 30 The previous firmware will become the backup image Here is an example of what you should see after a successful update FL SIZ FLAGS 11 18 3 WiFly_GSX 2 05 29 1 10 config 30 18 3 WiFly_GSX 2 10 208 Free Boot 30 Backup 11 Note the module must be rebooted or power cycled to use the new firmware To boot a different firmware use the following command Boot image num sets the current boot image num For example to boot the previous image from above use www rovingnetworks com support rovingnetworks com Phone 408 395 6539 30 DY NUN COMICS WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 2 10 boot image 11 Set Boot Image 11 OK To upload your own firmware or config file to the module change the stored FTP settings See section 5 5 for more details on the FTP commands To upload your file w following command ftp get string Retrieves remote file with name string 13 Adhoc Networking Mode 13 1 Infrastructure and adhoc comparison There are two types of networks The most common network is infrastructure in which an access point AP is the common point linking all WiFi devices The access point keeps track of who s on the local network and d
19. the AP disappears or WiFly loses association the WiFly will now closes the connection The CLOS response will now appear when the connection is terminated by the WIFly NOTE This may require the use of the set comm idle xx setting to monitor the TCP connection and force a TCP disconnect when no data is flowing due to lost association Features e Link monitor The command set wlan linkmon x is now used to monitor the state of the association to the AP The AP is scanned once per second and if x consecutive scans fail the WiFly declares AP is lost sets the interface to down state and enters the association process Previously the WiFly would not detect that the AP association was lost until the AP became available again or the WiFly was power cycled or rebooted e ADHOC mode The command set adhoc probe x is now used to set a threshold for the number of consecutive missed probe responses allowed before declaring ADHOC is Lost and setting the network interface to be down Default is 5 probes A setting of set adhoc probe O will disable this function Some Adhoc stations do not reliably respond to probes and so this value higher avoids intermittent loss of connectivity e DHCP cache The set ip dhcp 3 command is now used to enable DHCP address caching Once caching is turned on the initial DHCP settings are stored in NVRAM This is most useful in battery systems when using the sleep mode Upon waking from sleep as long as the DHCP lease t
20. the ssid chan and other wlan settings display the UART settings return the software release version www rovingnetworks com support rovingnetworks com Phone 408 395 6539 16 D RUIN IN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 7 STATUS Commands These commands begin with show and they return the current values of variables in the system In some cases for example IP addresses the current values are received from the network and may not match the stored values show battery Displays current battery voltage only valid for Roving battery powered product like the RN 370 and temperature sensors show connection Displays connection status in this HEX format 8XYZ Bit 13 16 9 12 7 6 5 4 0 3 location Function fixed channel DNS found DNS server Authen Assoc TCP status Value 8 1 13 1 resolved 1 1 OK 1 OK Oz Idle contacted 1 Connected 3 NOIP 4 Connecting show io Displays IO pin levels status in this HEX format 8ABC Example show i returns 8103 indicates pins 0 1 and 9 high level show net Displays current network status association authentication etc show rssi Displays current last received signal strength show stats Displays current statistics packet rx tx counters etc show time Displays number of seconds since last powerup or reboot show q 0 7 Display the value of the an analog interface pin from 0 to 7 The value returned wi
21. valid set u b 115200 is also valid however s uart baudrate 115200 is NOT valid Numbers can be entered as either decimal like 115200 above or HEX To enter HEX use Ox lt value gt For example the HEX value FF would be entered as OxFF 4 2 Command Organization Commands fall into 5 general categories SET COMMANDS Take effect immediately permanently save command issued GET COMMANDS Retrieve 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 any changes made or the module will load the previous settings upon reboot or power up When the system boots all configuration data is loaded into RAM variables from the file called config The set commands actually only modify the RAM copy of variables in the system In general the IP WLAN and UART settings need a save and reboot to take effect since they operate at boot up time For example you only associate set the channel and get your ip address once at power up Most of the other commands take effect immediately like the COMM settings and timers This allows temporary change of parameters on the fly to test features minimizes power usage and saves on flash re write cycles Once all configuration is complete the user must save the s
22. 10 4 UART Receiver RTS CTS Hardware Flow Control The UART receive buffer is approx 1024 bytes and at lower baudrates 9600 19200 the system can process data into the device without need for flow control If constant streaming of data into RX on the device is required care should be taken to set the comm parameters to optimize the performance If data has a termination char this can be used Also if data has a particular frame size this can be used www rovingnetworks com support rovingnetworks com Phone 408 395 6539 21 D RUINE AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 set comm match lt value gt sets the value of the packet terminator set comm size lt value gt sets the number of bytes to receive before forwarding 0 1 forwards immediately maximum value 1460 bytes The comm size is automatically set whenever the baudrate is set but can be modified Even at higher baudrates 115K and higher it is possible to operate without flow control if packets are uniform and a protocol is used to ensure that data is delivered 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 interference and retries inherent in wireless networks flow control is usually required to guarantee no data is lost By default flow control is disabled To enable hardware flow contol use set uart flow 1 10 5 Setting GPIO direction Altern
23. 8 Release NOt6s iie n ENERE RANNE EE EAA Y YR A YRIRRA RR ea ERR RR RR RE RRSRS RR RR RR RR RR RR RASA 37 18 1 KNOWN PrODleMS m 37 18 2 Current Firmware features and fix S ccecceece eee ee eect eee eens eens eee eae ea esas naan eee eee ee 37 www rovingnetworks com support rovingnetworks com Phone 408 395 6539 zu DY NUN COMICS WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 1 Overview The WiFly radio module is a complete stand alone embedded wireless LAN access device The device has on board TCP IP stack and applications Requiring only 4 pins POWER TX RX GND to design in Once initial configuration is set the radio can automatically access the WiFi network and send receive serial data over UART e Fully Qualified and Wifi Certified 2 4GHz IEEE 802 11b g transceiver e High throughput up to 4Mbps sustained data rate with TCP IP and WPA2 e Ultra low power 4uA sleep 40mA Rx 210mA max Tx e Small compact surface mount module e On board ceramic chip antenna and U FL connector for external antenna e 8 Mbit flash memory and 128 KB RAM e UART and SPI future data control interfaces e 10 general purpose digital I O e 8 analog inputs e Real time clock for wakeup and time stamping data logging e Accepts 3 3V regulated or 2 3V battery with on board boost regulators e Supports Adhoc and Infrastructure mode connections e On board ECOS OS TCP IP stacks e Wi Fi Alliance certified for WPA2 PSK e
24. DY NUN COMIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 WIFLy GSX 802 11 b g wireless LAN Modules User Manual and Command Reference RN 131G RN 131C RN 134 RN 121 RN 123 amp RN 125 Version 2 15 October 16 2009 Copyright 2009 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 D RUIN IN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 1 OQVervi W rrip Ea r anA Era EEEE EAA E A Melba AA E ATEA 3 2 Hardware Interface s s e rer rhe RE RU R RREERRR ERURERREEAXRRREREKERU Apiapi EEEa aa Ea aa en s send 4 2 1 POWGMsi itisesepininiiads ERRRIRRRIRRRYRIAG RR A RERRRIITRRRCREERRRRR RR KRERRPRR REIR E EA E A 4 2i2 c 9 4 cU H 4 2 4 Status IndiCLOrS aie casas ce cx etre nhnh ta A SR dREERRRERTRRRASASA SR RRIRTRERURRRTRSR SR RRURERURUMENS 5 3 SCODFIGULdElOEis sess ers Eo Eur NERENARREPAT KERREMIR RUN NERMERT RENE AREA RNAUKMENE AEA DEERE D ERA KA DU RIAREN EURO PM MA 5 3 1 Entering Command Mod ee aanere nota pax iRRr sar IY DP E Er REM RINEiRgacREE KNEE H EA 5 4 WiFly Command Reference cs
25. This can be found by running ipconfig in the Microsoft command window With the WiFly GSX module in command mode type open lt addr gt port The server will report the connection is open and you can type characters into the UART window and see them on the server window or visa versa 11 3 Setting up Automatic Connections Often it is desired on power up or wakeup to automatically connect out to a remote server send data and then disconnect This can be configured to happen automatically In the following example assume the network SSID and security have been set correctly and autojoin is set to 1 This will also work in adhoc mode autojoin 4 however there will be delay in connecting to the adhoc network from the remote computer so set the sleep timer large enough to allow the network to get set up and the autoconn establish a TCP connection When the module wakes up or is powered on the autoconn timer will cause the module to attempt a connection to the stored remote IP address and port While this connection is open the sleep timer will not decrement While data is flowing the idle timer will not decrement Once data stops for 5 www rovingnetworks com support rovingnetworks com Phone 408 395 6539 28 D RUIN AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 seconds the connection will be closed The sleep timer will the kick in and put the module in deep sleep Finally the wake timer will start the whole c
26. ast commands See section 10 8 Known Issues Wifly Module has trouble associating with some 802 11 n access points The module will crash and reboot repeatedly We have seen this behaviour with Linksys and Dlink router access points If you disable the n capability on the router the module will associated correctly Flow control is not functional Current Firmware Version 2 09 7 10 2009 e Sleep mode was drawing 70uA instead of the expected 4uA due to an oscillator that was not disabled before going to sleep Refer to the RN 131G datasheet for the proper low power hardware configuration e Fixed closing of TCP port on TCP RESET Previously the module was not handling remote TCP reset correctly and would disconnect which resulted in a printout of ERR 5 TCP port was not closed properly e Fixed clearing and setting of strings in several set commands In these cases the strings could be erased but not reset o set comm remote set comm open set comm close set dns name set dns backup OO OO e Removed extra character in UART output Previously the module would insert an extra r character when n appears in data stream e Added the get everything command to dump out all configuration settings e Fixed the alternate I O functions to allow connection based on PIO5 The manual has been updated to include a much better description of this functionality See section 10 5 As of firmware version 2 08 6 08 2009 e Connecting out an IP ad
27. ate Functions and Disabling LEDs The direction of the GPIO can be controlled with the GPIO mask using the set sys mask lt value gt command to set the GPIO pin direction Value is entered as a hex number If you need to set only one bit in the mask you need to read mask and set the value Otherwise you will over write any previous GPIO settings The hex value represents a bit mask that controls each pin where 1 output and 0 input For example set sys mask OxO sets all pins to input To set only GPIO 6 and 7 for example you would enter set sys mask OxcO The default mask for WiFly 0x21f0 which has GPIO 13 8 7 6 5 4 as Outputs GPIO 0 3 are used internally on the module GPIO 4 5 6 are LEDs GPIO 9 is reserved as the ARM factory reset adhoc mode read at powerup and otherwise general purpose input detect pin GPIO 10 11 are the Uart RX TX pins and TX does not need to be masked as an output GPIO12 is CTS input if used GPIO13 is RTS output if used The get sys command will show the setting of the GPIO mask lt 2 09 gt get sys SleepTmr 0 WakeTmr 0 Trigger 0x1 Autoconn 0 IoFunc 0x0 IoMask 0x21f0 PrintLvl 0x1 www rovingnetworks com support rovingnetworks com Phone 408 395 6539 22 A ROWING DET WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 The table below shows the usage of the GPIO pins with their default state and functionality
28. bit sec default 13 36 Mbit sec www rovingnetworks com support rovingnetworks com Phone 408 395 6539 15 D RUINE AIN WIRELESS FOR LESS set wlan ssid lt string gt WiFly GSX WiFlyGSX um pdf 11 11 2009 14 48 Mbit sec 54 Mbit sec sets the wlan ssid to associate with 1 32 chars NOTE Ifthe passphrase or ssid contain the SPACE characters these can be entered using substitution via the character For example if the ssid of the AP is yellow brick road You would enter yellow brick road Using the get w command will properly display the value SSID yellow brick road set wlan window lt value gt sets the IP maximum buffer window size Default is 1460 bytes 6 GET Commands These commands begin with get They display the current values get adhoc get broadcast get everything get com get dns get ftp get ip get mac get optional get sys get time get wlan get uart ver display all adhoc settings will display the broadcast UPD address port and interval displays all configuration settings useful for debug display comm settings display DNS settings display FTP settings display IP address and port number settings display the device MAC address display the optional settings like device ID display system settings sleep wake timers etc display the time server UDP address and port number display
29. c isn ises6vicaccdaan sas teh oa a E cu cR ARI RRIDR EXER Da RR x e ara aa eaan 7 4 1 Command Syntax arora ia rentas us iG E UR ERE ER RIEF MU PEE RFar ate seat a a RME ERE xe 7 4 2 Command Organization i terror en amiab A P RR a aA AEAEE PRTA ERAEN ENESES 7 b SEI Commands iiie repete a T eeeedwacdeveviverayee 8 5 1 ADHOC Parameters irs ryer ikain ipaha oer rRagaxE crabe Ea RRARRR A eR PER Paga ERRARE paN 8 5 2 BROADCAST Parameters iieiesee exisse sess erasa anani ERE REI AXIS RA RR IR RB RB lg cg War EEEN aka 8 5 3 COMM Parameters oie sei hene enini uia ar Rol a RR a nERR n aaa adane AETA a EEr sieve tes 8 5 4 DNS Parame ters me M 9 5 5 FUP Parameters tnr nt pill I a d SY i a FAR RR CAREIRRRARARNDAR E PR cccmentidedmeatetedesens 9 5 6 IP Parameters iussisse saeua gula n RW XR KR RRAR dank R4 RSRR YS AEEA Y XRRTZRAPQAGRRiRRARRAPIZYaggaa 9 5 7 OPTIONAL Parameters aaa gas ecua en hau RARE aa ARR RRRYRA4R R34 A IR YAIRTId aara aT canescens 11 5 8 SYSTEM Parameters iiie seen segna iii aaaea ERR RR RAREXRRR ARA ARNERAIAT E PAGiR RR ER RAE Reus 11 5 9 TIME Server Parameters 2 croient niat hp RrRRRREXRXERRRORRRRURRERRRRRDRERERRIRRiR AT RRSKRRRRRRIERDERREA 12 5 10 UART Parameters iere reino a h auxRa ERR rta weeds sia tanasuasseaeg es unu S eeepepeme nee 12 5 11 WLAN Patarmieters ieiuna Era be I yr na Ra IERI IRE RR o RR Ris Ra riana PEDE 13 6 GET Commands ete re oett Ene ee eo ek
30. c network from another WiFly device set wlan ssid my adhoc network reboot or alternatively you can use the join command to associate with the adhoc network Remember to disassociated using the leave command if you are previously associated to another network join my adhoc network If you leave DHCP service enabled the WiFly device will get an IP address using auto IP when associating with the adhoc network By definition auto IP fixes the first two bytes of subnet to 169 254 xxx xxx The WiFly device takes about two to three seconds to resolve the auto IP address RT alti x File Edit Setup Control Window Help 2 07 set wlan ssid my adhoc net AOK 2 07 06 04 2009 MAC Addr Q0 06 66 00 Qa 8b Auto Assoc my adhoc net chan 1 mode OPEN SCAN OK Listen on 2000 www rovingnetworks com support rovingnetworks com Phone 408 395 6539 32 DY NUN COMICON WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 Alternatively you can statically set the IP address by disabling the DHCP service and explicitly assigning the IP address set ip address 169 254 1 2 set ip dhcp 0 You can confirm the device has properly connected to the adhoc network using the ping command ping 169 254 1 1 10 To use associate with the WiFly adhoc network from another computer Open the Control Panel Networking and Sharing Networking and Sharing Center dialog in Vista or Control Panel Network Connections dialog in Win
31. ce cesses enne nennen nen nnn nnn nan 27 11 2 Making Connectioris 25 2 eus xenksonkcoei ei E TER RKRRNDRRFZANIDNLTUIMGEANGKXER NEN E ENS 28 11 3 Setting up Automatic Connections sssssesssssss enne emen nnne nnns 28 11 4 Controlling Connections using PIO5 and PIO6 sessssesseeeeee nennen nnn nnns 29 11 5 Using DNS SettingS mE EMDMS 29 11 6 Utilizing the Backup IP address connect FUNCtION cccce cece cesses eee eeeeeeeeaeeaeeaeeaeeaneaes 29 12 Firmware Upgrade over ETP iicecete eese sepe those a ninnaa aa EnaA eaaa DSN nainn NE NEEESE 30 13 Adhoc Networking Mode o encre repe tepore ty etn nue a aa a ERR RR ren dsedetedahannstteestastceencesexentne ners 31 13 1 Infrastructure and adhoc comparison sss nemen nemen nnne 31 13 2 Gonfig ring adhoc mode occu menn ce x xxn o Robe ke ERR ODER SIUS USER RR ERR RII OR ERU 31 14 Analog Sensor Capability i iiree e duo R next aneen BAR AEON E E RENAL RUM EURO AAIEN NEN AAE ak 33 15 Default Configuration Settings sssssssssesseeseeeeen enne hehehe nnne nnn nnns an nnn rennen 34 15 1 Restoring Default configuration settings ccececcc cece eee eee eee eee eee ee eeeeeee nennen nnn 35 16 BOOt UP Timing ValllGS iss exo cies REX RE EXER RYE RR NER KRER ERERERERYRERERERRRRERKERKEER een ep ea ets NY RERYR YA EERERENRRA 36 17 Supported Access Points oiv ye hx HX XR ERR RR KREERERRERERER RR RUE REY AEA AEE NEE EA SENE TAATA AAA EAEN 36 1
32. curity enabled you will need to set the pass phrase prior to issuing the join command The RN 131G module will attempt to inquire and determine the security protocol of the access point so you do not have to set the authentication mode To set the pass phrase for WPA use the command set wlan phrase string For WEP set the key using the set wlan key num command Once you have successfully associated to the network the access point SSID is stored This along with the pass phrase can be saved to the config file so the module can associate with the network each time it is booted up 11 2 Making Connections To make a connection into the module simply open a 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 your server application A simple program to test this functionality is a COM port redirector This software opens an IP port and transfers all data it receives to a specified COM port on your machine A free com port redirector program is available from Pira at http www pira cz eng piracom htm After installing and starting this program note the IP address of the machine it is running on
33. dhoc mode the WiFly module creates an adhoc network with the following is ji SSID WiFly GSX XX where XX is the final two 1 1 2000 bytes of the devices MAC address S Channel 1 DHCP OFF IP address 169 254 1 1 Netmask 255 255 0 0 Storing in config lt 2 07 gt reboot xRebootxHiFly Ver 2 07 06 04 2009 With the adhoc jumper in place the above settings Was dace dos 12 68 00 24 43 override the current saved configuration settings XREADYx www rovingnetworks com support rovingnetworks com Phone 408 395 6539 31 b LOVIN CII WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 To enable adhoc mode from software From command mode the module is configured for adhoc mode using the join command You will also need to set the ssid and channel 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 Alternatively you can set the netmask to a smaller subnet if the other device s IP addresses are begin statically to the same subnet as the adhoc device set ip address 169 254 1 1 setip netmask 255 255 0 0 setip dhcp 0 Be sure to save your configuration then upon reboot the module will be in adhoc mode To associate with an adho
34. dows XP From here view available networks and select the name of the adhoc network Note Once associated with the adhoc 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 in the network settings TCP IP Properties menu Once associated with the adhoc network you can open a connection or telnet window as you would with an enterprise connection Note The module does not support adhoc and enterprise network modes simultaneously 14 Analog Sensor Capability The WiFly GSX has 8 analog interface inputs that can be sampled using the show q command The hardware specifications on the analog input is Input voltage range 0 400mV Resolution 14 bits 12uV Accuracy uncalibrated 5 calibrated using precision voltage or resistor measurement 0 01 See the WiFly GSX RN 131G data sheet for more details To read a sensor pin send the following command show q 0 7 send show q chan where the channel is from 0 to 7 The value returned will be 8xxxxx the value is a sample voltage in microvolts on the channel you request with the 8 in front as a start marker You can also sample multiple channels by using a Bit Mask show q Oxi mask where mask is a bit mask of the channels For example to read channels 0 1 and 7 send show q 0x183 The return values are the format 8 chan0 8 chani1 8 lt chan7 gt r n www
35. dress does not use the DNS and backup DNS if the connection to the primary IP address fails Connecting using DNS if the IP address if 0 e UART hardware flow control not yet functional e TCP_NODELAY added as default This improves performance as the stack no longer waits for each TCP packet to be ack ed since many Microsoft systems only ack every OTHER packet www rovingnetworks com support rovingnetworks com Phone 408 395 6539 39 D RUIN AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 e Set ip proto is now a bitmask It is possible to have both UDP and TCP bits set If TCP enabled UART RX data will be forwarded via TCP if a connection exists Otherwise data will forward over UDP if UDP bit is set As of firmware version 2 07 6 04 2009 Command changes e set wlan antenna lt 0 or 1 gt command has been changed to set wlan extant lt 0 or 1 gt e set wlan auth lt value gt command has been added e set wlan hide will hide the WEP key or WPA passkey To unhide you set key or passphrase again e setip proto 8 TCP client mode no listen server only outbound connections can be made e Bug fixes e Adhoc mode client associates properly e You can now enter the WPA passkey after setting the SSID previously the pass key had to be entered first for the security hash to be correctly created e Auto join now stops after 3 retries Features e show net now displays the wifi TX rate and correctly displays a
36. econds Setting this value to 0 will disable forwarding based on time delay sets the IP address of the DNS sever This is auto set when using DHCP and needs to be set in STATIC IP or Auto IP modes sets the name of the host for TCP IP connections sets the name of the backup host for TCP IP connections sets the name of the file transferred when issuing the ftp u or ftp g commands sets the ftp server IP address sets the ftp server remote port number default is 21 sets the ftp user name for accessing the FTP server sets the ftp password for accessing the FTP server 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 www rovingnetworks com support rovingnetworks com Phone 408 395 6539 9 D RUINE AIN WIRELESS FOR LESS WiFly GSX set ip backup lt addr gt set ip dchp lt value gt set ip flags lt value gt set ip gateway lt addr gt set ip host lt addr gt set ip localport lt num gt set ip netmask lt value gt set ip protocol lt value gt WiFlyGSX um pdf 11 11 2009 sets a secondary host IP address enable disable DHCP mode If enabled the IP address gateway netmask and DNS server are requested and set upon association with access point An
37. et wlan key or set wlan passphrase command Default 0 don t hide sets the 128 bit WEP key If you are using WPA or WPA2 you should enter a pass phrase with the set wlan passphase command Key must be EXACTLY 13 bytes 26 ASCII chars Data is expected in HEX format Ox should NOT be used here Example setw k 112233445566778899AABBCCDD Hex digits 9 can be either upper or lower case The Wifly GSX only supports open key mode 128 bit keys for WEP WEP 128 shared mode is not supported as it is known to be easily compromised and has been deprecated from the WiFi standards www rovingnetworks com support rovingnetworks com Phone 408 395 6539 14 D RUINE AIN WIRELESS FOR LESS WiFly GSX set wlan linkmon lt value gt set wlan mask lt value gt set wlan num lt value gt set wlan phrase lt string gt set wlan rate lt value gt WiFlyGSX um pdf 11 11 2009 sets the link monitor timeout threshold If set to 1 or more WiFly will scan once per second for the AP it is associated with The value is the threshold of failed scans before the WiFly declares AP is Lost de authenticates The WiFly will retry the association based on the join policy variable A value of 5 is recommended as some APs will not always respond to probes Default is 0 disabled Without this feature there is no way to detect an AP is no longer present until it becomes available again if ever sets the wlan channel mask u
38. ettings using the save command to store the configuration data otherwise it will not take effect upon reboot or reset Multiple configurations can be stored by using the save filename command and these configurations can be loaded using the load filename command www rovingnetworks com support rovingnetworks com Phone 408 395 6539 7 D RUINE IN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 5 SET Commands These commands begin with set There are 6 major categories ADHOC controls the adhoc parameters BROADCAST controls the broadcast hello heartbeat UDP message COMM communication and data transfer timers matching characters DNS DNS host and domain FTP FTP host address and login information IP IP settings OPTION optional and not frequently used parameters SYS system settings such as sleep and wake timers TIME timer server settings UART serial port settings such as baudrate and parity WLAN wireless interface settings such as ssid chan and security options 5 1 ADHOC Parameters set adhoc beacon lt ms gt sets the adhoc beacon interval in miliseconds Default is 100 set adhoc probe lt num gt sets the adhoc probe retry count Default is 5 This is the number of consecutive probe responses that can be lost before declaring ADHOC is lost and disabling the network interface 5 2 BROADCAST Parameters set broadcast address lt addr gt sets the address to which t
39. he UDP hello heartbeat message is sent The default address is 255 255 255 255 set broadcast interval lt value gt sets the interval at which the hello heartbeat UDP message is sent Interval is specified in seconds The value is a mask that is compared to a free running seconds counter For example if interval 0x7 a packet will be sent every 8 seconds The minimum interval value is 0x01 every 2 seconds and max value is Oxff every 256 seconds Setting the value to zero turns off the UDP broadcast The default interval is 7 set broadcast port port sets the port number to which the UDP hello heartbeat message is sent The default port is 55555 5 3 COMM Parameters set comm close string sets the ASCI string that is sent to the local UART when the TCP port is closed If no string is desired use 0 as the lt string gt parameter Max string length is 32 characters Default is CLOS set comm open lt string gt sets the string that is sent to the local UART when the TCP port is opened If no string is desired use 0 as the lt string gt 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 lt string gt parameter Max string length is 32 characters Default is HELLO www rovingnetworks com support rovingnetworks com Phone 408 395 6539 8 A set comm idle
40. ime is still valid and the WiFly is associated to the same AP DHCP caching does not survive a power cycle or usage of the hardware reset pin ARP table cache The set ip flags 0x20 command is now used to enable ARP table caching Once caching is turned on any ARP table settings are backed up to NVRAM before sleep Upon waking from sleep the ARP cache is loaded ARP table caching does not survive a power cycle or usage of the hardware reset pin e DNS host address cache The set ip flags 0x10 command enables DHCP address caching Once caching is turned on the initial DHCP settings are stored in NVRAM This is www rovingnetworks com support rovingnetworks com Phone 408 395 6539 37 D RUINE AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 most useful in battery systems when using the sleep mode Upon waking from sleep as long as the DHCP lease time is valid and the WiFly is associated to the same AP DNS caching does not survive a power cycle or usage of the hardware reset pin UART break detect enables sleep The command set uart mode 8 enables break detection on the UART RX pin Once Break is detected a consistent low value on RX pin WiFly waits for the UART RX pin to return to a high value before going to sleep UART NOECHO mode The command set uart mode 1 is now used to disable echoing of RX chars while in command mode This is useful when embedded controllers are used to send commands to the module NOTE
41. iption To exit command mode type exit cr NOTE You can enter command mode locally over the UART interface at any time when not connected and also when connected if the appropriate settings are enabled Remote configuration using ADHOC mode Using adhoc mode to configure the device eliminates the need for the module to be associated with a network access point In adhoc mode the module creates it own on demand network that you can connect to via your computer like you would to any other network To enable adhoc mode via hardware set PIO9 high 3 3V at power up On the RN 134 PIOO is on the J1 jumper block When the module powers up with PIOO9 set high the WiFly module creates an adhoc network with the following SSID WiFly GSX XX where XX is the final two bytes of the devices MAC address www rovingnetworks com support rovingnetworks com Phone 408 395 6539 5 DY NUN COMIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 Channel 1 DHCP OFF IP address 169 254 1 1 Netmask 255 255 0 0 With the adhoc jumper in place the above settings override the current saved configuration settings From your computer connect to the WiFly GSX XX network This is an open network which does not require a pass phrase or pass key Note currently the WiFly only supports OPEN mode for creating adhoc networks NOTE It may take a couple of minutes for Auto IP in Windows to assign an IP address and connect to the networ
42. irects IP packets In many cases the AP is also a router and will forward packets from the local network to other networks and the internet It is also very common for the AP to be running a DHCP server which tracks and assigns IP addresses Adhoc is considered a point to point network in that each WiFi device is linked directly to every other WiFi device on the Adhoc network There is no access point All WiFi devices on the adhoc network participate in keeping the network alive and each keeps track of the other active devices on the network by sending and receiving beacon and probe packets In most cases IP addresses are assigned through Auto IP although one of the WiFi devices can be configured as a DHCP server 13 2 Configuring adhoc mode The WiFly GSX module can be configured to setup an ni x adhoc network This mode is useful for point to point Pe Edt Seip Comro Window Hep communications The WiFly device is in Adhoc mode the device looks like access point for other WiFi devices to join wlan join 4 wlan ssid my_adhoc_net Note currently the WiFly only supports OPEN mode for wlan chan 1 creating adhoc networks p aioe net Adhoc mode can be set via hardware or software Hmm commands i To enable adhoc mode via hardware Passehrase rubyair lt 2 07 gt ip address 169 254 1 1 Set PIO9 high 3 3V at power up On the RN 134 PIO9 09K ip netmask 255 255 0 0 is on J1 of the jumper block When the module powers egies B up in a
43. k You can check IP address of your Windows computer by running the ipconfig command in the command window If connected this command will show you the IP address and net mask for your computer The IP address assigned by Auto IP must be on the subnet 169 254 1 X otherwise the WiFly GSX module will not be accessible NOTE If your machine has both a wireless and wired interface hardware you will need to disable the wired LAN interface hardware before connecting to the adhoc network If the wired LAN is enabled the computer will assign an IP address that is not on the same subnet as the WiFly module Once connected and you have a good IP address telnet into the WiFly module on port 2000 telnet 169 254 1 1 2000 You should see the response HELLO You can now enter command mode and configure the module www rovingnetworks com support rovingnetworks com Phone 408 395 6539 6 D RUINE HES WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 4 WiFly Command Reference 4 1 Command Syntax Commands begin with a keyword and have optional additional parameters generally space delimited Commands and options are case sensitive Hex input data can be upper or lower case String text data such as SSID is also case sensitive The first command is fully decoded and must be complete Other command parameters can be shorted by using only the first character For example set uart baudrate 115200 is valid set uart b 115200 is also
44. kets the value should be increased In TCP Client mode the auto conn timer is used as a connect out timer If set the device will automatically attempt a connection when the timer expires set sys autoconn lt secs gt In TCP Client AND TCP Server mode there is also a disconnect timer set comm idle lt secs gt sets the idle disconnect timer This causes a disconnect if no transmit or receive data is seen www rovingnetworks com support rovingnetworks com Phone 408 395 6539 20 D RUIN AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 10 2 Wake on Sensor Input SENSE 0 to 3 inputs are available to wake the module from sleep SENSE 0 to 3 pins 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 example is enabled pulling the SENSE1 pin to GROUND will wake the device To enable these inputs to wake the module use the command set sys trigger lt value gt The value is a bit mapped setting To wake on sensor pin 2 use set sys trig 4 for example Setting the value to 0 disables all sensors pins Sensor inputs are rated 1 2VDC maximum You must use a resistor divider when driving a sensor pin from the other 3V pins such as RX A resistor divider network with a minimum of 24K in series and 10K to ground from the UART RX or CTS pin should be used WARNING Under no conditions should the voltage on any
45. ll be in the format 8xxxxx where xxxxx is voltage in microvolts sampled on the channel you request with the 8 in front as a start marker show q 0x1 lt mask gt Displays multiple analog interface values at once The channels displayed is controlled by a bit mask which is proceeded by a 0x1xx where xx mask is the bit mask of the channels For example to read channels 0 1 and 7 send show q 0x183 Which returns 8 lt chan0 gt 8 lt chani gt 8 lt chan7 gt r n www rovingnetworks com support rovingnetworks com Phone 408 395 6539 17 D RUIN AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 8 ACTION Commands close exit factory RESET join lt ssid gt join lt num gt leave open lt addr gt lt port gt 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 disconnect a TCP connection exit command mode Exit command mode EXIT will be displayed Loads factory defaults into the RAM configuration Note that 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 joins the network lt ssid gt If network is security enabled you must set the pass phrase with the set wlan phrase command
46. nction so IO can be used as GPIO 2 GPIO 6 output Disable LED function so IO can be used as GPIO 3 Not Used 4 GPIO 4 output HIGH once associated authenticated and have IP address 5 GPIO 5 input Set HIGH to trigger TCP connection LOW to disconnect 6 GPIO 6 output HIGH when connected over TCP LOW when disconnected NOTE Bits 0 3 are mutually exclusive with the bits 4 6 i e 0x77 is an illegal value If the LEDs are disabled using bits 0 1 2 above you can then use the show i command to read these GPIO www rovingnetworks com support rovingnetworks com Phone 408 395 6539 23 D RUINE IN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 lt 2 09 gt show i will return Port 30 You can also use the set sys output lt value gt lt mask gt to drive GPIO output pins to HIGH or LOW mask is optional default sets all the pins 10 5 3 Controlling connections with GPIO In embedded applications it is useful to monitor and control the status of the TCP IP connection This can be done by using the alternate function for GPIO 5 and GPIO 6 With the alternate function for these GPIO set the module will connect to the stored remote host IP address and port when GPIO 5 is driven high and disconnect when driven low The TCP IP connection status can be monitored by reading GPIO 6 high connected low not connected Here is how to set the WiFly module to connect using GPIO 5 and GPIO 6 2 09 set i
47. p host addr set the IP address of the remote host 2 09 set ip remote port set the IP port of the remote host 2 09 set sys iofunc Ox60 set alternate function for GPIO 5 and GPIO 6 2 09 save 2 09 reboot the module must be rebooted for the alternate settings to take effect On the remote host run your application or other software that opens and listens on the port Connect GPIO 5 to your embedded processor or other control signal When GPIO 5 is driven high a connection will be attempted When drive low the connection will be closed Be sure to not to drive the GPIO with more that 3 3 VDC or permanent damage to the module will occur If the connection to the remote host is successful GPIO 6 will go high If the COMM OPEN and REMOTE strings are set you should see the OPEN messages on the UART and the HELLO at the remote host 10 6 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 is used to control these printouts set sys printlvl value sets additional print functions Bit mapped value Bit Function 1 Print start up messages showing progress of association dhcp etc Once the configuration has been checked this can then be turned off so that these messages do not interfere with the data www rovingnetworks com support rovingnetworks com Phone 408 395 6539 24 DY
48. pped value Bit Position Function 0 NOECHO disables echo of RX data while in command mode 1 Reserved for future RAW mode protocol 2 Reserved for future Multipoint protocol 3 Enable Sleep on RX BREAK signal set uart tx lt 0 1 gt Disables or enables the TX pin PIO10 of the UART Disable will set PIO10 to an INPUT with weak pulldown NOTE Due to an issue in the UART hardware the UART does not support even or odd parity 5 11 WLAN Parameters set wlan auth lt value gt Sets the authentication mode Not needed unless using auto join mode 2 i e set wlan join 2 Note During association the WiFly module interrogates the Access Point and automatically selects the authentication mode The current release of Wifly firmware supports these security modes e WEP 128 open mode only NOT shared mode e WPA2 PSK AES only e WPA1 PSK TKIP only e WPA PSK mixed mode some APs not all are supported Value Authentication Mode 0 Open Default 1 WEP 128 2 WPA1 3 Mixed WPA1 amp WPA2 PSK 4 WPA2 PSK 5 Not Used 6 Adhoc Join any Adhoc network www rovingnetworks com support rovingnetworks com Phone 408 395 6539 13 D RUINE AIN WIRELESS FOR LESS WiFly GSX set wlan channel lt value gt WiFlyGSX um pdf 11 11 2009 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 channel
49. prior to issuing the join command join a network from the scan list lt num gt is the entry number in the scan list that is returned from the scan command If network is security enabled you must set the pass phrase with the set wlan phrase command prior to issuing the join command disconnects from currently associated Access Point 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 number lt addr gt can also be a DNS hostname and will be resolved if entered Ping lt g h i addr gt lt num gt ping remote host Default sends 1 packet Optional lt num gt sends ping g ping h ping i ping 0 reboot lt num gt pings at 10 per second Ping 10 20 20 12 10 pings IP address 10 times pings the gateway the gateway IP address is loaded if DHCP is turned on otherwise it should be set with the set ip gateway lt addr gt command pings the stored host IP address the host IP address can be set with the set ip host lt addr gt command pings a known Internet server at www neelum com by first resolving the URL proves that DNS is working and proves the device has internet connectivity terminates a ping command forces a reboot of the device similar to power cycle www rovingnetworks com support rovingnetworks com Phone 408 395 6539 18 DY NUN COMIN WIRELESS FOR LESS WiFly GSX
50. provide network connection and data status Condition PIO6 Red LED PIO5 Yellow LED PIO4 Green LED ON solid Not Associated Connected over TCP Fast blink Rx Tx data transfer No IP address Associated No Slow blink Internet IP address OK Associated Internet OFF OK 3 Configuration 3 1 Entering Command Mode Upon power up the device will be in data mode To enter command mode exactly the three characters must be sent The device will respond with CMD While in command mode the device will accept ASCII bytes as commands To exit command mode send exit cr The device will respond with EXIT Parameters such as the SSID channel IP address Serial Port settings and all other settings can be viewed and configured in command mode ASCII characters can be sent through a terminal emulator connected to the UART or via Telnet When using the UART communications settings should match the settings used when RN 131g connects for example the default is 9600 baudrate 8 bits No Parity 1 stop bit and hardware flow control disabled Run your favorite terminal emulator Roving Networks provides a free one Teraterm at http www rovingnetworks com support teraterm zip Type on in the terminal 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 descr
51. r which will shut down the chip when the voltage drops below 2 0 VDC Warning Do NOT exceed the voltage ratings on the 3 3V pins damage to the module will result Notes 1 The Sensor inputs SENSO 7 are extremely sensitive to over voltage Under no conditions should these pins be driven above 1 2VDC Placing any voltage above this will permanently damage the radio module and render it useless 2 Placing 5VDC or any voltage above 3 3Vdc into the VDD pins of the module will permanently damage the radio module 3 Placing 3 3Vdc into the PIO s while they are set as outputs will permanently damage the module The failure mode is a short across GND and VCC 2 2 Reset Reset is active LOW and is optional does not need to be connected The reset pin is 3 3V tolerant and has an internal pull up of 100K to the VBATT 2 3 UART Connect a common ground when using the external TX RX inputs For a 3 wire DB 9 interface connect tx rx gnd only Factory default is hardware flow control disabled CTS and RTS are not required When using a 5 0 VDC Input PIO s and UART input pins require a resistor divider A suggestion is 10K in series with 20k to ground PIO s are 0 3 3 VDC not 5 0 VDC tolerant www rovingnetworks com support rovingnetworks com Phone 408 395 6539 4 D RUINE AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 2 4 Status Indictors PIO 4 5 and 6 are active high and can be connected to external LEDs to
52. ry and redundancy If the first IP host address connection fails the backup IP will be used if set If this fails or is not set then the first DNS name will be used If this fails or is not set then the Backup DNS name will be used To set the backup IP address use set ip backup lt address gt To set the backup DNS name use set dns backup lt string gt www rovingnetworks com support rovingnetworks com Phone 408 395 6539 29 D RUINE AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 12 Firmware Upgrade over FTP WiFly module has a file system for storing firmware web pages and config files Use the Is command to view files File size is displayed in sectors and the active boot image is identified in the final message FL SIZ FLAGS 11 18 3 WiFly_GSX 2 05 29 1 10 config 190 Free Boot 11 Backup 0 Multiple firmware images and config files can be stored on the module file system FTP Upload and Upgrade WiFly contains a built in FTP client for getting files and updating the firmware The client uses passive mode FTP which allows operation thru firewalls and the Internet To upload the latest released firmware from Roving Networks the following setting are required FTP username roving 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 lt string gt
53. s set in the channel mask set wlan ext antenna 0 1 determines which antenna is active use 0 for chip antenna 1 for set wlan join value set wlan hide 0 1 wlan key value UF L connector Default 0 Only one antenna is active at a time and the module must be power cycled after switching the antenna sets the policy for automatically joining associating with network access points This policy is used when the module powers up including wake up from the sleep timer Value Policy 0 Manual do not try to join automatically 1 Try to join the access point that matches the stored SSID passkey and channel Channel can be set to 0 for scanning Default 2 Join ANY access point with security matching the stored authentication mode This ignores the stored SSID and searches for the access point with the strongest signal The channels searched can be limited 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 Hides the WEP key and WPA passphrase When set displaying the wlan settings shows for these fields To unhide the passphrase or passkey re enter the key or passphrase using the s
54. sed for scanning channels with the auto join policy 1 or 2 used when the channel is set to 0 Value is a bit map where bit O channel 1 Input for this command can be entered in decimal or hex if prefixed with Ox Default value is Ox1FFF all channels sets the default WEP key to use 1 4 is the valid range Example set wn 2 sets the default key to 2 sets the passphrase for WPA and WPA2 security modes 1 64 chars The passphrase can be alpha and numeric and is used along with the SSID to generate a unique 32 byte Pre shared key PSK which is then hashed into a 256 bit number Changing either the SSID or this value re calculates and stores the PSK If exactly 64 chars are entered it is assumed that this entry is already an ASCII HEX representation of the 32 byte PSK and the value is simply stored For passphrases that contain spaces use the replacement character instead of spaces For example my pass word would be entered my pass word The replacement character can be changed using the optional command set opt replace char Example set w p password sets the phrase sets the wireless data rate Lowering the rate increases the effective range of the WiFly GSX module The value entered is mapped according to the following table Value Wireless Data Rate 0 1 Mbit sec 1 2 Mbit sec 2 5 5 Mbit sec 3 11 Mbit sec 8 9 7 Invalid 6 Mbit sec 9 Mbit sec 10 12 Mbit sec 11 18 Mbit sec 12 24 M
55. sets the network mask If DHCP is turned on the net mask is assign and overwritten during association with the access point sets the IP protocol Value is a bit mapped setting To connect to the WiFly GSX module over TCP IP such as Telnet the device must have the use the TCP Server protocol bit 2 set To accept both TCP and UDP use value 3 bit 1 and bit 2 set www rovingnetworks com support rovingnetworks com Phone 408 395 6539 10 D RUINE IN WIRELESS set ip remote lt value gt FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 Bit Position Protocol 0 UDP 1 TCP Server amp Client Default Secure only receive packets with IP address 2 matches the store host IP 3 TCP Client only 4 Future Use sets the remote host port number 5 7 OPTIONAL Parameters set opt jointmr lt msecs gt set opt replace lt char gt set opt deviceid lt string gt set opt password lt string gt Join timer is the time in milliseconds default 1000 the join function will wait for the an access point to complete the association process This timer is also the timeout for the WPA handshaking process replacement character for spaces The replacement character is used when entering SSID and pass phrases that include space This is used by the WiFly GSX command parser only Each occurrence of the replacement character is changed into a space The default is 0x24 Configurable Device ID
56. tage Humidity time of and Settable 7 day datecode DEVICEID bytes size 0 5 6 MAC adddress of AP that we are Associated with for location 6 1 Channel we are on 7 1 RSSI 8 2 local TCP port for connecting into the Wifly device 10 4 RTC value MSB first to LSB last 14 2 Battery Voltage on Pin 20 in millivolts 2755 for example 16 2 Digital sensor option Temperature and humidity 18 13 ASCII time 32 26 Version string with date code 60 32 Device ID string 92 2 Resistance reading of Sensor7 RTD temperature option www rovingnetworks com support rovingnetworks com Phone 408 395 6539 26 DY NUIT COMIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 11 Joining Networks and Making Connections Configuring the module to make connections is a two set process First you need to associate with a network access point and second you need to open a connection To configure the module over the WiFi link is a chicken and egg problem The module must be associated to a network to connect to it and program the network settings This problem can be solved by configuring the module from the UART or over the air using adhoc mode If configuring the module using adhoc mode see section 13 Once in adhoc 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 wi
57. th that deveice The default baud rate is 9600 8 bits no parity 11 1 Associate with a network access point From within the terminal window put the WiFly GSX module into command mode by typing in the terminal window You should get CMD back confirming you are in command mode Type show net to display the current network settings Now finding all available networks with the scan command mM 00 B scan 2 03 SCAN Found 6 Num SSID Ch RSSI Sec MAC Address Suites 1 pevinss 01 64 Open OQ 1c df 4f 45 9e 104 4 2 NETGEAR O1 58 Open 00 22 3f 6b 95 42 o4 o 3 7FX12018434 06 73 EP 00 18 3a 7e 71 d7 1104 o 4 TheLoft O6 51 WPAZPSK 0 0c 41 82 54 19 AESM AES 1100 5 airlink 11 11 53 WPAv1 0 18 02 70 7e e8 TKIPM TKIP 3100 ac 6 sensor 11 pen 0 1c df cc aa d8 100 1 If the network you re connecting to is open you can simply use the join command to associate with the access point From the scan list above you can see that roving1 is an open network access point Type Join roving1 to associate with an access point www rovingnetworks com support rovingnetworks com Phone 408 395 6539 27 D RUIN AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 lt 2 3 gt join roving1 Auto Assoc paving chan 1 mode OPEN SCAN OK 2 03 Associated DHCP in_1ms Renew 86400 s IF is UP You could also have specified the roving1 access point by using the command join 1 If the access point is se
58. uthenticated state and shows authentication mode that was used e ping h will ping the stored host address If no host address stored will attempt to use the DNS hostname e pingi command added to ping a known Internet server www neelum com by first resolving the address proving that DNS is working and then pinging the server This proves the device has internet connectivity e UDP secure mode will only forward packets to the UART that match from the host address TCP secure mode will only allow connection from and IP that matches host address As of firmware version 2 06 e Web server interface is not available Configuration over telnet and the UART e UART flow control is not functional The module may drop data at high data rates e Sensor pins for reading analog signals are not supported e Wake on UART RXD or CTS is not working on current revision REV2 of the SuRFBoard e The fast autosleep timer for UDP mode is not implemented Fixes since fimware version 2 05 e Configuration over Telnet not functional e Error checking the correct number of parameters www rovingnetworks com support rovingnetworks com Phone 408 395 6539 40
59. vingnetworks com support rovingnetworks com Phone 408 395 6539 11 D RUIN AIN WIRELESS FOR LESS WiFly GSX WiFlyGSX um pdf 11 11 2009 set sys iofunc lt value gt set sys mask lt mask gt set sys printlvl value sets the IO port alternate functions Bit mapped value For more details see section 10 5 sets the IO port direction mask Bit mapped value For more information see section 10 5 sets numerous print functions 0 quiet 1 connect information Default is 1 set sys output value mask sets output PIO pins to HIGH or LOW Bit mapped value set sys sleep secs set sys trigger value set sys wake secs Optional mask only sets a subset of pins sets the sleep timer O disables NOTE If not using Sensor pins to wake the module be sure to set the wake timer before issuing the sleep timer or the module will not wake up See section 10 1 for more details on using system timers sets the sensor input s to wake on 0 3 Bit mapped value O0 disables sets the auto wake timer O disables See section 10 1 for more details on using system timers 5 9 TIME Server Parameters set time address addr set time port num set time enable value 5 10 UART Parameters set uart baud rate set uart instant rate sets the time server address sNTP servers sets the time server port number Defaults to 123 which is almost always the sNTP server port Enable
60. y current IP values are overwritten DHCP Cache mode can reduce the time it takes the module to wake from deep sleep thus saving power In cache mode the lease time is checked and if not expired the module uses the previous IP settings If the lease has expired the module will attempt to associated and use DHCP to get the IP settings DHCP cached IP address does not survive a power cycle or reset Mode Protocol 0 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 1 2 3 4 Reserved for future use Set IP related advanced functions Value is a bit mapped flag register Default 0x7 it Function TCP stack copies RX buffer before sending Bypass Nagle algorithm and use TCP_NODELAY TCP application level single retry enabled RETRY multi retries 4 times DNS host address caching enabled ARP table caching enabled DIU RIWIN H O Reserved N 1 CJ nen Reserved sets the gateway IP address If DHCP is turned on the gateway IP address is assign and overwritten during association with the access point 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 lt addr gt sets the local port number
61. ycle again one minute later set ip host X X X X set up the IP address of the remote machine set ip remote_port num set up the IP port of the remote machine set sys autoconn 1 automatically connect out after READY set com idle 5 disconnect after 5 seconds with no data activity set sys sleep 2 sleep 2 seconds after connection is closed set sys wake 60 wakeup after 1 minute of sleeping save 11 4 Controlling Connections using PIO5 and PIO6 PIO5 can be used to control the TCP connection Once configured with the set system IO command the module will attempt to make a connection to the stored IP and PORT address when set high and will disconnect when set low set sys io 0x20 configures PIO5 to connect disconnect You can monitor the connection status by reading PIO6 High indicates an open connection low indicates no connection Use the command set system IO to enable PIO6 set sys io 0x40 configures PIO6 to represent the connection status 11 5 Using DNS settings WiFly contains a built in DNS client If the IP address of the host is not specified i e it is set to 0 0 0 0 DNS will be used WiFLY will automatically attempt to resolve the host address stored with the command set dns name lt string gt sets the name of the host for TCP IP connections Once the address is resolved an automatic connection will be made 11 6 Utilizing the Backup IP address connect function WiFly contains a feature for auto ret
Download Pdf Manuals
Related Search
Related Contents
14 June, 2012 Tender Number: ETC/CS/19/12 Title: DESIGN Cabstone 95122 soundbar speaker :~~!I密 Attention aux tuyaux ! Globalmediapro.com-RAIDON ST7610-4S-U5 Bedienungsanleitung Wäschetrockner Manual do Utilizador - Instituto Politécnico do Porto Montageanleitung Copyright © All rights reserved.
Failed to retrieve file