beautypg.com

Wifi module, Ap configuration, Dhcp mode – ThingMagic Mercury xPRESS Platform v1.7 User Manual

Page 49: Static ip (xpress), Host configuration, Tcp server and client, Tcp client only, Udp client

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

49

AP
Configuration

WIFLY_WLAN_SSID

"Tenda"

WIFLY_WLAN_AUTH

WIFLY_AUTH_MODE_WPA2PSK

WIFLY_WLAN_PASSPHRASE

"Qss rfid@14"

Required for Auth type = WPA

WIFLY_WLAN_WEP_KEY_NUMBE

R

1

Required for Auth type = WEP

WIFLY_WLAN_WEP_KEY

"112233445566778899AABBCCDD"

Required for Auth type = WEP

DHCP Mode

WIFLY_DHCP_MODE

WIFLY_DHCP_ON

if set to WIFLY_DHCP_ON , need to get

xPRESS module IP from the debug

console logs.

Static IP
(xPRESS)

WIFLY_MODULE_IP_ADDRESS

"192.168.0.100"

Required if WIFLY_DHP_OFF

WIFLY_LOCAL_PORT_NUMBER

49152

since this port number may increment at

run time, see debug logs.

The best practice is to use port number

within the range assigned for "Dynamic,

private or ephemeral ports". http://

en.wikipedia.org/wiki/Well-

known_ports#Dynamic.2C_private_or_e

phemeral_ports

WIFLY_SUBNET_MASK

"255.255.255.0"

Required if WIFLY_DHCP_OFF

WIFLY_GATEWAY_ADDRESS

"192.168.0.1"

Required if WIFLY_DHCP_OFF

Host
Configuration

WIFLY_REMOTE_HOST_IP_ADDR

ESS

"192.168.0.121"

Modify to use your host where TCP

server/client or UDP server is running

WIFLY_REMOTE_HOST_PORT_N

UMBER

60001

Modify to use your host where TCP

server/client or UDP server is running.

The best practice is to use port number

within the range assigned for "Dynamic,

private or ephemeral ports". http://

en.wikipedia.org/wiki/Well-

known_ports#Dynamic.2C_private_or_e

phemeral_port

s

TCP server
and client

WIFLY_IP_MODE

WIFLY_TCP_SERVER_CLIENT

change to

WIFLY_TCP_SERVER_CLIENT

TCP client
only

WIFLY_IP_MODE

WIFLY_TCP_SERVER_CLIENT

change to

WIFLY_TCP_SERVER_CLIENT or

WIFLY_TCP_CLIENT

UDP client

WIFLY_IP_MODE

WIFLY_TCP_SERVER_CLIENT

change to WIFLY_UDP