Author Topic: Directv tcp control  (Read 17236 times)

elboy0712

  • Veteran
  • ***
  • Posts: 60
    • View Profile
Directv tcp control
« on: February 09, 2013, 02:57:08 am »
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.
« Last Edit: February 10, 2013, 08:22:02 pm by elboy0712 »

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Directv http control
« Reply #1 on: February 09, 2013, 05:52:37 am »
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

  • Veteran
  • ***
  • Posts: 60
    • View Profile
Re: Directv http control
« Reply #3 on: February 09, 2013, 05:57:08 pm »
I may use a upnp browser later also to try and "sniff" it out

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Directv http control
« Reply #4 on: February 09, 2013, 09:24:38 pm »
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

  • Guru
  • ****
  • Posts: 308
    • View Profile
Re: Directv http control
« Reply #5 on: February 10, 2013, 01:09:48 am »
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

  • Veteran
  • ***
  • Posts: 60
    • View Profile
Re: Directv http control
« Reply #6 on: February 10, 2013, 07:06:32 pm »
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

  • Regular Poster
  • **
  • Posts: 25
    • View Profile
Re: Directv tcp control
« Reply #7 on: February 13, 2013, 02:10:55 pm »
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

  • Veteran
  • ***
  • Posts: 84
    • View Profile
    • Innovative Sight & Sound
Re: Directv tcp control
« Reply #8 on: January 01, 2014, 03:54:21 pm »
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

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Directv tcp control
« Reply #9 on: January 01, 2014, 04:50:45 pm »
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