WiSnap User Manual 2.21 04112011-JF
Page
13
of
66
set ip address 10.20.20.63
// Set the IP address
set ip localport 5030
// Set the local port to listen on
set ip netmask 255.255.255.0 // Set the IP netmask
set ip gateway 10.20.20.1
// Sets the network gateway
set ip dhcp 0
// Turn off DHCP
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!
set sys wake 20
// Wake after 20 seconds
set sys sleep 10
// Go to sleep after 10 seconds
save
// Save configuration
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.