SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #181  
Old 03-29-2012, 10:12 AM
nettech_gt nettech_gt is offline
Sage Advanced User
 
Join Date: Jun 2007
Posts: 218
Any ideas why this is not working for me ? THANX!
Reply With Quote
  #182  
Old 07-30-2012, 01:40 PM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
I would like to know if STBKeepAlive works with Windows 7 64-bit. It sounds like it might work with Windows 7 64 bit now.

Does anyone have this working with a Dish Network VIP222K set top box? If so, what are the steps to getting the STBKeepAlive utility working with the VIP222K?

Is there a way to run the utility so the Dish Network splash screen is not part of the recordings? Or is putting up with occasional Dish Network splash screens the only way to for the set top box to stay on continuously?

Dave
Reply With Quote
  #183  
Old 07-31-2012, 07:53 AM
nettech_gt nettech_gt is offline
Sage Advanced User
 
Join Date: Jun 2007
Posts: 218
As you can see from the post above I'm still waiting for help... The developer started to help but I have not heard anything in months and it still dosen't work for me. I have 2 VIP222 and 1 VIP211 and I'm using Win 7 64 bit on my server. Good Luck!
Reply With Quote
  #184  
Old 07-31-2012, 09:49 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
Quote:
Originally Posted by nettech_gt View Post
As you can see from the post above I'm still waiting for help... The developer started to help but I have not heard anything in months and it still dosen't work for me. I have 2 VIP222 and 1 VIP211 and I'm using Win 7 64 bit on my server. Good Luck!
I think the STBKeepAlive utility won't be needed for the VIP222K, I don't know about your other set top box. I have Windows 7 64-bit, and I think if you configure the USB-UIRT to transmit a 'select' IR code before the numeric digits, the VIP222K will go out of the power down mode to on. I got this advise on the post with the subject VIP222K.

I have my USB-UIRT programmed to send a 'select' IR code before and after the numeric digits. I will have to give it some time to go into sleep or power down mode to make sure that method works.The VIP222K set top box is probably not actually powering down at all, and I don't know if it is saving any power. However, that VIP222K set top box 'feature' is very annoying and cannot be disabled.

Dave
Reply With Quote
  #185  
Old 08-02-2012, 06:15 AM
davephan's Avatar
davephan davephan is offline
Sage Icon
 
Join Date: Mar 2004
Location: Minnesota
Posts: 1,911
My Dish Network VIP222K set top box does not need the STBKeepAlive utility. I have SageTV programmed to send a 'select' before and after the numeric digits. If the set top box is in the automatic 'off' state, the 'select' command wakes up the set top box. The SageTV USB-UIRT configuration has been working flawlessly for two days. I had to remove all the non-subscribed channels from the configuration, otherwise the set top box could get stuck in a screen asking if I wanted to upgrade the service. Maybe putting parent lockout on the non subscribed channels would reduce the risk of the set top box losing USB-UIRT control if the USB-UIRT IR codes are mis-interpreted as a non-subscribed channel.

Dave
Reply With Quote
  #186  
Old 01-27-2013, 11:46 AM
sjwoo sjwoo is offline
Sage User
 
Join Date: Jul 2004
Posts: 69
I'm getting an error with my install. Seems like it has to do wth USB-UIRT? I'm running Windows 8 64-bit. Using USB-UIRT driver Win7_Win8_Vista_v20601_signed.zip.

2013-01-27 12:22:14,698 [10] ERROR STBKeepAlive.Service [(null)] - [STBKeepAlive.Transmit] TRANSMISSION TO USBUIRT FAILED.
[STBKeepAlive.Transmit] ERROR: System.TypeInitializationException: The type initializer for 'UsbUirt.Controller' threw an exception. ---> System.ApplicationException: Unable to read UsbUirt driver version ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at UsbUirt.Controller.UUIRTGetDrvInfo(UInt32& drvVersion)
at UsbUirt.Controller..cctor()
--- End of inner exception stack trace ---
at UsbUirt.Controller..cctor()
--- End of inner exception stack trace ---
at UsbUirt.Controller..ctor()
at STBKeepAlive.Transmit.Program.Main(String[] args)

