ETH484 State Digital Input
Posted: Tuesday 25 June 2019 17:25
Currently I have my Domoticz application running on a Synology NAS.
I managed to send HTTP commands to my first board (ETH008), which has 8 Relays at 16A.
Now I just received my new board (ETH484), which has 4 Relays at 16A, 8 Digital IO and 4 Analogue Inputs.
I am struggling to configure my Digital Inputs..
I want to read the Digital Inputs, but I don't know how I can handle that.
How can I poll the Digital Input signal, do I have to make a Dummy in the hardware ?
What type should I use then, a switch ?
Below is an extract of the manual of the ETH484, which describes the board can send me a message when a Digital IO changes :
Mapping inputs to custom devices
Sometimes it is useful to have a message sent on input change without the need for polling, you can use the input
mapping for sending messages to an IP address. The transactions are described below along with an example of the
custom device needing a password of “apple” and setting output number 1 active:
• The ETH484 sends a TCP packet with 0x79 (password entry) in the first byte, then the following bytes will be
the password supplied above.
So it would send 6 bytes: 0x79, 'a','p','p','l','e'
• To acknowledge a password match, respond with 1, else send 2
You reply with 1 byte 0x01
• The ETH484 sends then sends digital active (0x20) or digital inactive (0x21) followed by the output number
So it would send 2 bytes 0x20, 0x01
• Reply with a 0 for success, else send 1
You reply with 1 byte 0x00
Note that the complete sequence must be followed, even if the password fails. If no password is supplied in the input
mapping configuration the sequence will be followed with the absence of ''a','p','p','l','e' bytes.
Thanks in advance,
Kind regards
I managed to send HTTP commands to my first board (ETH008), which has 8 Relays at 16A.
Now I just received my new board (ETH484), which has 4 Relays at 16A, 8 Digital IO and 4 Analogue Inputs.
I am struggling to configure my Digital Inputs..
I want to read the Digital Inputs, but I don't know how I can handle that.
How can I poll the Digital Input signal, do I have to make a Dummy in the hardware ?
What type should I use then, a switch ?
Below is an extract of the manual of the ETH484, which describes the board can send me a message when a Digital IO changes :
Mapping inputs to custom devices
Sometimes it is useful to have a message sent on input change without the need for polling, you can use the input
mapping for sending messages to an IP address. The transactions are described below along with an example of the
custom device needing a password of “apple” and setting output number 1 active:
• The ETH484 sends a TCP packet with 0x79 (password entry) in the first byte, then the following bytes will be
the password supplied above.
So it would send 6 bytes: 0x79, 'a','p','p','l','e'
• To acknowledge a password match, respond with 1, else send 2
You reply with 1 byte 0x01
• The ETH484 sends then sends digital active (0x20) or digital inactive (0x21) followed by the output number
So it would send 2 bytes 0x20, 0x01
• Reply with a 0 for success, else send 1
You reply with 1 byte 0x00
Note that the complete sequence must be followed, even if the password fails. If no password is supplied in the input
mapping configuration the sequence will be followed with the absence of ''a','p','p','l','e' bytes.
Thanks in advance,
Kind regards