©2016 DEKIST Co., Ltd. Rev. 1.6
8. Definition of the HTTP protocol
RN171 defines and uses the RADIONODE HTTP. It sends HTTP GET requests to the server at regular
intervals. When a request has been made, the data needed as the parameters are sent together.
Rather than using the PULL method, where the server reads in the data, we are using the Push method,
where the data is pushed up to the server, which web developers are more familiar with.
8.1 DATAIN (data transmission)
A.HTTP Request
http://
[SERVER-ADDRESS]
/
[DATAIN-FILE]
?
gwid
=0004a316d728&
model
=RN172&
interval
=300&
ipaddr
=192.168.0.31&
utc
=1459249259
__device
=00000004a316d728&
nodeid
=00000004a316d728&
lqi
=255&
child
=0&
nodetype
=2&
bat
t
=255&
sd1
=20.28&
sd2
=20.29
gwid
: Uses the MAC address as the unique ID of the RN172 unit.
The VMAC information is used.
model
: The model number of RN-172 (RN172).
interval
: The frequency of sending the HTTP signals applicable to RN-172 (seconds).
ipaddr
: The IP address currently used by RN-171.
utc
: The Unix Timestamp from the default NTP of RN171.
If the RN171 device fails to establish a connection with an external NTP server, it will
provide incorrect time information. This device connects to pool.ntp.org /
tapaculo365.com to retrieve the time information.
__device
: Uses the MAC address as the unique ID of the node from which the information has
been transmitted. The NMAC information is used.
nodeid
: The same value as __device is used..
lqi
: Shows the wireless signal strength, ranging from 0 to 255.
For RN172, the value is always
“
-1."
child
: Shows the number of the child node under the current node.
For RN172, the value is always "0."
nodetype
: Defines the type of node. For RN172, the value is always “2."
batt
: Shows the battery status of the node. For RN171, the value is always “255."
sd(x)
: x means the sequence and means the value of the sensor. The value is shown up to
two decimal digits. Negative values are allowed.
sd1: The data value of Channel 1
sd2: the data value of Channel 2 (temperature and humidity, etc.)
B.
.HTTP Response
Normal response
Abnormal response
A normal response will always be ignored.
An abnormal response will always be ignored.