beautypg.com

ThingMagic Mercury xPRESS Platform v1.7 User Manual

Page 51

background image

WiFi Module

A D I V I S I O N O F T R I M B L E

Using the Optional Modules

51



After WIFLY_init(), init_output() calls WIFLY_join() to initialize the RN-171 by

sending a sequence of ASCII commands.

a. WIFLY_setupWlan() sets the wlan settings like SSID, Auth type and Password

b. WIFLY_setupIP() sets the DHCP mode and, if DHCP is configured as OFF, it

also sets Static IP settings like IP address, Netmask, Gateway and DNS
address.

c. WIFLY_setupProtocol() sets the protocol mode and also sets the remote host

settings which includes DNS lookup for obtaining the host IP address using
hostname.

d. WIFLY_setupWlanLinkmonitor() sets the link monitor timeout threshold which

represents the number of failed scans before the RN-171 declares a Lost-AP
state and de-authenticates. It also sets the RSSI threshold level.

e. WIFLY_setupTCPperformance() sets the flush timer and flush size. These are

used for optimizing the TCP performance where flush is used to minimize
latency and TCP/IP overhead and flush timer may be assigned a large
number to avoid fragmentation.

f. WIFLY_setupMonitorGPIO() sets the GPIO pins configuration to use for

monitoring functionality.

g. WIFLY_setupPowerManagement() sets the power management related

configuration. It configures transmit power, auto connect timer, idle timer,
sleep timer and wake up timer.

h. WIFLY_setupFlowControl() sets the flow control enable and changes the baud

rate from the default baud rate ie, 9600. At lower baud rates (less than 115K),
the system can send data over TCP/IP without flow control.

i. WIFLY_setupAssociate() sets the join policy as “automatic” and then tries to join

with the stored network AP.