WiSnap User Manual 4.41 05282015-ML
Page 27
2)
ping g -
pings the gateway, the gateway IP address is loaded if DHCP is turned on, otherwise it should be set with the
set ip gateway
<addr>
command
3)
ping h -
pings the stored host IP address, the host IP address can be set with the
set ip host
<addr>
command
4)
ping i -
pings a known Internet server at www.neelum.com by first resolving the URL (proves that DNS is working and
proves the device has internet connectivity)
5)
ping 0 -
terminates a ping command
reboot -
forces a reboot of the device (similar to power cycle).
scan <time> <P> -
performs an active probe scan of access points on all 13 channels. Returns MAC address, signal strength,
SSID name, security mode. Default scan time is 200ms / channel = about 3 seconds.
time
is an optional parameter; this is the
time in ms per channel. For example,
scan 30
reduces the total scan time down to about 1 second. This command also works in
ad-hoc mode. If the optional
P
parameter is entered, the module will perform a passive scan, and list all APs that are seen in
passive mode.
sleep -
puts the module to sleep mode. The module can come out of sleep mode by either sending characters over the UART or
by using the wake timer.
time -
sets the Real time clock by synchronizing with the time server specified with the time server parameters. This
command sends a UDP time server request packet.
9 FILE IO Commands
del
<name> <num>
-
deletes a file. Optional
<num>
will override the name and use the sector number shown in the
ls
command.
load <name> -
reads in a new config file.
ls -
displays the files in the system.
save -
saves the configuration to “config” (the default file).
save
<name>
-
saves the configuration data to a new file name.
boot image
<num>
-
makes file
<num>
the new boot image.
ftp get
<name>
-
retrieves a file from the remote FTP server. If
<name>
not specified, the stored ftp filename is used.
ftp update
<name>
-
deletes the backup image, retrieves new image and updates the boot image.
10 Advanced Features and Settings
This chapter describes the advanced features of the WiSnap module. It describes the techniques to put the module in sleep,
wake up from sleep and methods to open a TCP connection when awake. We also discuss the UART flow control, alternative
GPIO functions and Real Time Clock.
The table below describes the possible methods of putting the module to sleep:
Method
Interface
Description
“sleep” command
UART
Get into command mode using
$$$
and issue the sleep
command.
Sleep Timer
Internal RTC
Puts the module to sleep based on the
set sys sleep
<secs>
command.