On 9/22/06, <b class="gmail_sendername">Jim Westfall</b> &lt;<a href="mailto:jwestfall@surrealistic.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jwestfall@surrealistic.net</a>&gt; wrote:<div>
<span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Allan Wilson &lt;<a href="mailto:allanwilson@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">allanwilson@gmail.com</a>&gt; wrote [09.22.06]:<br>&gt; Output from plugreport:<br>&gt; Host Adapter 0
<br>&gt; ==============<br>&gt;<br>&gt; Node 0 GUID 0x0016920e80ca0000
<br>&gt; ------------------------------<br>&gt; oMPR n_plugs=1, data_rate=2, bcast_channel=63<br>&gt; oPCR[0] online=1, bcast_connection=0, n_p2p_connections=0<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel=0, data_rate=2, overhead_id=0, payload=146
<br>&gt; iMPR n_plugs=0, data_rate=2<br>&gt;<br>&gt; Node 1 GUID 0x00169205a0d00000<br>&gt; ------------------------------<br>&gt; oMPR n_plugs=1, data_rate=2, bcast_channel=63<br>&gt; oPCR[0] online=1, bcast_connection=0, n_p2p_connections=0
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;channel=0, data_rate=2, overhead_id=0, payload=146<br>&gt; iMPR n_plugs=0, data_rate=2<br>&gt;<br>&gt; Node 2 GUID 0x00004c0100004195<br>&gt; ------------------------------<br>&gt; libiec61883 error: error reading oMPR
<br>&gt; libiec61883 error: error reading iMPR<br><br>thx<br><br>&gt;<br>&gt; Here is the plugctl commands that I have had to use in the past to get<br>&gt; firefire to work consistently:<br>&gt; #! /bin/sh<br>&gt; plugctl -n 0 oPCR[0].n_2p_connections=0
<br>&gt; sleep 4<br>&gt; plugctl -n 0 oPCR[0].n_2p_connections=1<br>&gt; sleep 4<br>&gt; plugctl -n 0 oPCR[0].channel=63<br>&gt; sleep 4<br>&gt; plugctl -n 0 oPCR[0].bcast_connection=0<br>&gt; sleep 4<br>&gt; #plugctl -n 1 oPCR[0].n_2p_connections=0
<br>&gt; #sleep 4<br>&gt; #plugctl -n 1 oPCR[0].n_2p_connections=1<br>&gt; #sleep 4<br>&gt; #plugctl -n 1 oPCR[0].channel=62<br>&gt; #sleep 4<br>&gt; #plugctl -n 1 oPCR[0].bcast_connection=0<br><br>The above is likely your problem.&nbsp;&nbsp;Setting n_2p_connections=1 tells the
<br>STB it should be sending data on whatever channel is already set.&nbsp;&nbsp;Mythtv<br>setups up its own plug, and with the patch I sent you picks its own<br>channel.&nbsp;&nbsp;Since you already have the STB sending data over a<br>different channel prior to starting mythbackend, its likely the STB
<br>ignores our request to send data on the channel the backend wants.<br><br>Idealy you should not need to use any plugctl hack, nor should anyone.&nbsp;&nbsp;If<br>you must, try setting the channel=0, and also put that line above
<br>n_2p_connections=1<br><br>#! /bin/sh<br>plugctl -n 0 oPCR[0].n_2p_connections=0<br>sleep 4<br>plugctl -n 0 oPCR[0].channel=0<br>sleep 4<br>plugctl -n 0 oPCR[0].n_2p_connections=1<br>sleep 4<br>plugctl -n 0 oPCR[0].bcast_connection=0
<br><br>&gt;<br>&gt; I tried to compile and run the firewire_tester by running:<br>&gt; gcc -o firewire_tester firewire_test.c<br>&gt; and it doesn't compile. What is the proper command to compile the<br>&gt; firewire_tester?
<br><br>instructions on compiling are at the top of firewire_tester.c.<br><br>You will want to run 'firewire_tester -p -n 0 -r 5' this will test 5 p2p<br>connections on node 0.<br><br>sorry I meant -v channel,record<br><br>

