WiSnap User Manual 4.41 05282015-ML
Page 52
IP address assigned
Client MAC address
Remaining lease time (in seconds)
Host name
show lease
command example output:
<2.45> show lease
1.2.0.10.1a:2b:3c:4d:5e:6f,86392,mydevice-12345678f
1.2.0.11,f6,e5,d4,c3,b2,a1,80153,*
1.2.0.12,00:00:00:00:00:00,0,
1.2.0.13,00:00:00:00:00:00,0,
1.2.0.14,00:00:00:00:00:00,0,
1.2.0.15,00:00:00:00:00:00,0,
NOTE:
In AP mode, the module can assign a DHCP lease to 7 clients. However, not all clients report the host name. In
this case, the module reports that name as an asterisk (*).
Once a client is associated to the network, it can open a TCP connection to the module. After successfully opening a TCP
connection, the client receives a
*HELLO*
message. The module prints
*OPEN*
on the UART, indicating an open TCP
connection.
Check for the Last Connected Device over TCP
In some cases, it is beneficial to know the IP address of the last device that connected to the module over TCP or the last device
to which the module connected over TCP. To find this address, use the
show z
command. This command does not survive a
power cycle or reboot.
Upon power up, if no device is connected over TCP, the show z command returns
0.0.0.0
.
View Associated Devices
To see a list of devices associated with the module, use the
show associated
command. The command output is in the
following format with commas delimiting the fields:
Connection
number
Host MAC
address
Received
byte count
Transmitted
byte count
Seconds since last packet
received
show associated
command example output:
<2.45> show associated
1,f0:cb:a1:2b:63:59, 36868,0,7
2.00:24:8c:31:e5:27:76168,0,2
3,98:4b:6b:e0:0f,1992,0,0
<2.45>
You can use the
Seconds since last packet received
output to check for stale connections.
Enable the Link Monitor
AP mode supports a link monitor feature. The Link monitor is a timer (in seconds) that checks to see if any packets are received
from an associated device. When the timer expires, the AP module de- authenticates the client(s).
You enable the link monitor using the
set wlan link
<value>
, where
<value>
is the link monitor timer in seconds.
NOTE:
It is recommended that you set the link monitor timer value to at least 300 seconds to avoid de-authenticating
clients frequently.
Route Data between Clients