2013-01-27 12:22:14,823 [10] ERROR STBKeepAlive.Service [(null)] - IR COMMAND TRANSMISSION FAILED @ 12:22:08 PM
Reply With Quote
  #187  
Old 05-06-2013, 10:11 PM
bmellesmoen bmellesmoen is offline
Sage User
 
Join Date: Dec 2006
Posts: 9
I'm getting the same issue. Does anyone know if there and updated STBKeepAlive application that supports Windows 8 (64-bits)? Or is the source code available?
Reply With Quote
  #188  
Old 06-09-2013, 11:49 AM
KryptoNyte's Avatar
KryptoNyte KryptoNyte is online now
SageTVaholic
 
Join Date: Dec 2006
Posts: 2,754
I'm not a programmer I'm afraid and I can barely follow the logic in the config file, but after some testing, here are my experiences with Windows 7 64bit. All files mentioned below are in the root install directory for the application.

1) I made a backup of the original STBKeepAlive.exe.config file, calling it some other misc filename, to retain a copy of the original while I tested.

2) As mentioned previously in the thread, I had to shutdown the SageTV service prior to running the STBKeepAlive.IRLearn.exe to learn my remotes "Select" command. It learned the command and I highlighted and copied the command text to the clipboard. The SageTV service is left off for now.

3) After some fooling, I found that I can only get the default job ("Uverse STB Wake Up") to run, no matter what job I call up in the add key="Resume ... commands at the top of the config file, and because I wanted to test this with the 45 second job, I finally punted and just pasted the 45 second code (from the example lower in the original config file) into the default job ("Uverse STB Wake Up"). I then highlighted the default IR code inside the quotes in that job and pasted my own code in from the clipboard. I also changed the interval in quotes from "45" to "10" to ease testing.

4) I ran the "Run STBKeepAlive in Console" file in the root program directory and watched it succeed in sending my designated remote code every 10 seconds. Perfect!

5) I then restarted the SageTV service and the console continued to send the correct command every 10 seconds.

6) I then had Sage start a recording on the STB. I then played with it a bit with two different results:
a) The first time I tried this, STBKeepalive must have had control of the USB-UIRT driver, because Sage failed to change the channel, and STBKA just kept running its command every 10 seconds. This was a fluke due to my extremely short interval, and Sage trying to grab control while the driver was already in use by STBKA.
b) The second experience was when Sage grabbed control of the USB-UIRT driver and successfully changed the STB channel at which point the STBKA continue to attempt the IR transmit, but failed every 10 seconds from here on.

7) Moving on from result (b) above, I then told Sage to cancel the recording, but STBKA was still failing every 10 seconds. I let it run for another 5 minutes, failing every 10 seconds over that period of time.

8) I then stopped the SageTV service and immediately STBKA started to successfully transmit it's IR again, every 10 seconds.

9) I then restarted the SageTV service and STBKA continued to send it's IR command successfully until Sage actually attempts to use the USB-UIRT.

So, my layperson's conclusion is that I don't know how this could work successfully based on these results. As soon as Sage touches the USB-UIRT, STBKA can no longer access it until the Sage Service is shutdown and restarted.

I don't know a darn thing about SageTV V7 plugins, but it seems like STBKA would be a prime candidate for a plugin, where the control of the USB-UIRT is still within Sage and no external software is involved. Additionally, the plugin would have access to Sage's current state, so if something was actually recording, it would not send the KeepAlive command.

Any other folks have any thoughts?

I would however like to thank Shadeblue for going after this, it's much appreciated. Although I may very well be making a mistake with my config file, I'm not seeing how this can work as it stands today. My hacked up config file is attached - remember it has my STB's IR code in it.
Attached Files
File Type: zip STBKeepAlive config file.zip (2.3 KB, 182 views)
Reply With Quote
  #189  