jim<br><br>&gt;<br>&gt; Here is the output from running mythbackend -v channel,playback. I didn't go<br>&gt; in and setup the second firewire port in mythtv-setup because it seems to<br>&gt; break hidef just to have the second firewire box plugged in.
<br>&gt; sh-3.00$ mythbackend -v channel,playback<br>&gt; 2006-09-22 07:50:33.601 Using runtime prefix = /usr<br>&gt; 2006-09-22 07:50:33.656 New DB connection, total: 1<br>&gt; 2006-09-22 07:50:33.658 Connected to database 'mythconverg' at host:
<br>&gt; localhost<br>&gt; 2006-09-22 07:50:33.698 Current Schema Version: 1160<br>&gt; Starting up as the master server.<br>&gt; 2006-09-22 07:50:33.741 New DB connection, total: 2<br>&gt; 2006-09-22 07:50:33.741 Connected to database 'mythconverg' at host:
<br>&gt; localhost<br>&gt; 2006-09-22 07:50:33.756 EITHelper: localtime offset -5:00:00<br>&gt; 2006-09-22 07:50:33.771 Channel(/dev/video0): Device name 'WinTV PVR 250'<br>&gt; driver 'ivtv'.<br>&gt; 2006-09-22 07:50:33.772

 New DB connection, total: 3<br>&gt; 2006-09-22 07:50:33.784 Connected to database 'mythconverg' at host:<br>&gt; localhost<br>&gt; 2006-09-22 07:50:33.828 ChannelBase(1): Input #1: 'Tuner 0' schan(7)<br>&gt; sourceid(1) ccid(1)
<br>&gt; 2006-09-22 07:50:33.828 ChannelBase(1): Current Input #1: 'Tuner 0'<br>&gt; 2006-09-22 07:50:33.843 Global TVFormat Setting 'NTSC'<br>&gt; 2006-09-22 07:50:33.875 Channel(/dev/video0): Input #1: 'Tuner 0' schan(7)
<br>&gt; tun() v4l1(NTSC) v4l2(Unknown)<br>&gt; 2006-09-22 07:50:33.875 Channel(/dev/video0): SetFormat(Default) fmt(NTSC)<br>&gt; input(1)<br>&gt; 2006-09-22 07:50:33.875 Channel(/dev/video0): SetInputAndFormat(1, NTSC)
<br>
&gt; (v4l v2)<br>&gt; 2006-09-22 07:50:33.888 Channel(/dev/video0): SetFormat(NTSC) fmt(NTSC)<br>&gt; input(1)2006-09-22 07:50:33.913 Channel(/dev/video0)::SwitchToI<br>&gt; nput(in 1, '')<br>&gt; 2006-09-22 07:50:33.913
 Channel(/dev/video0): SetInputAndFormat(1, NTSC)
<br>&gt; (v4l v2)<br>&gt; 2006-09-22 07:50:33.913 Channel(/dev/video0): SetChannelByString(7)<br>&gt; 2006-09-22 07:50:33.914 ChannelBase(/dev/video0)::SetCachedATSCInfo(): 0--1<br>&gt; 2006-09-22 07:50:33.926 Channel(/dev/video0): SetFormat(Default) fmt(NTSC)
<br>&gt; input(1)<br>&gt; 2006-09-22 07:50:33.927 Channel(/dev/video0)::Tune(175250000, , analog)<br>&gt; 2006-09-22 07:50:34.096 Channel(/dev/video0)::Tune(): Frequency is now<br>&gt; 1752500002006-09-22 07:50:34.096<br>

&gt; ChannelBase(/dev/video0)::SetCachedATSCInfo(7_0):<br>&gt; 7--1<br>&gt; 2006-09-22 07:50:34.124 EITHelper: localtime offset -5:00:00<br>&gt; 2006-09-22 07:50:34.155 Channel(/dev/video1): Device name 'WinTV PVR 500<br>

