or Connect
AVS › AVS Forum › Video Components › Home Theater Computers › Cliff Watson EPG add-on for MyHD, FusionHDTV, and HD Homerun
New Posts  All Forums:Forum Nav:

Cliff Watson EPG add-on for MyHD, FusionHDTV, and HD Homerun - Page 124

post #3691 of 3896
I see 3 differences between your setup and mine (which isn't necessarily wrong, especially since TP's setup is that same as yours). On my Windows Task Manager page, UAC Virtualization is not checked and in fact is grayed out, probably because of the next 2 settings. On the CW_Helper Properties page I checked to run in compatibility mode for XP SP3 and also to run as an administrator.

powercfg -waketimers should always show the next update wakeup time, except possibly just after such a wakeup but before CW_EPG finishes the checkin.

Although you should get that wakeup working, I add a little insurance by setting a wake timer in CMOS setup to a few minutes before the normal checkin. Many recent BIOSs allow this to wake the computer from full shutdown. I don't think it is effective in any sleep mode but it keeps the computer on schedule if power is lost and returned. Another BIOS setting is what to do if power goes out and comes back: stay off, turn on or return to the state it was in before the outage. I set it to turn on so that after the idle timeout it will return to the sleep mode I've set.
post #3692 of 3896
Thanks ebo. I appreciate you posting your settings. My next inclination is to try the XP SP3 Compatibility Mode, because my previous HTPC was that exact OS running this version of CW_EPG, and I never had these wake-up issues. And the verbage that MS put on that dialog box suggests I should try it: "If you have problems with this program and it worked correctly on an earlier version of Windows, select the compatibility mode that matches that earlier version."

Ah, the joys of upgrading smile.gif

Quote:
Originally Posted by ebo View Post

Another BIOS setting is what to do if power goes out and comes back: stay off, turn on or return to the state it was in before the outage. I set it to turn on so that after the idle timeout it will return to the sleep mode I've set.

I never thought about doing that. Excellent idea, thank for sharing.

Thanks again everybody.
post #3693 of 3896
Thread Starter 
The Automatic Settings timer does show up in the powercfg output, so if you don't see it there you didn't succeed in setting it up in CW_EPG.

As I said, your properties on CWHelper and mine are the same. There is no need to run CWHelper as Administrator, nor to use any compatibility modes! We developed this version using W7 as a test bed.
post #3694 of 3896
Well, football season has started and new episodes are airing so I'm recording, again.cool.gif Last time I was here was last football season, of course, --you all helped me with "negative padding" (recording only part of show) either by altering CW's watchlist.csv file, and/or using MDB Viewer to modify Schedules Direct program's start/stop times. Been successfully altering the watchlist file's times successfully ever since and just now successfully changed the way CW EPG sees SD with the neat MDB program. Both methods, though more time consuming than most EPG programs, work fine and can be used if you only want to record part of a show(s). Altering the watchlist file works better for me since I think you only have to change it one time, and is also easier than downloading and using a new program, but you may miss your first recording for some reason. MBDviewer.exe allowed me to get that first recording (a show already downloaded by CW and in my automatically record list). The program is really overkill for such a simple task, yet I'm sure has other uses I don't know of? On my computer the only *.mbd files were for MyHD and CW.

You all really know your stuff and we all greatly appreciate your help.smile.gif I'm happy to report that you have kept me gladly using MyHD on my old XP box that now has 8 TB's worth of hard drives inside!cool.gif
Edited by a8vdeluxe - 9/27/12 at 2:02am
post #3695 of 3896
Thread Starter 
Vlad, did you solve the wake-up problem? I'm now seeing perhaps the same issue on a Win XP system. If yours is resolved what did the trick?
post #3696 of 3896
Thread Starter 
Vlad, the penny finally dropped and I know why you and I have been seeing failed wakeup events. With the current CWHelper code there is an effective upper bound of about 2 minutes on the HDHR lead time. Try setting it to 120 seconds and see if your tuners can get ready in that time. You may be able to get away with as much as 150 if you really need that much, but we need to patch CWHelper to make long lead times more reliable.
post #3697 of 3896
Quote:
Originally Posted by TPeterson View Post

With the current CWHelper code there is an effective upper bound of about 2 minutes on the HDHR lead time. Try setting it to 120 seconds and see if your tuners can get ready in that time. You may be able to get away with as much as 150 if you really need that much, but we need to patch CWHelper to make long lead times more reliable.

TPeterson, thanks for the information. I have set my HDHR lead time to 120 seconds, and everything is *almost* perfect smile.gif

