Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

SA4250 firewire channel change suddenly stopped working

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


bic1ster at gmail

Oct 29, 2008, 1:54 PM

Post #1 of 9 (3587 views)
Permalink
SA4250 firewire channel change suddenly stopped working

As of yesterday morning or so, my firewire sa4250_ch stopped working (was
working last six months). I unplugged power from the SA4250 and let it sit
about 15 seconds. I shutdown MythTV. I also tried the other FW port on the
STB. Usually when the channel change request is done, I can see it on the
LCD of the STB, this does not happen. I tried the test-mpeg2 -r 1 >
test.mpg, which actually works, all though playback is not smooth. So FW is
working to some extent, but not channel change. Priming in the past has
done pretty much nothing and just fails like nuts, so I did not even try it
(and don't even use it as sa4250_ch just works fine for last six months
without priming).


./sa4250_ch 2 -v
node 0: vendor_id = 0x000090a9 model_id = 0x00000000
node 1: vendor_id = 0x00001ac3 model_id = 0x000010cc
Device acquired on node 1
Changing channel 2
AV/C Command: cmd0=0x00487ce7 cmd1=0x04000200 cmd2=0xff000000

I am on MythDora 5. For the sa4250_ch I had to add in the SA4250 vendor and
model ids.

I see on the STB info screens a lot of firmware had dates of August 2008.
It sounds like something has changed on the STB where it is not recognizing
the channel change request.

plugreport
Host Adapter 0
==============

Node 0 GUID 0x0090a94008005308
------------------------------
libiec61883 error: error reading oMPR
libiec61883 error: error reading iMPR

Node 1 GUID 0x001ac3f83c5c0000
------------------------------
oMPR n_plugs=1, data_rate=2, bcast_channel=63
oPCR[0] online=1, bcast_connection=0, n_p2p_connections=1
channel=0, data_rate=2, overhead_id=0, payload=146
iMPR n_plugs=0, data_rate=2

Any ideas?


khanh at khanh

Oct 29, 2008, 3:30 PM

Post #2 of 9 (3516 views)
Permalink
Re: SA4250 firewire channel change suddenly stopped working [In reply to]

I have the SA4200HD which I use the sa3250ch.c program in the contrib
directory to change channels via firewire. I don't know about your
sa4250_ch program, but my cablebox got a similar update towards the
end of September (Cablevision, New York suburbs).

To get mine to work I had to change line 195 with the following diff:

195c195
< cmd[1] = CTL_CMD1 | (dig[0] << 16) | (dig[1] << 8) | dig[2];
---
> cmd[1] = cmd[1] = CTL_CMD1 | (chn << 8);

Hope this helps...
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bic1ster at gmail

Oct 29, 2008, 3:48 PM

Post #3 of 9 (3509 views)
Permalink
Re: SA4250 firewire channel change suddenly stopped working [In reply to]

On Wed, Oct 29, 2008 at 6:30 PM, Khanh Tran <khanh [at] khanh> wrote:

> I have the SA4200HD which I use the sa3250ch.c program in the contrib
> directory to change channels via firewire. I don't know about your
> sa4250_ch program, but my cablebox got a similar update towards the
> end of September (Cablevision, New York suburbs).
>
> To get mine to work I had to change line 195 with the following diff:
>
> 195c195
> < cmd[1] = CTL_CMD1 | (dig[0] << 16) | (dig[1] << 8) | dig[2];
> ---
> > cmd[1] = cmd[1] = CTL_CMD1 | (chn << 8);
>
> Hope this helps...
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>


I am on Cablevision too in northern New Jersey

I have this in sa4250.c

quadlet_t cmd[3] =
{
CTL_CMD0 | AVC1394_SA3250_OPERAND_KEY_PRESS,
CTL_CMD1 | (chn << 8),
CTL_CMD2,
};


I am not versed in c programming, so not sure how to translate yours into
something that would work in mine.


khanh at khanh

