I have 2 commands working, Channel Up and Channel Down. I have attempted to use .dc1 files from the Device Command forum, but I cannot get them to work. After several hours, I was able to use the DirecTV protocol document and create my own commands. I have not been able to put GET commands in the "Generic IP Device" and get any response. The following is from page 11 In the DirecTV protocol,
From page 22, this is the Remote Key Request:184.108.40.206 Get
The SHEF server implements a very basic HTTP GET method that ignores all HTTP request
headers in the processing of SHEF requests, with the exception of the Cookie HTTP request header.
Only a subset of the SHEF commands uses this header.
Note that STBIP is the IP address of the Main Unit, the port is 8080, key=string is where you put the command, hold=string becomes hold=keyPress, and clientAddr=string is the MAC address of the Mini. So, Channel Up becomes:Remote Key - http://STBIP:port/remote/processKey?key=string[&hold=string][&clientAddr=string]
And Channel Down becomes:
Note that there is no terminator on the command. I think a terminator may get "added" to the MAC address and cause problems. Also, the only difference in these commands are the key=string part.
To get these commands to work, I used the Action Editor, and set the Action Type to "Send data to a website". I then put the command in the Web Data box, and clicked the Add button(green arrow. I discovered that you can drag the Action Editor wider and widen the Command column to see the entire command.
Although this works, it is not the best arrangement. The commands are not located in a file, where they are easy to maintain, they are scattered about in buttons on pages. I'm not sure how feedback from DirecTV will be handled, or if it will even work. I think Demopad should look at adding a "Generic HTTP Device", similar to the "Generic IP Device". This would make things consistent, and easier to use. Or they could add "DirecTV Genie" as a Type in the Main Device Properties box.
I have attached the DirecTV protocol document to this post. I had to make it a .txt file to upload it. Change it back to a .pdf to open it.