<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 8pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> John P Poet <jppoet@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> Discussion about mythtv <mythtv-users@mythtv.org><br><b><span style="font-weight: bold;">Sent:</span></b> Tue, December 22, 2009 8:48:52 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [mythtv-users] HDPVR can only record one show (any thoughts)<br></font><br>
On Tue, Dec 22, 2009 at 9:00 AM, Vern <<a ymailto="mailto:spamvern@yahoo.com" href="mailto:spamvern@yahoo.com">spamvern@yahoo.com</a>> wrote:<br><snip><br>> 5. modified <a target="_blank" href="http://directv.pl">directv.pl</a> to add a 5 second delay after changing the channel<br><br>Personally, I wrapped directv.pl in a shell script. This makes it<br>easier to control two HD-PVRs independently, and allowes a<br>double-check that the correct channel was selected:<br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>#!/bin/sh<br><br>if [ "X$1" = "X" ]; then<br> echo "Usage: $0 <channel number>"<br> echo<br> exit;<br>fi<br><br>/usr/local/bin/directv.pl box_type H20 port /dev/hdpvrChannel0 on<br>/usr/local/bin/directv.pl box_type H20 port /dev/hdpvrChannel0 get_channel<br><br>/usr/local/bin/directv.pl box_type H20 port
/dev/hdpvrChannel0<br>channel_change_type command setup_channel $1<br><br>if [ "$?" -ne "0" ]; then<br> /usr/local/bin/directv.pl box_type H20 port /dev/hdpvrChannel0<br>channel_change_type command setup_channel $1<br>fi<br><br>sleep 2<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><br><br>John<br>-- <br>A: Because it messes up the order in which people normally read text.<br>Q: Why is top-posting such a bad thing?<br>_______________________________________________<br>mythtv-users mailing list<br><a ymailto="mailto:mythtv-users@mythtv.org" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><span><a target="_blank" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a></span><br><br>I am pretty sure it was a 5 second delay from test runs by hand. I actually have a pretty heavily modified directv.pl that I changed
to:<br><br>1. not try to change the channel if it already is on the correct channel.<br>2. use command 0x83 (GetPrimaryStatus) to detect if the channel change worked correctly and reissue if needed (never is after 3 below).<br>3. use command 0xA6 (OpenUserChannel) as I found it to be 100% reliable instead of the default trying to send key codes to change the channel.<br><br>The PrimaryGetStatus command reports that it is using AC3 output, so maybe this is part of my issue now that I see that. I'm not sure how to change that. Something to play around with tomorrow after work. Though I am using the RCA for audio to the HDPVR and still having issues.<br><br>mythtv(bin)$ ./directv.pl get_status<br>current channel: 229<br>current signal : 94<br>primary type : 0x10 (Video - HDTV)<br>audio type : 0x09 (AC3 In / AC3 Out)<br>data type : 0xff<br>
<br><br><br></div></div>
<!-- cg14.c1.mail.mud.yahoo.com compressed/chunked Tue Dec 1 19:35:17 PST 2009 -->
</div><br>
</body></html>