&gt; (unit #1)' driver 'ivtv'.<br>&gt; 2006-09-22 07:50:34.186 ChannelBase(2): Input #2: 'Tuner' schan(5)<br>&gt; sourceid(1) ccid(2)<br>&gt; 2006-09-22 07:50:34.186 ChannelBase(2): Current Input #2: 'Tuner'<br>&gt; 2006-09-22 07:50:
34.186 Global TVFormat Setting 'NTSC'<br>&gt; 2006-09-22 07:50:34.187 Channel(/dev/video1): Input #2: 'Tuner' schan(5)<br>&gt; tun() v4l1(NTSC) v4l2(Unknown)<br>&gt; 2006-09-22 07:50:34.187 Channel(/dev/video1): SetFormat(Default) fmt(NTSC)
<br>&gt; input(2)<br>&gt; 2006-09-22 07:50:34.187 Channel(/dev/video1): SetInputAndFormat(2, NTSC)<br>&gt; (v4l v2)<br>&gt; 2006-09-22 07:50:34.187 Channel(/dev/video1): SetFormat(NTSC) fmt(NTSC)<br>&gt; input(2)2006-09-22 07:50:
34.199 Channel(/dev/video1)::SwitchToInput(in 2,<br>&gt; '')<br>&gt; 2006-09-22 07:50:34.199 Channel(/dev/video1): SetInputAndFormat(2, NTSC)<br>&gt; (v4l v2)<br>&gt; 2006-09-22 07:50:34.200 Channel(/dev/video1): SetChannelByString(5)
<br>&gt; 2006-09-22 07:50:34.201 ChannelBase(/dev/video1)::SetCachedATSCInfo(): 0--1<br>&gt; 2006-09-22 07:50:34.232 Channel(/dev/video1): SetFormat(Default) fmt(NTSC)<br>&gt; input(2)<br>&gt; 2006-09-22 07:50:34.233 Channel(/dev/video1)::Tune(77250000, , analog)
<br>&gt; 2006-09-22 07:50:34.401 Channel(/dev/video1)::Tune(): Frequency is now<br>&gt; 77250000<br>&gt; 2006-09-22 07:50:34.401 ChannelBase(/dev/video1)::SetCachedATSCInfo(5_0):<br>&gt; 5--1<br>&gt; 2006-09-22 07:50:34.402

 EITHelper: localtime offset -5:00:00<br>&gt; 2006-09-22 07:50:34.403 Channel(/dev/video2): Device name 'WinTV PVR 500<br>&gt; (unit #2)' driver 'ivtv'.<br>&gt; 2006-09-22 07:50:34.447 ChannelBase(3): Input #3: 'Tuner' schan(5)
<br>&gt; sourceid(1) ccid(3)<br>&gt; 2006-09-22 07:50:34.447 ChannelBase(3): Current Input #3: 'Tuner'<br>&gt; 2006-09-22 07:50:34.447 Global TVFormat Setting 'NTSC'<br>&gt; 2006-09-22 07:50:34.447 Channel(/dev/video2): Input #3: 'Tuner' schan(5)
<br>&gt; tun() v4l1(NTSC) v4l2(Unknown)<br>&gt; 2006-09-22 07:50:34.447 Channel(/dev/video2): SetFormat(Default) fmt(NTSC)<br>&gt; input(3)<br>&gt; 2006-09-22 07:50:34.448 Channel(/dev/video2): SetInputAndFormat(3, NTSC)
<br>
&gt; (v4l v2)<br>&gt; 2006-09-22 07:50:34.448 Channel(/dev/video2): SetFormat(NTSC) fmt(NTSC)<br>&gt; input(3)2006-09-22 07:50:34.448 Channel(/dev/video2)::SwitchToInput(in 3,<br>&gt; '')<br>&gt; 2006-09-22 07:50:34.465 Channel(/dev/video2): SetInputAndFormat(3, NTSC)
<br>&gt; (v4l v2)<br>&gt; 2006-09-22 07:50:34.465 Channel(/dev/video2): SetChannelByString(5)<br>&gt; 2006-09-22 07:50:34.466 ChannelBase(/dev/video2)::SetCachedATSCInfo(): 0--1<br>&gt; 2006-09-22 07:50:34.479 Channel(/dev/video2): SetFormat(Default) fmt(NTSC)
<br>&gt; input(3)<br>&gt; 2006-09-22 07:50:34.480 Channel(/dev/video2)::Tune(77250000, , analog)<br>&gt; 2006-09-22 07:50:34.633 Channel(/dev/video2)::Tune(): Frequency is now<br>&gt; 77250000<br>&gt; 2006-09-22 07:50:34.634

 ChannelBase(/dev/video2)::SetCachedATSCInfo(5_0):<br>&gt; 5--1<br>&gt; 2006-09-22 07:50:34.645 EITHelper: localtime offset -5:00:00<br>&gt; 2006-09-22 07:50:34.672 ChannelBase(6): Input #6: 'MPEG2TS' schan(782)<br>&gt; sourceid(2) ccid(6)
<br>&gt; 2006-09-22 07:50:34.673 ChannelBase(6): Current Input #6: 'MPEG2TS'<br>&gt; 2006-09-22 07:50:34.673 FireChan: Allocated raw1394 handle for port 0<br>&gt; 2006-09-22 07:50:34.981 FireChan: Requesting STB Power State (cmd:
<br>&gt; 0x1ffb27f)<br>&gt; 2006-09-22 07:50:35.002 FireChan: STB Power State: ON (0xcffb270)<br>&gt; 2006-09-22 07:50:35.002 FireChan: SA4200Channel: 782 cmds: 0x487ce7<br>&gt; 0x4030e00 0xff000000<br>&gt; 2006-09-22 07:50:
35.016 New DB scheduler connection<br>&gt; 2006-09-22 07:50:35.016 Connected to database 'mythconverg' at host:<br>&gt; localhost<br>&gt; 2006-09-22 07:50:35.042 Main::Starting HttpServer<br>&gt; 2006-09-22 07:50:35.074 Main::Registering HttpStatus Extension
<br>&gt; 2006-09-22 07:50:35.102 mythbackend version: 0.20.20060915-1 <a href="http://www.mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.mythtv.org</a><br>&gt; 2006-09-22 07:50:35.103
 Enabled verbose msgs:&nbsp;&nbsp;important general channel<br>&gt; playback<br>
