|
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
|
||||
|
||||
Tricking a set-top box to wake up?
I've got a cable set-top CISCO box that's being triggered by Sage via 1394. It all works great, except for...
The cable company (Cox) builds in a six-hour kill rule on their set-top boxes, to stop us evil, paying customers from hogging their precious digital bandwidth. So, the box goes to a splash screen after six hours of no-channel-changes. I have always set "Always Tune Channel" in Detailed Setup / Customize, and it is currently set to "Yes", but lately, if I have a recording set to fire that falls OUTSIDE the six-hour screen saver window, Sage doesn't seem to be waking up the CISCO box. Strangely, Sage DOES seem to be changing the channel, but the box isn't waking up properly, and I get 90 minutes of no-audio, black screen. Any idea what to try next besides doing a hard-power-down-reset on the set-top box? The only other thing I can think of is that when the CISCO goes into screen saver mode, the channel change from Sage is causing the HDPVR to get disrupted somehow, maybe a power supply issue? When the CISCO box hasn't shut down to its screensaver, channel changes don't cause a problem for the HDPVR
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson Last edited by tvmaster2; 06-20-2018 at 06:43 PM. |
#2
|
|||
|
|||
Maybe create some recurring timed 1 minute recordings every 5-6 hours to keep the box alive? Not sure how easily you can keep them away from your regular recordings though.
|
#3
|
|||
|
|||
Many cable boxes have a menu option to disable that annoying power-save timeout.
In the case of the Motorola DCX3200, it's found under Settings -> Timers -> Power Save Mode. This box also has a setting to enable an "auto power-on timer". Armed with the model number, it should be possible to locate the STB's technical manual online, either at the cable co's website or via Google. It usually includes info about other options within the box itself.
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#4
|
||||
|
||||
Quote:
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson |
#5
|
||||
|
||||
I have this same issue with a Samsung STB in my upstairs office closet, which despite the settings continues to turn itself off regularly. There also isn't a serial or firewire port to control it with, so I'm limited to an IR blaster to control it.
When the STB is on, the display is noticeably brighter than when off, so I've been thinking about trying to use a cheap camera aimed at the display to take regular pictures, and then working out an algorithm to examine the picture and determine if it's on or off. I know I've seen something like this in the past but don't remember where. It might be as simple though as looking at the raw data in the image file. I think a low resolution image might be fairly easy to examine. The things we do to make this stuff work... |
#6
|
||||
|
||||
What does it take to manually wake the box up, and how long before it will accept the channel change? When I was using this method (only via IR), I seem to recall setting Sage to lead the channel change with an "enter" key command to alleviate this problem, just not sure your condition will work this way. Maybe even put a pause of some kind in between the "enter" command and the actual channel change.
Additionally, it be wise to increase your tuning delay time for the HDPVR. Last edited by KryptoNyte; 06-21-2018 at 04:19 PM. |
#7
|
|||
|
|||
I have some older SA boxes (Cisco bought SA in 2005 and then sold them to Technicolor in 2015) and they have a setting called Power ON or something like that. Change it so that it powers on when channel changes. Hopefully your box has that setting.
__________________
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 |
#8
|
||||
|
||||
Quote:
__________________
Sage 9 server = Gigabyte AMD quad-core - 4 gigs - integrated ATI HD4200 chipset - SSD boot, Hitachi Deskstar show drives. HD-PVR - Colossus - Win7 32 bit. HD200/300’s networked. HDHomerun tuner. "If you've given up on Weird Al, you've given up on life" - Homer Simpson |
#9
|
||||
|
||||
Quote:
I can post the details if anyone wants them. |
#10
|
|||
|
|||
Please, do post up the details of your solution. I've got one Sage system with an STB that may benefit from this.
I would never be one to badmouth Rube Goldberg! (Although I do sometimes look cross-eyed at him).
__________________
System #1: Win7-64, I7-920, 8 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HDHR-US (1st gen white) tuners. HD-200. System #2: Win7-64, I7-920, 8 GB mem, 4TB HD. Java 1.8.0_131. Sage v9.1.6.747. ClearQAM: 2x HDHR3-US tuners. HD-200. System #3: Win7-64, I7-920, 12 GB mem, 4TB HD. Java-64 1.8.0_141. Sage-64 v9.2.1 ATSC: 2x HVR2250; Spectrum Cable via HDPVR & USB-UIRT. 3x HD-200. |
#11
|
||||
|
||||
STB On/Off Test using image of display
By popular demand, here is my method for determining if my STB has turned itself off. A batch file runs at X:25 and X:55 of each hour (I run Win 7) that takes a picture of the front panel display, uses a quick image analysis to determine if the STB has turned itself off, and if so then send a blaster command and send a text message. This particular STB display is dimmed when off, so I use a test to determine if the brightness threshold is above a certain amount as an ON or OFF test.
I chose to do this in a regular DOS batch file, but it could be done in Powershell as well I'm sure and probably better. It should also be easily translated to Linux since both VLC and ImageMagic have Linux versions available, and there are Linux blaster and email programs. Code:
cd \scripts "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --dshow-vdev="Logitech Webcam 600" --dshow-size=320x240 -V dummy --intf=dummy --dummy-quiet --video-filter=scene --no-audio --scene-path=C:\scripts --scene-format=jpeg --scene-prefix=snap --scene-replace --run-time=5 --scene-ratio=24 "dshow://" vlc://quit "C:\Program Files\ImageMagick-7.0.8-Q16\magick.exe" convert snap.jpeg -crop 45x45+215+115 -colorspace HSB -separate -delete 0,1 -threshold 80%% -format "%%[max]" info: >STBresult.txt set /p VAL=<STBresult.txt if "%VAL%"=="0" ( "C:\Program Files (x86)\EventGhost\eventghost.exe" -event "HTTP.STBPWR" mailsend -to Zogg@vtext.com -from Zogg@gmail.net -port 587 -smtp smtp.gmail.com -user Zogg@gmail.net -pass "ZoggZogg" -sub "EventGhost" -auth-login -starttls -dispostion "inline" -mime-type "text/plain" -msg-body "EGstbpwrmsg.txt" ) First, VLC runs and takes a picture from a webcam pointed at the STB display, as seen in snap.jpeg. You would need to determine the exact device name to use by doing "Open capture device" from within VLC. The resolution can be fairly low and makes the analysis quicker I think, so I chose 320x240. Then, ImageMagick analyzes the picture. An example cropped image is attached, but there's no need to actually store the cropped image since IM does it all in one command. I determined how to set a threshold for brightness detection HERE and set it at 80%, which for my purposes seems to be spot on. The result is either "0" or "65535" which gets stored into a file. The set command reads the value into a variable. This is necessary because in DOS you can't send a program result directly into a variable (I believe you can in Powershell), but it's pretty quick to store a simple result code into a file and then read it back. If the result is "0", then the brightness of the picture is below the threshold so the STB must be off. So, time to "press" the power button. In my case, I couldn't get any command line program to work with my USB-UIRT, so I just send an event to EventGhost which is set up to send the command. I absolutely love EG, it is so powerful, and I continually find more things to do with it. Essentially, it will decode keystrokes, remote commands from IR/X-10/etc, network commands, and then can do almost anything, and it has plugins to interface with most remotes, home automation, webserver, etc. It also has a SageTV plugin so I use it for my remote control handling. Did I say that I love EG? Finally, I decided to send a text to my cell phone to let me know that this process fired off. I use a program from Github called mailsend, which can be a bit tricky to set up so I left an example with changed personal info in the code above. In the text file that contains the message body it just says "STB Power command sent" but you can put whatever you want in the text file. I hope you find this helpful or gives you an idea on how to automate some process. Let me know if you have any questions. |
#12
|
|||
|
|||
Brilliant - I love stuff like this!
I tried a similar strategy in the past by doing a test recording in SageTV and running it through comskip via SJQ as comskip will give you an average brightness. If the brightness was below the threshold then you fire off a power toggle.
__________________
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 |
#13
|
||||
|
||||
This is really clever. I like it.
__________________
SageTV v9 Server: ASRock Z97 Extreme4, Intel i7-4790K @ 4.4Ghz, 32GB RAM, 6x 3TB 7200rpm HD, 2x 5TB 7200rpm HD, 2x 6TB 7200rpm HD, 4x 256GB SSD, 4x 500GB SSD, unRAID Pro 6.7.2 (Dual Parity + SSD Cache). Capture: 1x Ceton InfiniTV 4 (ClearQAM), 2x Ceton InfiniTV 6, 1x BM1000-HDMI, 1x BM3500-HDMI. Clients: 1x HD300 (Living Room), 1x HD200 (Master Bedroom). Software: OpenDCT :: WMC Live TV Tuner :: Schedules Direct EPG |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HD300 wake on lan | dinki | SageTV Media Extender | 14 | 11-03-2013 06:36 AM |
Wake On Lan (WOL) how to? | bjkiller | General Discussion | 18 | 11-29-2011 07:20 PM |
Wake On WAN | craigap | Hardware Support | 1 | 04-24-2009 06:35 PM |
Wake up a STB via Firewire ? | sorrowstyr | Hardware Support | 4 | 08-05-2008 02:12 PM |
My PC won't wake up | AtariJeff | The SageTV Community | 1 | 04-21-2008 09:19 AM |