I did solve the wakeup issue for automatic EPG updates and scheduling in CW_EPG... it turned out that I had another program update (Media Browser) set for the same time. When I changed the update time for MB, the HTPC would successfully awake for automatic EPG updates and scheduling.

Also, I have never observed CWHelper to not be running in WTM.

Thanks to all for the "powercfg -waketimers" command. It helped me to nail down a consistent problem that, in fact, may be the key to my particular CW_EPG reliability issue.

To recap, my new HTPC is a Windows 7 Home Premium x64 (SP1), with CW_EPG controlling 3 HDHR devices on my LAN. The HTPC and the HDHR devices are connected to a Belkin Smart Powerstrip, with the HTPC set as the controlling (Master) device, and the HDHR units set to follow the power state of the HTPC Master.

With the above setup, I find a CW_EPG "PC reboot problem" exists, which is totally consistent (non-intermittant)... I've listed out the process that shows the problem on my system, in the numbered steps below:

1. On a power cycle of the HTPC (i.e. a system reboot), when the W7 desktop finishes loading, running "powercfg -waketimers" reveals that all CWHelper waketimer events relating to record events that existed before the reboot no longer exist after the reboot. However, the CWHelper waketimer event relating to auto EPG update and auto scheduling persists after the reboot.

2. When I launch CW_EPG, a check of the "Scheduled Items" tab shows the record events are still listed, even though their corresponding "waketimers" entries have vanished since the reboot.

3. At this point, I click on the "Clear ALL Schedules" button, with the intent to run "Schedule Matches" manually to see if the "waketimers" entries return.

4. However, after clearing the schedules, clicking on the "Schedule Matches" button results in all matches showing "SCHEDULING FAILED" for all relevant items, and this is shown in the LOG tab as well.

5. The good news: there is a way to recover... when I click on the "Options" button on the Main tab... then click "Cancel" in the Options window (returning to the Main UI)... this makes the "Schedule Matches" button work again!

Once the HTPC is in this state, then CW_EPG is totally reliable for all subsequent Sleep and Wake cycles. But once the the HTPC is rebooted, the problem begins anew.

I cycle the HTPC at least once a week to back up my OS partition, using an Acronis boot CD. So these PC restarts are inconvenient as far as getting CW_EPG to run correctly after the restart.

I am wondering if anyone running CW_EPG under Win7 x64 (peferably on SSD) would mind trying to reboot their system and see if the problem described above is present on their setup as well.

Thanks once again to everyone here who has contributed with their helpful posts throughout my ordeal. I know I am close to perfection, I just know it biggrin.gif
post #3698 of 3896
Thread Starter 
Vlad, thanks for confirming the wake-up fix.

I suspect that the problem you describe following a reboot actually occurs because CWHelper is trying to restore the scheduled events upon its launch before the HDHR tuners are detectable. (It doesn't wait HDHR Lead Time in that situation) This is a bug that I noticed a while ago, but didn't make fixing it a priority because I thought that I was the only one who was affected, because of my unusual HDHR configuration.

You can test this by removing CWHelper from your StartUp folder and then running CW_EPG a couple of minutes after the reboot has finished. My bet is that you won't see the problem then. (If that's true, you can implement a permanent fix by defining a "scheduled event" that runs 2 minutes after user logon and executes CWHelper.exe)
Edited by TPeterson - 10/1/12 at 10:06pm
post #3699 of 3896
I am a newbie at the HDHR stuff.
I just got an HDHomeRun Prime (the one with a cablecard), how can I tell CW_EPG to use the channel mapping from the cablecard ?

I can see that the tuner has a scan option but some of the channel comes up with no names.

Thanks.
post #3700 of 3896
Thread Starter 
Tran, unless one our testers has the Prime card (Dave P: do you?) you may have to run CW_EPG with the /detail option to generate some debugging info that we can inspect to figure out what precisely you're seeing. I'm thinking that this may be similar to what KAXKID has been doing to get CW_EPG to schedule his cable STB for firewire captures.

