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
  #1  
Old 08-27-2008, 07:59 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Arrow 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.
Reply With Quote
  #2  
Old 08-28-2008, 09:12 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
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
Reply With Quote
  #3  
Old 08-28-2008, 09:53 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
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>
One last thing, don't forget after any change to the config file, you have to restart the program (service) for it to pick up the changes.

Good Luck!
shadeBlue
Reply With Quote
  #4  
Old 08-28-2008, 09:57 PM
jlabrue jlabrue is offline
Sage Aficionado
 
Join Date: Feb 2005
Posts: 320
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.
Reply With Quote
  #5  
Old 08-28-2008, 09:58 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Quote:
Originally Posted by jlabrue View Post
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.
If the STB is power off, will it "wake up" to any other button, or only the Power button?
Reply With Quote
  #6  
Old 08-28-2008, 10:13 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Quote:
Originally Posted by shadeblue.com View Post
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>
One last thing, don't forget after any change to the config file, you have to restart the program (service) for it to pick up the changes.

Good Luck!
shadeBlue
Hey thanks for the tips. I found out my Motorola QIP6200-2 boxes don't have discreet on off commands!!!
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
Reply With Quote
  #7  
Old 08-28-2008, 10:19 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Quote:
Originally Posted by mikejaner View Post
Hey thanks for the tips. I found out my Motorola QIP6200-2 boxes don't have discreet on off commands!!!
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
Hi Mike, it does support multiple IR commands at different scheduled times (with minimum of one minute resolutions), but not sequencing multiple IR commands for a single event. However, I can try to add that functionality this weekend; it should not be too hard. So keep posted for an update! :-)
Reply With Quote
  #8  
Old 08-28-2008, 10:23 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
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
Reply With Quote
  #9  
Old 08-29-2008, 04:44 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Quote:
Originally Posted by mikejaner View Post
The code sequence is as follows:

Power
Power
Select
Menu
Exit
Power
Power
When do you kill the chicken?
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #10  
Old 08-29-2008, 05:19 AM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Quote:
Originally Posted by bcjenkins View Post
When do you kill the chicken?
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
Reply With Quote
  #11  
Old 08-29-2008, 07:21 AM
jlabrue jlabrue is offline
Sage Aficionado
 
Join Date: Feb 2005
Posts: 320
Quote:
Originally Posted by shadeblue.com View Post
If the STB is power off, will it "wake up" to any other button, or only the Power button?
I'll see if I can find something on that. Hadn't thought of that.
Reply With Quote
  #12  
Old 08-29-2008, 07:35 AM
briands briands is offline
Sage Icon
 
Join Date: Aug 2004
Location: Bloomington, IN
Posts: 1,093
Quote:
Originally Posted by mikejaner View Post
Hey thanks for the tips. I found out my Motorola QIP6200-2 boxes don't have discreet on off commands!!!
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
Are you sure this works? Because the way I look at it, if it start out off, it will end up back off
-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?
Reply With Quote
  #13  
Old 08-29-2008, 08:05 AM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
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.
Reply With Quote
  #14  
Old 08-29-2008, 08:36 AM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
Mike can you try this? I remember reading it somewhere:

MENU POWER for discrete off
MENU POWER POWER for discrete on
Reply With Quote
  #15  
Old 08-29-2008, 08:50 AM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Quote:
Originally Posted by ToxMox View Post
Mike can you try this? I remember reading it somewhere:

MENU POWER for discrete off
MENU POWER POWER for discrete on
I am at work now, so not until tonight.

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
Reply With Quote
  #16  
Old 08-29-2008, 08:59 AM
ToxMox's Avatar
ToxMox ToxMox is offline
Sage Icon
 
Join Date: Oct 2003
Location: NJ
Posts: 1,980
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.
Reply With Quote
  #17  
Old 08-29-2008, 10:49 AM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Quote:
Originally Posted by ToxMox View Post
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.
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
Reply With Quote
  #18  
Old 08-29-2008, 11:42 AM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Quote:
Originally Posted by mikejaner View Post
Yeah, that would be nice...
...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.
Reply With Quote
  #19  
Old 08-29-2008, 01:22 PM
mikejaner's Avatar
mikejaner mikejaner is offline
Sage Icon
 
Join Date: Oct 2003
Location: Chantilly VA
Posts: 2,087
Send a message via MSN to mikejaner
Quote:
Originally Posted by ToxMox View Post
Mike can you try this? I remember reading it somewhere:

MENU POWER for discrete off
MENU POWER POWER for discrete on
Just tried it, and it doesn't work

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
Reply With Quote
  #20  
Old 08-31-2008, 11:39 PM
shadeblue.com's Avatar
shadeblue.com shadeblue.com is offline
Sage Aficionado
 
Join Date: Jun 2008
Posts: 435
Quote:
Originally Posted by mikejaner View Post
Awsome, thanks!
Hi Mike,

Have not had a chance to make this change yet, hopefully tomorrow.

Regards,
shadeBlue
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 01:04 PM.


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