|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Utility: STBKeepAlive - scheduled commands for USB-UIRT
Some set top boxes (STBs) have a periodic timeout where after some amount of time of inactivity they power down or go into a standby mode. Well, this is not so good when you are using that STB in a PVR setup such as with SageTV. This is a widely known problem with the Motorola VIP-1200 STB used by AT&T Uverse.
If you are using a USB-UIRT to control your STB, then this free utility program should help out. It is designed to install and run as an NT service, so it can run unattended on a server. The utility is preconfigured to work with the Uverse Motorola VIP-1200, however in the program directory there is a STBKeepAlive.config file that you can edit with a text editor and change the raw IR command to work with your STB. To obtain the raw IR command, you can capture the required command in the SageTV USB-UIRT configuration and then open the *.IR file located in the "C:\Program Files\SageTV\Common\RemoteCodes\USB-UIRT Transceiver" directory. Please post any comments or issues to this thread. This program is currently in BETA. Thank You, shadeBlue.com More Information is located on the DOWNLOADS page Last edited by shadeblue.com; 08-29-2008 at 09:38 AM. |
#2
|
||||
|
||||
This is awsome, thanks so much!! I was just thinking about this yesterday, when my wife called me to tell me "SageTV was acting up again", and it actually turned out to be that once a month when my Verizon FIOS boxes turn themselves off. I was debating on hacking away at the USBUIRT to send some type of discreet on command at any channel change SageTV sends, with the SageTV Source Setup section. I wasn't sure how I would accomplish this, but you made it so I wont have to!!
I will let you know my results this weekend. Thanks again.
__________________
Mike Janer SageTV HD300 Extender X2 Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5 |
#3
|
||||
|
||||
Hi Mike,
I hope this program works out and helps solve this problem for you. In the STBKeepAlive.config file there is an XML node that contains the IR Command. You will want to change the name to a friendly name (used in logging) for your command, the actual IR data, and possibly the daily times to fire the command. Code:
<IRCommands> <IRCommand Name="Uverse Motorola VIP1200 - OK" IR="0000 0070 0000 0024 000F 000B 0006 000B 0006 0017 0006 000B 0006 001D 0006 0011 0006 000B 0006 000B 0006 000B 0006 000B 0006 0017 0006 0011 0006 0017 0006 0011 0006 0011 0006 001D 0006 000B 0006 0C87 000F 000B 0006 000B 0006 0017 0006 000B 0006 001D 0006 0011 0006 000B 0006 000B 0006 000B 0006 000B 0006 0017 0006 0011 0006 0017 0006 0011 0006 0011 0006 001D 0006 000B 0006 0C86" Schedule="00:55,03:55,06:55,09:55,12:55,15:55,18:55,21:55" RepeatCount="1" /> </IRCommands> If you know the time that the FIOS STB shuts down, you could just send a discrete Power On command on a daily basis at a scheduled time shortly after. If you need any help getting the appropriate IR command data, just post a question and I can help you through it. If you want to monitor this program's behavior, you can run the program in console mode, or you can modify the STBKeepAlive.config configuration file to enable detailed logging to a log file. You can do this by changing the threshold value in the logging FileAppender to "DEBUG". See below... Code:
<appender name="FileAppender" type="log4net.Appender.FileAppender"> <file value="STBKeepAlive.log" /> <threshold value="DEBUG" /> <appendToFile value="true" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" /> </layout> </appender> Good Luck! shadeBlue |
#4
|
|||
|
|||
This is very cool!
Question: Does anyone know if there is a discrete on/off command for a Scientific Atlantic 3250 STB. I have this problem with mine and have looked for a solution exactly like this. I just haven't been able to find or find proof of a discrete command. I'm guessing not since it has been so hard to find anything. |
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
Quote:
I did figure out a combination of key presses which will guarantee it is on though. Do you think the following key presses can be done with a ~250ms between each? I know I would have to get the codes, but does your program support multiple presses with a delay between each? The code sequence is as follows: Power Power Select Menu Exit Power Power
__________________
Mike Janer SageTV HD300 Extender X2 Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5 |
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Awsome, thanks!
__________________
Mike Janer SageTV HD300 Extender X2 Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5 |
#9
|
|||
|
|||
When do you kill the chicken?
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#10
|
||||
|
||||
Before.
Also, this code did give me 100 lives after I put it in.
__________________
Mike Janer SageTV HD300 Extender X2 Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5 |
#11
|
|||
|
|||
I'll see if I can find something on that. Hadn't thought of that.
|
#12
|
|||
|
|||
Quote:
-OFF Power -ON Power -OFF Select (ignored since it's off) -OFF Menu (ignored since it's off) -OFF Exit (ignored since it's off) -OFF Power -ON Power -OFF If the answer is that the unit does not "accept" a key in close proximity to the ON command (but it does the off), couldn't you just send power twice? |
#13
|
||||
|
||||
Quick answer is, no other key press will turn the unit on. As a result, I needed to find a key sequence which will work to guarantee the unit is on.
Now let me answer why this key sequence does work. The back story is, these Verizon QIP6200-2 boxes used to bring up the "Service Menu" if the power was off and you pressed the menu button. In one of their updates in the past year, they made that slightly more difficult. You now have to press Select/OK and then Menu just after the power has been turned off; If the power is already off, then you have to press Power twice, to turn it on quickly, then the rest of the sequence.So.... Power Power Select Menu In the worst case senario to bring up the service menu. What I discovered is if the unit on, when you press this, you get the following actions: STB Off STB On OSD Main Menu I thought, we might have something here, but I need the menu to go away, so let me press the Exit key in both situations. By pressing the Exit key, if the unit is on, exit's the Main Menu back to Live TV. By pressing the Exit key, if the unit is off, does not exit the Service Menu. Further, I found out by pressing the power button while in the service menu, turns it off, then by pressing it again, turns it on normally. So, I came to the following sequence of events: Power Power Select Menu Exit Power Power Which results in one of the two events: Power Already On: STB Off STB On OSD Main Menu Live TV STB OFF STB On Power Already Off: STB On STB Off Service Menu STB Off STB On
__________________
Mike Janer SageTV HD300 Extender X2 Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5 Last edited by mikejaner; 08-29-2008 at 08:08 AM. |
#14
|
||||
|
||||
Mike can you try this? I remember reading it somewhere:
MENU POWER for discrete off MENU POWER POWER for discrete on |
#15
|
||||
|
||||
Quote:
According to this forum: http://www.remotecentral.com/cgi-bin...hread.cgi?3714 This is a sequence which works when entering the service menu by pressing menu while the unit is off. It looks like this would have worked, if they didn't take that sequence out. At the least it would have to be the following for me. Select MENU POWER POWER But since the device only likes the sequence to happen right after being powered off.... POWER Select MENU POWER POWER And so on. Looking at my sequence though, I might be able to get away with the following, if the Main Menu is not back on the screen after power cycling. POWER POWER Select MENU POWER POWER Either way, it comes out to being a Macro. I will try tonight though to see what I can find out.
__________________
Mike Janer SageTV HD300 Extender X2 Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5 |
#16
|
||||
|
||||
With the HDPVR it would seem there could be some code that if it starts recording and is receiving no signal then it could send a power on command to the box.
|
#17
|
||||
|
||||
Yeah, that would be nice...
__________________
Mike Janer SageTV HD300 Extender X2 Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5 |
#18
|
||||
|
||||
...or embed this logic into sage, perhaps an IR command when the STB is no longer in use and a another at some interval prior to sage needing to make use of the STB. That way we could power down STB's no longer in use to conserve energy and bandwidth consumption in the case of IPTV. It does seem that sage "knows" when there is no source content, I have seen that displayed on occasion.
|
#19
|
||||
|
||||
Quote:
My previous post about taking that one step out of my other sequence does work though.
__________________
Mike Janer SageTV HD300 Extender X2 Sage Server: AMD X4 620,2048MB RAM,SageTV 7.x ,2X HDHR Primes, 2x HDHomerun(original). 80GB OS Drive, Video Drives: Local 2TB Drive GB RAID5 |
#20
|
||||
|
||||
Hi Mike,
Have not had a chance to make this change yet, hopefully tomorrow. Regards, shadeBlue |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
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 |