I'm looking to control the iTach IP2CC relay device.
I can send simple text strings TCP commands like "setstate,1:1,<0|1>" to turn OFF/ON one of the relays.
For example, using netcat on a mac I can turn on relay 2 with:
Some devices close the connection immediately after a successful command or after a small wait time. Also have seen where they close the stream, then go into a wait for the next command and renegotiate the connection as needed.
But the response from netcat (nc) clearly says that the connection succeeded and there is no indication of the connection being closed. This is before any command is sent. The fact that I can still send commands from both nc and telnet indicates that the connection is still open.
So just to clarify again. Clicking "Connect Telnet" does in fact open the connection, even though I get the "Stream is closed" error. Afterward, all commands work until the connection is manually closed.
After clicking "Disconnect Telnet" commands no longer work.