|
Hardware Support Discussions related to using various hardware setups with SageTV products. Anything relating to capture cards, remotes, infrared receivers/transmitters, system compatibility or other hardware related problems or suggestions should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
MODIFIED: Simple Utility to Control Multiple DirecTV STBs via USB or Serial ports
This is an attempt to document my configuration of a system controlling multiple DirecTV HD receivers via PC serial and set-top-box USB ports. This system supports the "dash" designation for applicable DirecTV channels. Unlike the earlier version I created, this version works without remapping channels within the guide.
I. Prerequisites A. EXEMultiTunerPlugin B. DirecTV Channel Control Program for GBPVR (directv.exe) C. DirecTVMultiChg.bat file D. One (1) USB to Serial Adapter per DirecTV receiver E. One (1) Null Modem Cable (or Null Modem Adapter and Serial Cable) per DirecTV Receiver F. One (1) PC Serial port per DirecTV receiver A. EXEMultiTunerPlugin Obtain a copy of the SageTV-provided plugin. http://forums.freytechnologies.com/f...33&postcount=7Place the plugin into your SageTV directory B. DirecTV Channel Control Program for GBPVR (directv.exe) This is a serial control utility designed for GBPVR and is available on the GBPVR Wiki under "Utilities" It's a simple, DOS-based program that works from a command prompt and supports a wide variety of DirecTV receivers. See the Wiki page for details. C. DirecTVMultiChg.bat file This is a simple DOS-based batch file I created. It must be placed into the SageTV directory. This is the program that is executed by the EXEMultiTunerPlugin as referenced by the associated registry command. More on this batch file appears below. D. and E. USB-to-Serial Adapter and Null Modem Cable DirecTV boxes with USB ports (such as the Model H21) can be controlled via a USB-To-Serial adapter when paired with a null modem cable. You can easily find USB-To-Serial adapters for around $10 and null modem cables for around $2 online. F. One (1) PC Serial port per DirecTV receiver Obviously you will need a COM port on your PC for each receiver you want to control. If you have only one (or zero) COM ports on your motherboard you can add additional ports via onboard connectors (if available) and brackets, or via add-in PCI card, or more likely via USB-To-Serial adapters. II. Configuration A. Registry edits B. Sage.properties Requirements C. "IR" File and Tuner Control Setup D. DirecTVMultiChg.bat file edits A. Registry Edits Create a text file (with a ".reg" extension) with the following contents: REGEDIT4 Execute this file to add a command to the Windows registry. B. Sage.properties Requirements The key to the EXEMultiTunerPlugin is that it passes both "device" and "channel" parameters to the command it executes. The "device" parameter is that which is referenced in the device_name property for each input of the applicable capture device. In this batch file the device names are set as "DSS1", "DSS2", et cetera, though they can be set to whatever device_name(s) you use in the .properties file. C. "IR" File and Tuner Control Setup The plugin requires an ".ir" file, even though it's not sending infrared commands. For what it's worth, in my setup I created a file named "DSS1.ir" which has only one line "DSS1 38000 400 4 600 800". This line must be terminated with a carriage return, so the file should actually have two lines. The pertinent pieces of information here are the filename "x.ir", where "x" is the name referenced in the device_name property and the "4", which specifies the number of digits for the %CHANNEL% parameter. I also believe you can set the number of digit using the "Remote Options" setup under the Tuner Setup menu. This file is stored in the \SageTV\Common\Remote Codes directory. You would repeat this process for each set-top box using the MultiTuner. D. DirecTVMultiChg.bat File Edits As it is currently configured this program handles up to five serially-controlled set-top boxes, though it can be easily edited to accommodate more. Also it assumes that your device_name properties are "DSS1","DSS2","DSS3"... "DSS5", and are connected to corresponding COM ports "COM1", COM2", "COM3"... "COM5". You can modify these assignments as required, but it's probably simple enough to map your receivers in this manner. In some cases your COM ports will install as ports other than "2", "3", et cetera, but you can either change the port number within Windows Device Manager, or modify the device_name property to correspond to the COM port. Use this batch file at your own risk. Hopefully this guide helps someone... -J.R. Last edited by jchiso; 09-25-2011 at 02:37 PM. Reason: Registry file extension info, .ir file requirements |
#2
|
|||
|
|||
@jchiso -
Haven't tried this yet, but it looks to me like the registry entry should read: "command"="DirecTVMultiChg.bat %DEVICE% %CHANNEL%" One question, though. If you have a USB controlled STB and your PC is USB only, is it necessary to use USB <-> serial adapters? And if so, are you suggesting that two be placed back-to-back with a null-modem adapter in between? Thanks, Peter |
#3
|
|||
|
|||
Quote:
Yes. Any type of PC serial port will work; whether it's via onboard, add-in card or USB-To-Serial adapter. |
#4
|
|||
|
|||
Well, as I said I haven't tried this at all yet. I'm currently using a HDHomerun and some R5000HDs. Early next year, though, I'm planning to try integrating DirecTV using the Hauppauge HD-PVR. Since this uses IR blasting - which I'd rather not rely on - I'd like to try to incorporate serial control of the STBs. So, I was very interested to come across your first post.
Nice work on the batch file by the way (although I'd be inclined to name it .cmd since unless I'm mistaken some of this would require at least NT - as opposed to DOS). I'm much more fluent in *nix shell files, but I appreciate the parsing approach - which doesn't rely on any added exes. I've done some more research and now understand better how this would interface with the STBs. I think what was throwing me at first is that most peripherals with USB interfaces are configured as clients. If that were the case with the DirecTV boxes, putting these serial adapters back-to-back wouldn't work. However, according to this DirecTV Installers Guide, the DTV boxes' USB ports are configured as hosts (i.e. same as PCs). I liked the idea of simplifying the cabling using something like this USB-USB Null Modem Cable. (I came across this from reading posts by MythTV users. Lots of good info on the topic, including this guide: Controlling DirecTV Set Top Box (STB) via USB or Serial - although much of it is Linux specific.) Unfortunately, the DirecTV STBs only support adapters using the Prolific PL2303 chipset (superseded by the 2303X and 2303HX, so it may take a bit of hunting to find them...) while that USB-USB cable uses the (generally thought to be superior) FTDI chipset. So, it looks like the only choice (for PCs without RS-232 ports) is: PC <-> USB/serial converter <-> null modem adapter <-> PL2303 USB/serial converter <-> STB In my searching I came across this program: DirecTV Serial Control Utility, which looks like it would be useful after cabling together the STBs and PC as a first test of the interconnect. Another intriguing idea occurred to me when I saw that this program includes a built in web server. I could almost see creating a network encoder using this plus the HD-PVR. (Almost... ) |
#5
|
|||
|
|||
Quote:
|
#6
|
|||
|
|||
J.R. -
I'm not disputing anything. I wasn't saying that back-to-back USB/Serial adapters wouldn't work, just that I hadn't understood how it did. I understand how the USB host adapter on the PC presents a substitute for the onboard COM port, having used them for this plenty. What didn't make sense to me was how the reverse could be true - that the other adapter could turn a serial connection into a client USB connection. My research showed that the DirecTV engineers had designed their USB ports as host ports, which allows the STB <-> USB adapter <-> RS-232 side of things to work. It wasn't disbelieving that this approach works, however, which had started me researching further. I was looking for a way to connect to the STBs with some sort of direct USB to USB cable. What I found was that the only single-cable solution designed to connect serial-to-serial via USB won't work for the DTV boxes (because it uses a different USB chip than they support). Again, thanks for your work on this tool. When I undertake adding DirecTV to my Sage system, I think this is exactly what I need. Peter |
#7
|
|||
|
|||
I see what you're saying now; you were speaking from the DirecTV side of the issue. All I can say about that is knock on wood and let's just hope DirecTV does not change the port's current implementation...
|
#8
|
|||
|
|||
Quote:
DSS1 38000 400 4 600 800 |
#9
|
|||
|
|||
Issues with "dash" channels
I got the extmultitunerplugin to work and change channels using HD PVR and DirecTV. The only remaining issue I have is with the one channel I ever watch that has a dash in it.
My regional sports network (Fox Sports Southwest, ch 676) has an alternate channel that sometimes shows games on HD channel 677-1. The DirecTV guide info that downloads into Sage only shows the SD version of this alternate channel on 677. It can tune to this SD 677 channel just fine, but I would like HD. I've tried every combination of logical and physical remapping I could think of, but still can't get Sage to tune to channel to 677-1. Any help or ideas? Thanks! |
#10
|
||||
|
||||
Quote:
I only see 677 Fox Sports Southwest (Zone 3) 677 Fox Sports Southwest HD (Zone 3) |
#11
|
|||
|
|||
Quote:
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Serial USB Control of DirecTV D12-300 | davephan | Hardware Support | 11 | 07-01-2015 01:32 AM |
Directv serial (USB) control problems | jvcd3po | Hardware Support | 10 | 09-22-2009 07:50 PM |
DirecTV usb serial control | redbaron73 | SageTV Linux | 8 | 02-28-2009 09:42 PM |
Simple utility to control multiple USB or Serial HD DirecTV STBs | jchiso | Hardware Support | 15 | 02-19-2009 06:27 PM |
Got DirecTV Serial Control in SageTV working with Hughes HAH-SA ? What STBs do work ? | kennethadams102 | Hardware Support | 21 | 03-12-2005 03:48 AM |