[linux-dvb] Twinhan Ter-CI 3040

Einar Bjarni Halldórsson einarha at hi.is
Thu Jul 28 12:33:48 CEST 2005


Hi,

Just got back from vacation, and finished rebuilding my box, so I'm back 
to trying to get to CI on the Twinhan working again.

ca_zap seems to run fine, but still nothing from dvr0 (works with 
unencrypted channels, though).

Einar

p.s. I get a compile error when I try to build scan and szap from 
dvb-apps CVS. Is it me, or is the source broken? Complains undefined 
symbol FE_ATSC and some other ATSC stuff. I'm using the debian built 
tools in the meanwhile.

Output from ca_zap
==============================

mythtv at myth:~/dvb-apps/util/ca_zap$ ./ca_zap -c ~/channels.conf -t ter 
-n "MTV"
Using Adpater=[/dev/dvb/adapter0]
 Frontend=[/dev/dvb/adapter0/frontend0]
 Demux=[/dev/dvb/adapter0/demux0]
 Slot=[/dev/dvb/adapter0/ca0]
Parsing /home/mythtv/channels.conf
Terrestrial frontend
Service ID=[63]
parse_pat: ----------------->parse PAT section
parse_pat: PAT => Section Length=[33], TS ID=[14]
parse_si: PMT PID = [1781]
parse_si: PAT: Close Demux /dev/dvb/adapter0/demux0
parse_pmt: PMT Words=[ 02 b0 22 00 3f c5 00 00 e6 05 f0 06 09 04 0b 00 
e6 e5 02 e6 05 f0 00 06 e6 e5 f0 00 04 e6 a5 f0 00 d4 f2 3a b8 ]

parse_pmt: ----------->parse PMT section, PMT PID=[1781], bytes=[37]
parse_pmt_header: Table ID=[2], Section Length=[34], Program 
Number=[63], Section Number=[0], PCR PID=[1541], Program info length=[6]
parse_pmt: Program info length=[6]
INFO:: Parsing descriptor: parse_ca_descriptor, Tag=[09], Length=[4]
parse_ca_descriptor: Tag=[09], Length=[04], CA System=[b00], CA PID=[6e5]
parse_ca_descriptor: CA Private Data=[ ]
parse_ca_descriptor: Pos=[18]
parse_pmt: Count=[18], Position=[18], Program descriptor count=[6]

        parse_streams: Elements=[ 02 e6 05 f0 00]
        parse_streams: Stream=[0], Stream Type=[2], Elementary 
PID=[1541], ES info length=[0]

        parse_streams: Elements=[ 06 e6 e5 f0 00]
        parse_streams: Stream=[1], Stream Type=[6], Elementary 
PID=[1765], ES info length=[0]

        parse_streams: Elements=[ 04 e6 a5 f0 00]
        parse_streams: Stream=[2], Stream Type=[4], Elementary 
PID=[1701], ES info length=[0]

copy_en50221_pmt_object: Copying EN50221 Header
copy_en50221_pmt_object: Program Number=[63], Program info length=[6]
copy_en50221_pmt_object: Program level descriptor count=[1]
copy_en50221_pmt_object: CA descriptor=[09] found, @ [0xbf8afa1c], 
descriptor length=[04]
        copy_en50221_descriptor_object: Tag=[09], Length=[04], CA system 
