News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Directv tcp control

Started by elboy0712, February 09, 2013, 02:57:08 AM

Previous topic - Next topic

elboy0712

Directv allows control of their rx's through the network. Also so does yamaha and lg tv's. an we start seeing some network based controls? I really want to get an HD capture card going (componenet obviously) with one of my rx's and get this party started.

tschak909

If you can control the device via a TCP socket, and have a protocol sheet, then a device template can be made to control the device over the network. I am doing this for both my Denon AVC-2312 and Sharp Aquos TVs.

-Thom


elboy0712

I may use a upnp browser later also to try and "sniff" it out

tschak909

The Panasonic IP camera template can provide you with the information you need to write a new device template of this nature. You merely have to mimic the HTTP requests. Also, that you have the TCP Port device data specified, instead of Com Port on PC, so that it knows that this is a network device.

Please read the Generic Serial Device page, on the wiki, as a starting point. There are many other articles related to it as well that are useful.

-Thom

ardirtbiker

Template 2159 (DirecTV HR24 IP receiver) exists but had no control codes.

I added codes but have not uploaded a template.  I did upload an HTML file here: http://forum.linuxmce.org/index.php/topic,13071.msg94623.html#msg94623.

The codes work but needs some fine tuning.


Dennis

elboy0712

This is good stuff. I will look at those templates and see if i cant teach myself how to do it. Thanks everyone. I tried the upnp sniffer it didnt pick up that equipment. I assume it is locked down a bit somehow for commercial reasons.

bwhitson

elboy0712,

Take a look at http://forum.linuxmce.org/index.php/topic,11693.msg81593.html#msg81593

The commands are simple but I never got around to making it work.
Duct Tape is like the force - It has a dark side and holds the universe together.

iberium

I actually had a working template that i've been using for over well over a year now.  The only problem that i have with it is that mce seems to hold the connection open instead of just sending the commands one at a time.  This causing it to be kinda unreliable and i would frequently have to resend the channels to it to get it to tune correctly no matter how long i put a delay in there for.  also,  if you did a reload,  then it would take quite some time before the dtv box started to accept commands again.  This would also be the case if you used a directv app on a phone,  it would cause mce to quit talking to the box for 15 to 20 minutes.  I don't have this problem on other automation systems that i install (control4, savant, or crestron),  they work instantly.  So it must be in some way that the router is handling the connection.

tschak909

You need to look at the Panasonic iP camera template a bit more closely, it uses close and reconnect to re-establish the socket.

Furthermore, if the device is ANYTHING besides the simplest RS232 or IP control device, then you should absolutely consider rewriting it as a C++ device.

-Thom