Old 02-19-2017, 05:54 PM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
Is there any way to create a version of this plugin that would allow the remote invocation of a tuning command to the USB-UIRT:

1. installed on a SageTV Server as a plugin
2. accepts a REST-like call to:

Tune Channel=channel# Zone=zone#


This would allow the use of OpenDCT (or any network tuner) to use the USB-UIRT.

Thanks in advance.
Reply With Quote
  #190  
Old 02-19-2017, 06:38 PM
wayner wayner is offline
SageTVaholic
 
Join Date: Jan 2008
Location: Toronto, ON
Posts: 7,491
One of the issues for this would that it would require a lot of OS specific back-end work. For example, on Linux the USB-UIRT doesn't support zones. Ideally you would like this to work with other tuning methods like firewire, etc.
__________________
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
Reply With Quote
  #191  
Old 02-19-2017, 06:50 PM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
How about instead the ability to invoke the tuning plugin by name:

tuningPluginName Channel=channel#

For .ir the Tuning Plugin can be configured to use different .ir files for each zone (as it is done today in USB-UIRT).

This would be simply a REST invocation of the tuningPlugin by Name passing the channel...
Reply With Quote
  #192  
Old 02-20-2017, 06:48 AM
Fuzzy's Avatar
Fuzzy Fuzzy is offline
SageTVaholic
 
Join Date: Sep 2005
Location: Jurupa Valley, CA
Posts: 9,957
You should be able to use sagex to call this command:
TransmitCommandUsingInfraredTuningPlugin(java.lang.String, int, java.lang.String, java.lang.String, int)
__________________
Buy Fuzzy a beer! (Fuzzy likes beer)

unRAID Server: i7-6700, 32GB RAM, Dual 128GB SSD cache and 13TB pool, with SageTVv9, openDCT, Logitech Media Server and Plex Media Server each in Dockers.
Sources: HRHR Prime with Charter CableCard. HDHR-US for OTA.
Primary Client: HD-300 through XBoxOne in Living Room, Samsung HLT-6189S
Other Clients: Mi Box in Master Bedroom, HD-200 in kids room
Reply With Quote
  #193  
Old 02-20-2017, 11:54 AM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
Thanks for the information.

I see the doc:

Quote:
TransmitCommandUsingInfraredTuningPlugin

public void TransmitCommandUsingInfraredTuningPlugin(java.lang.String TuningPlugin,
int TuningPluginPort,
java.lang.String RemoteName,
java.lang.String CommandName,
int RepeatFactor)
Causes SageTV to instruct the specified tuning plugin to send a command
Parameters:
TuningPlugin - the name of the tuning plugin that should send the command
TuningPluginPort - the name of the port the specified tuning plugin is on
RemoteName - the name of the 'Remote Control' that should be used to send the command
CommandName - the name of the command to be sent
RepeatFactor - the 'repeat factor' to use for sending the infrared command, 2 is the default

Questions:

1.
So the format would be:

Code:
http://hostname/sagex/api?c=TransmitCommandUsingInfraredTuningPlugin&1=TuningPlugin&2=TuningPluginPort&3=RemoteName&4=CommandName
What should be used for parameters for the built in USB-UIRT tuning?

2. tried to list the command available using

http://hostname/sagex/api

this times out... how do I enable sagex on the Server?

3. does sagex work with Java 8?
Reply With Quote
  #194  
Old 02-20-2017, 12:13 PM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
Installed the sagex api plug-in (image attached)... still cannot access the API:

hxxp://localhost/sagex/api


Am I missing a requirement? please advise


SageTV9 with Java 8.
Attached Images
File Type: png sagex-plugin-installed.PNG (605.0 KB, 133 views)
Reply With Quote
  #195  
Old 02-20-2017, 12:59 PM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
oops...