ID=[b00], CA PID=[6e5]
copy_en50221_descriptor_object: Private bytes=[0] [ ]
copy_en50221_pmt_object: [0] CA descriptor copied
copy_en50221_stream_object: Stream Type=[2], Elementary PID=[1541], ES 
length=[0], Number of descriptors=[0]
copy_en50221_stream_object: Stream Type=[6], Elementary PID=[1765], ES 
length=[0], Number of descriptors=[0]
copy_en50221_stream_object: Stream Type=[4], Elementary PID=[1701], ES 
length=[0], Number of descriptors=[0]
do_en50221_pmt_object: CA PMT List Management=[03]
set_pmt_command: Setting PMT Command
set_pmt_command: CA descriptor found @ PROGRAM Level, Setting CA PMT 
command=[01]
do_en50221_pmt_object: Object length=[224], Total length=[28]
asn_1_encode: Length=[28]
asn_1_encode: length indicator=[1c]
do_en50221_pmt_object: ASN.1 words=[1], Length Array=[  28 ]
en50221_encode_header: CA PMT List Mgmt=[3], Program Number=[63], 
Program info length=[6]
write_en50221_pmt_object: EN50221 header encoded
write_en50221_pmt_object: Program level descriptor @ [0x8052088], 
count=[1], tag=[09], length=[04]
encode_ca_pmt_command: Encoding SCRAMBLING @ PROGRAM Level, Command=[01]
en50221_encode_descriptor: Tag=[09], length=[04], CA system id=[b00], CA 
PID=[6e5]
en50221_encode_descriptor: Private Bytes=[0] [ ]
en50221_encode_streams: Stream type=[02], ES PID=[605], ES Info length=[00]
en50221_encode_streams: Stream type=[06], ES PID=[6e5], ES Info length=[00]
en50221_encode_streams: Stream type=[04], ES PID=[6a5], ES Info length=[00]
debug_message: CA MESSAGE=[ 9f 80 32 1c 03 00 3f c9 10 06 01 09 04 0b 00 
e6 e5 02 e6 05 f0 00 06 e6 e5 f0 00 04 e6 a5 f0 00 ]




Output from log
=========================
Jul 25 12:45:49 localhost kernel: dst_ca_open:Device opened [c3ee0e80]
Jul 25 12:45:49 localhost kernel: dst_ca_ioctl: Sending message
Jul 25 12:45:49 localhost kernel: ca_send_message
Jul 25 12:45:49 localhost kernel: ca_send_message:Command=[0x9f8032]
Jul 25 12:45:49 localhost kernel: Command = SEND_CA_PMT
Jul 25 12:45:49 localhost kernel: asn_1_decode: Length field=[1c]
Jul 25 12:45:49 localhost kernel: asn_1_decode: Length=[1c]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: CA Message length=[28]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: ASN.1  String=[ 03 00 3f 
c9 10 06 01 09 04 0b 00 e6 e5 02 e6 05 f0 00 06 e6 e5 f0 00 04 e6 a5 f0 00 ]
Jul 25 12:45:49 localhost kernel: copy_string: Copying [ 03 00 3f c9 10 06]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: Program info length=[06]
Jul 25 12:45:49 localhost kernel: copy_string: Copying [ 01 09 04 0b 00 
e6 e5]
Jul 25 12:45:49 localhost kernel: copy_string: Copying [ 02 e6 05 f0 00]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: ES info length=[06]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: Descriptors @ STREAM 
level...!!!
Jul 25 12:45:49 localhost kernel: copy_string: Copying [ 06 e6 e5 f0 00]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: ES info length=[604]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: Descriptors @ STREAM 
level...!!!
Jul 25 12:45:49 localhost kernel: copy_string: Copying [ 04 e6 a5 f0 00]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: ES info length=[400]
Jul 25 12:45:49 localhost kernel: ca_set_pmt: Descriptors @ STREAM 
level...!!!
Jul 25 12:45:49 localhost kernel:  String=[ 23 40 03 00 03 1c 00 03 00 
3f c9 00 06 01 09 04 0b 00 e6 e5 02 e6 05 00 00 06 e6 e5 00 00 04 e6 a5 
00 00 39 ]
Jul 25 12:45:49 localhost kernel: dst_put_ci: Put Command
Jul 25 12:45:49 localhost kernel: write_to_8820: DST-CI Command succes.
Jul 25 12:45:49 localhost kernel: ca_send_message: -->CA_PMT Success !
Jul 25 12:45:49 localhost kernel: dst_ca_release:Device closed.






More information about the linux-dvb mailing list