www.rovingnetworks.com
Version 1.0r 9/21/2012
44
RN -W IFLYCR -U M
Using AP Mode
The following sections describes how to use AP mode, including connecting to the module, checking for the last device
connected over TCP, viewing associated devices, enabling the link monitor, and routing data between clients.
Connect to the Module
Once the module boots up in AP mode, any client device can associate with the network the module is broadcasting. Once
associated, the module’s DHCP server assigns an IP address to the client device.
The default lease time is 1 day i.e., 86,400 seconds. You can configure the lease time using the
set dhcp lease
<
value
>
command, where <
value
> is the time in seconds. To view a list of devices associated with the module, use the
show lease
command. The command output is in the following format with commas delimiting the fields:
IP address assigned
Client MAC address
Remaining lease time (in seconds)
Host name
Figure 7 shows example output from the
show lease
command.
Figure 7. Show Lease Command Example Output
<2.42> show lease
1.2.3.10,f0:cb:a1:2b:63:59,153,*
1.2.3.11,00:00:00:00:00:00,0,
1.2.3.12,00:00:00:00:00:00,0,
1.2.3.13,00:00:00:00:00:00,0,
1.2.3.14,00:00:00:00:00:00,0,
1.2.3.15,00:00:00:00:00:00,0,
1.2.3.16,00:00:00:00:00:00,0,
<2.42>
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 the name as an asterisk (*).
Once a client is associated to the network, it can open a TCP connection to the Roving Networks’ module. After
successfully opening a TCP connection, the client receives a
*HELLO*
message. The Roving Networks’ 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 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
.