EDIT: BTW, you generally don't need to use the channel scan option in CW_EPG with HDHR as long as you have installed the SiliconDust software and have run their channel scan. CWHelper reads that result so that CW_EPG can use it too. If you haven't tried the SiDust scan, please do so and see if that eliminates the blank channel names issue.
post #3701 of 3896
The HDHomeRun prime let you setup each of the tuner application as either 'Digital Cable' or 'CableCard'.
In the 'Digital Cable' mode it look like a standard Clear QAM tuner with Frequency, Virtual and PSIP description.
In CableCard mode it seems to pull the channel name and mapping from cable company and just looks like your setop box listing.
and accessing the url http://{your_hdhr_ip}/lineup.xml give you back something like this:
<Lineup>
<Program><GuideNumber>1</GuideNumber><GuideName>ON D</GuideName></Program>
<Program><GuideNumber>2</GuideNumber><GuideName>KTVU</GuideName></Program>
<Program><GuideNumber>3</GuideNumber><GuideName>KNTV</GuideName></Program>
...

But under CW_EPG the tuner are detected but did not have any channels that is why I did the run the scan command.

I will try to run CW_EPG with the /detail to see what it is getting.

Thanks.
post #3702 of 3896
To TPeterson,
Ok so I did try to run 'CW_EPG /detail' but it did not like that command line argument, it could be that I do not have the debug version that you have.

I have looked around and found the error logs for CWHelper and it had a bunch of:
Sun Nov 04 11:47:05 PST 2012 ERROR: Could not refresh lineup for an existing tuner Tuner: id [1312FBA2] number [0] channels [118]
java.lang.NullPointerException
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at org.cwepg.hr.ChannelDigital.getRfFromMegahertz(ChannelDigital.java:236)
at org.cwepg.hr.ChannelDigital.(ChannelDigital.java:222)
at org.cwepg.hr.LineUpHdhr.updateChannelsFromXml(LineUpHdhr.java:82)
at org.cwepg.hr.LineUpHdhr.scan(LineUpHdhr.java:35)
at org.cwepg.hr.TunerHdhr.scanRefreshLineUp(TunerHdhr.java:171)
at org.cwepg.hr.TunerManager.refreshLineup(TunerManager.java:124)
at org.cwepg.hr.TunerManager.countTuners(TunerManager.java:72)
at org.cwepg.svc.TinyConnection.run(TinyConnection.java:140)
at java.lang.Thread.run(Unknown Source)

So I think that the lineup format is just different when you have the CableCard enabled and the parsing failed.
post #3703 of 3896
Quote:
Originally Posted by TPeterson View Post

Tran, unless one our testers has the Prime card (Dave P: do you?)

Hi Terry,

I have the Ceton PCIe CableCard tuner.

It will be interesting to see whether the HD Prime can be made to work with CW_EPG. All my channels (except for Showtime) are DRM free, so I am able to use VideoRedo to convert shows like Mad Men and Breaking Bad from WTV files into TP files that I play back on my TViX. In many markets Comcast provides an 8-stream CableCard for no additional charge, and may even provide a small credit for providing your equipmentment. Also, there are rumblings that Comcast wants to move to 100% encryption, so CableCard tuners may be the only option for use with cable.

-Dave
post #3704 of 3896
Thread Starter 
Tran--

First of all, sorry for the senior moment on the debug parameter, it's "-detail" not "/detail".

But from what you've written already, I think I know what's going wrong with CWHelper's ferreting out the channels on the Prime with CableCard activated. CWHelper has been trained to look for two types of SiliconDust channel-scan listings, OTA and clear QAM, which (in WinXP) are placed in the App Data folder called "C:\Documents and Settings\All Users\Application Data\Silicondust\HDHomeRun" and named something like "Digital Antenna.xml" and "Digital Cable.xml"

My guess is that SiDust uses a different name for the xml file when there is a CableCard and my first wild stab would be to make a copy of that file, rename the copy "Digital Cable.xml" (leaving it in the App Data folder so that CWHelper can find it), and then reboot the PC. If things go according to my blue-sky plan CWHelper will find the new xml file on its startup and then populate the HDHR tuner list the next time you run CW_EPG so that you can map the channels appropriately to the Schedules Direct data.

If you're game to become a beta tester, please take a look and see if my guess about the .xml file is right (and tell us what its name is--maybe you could even post a copy as an attachment here). Then you can try the long-shot scheme I described. Depending on how that works we can see about getting Dale to have CWHelper make direct use of the CableCard version in an update.

EDIT: N.B. "Digital Cable.xml" does have a space in it.
Edited by TPeterson - 11/4/12 at 4:36pm
post #3705 of 3896
Thread Starter 
Dave, thanks for refreshing my memory on your tuners. Your comment about WTV, causes me to wonder if the Prime will still make ordinary TP files when so directed by CW_EPG....
post #3706 of 3896
Quote:
Originally Posted by TPeterson View Post

