Wireless Sensors, LLC
Ethernet Gateway Model GWAY-1100
Version 2.0 © July 2013
20 / 35
The
dTrapTable
defines where to
send traps. It has 2 rows, each
defining an IP address, communi-
ty string and enable flag. In order
for a trap to be sent, the IP ad-
dress must not be zero and the
enable flag must be one (zero
disables). The community string
is not used by the GWAY-1100,
except to send the string in the
trap PDU.
The
dTrapDeviceTable
specifies
the criteria for sending a trap. The
table has 7 rows that support 7
different traps. The rows of this
table are as follows:
o
dTrapDeviceEnable
–
must be 1 to enable
sending traps, zero disables sending
o
dTrapSendPointer
– may be 0 or 1. Points to the row of the
dTrap
table which
defines where to send the trap. Note that all data in the row in this table and
the corresponding row of the
dTrap
table must be valid for the trap to be sent.
o
dTrapDeviceROM
– Stores the 1-Wire ROM ID of the device to base sending
traps on. To be valid, this value must not be zero and must match a ROM code
of a currently connected and active 1-Wire device.
o
dTrapDeviceVariable
– Defines which variable of the 1-Wire device to base
calculation on. The value must refer to a valid variable or no trap will be sent.
The variable number can be determined by viewing the
Advanced Details
Web
page, each line below “PrimaryValue” is a potential variable, numbered se-
quentially. For example, the DS18B20 has as the first item below
“PrimaryValue” the item “Temperature”, so this is number 0. The next item is
“UserByte1”, so this is item 1, after that is “UserByte2”, which is item 2, then
item 3 is “Resolution” and item 4 is “PowerSource”.
DS18B20
0
– Temperature
1
– User byte 1
2
– User byte 2
3
– Resolution
4
– Power source
o
The items
dTrapDeviceHighThreshold, dTrapDeviceLowThreshold
and
dTrapDeviceHysteresis
work together to define 3 windows.
The variable is in the high window when it is greater than the high
threshold