1. installed sagex-api instead of sagex-services...
2. url is: localhost:8080/sagex/api not localhost/sagex/api

after installing sagex-services and restarting works.

Now my question is #1 above - what parameters to invoke the built-in USB-UIRT tuner?
Reply With Quote
  #196  
Old 02-20-2017, 01:54 PM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
I've tried many commands to get the parameters.. they are all not working ...

Please let me know how to do this properly (see attached image of source).


This is what I have done so far:

1:

Code:
http://10.0.0.25:8080/sagex/api/?c=GetActiveCaptureDevices
Output:

Code:
Result size="3">
<Item>
<![CDATA[
DCT-HDHomeRun Prime Tuner 131104FC-0 on 127.0.0.1:9000
]]>
</Item>
<Item>
<![CDATA[ STB-2 on 127.0.0.1:9000 ]]>
</Item>
<Item>
<![CDATA[ STB-1 on 127.0.0.1:9000 ]]>
</Item>
</Result>
2:

Code:
http://10.0.0.25:8080/sagex/api/?c=GetInfraredTuningPlugin&1=%22STB-2%20on%20127.0.0.1:9000%22
which returned this empty:


3:

Code:
http://10.0.0.25:8080/sagex/api/?c=GetInfraredTuningPluginPortNumber&1=%22STB-2%20on%20127.0.0.1:9000%22
also returns empty:

Code:
<Result/>


4:

Code:
http://10.0.0.25:8080/sagex/api/?c=GetInfraredTunerRemoteName&1="STB-2%20on%20127.0.0.1:9000"
also returns empty:


Quote:
<Result/>
Attached Images
File Type: jpg SageTV Network Encoder BM3000-HDMI source.jpg (104.4 KB, 128 views)
Reply With Quote
  #197  
Old 02-21-2017, 12:49 AM
sflamm sflamm is offline
Sage Icon
 
Join Date: Mar 2009
Posts: 1,653
I've created a working powershell script that can tune the USB-UIRT channels remotely:

Code:
Param([string]$TunerNumber, [string]$ChannelNumber)


$ChannelNumberArray = $ChannelNumber.ToCharArray()

$TuningCommand = "http://10.0.0.25:8080/sagex/api/?c=TransmitCommandUsingInfraredTuningPlugin"
$TuningPlugin = "&1=USB-UIRT Transceiver"
$TuningPluginPort = "&2=0"
$BaseRemoteName = "PaceRNG150"
$RemoteName = "&3=" + $BaseRemoteName + "-" + $TunerNumber
$RepeatFactor = "&5=2"

$Username = "sage"
$Password = "frey"

$Headers = @{ Authorization = "Basic {0}" -f [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $Username,$Password))) }

$Output = "output.txt"


foreach ($digit in $ChannelNumberArray) {

#Write-Output ********

$CommandName = "&4=$digit"
$Uri = $TuningCommand +  $TuningPlugin + $TuningPluginPort + $RemoteName + $CommandName + $RepeatFactor

Write-Output uri:$Uri

Invoke-RestMethod -Uri $Uri -Headers $Headers -Outfile $Output
This can be used with OpenDCT for the tuning executable (adjust parameter names accordingly)

Code:
sagetv.device.sagetv.device.<unique_id>.tuning_executable=/path/to/tuning/script --device=0 --tune=%c%
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Channel Changing Issues (scheduled programs only) Addict Hardware Support 9 05-26-2008 10:11 PM
Harmony 520 Remote With Hauppauge Commands Taddeusz Hardware Support 5 04-27-2007 06:04 AM
Link uirt descrete code to custom command DRAK SageTV Software 2 04-16-2007 09:36 AM
Problems controlling DEC-3000S with USB UIRT oaamaas Hardware Support 2 04-10-2007 01:52 PM
UIRT not talking to Sage TV..... markgill Hardware Support 3 05-07-2006 12:45 PM


All times are GMT -6. The time now is 06:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.