|
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
|
|||
|
|||
Sage V9 replacement for EXEMultiTuner
Has anyone figured out how to ethernet tune a DirecTv box in Sage 9 under windows?
Upgrade from V7 to V9 went smoothly, but I can't figure out how to send tuning commands to my 4 DTV boxes. On V7 I used EXEMultiTuner pointing at a batch file(using cURL), and worked perfectly. I can still point to EXEMultiTuner when adding a source, but the command doesn't seem to execute the batch file... Any help or ideas would be greatly appreciated! |
#2
|
|||
|
|||
HTTP Tuning Question V9
Has anyone found a way to perform HTTP tuning in Sage 9 for Windows?
|
#3
|
|||
|
|||
I'm using it now. I set it up just like I did for SageTV7.1.9 nothing special. Just got the DLL file from this post: https://forums.sagetv.com/forums/sho...9&postcount=28
Just follow the directions and you should be good to go with a DirecTV box.
__________________
"Keep your goals away from the trolls" |
#4
|
|||
|
|||
Are you using this with the H24 clients boxes as well? I ask because the clients all use the same IP address as the main box, and I don't see how to add the client id to this dll setup.
|
#5
|
|||
|
|||
Quote:
I thought the client boxes for Genie were model H34 like the server HR34 or do you have something else not Genie? I know with Solid Signal (where I got my H24) they were individual units with tuners not clients and it looks like they still have some of those units: http://www.solidsignal.com/pview.asp...source=inhouse
__________________
"Keep your goals away from the trolls" |
#6
|
|||
|
|||
BobPhoenix,
Thanks for the info. Yes, I had the wrong model number (sorry for the confusion), it's actually an HR44-500. I installed the upgrade again today to try some more things. As soon as I upgraded, the EXEMultiTuner plugin stops working. I installed the DirecTVTuner.dll you mentioned, and it works fine, but only for the main box. There is no way to specify which of the client boxes I want the channel change to go to. What really puzzles me is why the EXEMultiTuner no longer works. I thought maybe something to do with where the registry entry it uses might have changed, so I copied the key to a few other locations, but to no avail. At least I can get by for now with tuning just one channel, so thanks for the help. I wish I knew how to program in windows, as I'm sure this isn't too difficult a problem to solve. If there was a simple .dll that just called a .bat file, I'd be back in business. For now, I might write something to run on a Raspberry Pi (already have one running a socket server I wrote a while back to run my home automation system), and point the DirecTVTuner.dll at that instead. I think I can probably do a binary edit of the DirecTVTuner.dll to make copies that will connect to different ports other that just 8080, and route the tuning commands that way. |
#7
|
|||
|
|||
Quote:
__________________
"Keep your goals away from the trolls" |
#8
|
|||
|
|||
Quote:
Then in the C:\Program Files (x86)\SageTV\Common\RemoteCodes\Directv HTTP Tuning folder I have a .IR file with each IP listed. Then when you go into the source setup you have to match the source to the box its controlling. Under Tuner Control select directv HTTP Tuning, "Change tuning device", then select the appropriate DTV STB |
#9
|
|||
|
|||
So, is it official that the MultiTuner does not work in v9? I did an upgrade yesterday and cannot seem to get the tuning to work. This has also been the case for me with the Linux variant, but I digress. The upgrade becomes useless if it will only support one HTTP tuner per server ...
|
#10
|
|||
|
|||
Quote:
For Linux have you tried gentuner? That is just a script so it should be easier to troubleshoot any problems with that.
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#11
|
|||
|
|||
I was using "Directv HTTP Tuning" on v9 in Windows.
Also: I just changed to the unRAID Docker for SageTV. I was able to get my HDHR, HD-PVR working with the newest release. I was not able to use the "Directv HTTP Tuning" in the Docker setup but I was able to use the Generic Tuner working with DirecTV (GenericTunerPlugin.so). Using the script I found on the forum the Generic Tuner will change the channel via IP on the DirecTV STB. It appears to handle multiple tuners but I am only using one right now. I would also expect the Generic Tuner would work in Windows v9 but have not tested it. For it to work in unRAID you must copy the script into a file called: "gentuner" stored in: /mnt/user/appdata/sagetv/server/gentuner Script: Code:
#!/usr/bin/perl # This script controls my DirecTV Genie (hr44) STB. Just update the IP addess # below and you should be good to go. You can also turn off debug if you don't # want the script to write to a log file. use strict; # List your STB's and IP addresses below. I only have one STB to control so # I gave these three the same address while I tested multi-box support. Feel # free to comment out and tuners that you don't need. my %stbs = ( 'DirecTV-Tuner-1' => '192.168.0.203', 'DirecTV-Tuner-2' => '192.168.0.203', 'DirecTV-Tuner-3' => '192.168.1.203', ); my $log = '/var/log/gentuner.log'; # Location of logfile. my $debug = 1; # Set to 1 to turn logging on. # Set to 0 to turn logging off. my $micro_send = 0; # Set to 1 to send one digit at a time # to the STB instead of the whole channel. # Set to 0 to send the whole channel number. my $command = $ARGV[0]; my $remote = $ARGV[1]; my $channel = $ARGV[2]; &logit( "Received COMMAND = $command | REMOTE = $remote | CHANNEL = $channel" ); &list_keys if ( $command eq "KEYS" ); &send_keys( $channel ) if ( $command eq "TUNE" ); &list_tuners if ( $command eq "REMOTES" ); print "OK\n" if ( $command eq "CAN_TUNE" ); sub list_tuners() { foreach my $tuner ( keys %stbs ) { print $tuner . "\n"; } } sub list_keys() { my @keys = ( '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'OK' ); foreach ( @keys ) { print "$_\n"; } } sub send_keys() { my $keys = shift; chomp $keys; &logit( "$keys" ); open ( CURL, "curl -s $stbs{$remote}:8080/remote/processKey?key=poweron |" ); while (<CURL>) { my $output = $_; chomp $output; &logit( $output ); } if ( $micro_send ) { foreach my $char ( split //, $keys ) { if ( $char =~ /\d/ ) { open ( CURL, "curl -s $stbs{$remote}:8080/remote/processKey?key=$char |" ); while (<CURL>) { my $output = $_; chomp $output; &logit( $output ); } } } } else { open ( CURL, "curl -s $stbs{$remote}:8080/tv/tune?major=$channel |" ); while (<CURL>) { my $output = $_; chomp $output; &logit( $output ); } } } sub logit() { my $message = shift; my $timestamp = &getLoggingTime(); if ( $debug ) { open ( LOG, ">> $log" ); print LOG "[$timestamp]\t$message\n"; close LOG; } } sub getLoggingTime() { my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); my $nice_timestamp = sprintf ( "%04d%02d%02d %02d:%02d:%02d", $year+1900,$mon+1,$mday,$hour,$min,$sec); return $nice_timestamp; }
__________________
Retired SageTV in favor of Plex\Emby and YouTubeTV. Last edited by SWKerr; 06-20-2017 at 09:17 AM. |
#12
|
|||
|
|||
Nor, am I. That's why I posed it as a question. It seems like the MultiTuner plugin has become a casualty of the upgrade to 64-bit. It's odd that that would be the case, but I have not seen any posts in which someone has successfully run the tuner in v9 on a 32-bit system ...
|
#13
|
|||
|
|||
Quote:
|
#14
|
||||
|
||||
@Intense - are you using Sage on Windows or Linux?
If Windows and you are staying with the same version of Windows, I would expect anything that ran under Sage v7 should continue to work with Sage v9. If moving from 32-bit Windows to 64-bit Windows, it is known that the Firewire drivers won't work (there are no 64-bit firewire drivers for Windows). If moving from Windows to Linux you there are some things that don't work the same.
__________________
Server: Ryzen 2400G with integrated graphics, ASRock X470 Taichi Motherboard, HDMI output to Vizio 1080p LCD, Win10-64Bit (Professional), 16GB RAM Capture Devices (7 tuners): Colossus (x1), HDHR Prime (x2),USBUIRT (multi-zone) Source: Comcast/Xfinity X1 Cable Primary Client: Server Other Clients: (1) HD200, (1) HD300 Retired Equipment: MediaMVP, PVR150 (x2), PVR150MCE, HDHR, HVR-2250, HD-PVR |
#15
|
|||
|
|||
How does it work that two STBs have the same IP and another one is on a different subnet?
__________________
New Server - Sage9 on unRAID 2xHD-PVR, HDHR for OTA Old Server - Sage7 on Win7Pro-i660CPU with 4.6TB, HD-PVR, HDHR OTA, HVR-1850 OTA Clients - 2xHD-300, 8xHD-200 Extenders, Client+2xPlaceshifter and a WHS which acts as a backup Sage server |
#16
|
|||
|
|||
Has anyone made progress on this? I know the script still works, because I can run it from the command line. SageTV just seems to ignore the call altogether ...
|
#17
|
|||
|
|||
When you setup a connection with the generic tuner you have the option to pick from a list of IPs based on what you put in the script. I only have one receiver so I just add the same IP for all entries in the script in case I want to add one later. But...if you had multiple you would list the IP of each. Once you setup the tuner you would go back an select the matching IP in the Generic tuner options.
__________________
Retired SageTV in favor of Plex\Emby and YouTubeTV. |
#18
|
|||
|
|||
Quote:
Here is my setup: DirecTV H23 192.168.0.30 DirecTV H24 192.168.0.31 DirecTV HR24 192.168.0.32 Code:
#!/usr/bin/perl # This script controls my DirecTV Genie (hr44) STB. Just update the IP addess # below and you should be good to go. You can also turn off debug if you don't # want the script to write to a log file. use strict; # List your STB's and IP addresses below. I only have one STB to control so # I gave these three the same address while I tested multi-box support. Feel # free to comment out and tuners that you don't need. my %stbs = ( 'DirecTV-Tuner-1' => '192.168.0.30', 'DirecTV-Tuner-2' => '192.168.0.31', 'DirecTV-Tuner-3' => '192.168.0.32', ); my $log = '/var/log/gentuner.log'; # Location of logfile. my $debug = 1; # Set to 1 to turn logging on. # Set to 0 to turn logging off. my $micro_send = 0; # Set to 1 to send one digit at a time # to the STB instead of the whole channel. # Set to 0 to send the whole channel number. my $command = $ARGV[0]; my $remote = $ARGV[1]; my $channel = $ARGV[2]; &logit( "Received COMMAND = $command | REMOTE = $remote | CHANNEL = $channel" ); &list_keys if ( $command eq "KEYS" ); &send_keys( $channel ) if ( $command eq "TUNE" ); &list_tuners if ( $command eq "REMOTES" ); print "OK\n" if ( $command eq "CAN_TUNE" ); sub list_tuners() { foreach my $tuner ( keys %stbs ) { print $tuner . "\n"; } } sub list_keys() { my @keys = ( '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'OK' ); foreach ( @keys ) { print "$_\n"; } } sub send_keys() { my $keys = shift; chomp $keys; &logit( "$keys" ); open ( CURL, "curl -s $stbs{$remote}:8080/remote/processKey?key=poweron |" ); while (<CURL>) { my $output = $_; chomp $output; &logit( $output ); } if ( $micro_send ) { foreach my $char ( split //, $keys ) { if ( $char =~ /\d/ ) { open ( CURL, "curl -s $stbs{$remote}:8080/remote/processKey?key=$char |" ); while (<CURL>) { my $output = $_; chomp $output; &logit( $output ); } } } } else { open ( CURL, "curl -s $stbs{$remote}:8080/tv/tune?major=$channel |" ); while (<CURL>) { my $output = $_; chomp $output; &logit( $output ); } } } sub logit() { my $message = shift; my $timestamp = &getLoggingTime(); if ( $debug ) { open ( LOG, ">> $log" ); print LOG "[$timestamp]\t$message\n"; close LOG; } } sub getLoggingTime() { my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); my $nice_timestamp = sprintf ( "%04d%02d%02d %02d:%02d:%02d", $year+1900,$mon+1,$mday,$hour,$min,$sec); return $nice_timestamp; } Note I have my HDPVRs setup as network encoders because I was having problems with 5.1 audio on my HDPVRs and had to go with a Windows VM to get the Windows driver for the 5.1 audio. This is not necessary for most.
__________________
"Keep your goals away from the trolls" Last edited by BobPhoenix; 06-24-2017 at 09:37 AM. |
#19
|
|||
|
|||
I should have been more explicit with my use of the term "this". I meant the issue of the EXEMultituner in 32-bit Windows with v9 ...
|
#20
|
|||
|
|||
I am running windows 10 64 bit on my sage server. I have three directv H23 receivers each connected to an HDPVR. I use Ericvic's network tuning method. I used it for years on sage v7 and I am using it now on V9. Works great with v9.
__________________
Central Sage Server Win 10 64 Bit, Two HD200, Three HD300, & One PC Client 21 TB storage. SageTv 64 Bit |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Http tuning | SteveD | Hardware Support | 4 | 12-21-2014 06:32 PM |
Question about IP Tuning DirecTV | freewheeling | Hardware Support | 14 | 04-19-2014 07:17 PM |
Direct TV H23 and usb tuning question .. | TechBill | Hardware Support | 14 | 10-28-2008 05:29 PM |
Tuning timeout question | NCAL | SageTV Software | 0 | 05-01-2008 06:41 AM |
question about fine tuning | beyond | SageTV Software | 1 | 11-13-2003 08:00 PM |