WiFly GSX
www.rovingnetworks.com
WiFlyGSX-um 9/16/2010
809 University Avenue
•
Los Gatos, CA 95032
•
Tel (408) 395-6539
•
~ 57 ~
16.1.
Automatic sampling of sensor pins:
The sensor pins can be automatically sampled and data forwarded in 2 modes:
1.
the UDP broadcast packet will contain the value of the samples.
2.
in HTTP mode, the pin sampled data can be forwarded to a remote server
to enable the above modes, use the
set q sensor <mask>
command.
For example, to sample all sensors inputs, use the
set q sensor 0xff
command.
16.2.
Using the Built In Sensor Power
WiFly modules contain an onboard Sensor power pin, which is controlled by the command below:
set q e <value>
The values used for setting the power are described in the table below:
Value
Sensor pin voltage
0
Turn off the sensor power
1
GROUND the sensor pin
2
1.2V internal regulated reference
3
VBATT input pin
4
3.3V output of on board regulator
ON BOARD TEMPERATURE OPTION (RN-121 TEMP)
show q t
The return values are the format: T=207\r\n this would be 20.7° C.
show q t 1
enables automatic sampling and output once per second.
show q t 0
turns off automatic sampling and output of temperature.