<html><head></head><body bgcolor="#f7f7f7" text="#2c2c2c" link="#0080ff" vlink="#2c2c2c"><div>On Sat, 2016-04-16 at 21:22 -0400, Larry Kennedy wrote:</div><blockquote type="cite"><p dir="ltr">I use the 6200ch program and a firewire cable to change channels on a Motorola STB. The parameters of the script are the node address and the channel number:</p>
<p dir="ltr">./6200ch -n0 300</p>
<p dir="ltr">The only problem I have is that the node address is sometimes 0, sometimes 1. This changes after a reboot of the backend server. </p>
<p dir="ltr">Does anyone have any ideas on how to dynamically detect the node address (such as a udev rule, or a script to parse the output of plugreport) so that I can deal wih this issue?</p>
<p dir="ltr">Thanks!</p>
<pre>_______________________________________________
mythtv-users mailing list
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a href="https://forum.mythtv.org
">https://forum.mythtv.org
</a></pre></blockquote><div><br></div><div>i use this to find to put the correct guid into the commands example; set guid constant to guid of your box:</div><div><br></div><div>#!/bin/bash</div><div><br></div><div>GUID="6455b1fffe293e3b"</div><div>NODE=`plugreport | grep $GUID | awk '{if (($1 == "Node") && ($4 == "'"0x$GUID"'")) print $2}'`</div><div>plugctl -n "$NODE" ompr.bcast_channel=0</div><div>plugctl -n "$NODE" opcr[0].channel=63</div><div>plugctl -n "$NODE" opcr[0].bcast_connection=0</div><div>plugctl -n "$NODE" opcr[0].n_p2p_connections=1</div><div>plugctl -n "$NODE" oPCR[0].data_rate=1</div><div><br></div></body></html>