e-mail:
voice:
360.854.9559
fax:
866.783.1742
of the relay who's state should be set to the state
specified in the byte below
0x01 for Relay 1,etc.
3
RELAY_STATE – The new state of the relay
indicated above.
0x00 for ACTIVE,
0x01 for NOT ACTIVE
...
n
Relay n should be set...
n+1
Relay n's state...
TCP Relay commands and query responses can be encrypted using 128-bit AES encryption. The device
must be configured under the Email/Network Setup page by checking the box for
Enable Encryption
with Relay
and entering a 32-character encryption key in
Encryption Key (16 hex bytes)
field.
To
send encrypted relay control commands
from an external computer, you must first encrypt the
command byte, then encrypt the length byte, each individually. The remaining bytes of the command
pairs are then encrypted together as a block.
0
TCP_CMD_SET_RELAY – The command ID for
Set Relays.
1
1
CMD_LENGTH – The number of relay state pairs to be set
2
2
RELAY_NUMBER – The zero-indexed number of the relay
who's state should be set to the state specified in the byte below
3
3
RELAY_STATE – The new state of the relay indicated above.
...
n
Relay n should be set...
n + 1
Relay n's state...
To
send encrypted input query commands
from an external computer, apply the encryption to the
single byte query command before sending, and decrypt the query command response packet as
describe below.
To
decrypt query command response packets
from a supported Broadcast Tools device, always
decrypt the first byte to determine the information present in the packet. If after decryption the
command field of the packet has a value of 0x02 (i.e. TCP_CMD_SET_RELAY), the next byte should
be the length field. Decrypt this byte to determine the number of bytes in the input number/status pairs.
Once the correct number of bytes for the input number/status pairs has been received, they may be
decrypted as a block.
35
APPENDIX
I/O Sentinel 4 G2 Installation and Operation Manual