Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] Re: [PATCH] Twinhan/Twinhan-CA



On Fri December 24 2004 3:55 pm, Manu Abraham wrote:
> >> I own a VP-1030A (red board) which I am trying your patch with. I
> >> applied the patch against CVS code from 23 Dec and it compiles cleanly
> >> and I can load the drivers without problems. When I run "dst_test info"
> >> all seems ok,
> >> I get
> >
> > I have the very same board...
> >
> > dst_test is used only to demonstrate the various ioctls and not for any
> > practical use.. Maybe you ca use it to reset the CAM!
> >
> > There is another application called ca_zap.
> > ca_zap requires the PMT_PID of the encrypted channel to function..
> > This PMT_PID is extracted from channels.conf.
> >
> > scan does not yield a PMT_PID by default..
> > Therefore i have provided a patch to scan (option -h to provide the
> > PMT_PID)
> > With this information you can find out the PMT_PID..
> >
> > Once you have szap'd onto the encrypted channel,
> >
> > You can do a ca_zap /path/to/channels.conf/having/PMT_PID "Channel name"
> > This will parse the CA_PMT and send it to the ASIC.
> >
> > After this you can use mplayer to watch the encrypted stream.
> >
> > Currently i am working on the PMT parser, so it may not be working for
> > everybody, but it works for me.. But i hope to get it working very soon..
> >
> > Manu

I have been playing with this for days without much success. 
My steps are as follows:

1- Tune transponder "szap -a 3 -l 11300 7Central"
2- Send CA-PMT "ca_zap /root/pids 7Central"
3- Play with Mplayer "test_dvr /dev/stdout 1024 1025 | mplayer -cache 2048 -"

Mplayer complains about no stream found. When I use the same steps with a FTA 
channel, I get a picture, so I know my cards tuning and receiving.

dst_ca messages look ok, I see no errors. Here is the output for ca_zap

Program Length=[16]
Descriptors=[1 45 224 32 1 46 224 32 1 47 224 32 1 48 224 32 ]

And dmesg output:

dst_ca_open: Device opened [d10edc40]
dst_ca_ioctl: Sending message
ca_send_message
ca_send_message:Command=[0x9f8032]
Command = SEND_CA_PMT
In string = [ 0x9f 0x80 0x32 0x25 0x03 0x00 0x03 0xed 0xe0 0x10 0x01 0x01 0x2d 
0xe0 0x20 0x01 0x2e 0xe0 0x20 0x01 0x2f 0xe0 0x20 0x01 0x30 0xe0 0x20 0x01 
0x31 0xe0 0x20 0x01 0x32 0xe0 0x20 0x01 0x33]
Prog desc length =[17]
CA PMT Command = Ok descrambling
dst_put_ci:Write DST length=[41]:
dst_put_ci: read successful
dst_put_ci: ACK = [0]
dst_put_ci: write not acknowledged.
ca_set_pmt: DST-CI Command succes.
Success.
Success.
dst_ca_release: Device closed.

Which CI CAM are you using ? Im using a Irdeto v2.06B and have also tried with 
a MagicModule, but I dont think that will work.

One thing Im unsure about is the CA_PMT is 32 for every channel on all 
transponders in the channels.conf is this right or is scan parsing the wrong 
value ?
 Will the CA driver work in Mythtv? Ive tried but is says something about the 
link layer interface not support by the driver.
 Ive currently got 4 Twinhan cards, 3 are dvbt and one dvbs and with your 
patch they work alot better, faster zapping.

Thanks for your time.

Andrew.





Home | Main Index | Thread Index