Oct 29, 2008, 4:09 PM

Post #4 of 9 (3516 views)
Permalink
Re: SA4250 firewire channel change suddenly stopped working [In reply to]

I'd try the sa3250ch script to see if it works for you. Again, I'm
not sure where you got this sa4250 channel changer.
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bic1ster at gmail

Oct 29, 2008, 4:35 PM

Post #5 of 9 (3504 views)
Permalink
Re: SA4250 firewire channel change suddenly stopped working [In reply to]

On Wed, Oct 29, 2008 at 7:09 PM, Khanh Tran <khanh [at] khanh> wrote:

> I'd try the sa3250ch script to see if it works for you. Again, I'm
> not sure where you got this sa4250 channel changer.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

Now firewire_tester is actually getting data and not failing. So, indeed
the firewire code has changed / been updated as firewire_tester never ever
worked.

I got the sa4250 from
http://svn.mythtv.org/trac/attachment/ticket/5215/sa4250_ch.c


bic1ster at gmail

Oct 29, 2008, 4:50 PM

Post #6 of 9 (3510 views)
Permalink
Re: SA4250 firewire channel change suddenly stopped working [In reply to]

I managed to add the sa4250hd vendor and model to sa3250ch.c and change the
cmd section in your diff on 195.


This is the output now:

node 0: vendor_id = 0x000090a9 model_id = 0x00000000
node 1: vendor_id = 0x00001ac3 model_id = 0x000010cc
AV/C Command: 002 = cmd0=0x00487ce7 cmd2=0x04323030 cmd3=0xff000000
AV/C Command: 002 = cmd0=0x00487c67 cmd2=0x04000200 cmd3=0xff000000

Unfortunately, it didn't change the channel.


steve at rottinger

Oct 30, 2008, 12:50 PM

Post #7 of 9 (3482 views)
Permalink
Re: SA4250 firewire channel change suddenly stopped working [In reply to]

Hi Scott,

I'm have Cablevision in North Jersey (Mahwah), and ran into the same
problem. Through some hacking last night, not really understanding what I
was doing, I managed to get the channel change to work, by changing the
two cmd[1] lines to:

cmd[1] = CTL_CMD1 | ((chn << 8) & 0xffff00) | (chn & 0xff);

After this change, channel change works great again. However, I have
another problem: I can no longer record from certain channels using the
firewire interface, including some over the air channels such as
702,709,721. It is almost as if 5C is turned on these channels.

-Steve


_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


bic1ster at gmail

Oct 31, 2008, 12:35 PM

Post #8 of 9 (3459 views)
Permalink
Re: SA4250 firewire channel change suddenly stopped working [In reply to]

I figured it out, I found this
http://ubuntuforums.org/showthread.php?t=712789 and added in the keyrelease
code.

I had actually read the thread, but apparently in my haste (as usual) I
didn't fully read the thread. It seems to be changing channels now ok.

Thanks to all!


bic1ster at gmail

Nov 1, 2008, 6:54 AM

Post #9 of 9 (3452 views)
Permalink
Re: SA4250 firewire channel change suddenly stopped working [In reply to]

I am having some problems with this now. It works ok on channels 0-9, but
when I go above that it seems to put the last number in the front such as 23
becomes 323. Also, the process on the STB LCD appears to only get a 2,
then it clears ( almost like it's starting over) and then it receives a
323.

./sa4250 23 -v
node 0: vendor_id = 0x000090a9 model_id = 0x00000000
node 1: vendor_id = 0x00001ac3 model_id = 0x000010cc
Device acquired on node 1
Changing channel 23
AV/C Command: cmd0=0x00487ce7 cmd1=0x04001700 cmd2=0xff000000
AV/C Command: cmd0=0x00487c67 cmd1=0x04001700 cmd2=0xff000000


I don't know c well enough to figure this one out.

I attached the source file I have hacked up.

I'd appreciate help with this.
Attachments: sa4250.c (5.32 KB)

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.