Roving Networks Wifly RN-111B User Guide Version 1.23
www.rovingnetworks.com
support@rovingnetworks.com
Phone 408-395-6539
- 15 -
5. System timers and other features
There are 2 timers that can be used to put the module to sleep, and perform a wake up.
If the sleep timer is enabled, the module will automatically go into low power mode after
the timer counts down to 0. The countdown is disabled if the module has an IP
connection, or the module is in COMMAND mode. The timer is reset when characters
are received on the UART.
The sleep timer is set with : set sys sleep <time> time=decimal in seconds.
The wake timer is set with: set sys wake <time> time=decimal in seconds.
UDP sleep, and Connection timers
There is another timer than can be used to put the device to sleep.
In UDP protocol mode, the auto-conn timer is re-defined as an auto-sleep timer.
Upon the start of transmission of the first UDP data packet this timer will count down.
set sys autosleep <value> UDP mode: sets the auto-sleep timer. 0 disables
the timer is decremented every 10 milliseconds. Because the timer is asynchronous, the
actual value can vary by 10ms. Using a minimum value of 2 is recommended to ensure
that the UDP packet gets transmitted. For larger packets the value should be increased.
In TCP-Client mode, the auto-conn timer is used as a connect out timer. If set, the
device will automatically attempt a connection when the timer expires.
set sys autoconn <secs>
In TCP-Client AND TCP-Server mode, there is also a disconnect timer.
set comm idle <secs> sets the idle disconnect timer. This causes a disconnect if no
transmit or receive data is seen.
5.1. Wake on Sensor INPUTs
There are 4 inputs available to wake the module from sleep, SENS1-4.
To enable 1 of these inputs, use: set sys trigger <0,1,2,3,4>. 0 disables.
Only the SENS1 input has a resistor divider ( 24K in series with 10K to GROUND) which
allows this pin to tolerate 3V logic. The other sensor pins DO NOT, so care must be taken.
WARNING: Under no conditions should the voltage on any SENS2-8 input exceed
1.2VDC. Permanent damage to the module will result.
The SENS1-4 inputs have a small current source that is activated in sleep mode. This source
is approximately 100nA, and will cause the input to float up to about 1.2VDC. IF SENSE1
for example, is enabled, pulling the SENS1 pin to GROUND will wake the device. An open
drain FET is a good device to tie to the pin. The threshold is about 500mV. Additional