WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 9/16/2010
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
•
~ 39 ~
like a data-pipe, so the UART data will be sent over the Wi-Fi link via the UDP protocol (in this case) and
the data coming over the Wi-Fi link (via UDP protocol in this case) will be sent to the UART.
11.2.
UDP Auto Pairing
UDP auto pairing feature temporarily stores the Host IP address of the first remote device that send a UDP
packet into the module. This host IP address is stored in the RAM which will not survive a sleep or power
cycle.
This feature allows the WiFly module to echo back to any client that sends a UDP packet. To use this
feature, the host IP addresses and set the ip flags.
set ip host 0.0.0.0
set ip flags 0x80
11.3.
UDP Retry
This feature adds a level of reliability to the UDP protocol without adding the complete overhead of TCP
protocol. When enabled, the module waits for a response on every UDP packet sent, (any UDP packet
coming back in). If the response packet is not received by approximately 250 ms, the same UDP packet is
sent out.
This continues until either
• A UDP response is seen, or
• A new UDP packet is sent from the module and is acknowledged
To enable this feature, use
set ip flags <value>
11.4.
Using the UDP Broadcast function
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. For example, 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.