I'm writing a shell script that needs to send an 8 character string terminated with a x0d to a Sharp Aquos TV. An example is
'POWR1 \x0d' (POWR1 followed by three spaces and LF)
The documentation is poor. it says protocol TCP/IP (nothing about UDP or TCP) and service: nothing: do not select telnet or SSH.
In the past, for similar projects I've been able to use socat and something like:
echo -e -n 'POWR1 \x0d' | socat - tcp4:192.168.1.88:10002
However, all I get is
"socat E connect(3, AF=2 192.168.1.88:10002, 16): Connection refused"
Anyone got any ideas