Documentation

HTTP commands DOAx and DOIx (V4+ firmware needed)
A customer requested feature, allowing the digital outputs to be switched by the Http get function such as used in some
voice over ip phones (VOIP). You can use the Http get function to write to the io.cgi file with the following syntax:
192.168.0.200/io.cgi?DOA2=10
This would use the default address (192.168.0.200) and make output 2 active for 1 second.
Another example would be to set output 1 inactive for 10 seconds:
192.168.0.200/io.cgi?DOI1=10
You can test these functions by typing them directly into the address bar of most internet browsers. Also be aware that
you may need to disable Http authentication in the Http configuration if your control device does not support it.
TCP access and commands
The command set designed to provide consistent expansion and new features, they are sent over TCP/IP on port 17494
(0x4456). This is the default port, it can be changed in the configuration settings. Five connections are allowed at any
one time, these are independently protected but all using the same password as defined in the board configuration.
Command
Action
dec hex
16 0x10 Get Module Info - returns 3 bytes. Module Id (19 for ETH008), Hardware version, Firmware version.
32 0x20
Digital Active - follow with 1-8 to set relay on, then a time for pulsed output from 1-255 (100ms
resolution) or 0 for permanent. Board will return 0 for success, 1 for failure
33 0x21
Digital Inactive - follow with 1-8 to turn relay off, then a time for pulsed output from 1-255 (100ms
resolution) or 0 for permanent. Board will return 0 for success, 1 for failure
35 0x23
Digital Set Outputs - will set all relays states, All on = 255 (11111111) All off = 0
Board will return 0 for success, 1 for failure
36 0x24 Digital Get Outputs - returns 1 bytes, corresponding with relays being powered
58 0x3A ASCII text commands (V4+) - allows a text string to switch outputs, see section below
119 0x77 Get Serial Number - Returns the unique 6 byte MAC address of the module.
120 0x78 Get Volts - returns relay supply voltage as byte, 125 being 12.5V DC
121 0x79 Password Entry - see TCP/IP password, board will return 1 for success or 2 for failure
122 0x7A Get Unlock Time - see section below
123 0x7B Log Out - immediately re-enables TCP/IP password protection, board will return 0 for success
Digital Active/Inactive Commands
These are 3 byte commands:
The first byte is the command, 32 (active means on) or 33 (inactive).
Second byte is the output number, 1-8 for the relays.
Third byte is the on time. Set this to zero for non pulsed mode, or 1-255 for a pulse in 100mS intervals (100mS to 25.5
seconds).
For example:
0x20 - turn the relay on command
0x02 - relay 2
0x32 (50) - 5 seconds (50 * 100ms)
Board will return 0 for success, 1 for failure.
Note - All bytes in a command must be sent in one TCP/IP packet .
© Devantech Ltd 06/10/21 ETH008-B Documentation 6/11