User manual

!
www.rovingnetworks.com Version 1.0r 9/21/2012 24
RN-WIFLYCR-UM
Setting the trigger value to 0x20 (i.e., using <mask>) puts the module to sleep when GPIO8 is pulled high. To enable
this feature, use the set sys trigger 0x20 command. This command makes GPIO8 an interrupt pin and puts the
module to sleep as soon as it is pulled high, regardless of the module’s state; the module goes to sleep even if it is
associating with a network or has an open, active TCP connection.
This command is useful for when the module is failing to associate with network because it is out of range (or for any
other reason), or if the module must be put to sleep quickly.
NOTE: GPIO8 must be low on power up and stay low until you want to put the module to sleep.
Default: 0x1
Example: set sys trigger 0x10 // Enable WPS functionality
set sys value <mask>
This command sets the default value of the GPIO pins’ outputs upon power-up, where <mask> is a hex number
representing a bit-mapped register. The GPIO pins that are configured as outputs can be driven high or low on power-
up or when the module wakes from sleep. The default power-up states can be set ONLY for the GPIO pins that are set
as outputs. Setting the value to 1 makes the default power-up state high; setting the value to 0 makes the default
power-up state low.
To configure GPIO pins as outputs, use the set sys mask <value> command.
NOTE: GPIO pins 4, 5, and 6 are used by the firmware to blink the status LEDs. To set the default power up
states for these GPIO pins, you must first disable their use by the firmware using the set sys iofunc 0x7
command.
Default: 0x0
Example: To configure power-up states of GPIO8 (output by default):
set sys value 0x0100 // Sets GPIO8 high upon power-up
set sys value 0x0000 // Sets GPIO8 low upon power-up
set sys wake <value>
This command sets the automatic wake timer, where <value> is a decimal number representing the number of
seconds after which the module wakes from sleep. Setting <value> to 0 disables. See “System Timers & Auto-Connect
Timers” on page 48 for more details.
Default: 0
Example: set sys wake 5 // The module wakes after 5 seconds
set time address <address>
This command sets the time server address, where <address> is an IP address in the form
<value>.<value>.<value>.<value> with <value> being a number between 0 and 255. This command applies to SNTP
servers.
Default: 129.6.15.28
Example: set time address 208.109.78.52 // Sets the time server address as 208.109.78.52