WiSnap User Manual 4.41 05282015-ML
Page 12
Step 3:
Set the wake up and sleep conditions. In this mode the sleep and wake timers are used to conserve battery. Since
we don’t know when the remote host will connect, the module should to occasionally wake up and listen for the remote
host. The trade off with these timers is that the longer you sleep, the better your battery life will be but the longer it will take
the remote host to connect.
WARNING
:
Do not set the sleep timer below 5 seconds or it will be impossible to get into command mode to
reprogram this mode without it going back to sleep!
Command
Result
1
set sys wake 20
Wake after 20 seconds
2
set sys sleep 10
Go to sleep after 10 seconds
3
save
Save configuration
4
reboot
Restart using the new configuration
At this point you could test this configuration using telnet on a computer sharing the same network to connect to the WiSnap
module.
Enabling Access Point Mode (Requires firmware to 2.42 and higher)
Devices using firmware versions 2.42 and higher are able to put the device into Access Point mode. Access point mode allows
for an alternative for connecting android devices. The device can be put into access point mode by issuing the following
commands:
Command
Result
1
set wlan ssid WiSnap
Set the Access Point SSID
2
set wlan join 7
Create an access point on power up
3
set ip dhcp 4
Turn on the DHCP server
4
set wlan chan 1
Only broadcast on channel 1
5
set ip address 1.2.3.4
Set the IP address for the WiSnap device
6
set ip net 255.255.255.0
Set the subnet mask
7
set ip gateway 1.2.3.4
Set the Access Point gateway
8
save
Save configuration
9
reboot
Restart using the new configuration
When the device reboots, it should be in access point mode.
4 WiSnap Command Reference
4.1 Command Syntax
Commands begin with a keyword, and have optional additional parameters, generally space delimited. Commands and options
are
case sensitive. Hex input data can be upper or lower case. String text data, such as SSID is also case sensitive.
The first command is fully decoded and must be complete. Other command parameters can be shorted by using only the first
character.
For example,
set uart baud 115200
is valid
set uart b 115200
is also valid
set u b 115200
is also valid