Dave, thanks for refreshing my memory on your tuners. Your comment about WTV, causes me to wonder if the Prime will still make ordinary TP files when so directed by CW_EPG....
I think it might without a CableCard, but once the CableCard is activated there are many other tasks that are managed by Media Center, such as receiving guide data from tuner and managing authorized channels.

The SD forum has a subforum for the HDHomeRun Prime running on Linux/Myth TV, and I suspect there is a lot of good info there.

-Dave
post #3707 of 3896
For Terry,
I had forgot to say in my previous message that I had also found the CWHelper stdoutXXX.txt with:
--
Sun Nov 04 11:48:23 PST 2012 sleeping until Thu Oct 06 04:35:25 PST 292269012 (153722867280912 minutes).
request [GET /channels2 HTTP/1.1] 11:48:24
scanRefreshLineUp for 4 tuners.
running scan for tuner 1312FBA2-0
Sun Nov 04 11:48:24 PST 2012 Checking C:\ProgramData\SiliconDust\HDHomeRun\CableCARD.xml can read? true
Sun Nov 04 11:48:24 PST 2012 1312FBA2-0 - useExistingFile:true hdhrXmlExists:true previousScanExists:true
reading file C:\ProgramData\CW_EPG\scan1312FBA2-0.txt
...
--

So it did find the CableCARD.xml but its format look different than the Digital Cable.xml file:
-- Digital Cable.xml --
<?xml version="1.0" standalone="yes"?>
<Lineup>
  <Program>
    <Enabled>true</Enabled>
    <Modulation>qam256</Modulation>
    <Frequency>639000000</Frequency>
    <TransportStreamID>10213</TransportStreamID>
    <ProgramNumber>4</ProgramNumber>
  </Program>

-- CableCARD.xml --
<?xml version="1.0" standalone="yes"?>
<Lineup>
...
  <Program>
    <Name>KTVU</Name>
    <Enabled>true</Enabled>
    <GuideNumber>2</GuideNumber>
  </Program>

I have also the cw_epg -details log that I can send to anybody that want to look at it.

Thanks.
post #3708 of 3896
Thread Starter 
Tran---

Are you saying that your SiDust App Data folder has both xml files in it already? (Is the Digital Cable one perhaps left over from a previous HDHR installation?) I'm puzzled by the excerpts you posted, as I don't see how the Program definition in the CableCARD.xml can be complete without a frequency. Also, some of the Programs in your Digital Cable.xml should have Names. Here's the beginning of one of mine:
Code:
n<?xml version="1.0" standalone="yes"?>
<Lineup>
  <Program>
    <Name>KNTV-DT</Name>
    <Enabled>true</Enabled>
    <Modulation>qam256</Modulation>
    <Frequency>771000000</Frequency>
    <TransportStreamID>10497</TransportStreamID>
    <ProgramNumber>1</ProgramNumber>
    <GuideNumber>11.1</GuideNumber>
    <UserModified>2012-09-02 17:36:52</UserModified>
  </Program>
....

