<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">it almost works.&nbsp; it works perfect from the command line.. but not from within myth.<br>ie.. myth calls the wrapper which calls directv.pl...<br>it goes to the channel but does not go up ch. <br><br>humm<br><br><br><br><br><br>--- On <b>Wed, 9/1/10, les <i>&lt;lhigger@att.net&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: les &lt;lhigger@att.net&gt;<br>Subject: Re: [mythtv-users] directv.pl channel_sd_hd issues<br>To: "Discussion about MythTV" &lt;mythtv-users@mythtv.org&gt;<br>Date: Wednesday, September 1, 2010, 12:32 AM<br><br><div class="plainMail">it works...<br><br><br><br>John P Poet wrote:<br>&gt; <br>&gt; <br>&gt; On Mon, Aug 30, 2010 at 12:44 AM, les &lt;<a ymailto="mailto:lhigger@att.net" href="/mc/compose?to=lhigger@att.net">lhigger@att.net</a> &lt;mailto:<a
 ymailto="mailto:lhigger@att.net" href="/mc/compose?to=lhigger@att.net">lhigger@att.net</a>&gt;&gt; wrote:<br>&gt; <br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;hello everyone..<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;setup here is mythdora 10.21 . dtv h21 stb.<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;usb --&gt;serial----&gt;serial---usb..<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;directv.pl &lt;<a href="http://directv.pl" target="_blank">http://directv.pl</a>&gt; 1.9&nbsp;&nbsp;&nbsp;all works except the<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;setup_channel_sd_hd part..<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;its true the new firmware does show signal even when the tv shows<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;no signal. ie you are not paying for the hd channel..<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;i have tried putting in an if statement ie&nbsp; if ($chan == 356)<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;{send_key("ch_up"); } but it dosent work.<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;i am not a perl programmer.. more a php
 guy..lol&nbsp; must be putting<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;it in the wrong place..<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;i did see some mention of a translation table .. but no example..<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;i only have 5 channels i would like to have this work with..<br>&gt; <br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;any ideas<br>&gt; <br>&gt; <br>&gt; <br>&gt; Probably easier to wrap a shell script around directv.pl &lt;<a href="http://directv.pl" target="_blank">http://directv.pl</a>&gt;, and have myth call the shell script instead.<br>&gt; <br>&gt; Something like:<br>&gt; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>&gt;&nbsp; #!/bin/sh<br>&gt; <br><br><br>&gt; if [ "X$1" = "X" ]; then<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; echo "Usage: $0 &lt;channel number&gt;"<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; echo<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; exit 1;<br>&gt; fi<br>&gt; <br>&gt; /usr/local/bin/directv.pl &lt;<a href="http://directv.pl"
 target="_blank">http://directv.pl</a>&gt; box_type H20 port /dev/ttyUSB0 on<br>&gt; /usr/local/bin/directv.pl &lt;<a href="http://directv.pl" target="_blank">http://directv.pl</a>&gt; box_type H20 port /dev/ttyUSB0 get_channel<br>&gt; <br>&gt; /usr/local/bin/directv.pl &lt;<a href="http://directv.pl" target="_blank">http://directv.pl</a>&gt; box_type H20 port /dev/ttyUSB0 channel_change_type command setup_channel $1<br>&gt; <br>&gt; if [ "$?" -ne "0" ]; then<br>&gt;&nbsp; &nbsp;&nbsp;&nbsp;/usr/local/bin/directv.pl &lt;<a href="http://directv.pl" target="_blank">http://directv.pl</a>&gt; box_type H20 port /dev/ttyUSB0 channel_change_type command setup_channel $1<br>&gt; fi<br>&gt; <br>&gt; if [ "$1" = "356" ]; then<br>&gt; /usr/local/bin/directv.pl &lt;<a href="http://directv.pl" target="_blank">http://directv.pl</a>&gt; box_type H20 port /dev/ttyUSB0 key ch_up<br>&gt; fi<br>&gt; <br>&gt; if [ "$1" = "357" ]; then<br>&gt; /usr/local/bin/directv.pl
 &lt;<a href="http://directv.pl" target="_blank">http://directv.pl</a>&gt; box_type H20 port /dev/ttyUSB0 key ch_up<br>&gt; fi<br>&gt; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>&gt; <br>&gt; <br>&gt; John<br>&gt; -- A: Because it messes up the order in which people normally read text.<br>&gt; Q: Why is top-posting such a bad thing?<br>&gt; ------------------------------------------------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; mythtv-users mailing list<br>&gt; <a ymailto="mailto:mythtv-users@mythtv.org" href="/mc/compose?to=mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>&gt; <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br>&gt;&nbsp;&nbsp;&nbsp;<br>_______________________________________________<br>mythtv-users mailing list<br><a ymailto="mailto:mythtv-users@mythtv.org"
 href="/mc/compose?to=mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br></div></blockquote></td></tr></table>