Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
edited tags
Link
Gilles 'SO- stop being evil'
  • 866.1k
  • 205
  • 1.8k
  • 2.3k

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 \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

echo -e -n 'POWR1   \x0d' | socat - tcp4:192.168.1.88:10002

However, all I get is "socat[3875] E connect(3, AF=2 192.168.1.88:10002, 16): Connection refused""socat[3875] E connect(3, AF=2 192.168.1.88:10002, 16): Connection refused"

Anyone got any ideas

Regards

Mark

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[3875] E connect(3, AF=2 192.168.1.88:10002, 16): Connection refused"

Anyone got any ideas

Regards

Mark

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[3875] E connect(3, AF=2 192.168.1.88:10002, 16): Connection refused"

Anyone got any ideas

Source Link

Linux Shell Script - Send command over TCP to Sharp Aquos

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[3875] E connect(3, AF=2 192.168.1.88:10002, 16): Connection refused"

Anyone got any ideas

Regards

Mark