The UserModified tag was evidently added when I fixed the bogus name that came from the SiDust database for my Zipcode (caused by an error in Comcast's PSIP). But otherwise the entries for the local channels are all as the above.

The snip from stdout.txt seems to indicate that CWHelper indeed looks into the CableCARD.xml, but if it doesn't provide frequency and program number info the mapping cannot be determined.

I'll PM you an address so that you can send me the log and xml files to study. I'll also see if our coders have any bright ideas about this. (Thanks, Dave, for pointing to the SiDust Forum on the Prime)

Unfortunately, this is the busiest November in my day job that I can remember, so I can't promise quick turnaround!
post #3709 of 3896
The HDHR prime has 3 tuners and before I got my CableCard they were all setup as 'Digital Cable', after I got my CableCard, I had it setup at one time as:
2 CableCard and 1 Digital Cable. Now that I had finishing up to setup WMC I had switched to use all 3 as CableCard as it was just too confusing to have both channel numbering showing up in the guide.

I think that the Digital Cable.xml was left over from my previous trial but I think that it can be run both configuration, depending on which tuner0, 1 or 2 you could have a CableCard or Digital Cable conguration. In the HDHR setup app it has different tab for the 2 configurations.
post #3710 of 3896
Thread Starter 
Tran--

The primer for using Prime with MythTV that Dave pointed us to gives me great hope that it's also possible to record "copy freely" channels using CW_EPG once everything is configured correctly. Please look at the Troubleshooting section of that page for diagnostics you can run on your HDHR to confirm that it's correctly activated.
post #3711 of 3896
Quote:
Originally Posted by TPeterson View Post

I'm thinking that this may be similar to what KAXKID has been doing to get CW_EPG to schedule his cable STB for firewire captures
Wait, what?? Is this written up anywhere? If so, I missed it (as did Google, apparently).
post #3712 of 3896
Thread Starter 
Sorry, ebo, not documented outside of Steve's head. Maybe he'll be willing to post a tutorial for the intrepid.
post #3713 of 3896
I thought that might be the case. Still, if he has a sort-of working system I'd be interested in details. I'd about given up on firewire recording (using CapDVHS) as being too unreliable. I never knew if the computer would see the STB or act like the drivers had never been installed. The possibility of doing it with CW_EPG might prod me into trying to get it working again.
post #3714 of 3896
Quote:
Originally Posted by tranle View Post

running scan for tuner 1312FBA2-0
Sun Nov 04 11:48:24 PST 2012 Checking C:\ProgramData\SiliconDust\HDHomeRun\CableCARD.xml can read? true
Sun Nov 04 11:48:24 PST 2012 1312FBA2-0 - useExistingFile:true hdhrXmlExists:true previousScanExists:true
reading file C:\ProgramData\CW_EPG\scan1312FBA2-0.txt
You've got a knack for finding the right bits of the log and stack traces, hehe. As a long-shot, you might try deleting the scan1312FBA2-0.txt file and any other similarly named files. But I don't hold out too much hope because, as Terry says, that new format looks pretty skimpy on details, and your earlier bit of stack trace suggests it's looking for some numbers that just aren't there. If we see a way that this might be made to work, we could add the feature. If we got a command line for the sidust utility that worked, we might be able to get that worked into the code.

--Dale--
post #3715 of 3896
Thread Starter 
For those reading this thread without the benefit of Tran Le's and my private correspondence, I want to point out that the current version of CW_EPG does, in fact, show the HDHR Prime's clear QAM cable channels, which are (barring a cableco mistake) the only ones recordable to an unencrypted TS file.

Presently, CW_EPG only shows 2 of the Prime's 3 tuners and we may fix that if there's sufficient interest. (We may even fix it absent sufficient interest, but it'll take longer. biggrin.gif)
post #3716 of 3896
Today, it looks like our landline phone + DSL internet over copper has been knocked out by bad weather.

I just submitted a help ticket with our provider for both services - Verizon.

Verizon says it could take a week to get a technician out to check the lines at my home. A FRIGGIN' WEEK mad.gifmad.gifmad.gif

Is there any way I can manually load the EPG data from Schedule Direct (SD) into CW_EPG? I can't think of any other way to schedule programs for recording. Maybe I can convince a next-door neighbor to let me bum off of his or her wifi, but thought I'd check here first to see if manually downloading then loading in the SD data is possible.

Thanks a bunch for any feedback.
Edited by Vlad Theimpaler - 12/3/12 at 2:47pm
post #3717 of 3896
Thread Starter 
Sorry, Vlad, but there's currently no command for CW_EPG to integrate the Schedules Direct data from a local source even if you do download it.

I assume that you're online now via a cellular device. Could you possibly tether your HTPC to that device long enough to run the schedule update?
post #3718 of 3896
Quote:
Originally Posted by TPeterson View Post

Sorry, Vlad, but there's currently no command for CW_EPG to integrate the Schedules Direct data from a local source even if you do download it.
I assume that you're online now via a cellular device. Could you possibly tether your HTPC to that device long enough to run the schedule update?

Thanks for the quick reply. I'm online now from work.

I am one of those techologically backwards folks who does not have a smartphone or tablet, i.e. nothing with a data plan. Looks like I am stuck.

I hope that the 12 days of scheduled data I now have (last downloaded yesterday) does not change in the next week or so.
post #3719 of 3896
Just a suggestion, but do you have access to a notebook PC? I wonder if it would be possible to somehow transfer the CW_EPG install to a notebook, go somewhere with WIFI to update the listings from SD, and then move the install back to your scheduling PC.

-Dave
post #3720 of 3896
Thread Starter 
Dave, yes that could be done...CW_EPG would be unhappy at not finding the configured tuners and the procedure is fraught with potential errors, so I don't really recommend it versus just letting CW_EPG use the existing 12 days' data, which has in my view far less potential for error and zero time requirement, but it could be done.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Home Theater Computers
AVS › AVS Forum › Video Components › Home Theater Computers › Cliff Watson EPG add-on for MyHD, FusionHDTV, and HD Homerun