TCW181B-CM_R1
Page 11
13.5
I/O Setup
OID
Name
Access
Description
Syntax
x
.5.1.0
relayPulseDuration
read-write Global Pulse duration
INTEGER (1..253)
x
.5.2.0
Relay1description
read-write Relay 1 description
String (SIZE (0..11))
x
.5.3.0
Relay2description
read-write Relay 2 description
String (SIZE (0..11))
x
.5.4.0
Relay3description
read-write Relay 3 description
String (SIZE (0..11))
x
.5.5.0
Relay4description
read-write Relay 4 description
String (SIZE (0..11))
x
.5.6.0
Relay5description
read-write Relay 5 description
String (SIZE (0..11))
x
.5.7.0
Relay6description
read-write Relay 6 description
String (SIZE (0..11))
x
.5.8.0
Relay7description
read-write Relay 7 description
String (SIZE (0..11))
x
.5.9.0
Relay8description
read-write Relay 8 description
String (SIZE (0..11))
x
.5.10.0
digitalInputAction
read-write Digital Input Action condition
INTEGER {
MAIL_IF_CLOSED_TO_OPEN(2),
MAIL_IF_OPEN_TO_CLOSED(1),
NO_ACTION(0) }
x
.5.11.0
digitalInputTo
read-write
Digital Input event receiver's e-mail
address
String (SIZE (0..38))
x
.5.12.0
digitalInputSubject
read-write Digital Input event e-mail's subject
String (SIZE (0..11))
x
.5.13.0
digitalInputBody
read-write Digital Input event e-mail's body
String (SIZE (0..22))
x
.6.0
configurationSaved
read-write
Configuration save status
SAVED/UNSAVED
INTEGER { SAVED(1), UNSAVED(0) }
x
.7.0
restartDevice
read-write Restart Device
INTEGER { RESTART(1), CANCEL(0) }
14.
XML and HTTP API commands
XML is often preferred choice when it comes to M2M communication and system integration.
The monitored values are transmitted in
status.xml
file that can be easily processed by software
applications.
Below is the structure of the XML file, which is located at:
http://device.ip.address/status.xml
:
<Monitor>
<Device>TCW181B-CM</Device>
Device Type
<FW>tcw181-cmv1.01</FW>
Firmware version
<DigitalInput>OPEN</DigitalInput>
Digital input state
<Relay1>ON</Relay1>
Relay 1 state
<Relay2>OFF</Relay2>
Relay 2 state
<Relay3>ON</Relay3>
Relay 3 state
<Relay4>OFF</Relay4>
Relay 4 state
<Relay5>ON</Relay5>
Relay 5 state
<Relay6>OFF</Relay6>
Relay 6 state
<Relay7>ON</Relay7>
Relay 7 state
<Relay8>OFF</Relay8>
Relay 8 state
</Monitor>
The relay outputs can be controlled by sending HTTP commands:
Command
Description
http://device.ip.address/?r
X
=1
Turn Relay
X
ON
http://device.ip.address/?r
X
=0
Turn Relay
X
OFF
http://device.ip.address/?tg
X
=1
Toggle Relay
X
state
http://device.ip.address/?pl
X
=1
Pulse Relay
X
http://your.ip.address/?r
X
=1&r
Y
=1
Turn both relays
X
and
Y
ON
http://your.ip.address/?r
X
=0&r
Y
=0
Turn both relays
X
and
Y
OFF
Note:
X
and
Y
are the number of the corresponding relay output (1 to 8)