&gt; 2006-09-22 07:50:35.103 AutoExpire: Found 4 recorders w/max rate of 355<br>&gt; MiB/min<br>&gt; 2006-09-22 07:50:35.133 AutoExpire: Required Free Space: 3.8 GB w/freq: 5<br>&gt; min<br>&gt; 2006-09-22 07:50:37.152 Reschedule requested for id -1.
<br>&gt; 2006-09-22 07:50:38.526 Scheduled 324 items in 1.4 = 0.18 match + 1.20 place<br>&gt; 2006-09-22 07:50:38.549 Recording starts soon, AUTO-Startup assumed<br>&gt; 2006-09-22 07:51:34.913 MainServer::HandleAnnounce Monitor
<br>&gt; 2006-09-22 07:51:34.914 adding: mythtv as a client (events: 0)<br>&gt; 2006-09-22 07:51:34.914 MainServer::HandleAnnounce Monitor<br>&gt; 2006-09-22 07:51:34.915 adding: mythtv as a client (events: 1)<br>&gt; 2006-09-22 07:51:
34.923 MainServer::HandleAnnounce Playback<br>&gt; 2006-09-22 07:51:34.924 adding: mythtv as a client (events: 0)<br>&gt; 2006-09-22 07:51:34.926 TVRec(6): Changing from None to WatchingLiveTV<br>&gt; 2006-09-22 07:51:34.928

 TVRec(6): HW Tuner: 6-&gt;6<br>&gt; 2006-09-22 07:51:34.931 ChannelBase(6): Input #6: 'MPEG2TS' schan(782)<br>&gt; sourceid(2) ccid(6)<br>&gt; 2006-09-22 07:51:34.931 ChannelBase(6): Current Input #6: 'MPEG2TS'<br>&gt; 2006-09-22 07:51:
34.932 FireChan: SA4200Channel: 782 cmds: 0x487ce7<br>&gt; 0x4030e00 0xff000000<br>&gt; 2006-09-22 07:51:35.170 FireRec: Buffered packets 2000 (8000 KB)<br>&gt; 2006-09-22 07:51:41.725 TVRec(6): Changing from WatchingLiveTV to None
<br>&gt; 2006-09-22 07:51:50.181 FireRec: No Input in 15 seconds [P:0 N:0] (select)<br>&gt; 2006-09-22 07:51:50.196 Finished recording The Early Show: channel 2782<br>&gt; 2006-09-22 07:51:50.202 FireChan: Releasing raw1394 handle
<br>&gt; 2006-09-22 07:51:50.216 MythSocket(82e96b0:-1): writeStringList: Error,<br>&gt; socket went unconnected.<br>&gt;<br>&gt; Thanks, Allan<br><br>&gt; _______________________________________________<br>&gt; mythtv-users mailing list
<br>&gt; <a href="mailto:mythtv-users@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-users@mythtv.org</a><br>&gt; <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a><br><br>_______________________________________________
<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mythtv-users@mythtv.org</a><br><a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
</a><br></blockquote></div><br>I will try taking out the plugctl commands and see how it works. Thanks for explaining a little more on how that works. I had no idea what they really did just that they helped me getting it working. I should have thought looking at the source for instructions on the firewire_tester, sorry not enough caffine. I am at work now but I will test this out for you when I get back home in a couple of hours and let you know how it goes.
<br>