[linux-dvb] dvb-bt8xx: A frontend driver was not found for device 109e/0878 subsystem 1822/0001

Oivind oivindg at gmail.com
Sat Jun 25 01:32:48 CEST 2005


This might be a question for another forum. I have tried vlc on IRC
without success. So anyway;

I have now finished rewriting the basics ca_set_pmt(), and the Twinhan
card finally replies (see dmesg below). But the computer is in a
serverroom without a console, so I need to stream the output with vlc
(0.8.1 Janus) to watch the result. I wonder if I do this correctly.

Method one (this already works great on an unscrambled channel);
I run vlc in dvb mode, like this...
# vlc -vvv --color --ttl 12  --ts-es-id-pid  dvb: --dvb-adapter=0
--dvb-frequency=12303000 --dvb-srate=27800000 --programs=1508
--dvb-budget-mode --sout ...
..and while running with a lot of errors (assuming cause of scrambled
data) like this..
   ts demuxer warning: invalid header [0xf8:87:5d:26] (pid: 514)
..I run ca_zap like this..
# ./ca_zap -a 0 -c TV2.conf -n "TV2 Norge" -t sat 
...which reports as the log below, but the vlc invalid header errors
continues as if nothing happens...
I would assume the data starts to get descrambled correctly, and makes
vlc decoder sync properly
I might be wrong..?!

TV2.conf contains one line:
TV2 Norge:12303:v:0:27800:514:668:1508

Method two (can't make this work);
# vlc -vvv --color --ttl 12   stream:/dev/dvb/adapter0/dvr0 --sout ...
Trying to read dvr0 as a stream, using szap with -r and -p...but it
just hangs like this;
[00000222] main input debug: `stream:/dev/dvb/adapter0/dvr0' sucessfully opened
[00000239] ts demuxer debug: pid[514] unknown
[00000222] main input debug: control type=1
[00000239] ts demuxer debug: pid[668] unknown

Any tips would be appreciated!


dmesg
-----------------------------------------------
dst_ca_open:Device opened [ffff81000f066bc0]
dst_ca_ioctl: Sending message
ca_send_message
ca_send_message:Command=[0x9f8032]
Command = SEND_CA_PMT
asn_1_decode: Length field=[12]
asn_1_decode: Length=[12]
ca_set_pmt: CA Message length=[12]
ca_set_pmt: RAW CA Message with tag and length:
 Offset=[ 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 ]
 String=[ 9f 80 32 12 03 05 e4 01 10 06 01 09 04 0b 00 e5 05 02 e2 02 f0 05 ]
ca_set_pmt: ASN.1:
 Offset=[ 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 ]
 String=[ 03 05 e4 01 10 06 01 09 04 0b 00 e5 05 02 e2 02 f0 05 ]
ca_set_pmt: pmt_list_management [8 bits]:
copy_string: Copying [ 03]
ca_set_pmt: program_number [16 bits]:
copy_string: Copying [ 05 e4]
ca_set_pmt: reserved [2 bits], version number [5 bits],
current_next_indicator [1 bit]:
copy_string: Copying [ 01]
ca_set_pmt: reserverd [4 bits], program_info_length [12 bits]
copy_string: Copying [ 10 06]
ca_set_pmt: !!! Probably an ASIC bug, incrementing program_info_length by 1
program_info_length: 6
ca_set_pmt: Summary; length: 07(dst_tag) + 06 :
 Offset=[ 00 01 02 03 04 05 06 07 08 09 0a 0b 0c ]
 String=[ 19 40 03 00 03 12 00 03 05 e4 11 00 07 ]
ca_set_pmt: ca_pmt_cmd_id [8 bits]
copy_string: Copying [ 01]
ca_set_pmt: CA_descriptor()
copy_string: Copying [ 09 04 0b 00 e5 05]
ca_set_pmt: stream type [8 bits]:
copy_string: Copying [ 02]
ca_set_pmt: reserved [3 bits], elementary_pid [13 bits]:
copy_string: Copying [ e2 02]
ca_set_pmt: program_number [16 bits]:
copy_string: Copying [ f0 05]
ca_set_pmt: Final block; length: 07(dst_tag) + 13 + (1)checksum:
 Offset=[ 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13
14 15 16 17 18 19 ]
 String=[ 19 40 03 00 03 12 00 03 05 e4 11 00 07 01 09 04 0b 00 05 05
02 02 02 f0 05 6d ]
dst_comm_init: Initializing DST..
dst_gpio_outb: mask=[ffffffff], enbb=[0001], outhigh=[0000]
rdc_reset_state: Resetting state machine
dst_gpio_outb: mask=[0002], enbb=[0002], outhigh=[0000]
dst_gpio_outb: mask=[0002], enbb=[0002], outhigh=[0002]
dst_put_ci: Put Command
dst_comm_init: Initializing DST..
dst_gpio_outb: mask=[ffffffff], enbb=[0001], outhigh=[0000]
rdc_reset_state: Resetting state machine
dst_gpio_outb: mask=[0002], enbb=[0002], outhigh=[0000]
dst_gpio_outb: mask=[0002], enbb=[0002], outhigh=[0002]
write_dst writing [ 19 40 03 00 03 12 00 03 05 e4 11 00 07 01 09 04 0b
00 05 0502 02 02 f0 05 6d ]
dst_gpio_outb: mask=[ffffffff], enbb=[0000], outhigh=[0000]
read_dst reply is 0xff
write_to_8820: DST-CI Command succes.
ca_send_message: -->CA_PMT Success !
dst_ca_release:Device closed.


Oivind



On 6/24/05, Manu Abraham <manu at kromtek.com> wrote:
> Oivind wrote:
> >>>>From dmesg with some additional debug info
> >>>------------------------------------------
> >>>dst_ca_open:Device opened [ffff81003d1687c0]
> >>>dst_ca_ioctl: Sending message
> >>>ca_send_message
> >>>ca_send_message:Command=[0x9f8032]
> >>>Command = SEND_CA_PMT
> >>>asn_1_decode: Length field=[12]
> >>>asn_1_decode: Length=[12]
> >>>ca_set_pmt: CA Message length=[18]
> >>>ca_set_pmt: ASN.1  String=[ 03 05 e4 01 10 06 01 09 04 0b 00 e5 05 02
> >>>e2 02 f0 05 ]
> >>>copy_string: Copying [ 03 05 e4 01 10 06]
> >>>ca_set_pmt: Probably an ASIC bug !!!
> >>> String=[ 19 40 03 00 03 12 00 03 05 e4 01 00 06 00 00 00 00 00 00 ]
> >>>ca_set_pmt: Program info length=[06]
> >>>copy_string: Copying [ 01 09 04 0b 00 e5 05]
> >>>copy_string: Copying [ 02 e2 02 f0 05]
> >>> String=[ 02 e2 02 00 05 ]
> >>>ca_set_pmt: buf_offset-2 [p_ca_message->msg[buf_offset-2]]=14 [f0]
> >>>ca_set_pmt: buf_offset-1 [p_ca_message->msg[buf_offset-1]]=15 [05]
> >>>ca_set_pmt: ES Info length bytes = [05 00]      (offsets 15,16)
> >>>ca_set_pmt: ES info length=[05]
> >>ES info length eventhough correct, uses the wrong words, ie offset is
> >>wrong .. ? ie it should have been using 0xf0 and 0x05, offsets 15 and 16..
> >>
> >>The offset is important since for some cards, the reserved 4 bits needs
> >>to be set to 0 for some cards..
> >>
> >>>ca_set_pmt: buf_offset+1 [p_ca_message->msg[buf_offset+1]]=17 [00]
> >>>ca_set_pmt: buf_offset+2 [p_ca_message->msg[buf_offset+2]]=18 [00]
> >>>ca_set_pmt: buf_offset+2 [p_ca_message->msg[buf_offset+3]]=19 [00]
> >>> String=[ 19 40 03 00 03 12 00, 03 05 e4 01 00 07 01 09 04 0b 00 e5 05
> >>>02 e2 02 00 05 ad ]
> >>The string looks somewhat okay, but program_info_length is just after
> >>0x03 just after the comma that i placed in your log to show it out ..
> >>
> >>In this case the program_info_length becomes 0x05 0xe4 which is wrong ..
> >
> > Ok 0x05 0xe4 is wrong, but what is right?
> 
> program_info_length, from your dvbsnoop output i understand is 0xf0 and
> 0x06 which makes 6
> 
> and comparing it with the output from libdvbsi
> 
> parse_pmt: ----------->parse PMT section, PMT PID=[263], bytes=[134]
> parse_pmt_header: Table ID=[2], Section Length=[131], Program
> Number=[1508], Section Number=[0], PCR PID=[514], 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=[505]
> 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 e2 02 f0 05 02 03 1a 48 5f]
>          parse_streams: Stream=[0], Stream Type=[2], Elementary
> PID=[514], ES info length=[5]
> 
> 
> 
> 
> 
> 
> 
> 
> That seems to be right ..
> 
> Let me take a look at what could be wrong again ..
> 
> >
> >
> >>And the entire message seems to be shifted to the left by 1 word, due
> >>to a wrong offset
> >>
> >>Get the correct offset, other than that everything looks moreor less okay ..
> >
> > So you mean the message should look like this with something different as xx?
> > String=[ xx 19 40 03 00 03 12 00, 03 05 e4 01 00 07 01 09 04 0b 00 e5
> > 05 02 e2 02 00 05 ]
> >
> 
> No, what i meant is the message looks shifted afte 19 40 03 00 03 12 00 03
> 
> 
> 
> > Can you please provide me with a log of your system? As far as i
> > remember, you're using the same hardware.
> >
> 
> Ok,
> 
> A log of what dst and dst_ca does right from module load, szap, ca_zap ..
> 
> Jun 24 22:36:25 deploy kernel: Linux video capture interface: v1.00
> Jun 24 22:36:25 deploy kernel: bttv: driver version 0.9.15 loaded
> Jun 24 22:36:25 deploy kernel: bttv: using 8 buffers with 2080k (520
> pages) each for capture
> Jun 24 22:36:25 deploy kernel: bttv: Bt8xx card found (0).
> Jun 24 22:36:25 deploy kernel: ACPI: PCI interrupt 0000:02:0c.0[A] ->
> GSI 20 (level, low) -> IRQ 20
> Jun 24 22:36:25 deploy kernel: bttv0: Bt878 (rev 17) at 0000:02:0c.0,
> irq: 20, latency: 32, mmio: 0xefefe000
> Jun 24 22:36:25 deploy kernel: bttv0: detected: Twinhan VisionPlus DVB-T
> [card=113], PCI subsystem ID is 1822:0001
> Jun 24 22:36:25 deploy kernel: bttv0: using: Twinhan DST + clones
> [card=113,insmod option]
> Jun 24 22:36:25 deploy kernel: bttv0: using tuner=4
> Jun 24 22:36:25 deploy kernel: bttv0: add subdevice "dvb0"
> Jun 24 22:36:25 deploy kernel: bt878: AUDIO driver version 0.0.0 loaded
> Jun 24 22:36:25 deploy kernel: bt878: Bt878 AUDIO function found (0).
> Jun 24 22:36:25 deploy kernel: ACPI: PCI interrupt 0000:02:0c.1[A] ->
> GSI 20 (level, low) -> IRQ 20
> Jun 24 22:36:25 deploy kernel: bt878(0): Bt878 (rev 17) at 02:0c.1, irq:
> 20, latency: 32, memory: 0xefeff000
> Jun 24 22:36:25 deploy kernel: DVB: registering new adapter (bttv0).
> Jun 24 22:36:25 deploy kernel: DVB: register adapter0/demux0 @ minor: 4
> (0x04)
> Jun 24 22:36:25 deploy kernel: DVB: register adapter0/dvr0 @ minor: 5 (0x05)
> Jun 24 22:36:25 deploy kernel: DVB: register adapter0/net0 @ minor: 7 (0x07)
> Jun 24 22:36:25 deploy kernel: rdc_8820_reset: Resetting DST
> Jun 24 22:36:25 deploy kernel: dst_gpio_outb: mask=[0004], enbb=[0004],
> outhigh=[0000]
> Jun 24 22:36:25 deploy kernel: dst_gpio_outb: mask=[0004], enbb=[0004],
> outhigh=[0004]
> Jun 24 22:36:25 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:36:25 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:36:25 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:36:25 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:36:25 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:36:25 deploy kernel: write_dst writing [ 00 06 00 00 00 00 00 fa ]
> Jun 24 22:36:25 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:36:25 deploy kernel: read_dst reply is 0xff
> Jun 24 22:36:25 deploy kernel: dst_wait_dst_ready: dst wait ready after 1
> Jun 24 22:36:25 deploy kernel: read_dst reply is 0x0
> Jun 24 22:36:25 deploy kernel:  0x44 0x53 0x54 0x4d 0x43 0x49 0x3c
> Jun 24 22:36:25 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:36:25 deploy kernel: dst_get_device_id: Recognise [DSTMCI]
> Jun 24 22:36:25 deploy kernel: DST type : satellite
> Jun 24 22:36:25 deploy kernel: DST type flags : 0x1 newtuner 0x10
> firmware version = 2
> Jun 24 22:36:25 deploy kernel: dst_ca_attach:registering DST-CA device
> Jun 24 22:36:25 deploy kernel: DVB: register adapter0/ca0 @ minor: 6 (0x06)
> Jun 24 22:36:25 deploy kernel: DVB: registering frontend 0 (DST DVB-S)...
> Jun 24 22:36:25 deploy kernel: DVB: register adapter0/frontend0 @ minor:
> 3 (0x03)
> Jun 24 22:36:26 deploy udev[4710]: creating device node '/udev/dvb0.demux0'
> Jun 24 22:36:26 deploy udev[4717]: creating device node '/udev/dvb0.dvr0'
> Jun 24 22:36:26 deploy udev[4724]: creating device node '/udev/dvb0.net0'
> Jun 24 22:36:27 deploy udev[4731]: creating device node '/udev/dvb0.ca0'
> Jun 24 22:36:27 deploy udev[4738]: creating device node
> '/udev/dvb0.frontend0'
> Jun 24 22:36:35 deploy udev[4500]: creating device node '/udev/dvb'
> Jun 24 22:37:10 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:10 deploy kernel: write_dst writing [ 00 09 ff b6 01 00 00 41 ]
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: read_dst reply is 0xff
> Jun 24 22:37:10 deploy kernel: dst_wait_dst_ready: dst wait ready after 5
> Jun 24 22:37:10 deploy kernel: read_dst reply is 0x0
> Jun 24 22:37:10 deploy kernel:  0x9 0xff 0xb6 0x1 0x0 0x0 0x41
> Jun 24 22:37:10 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:10 deploy kernel: write_dst writing [ 00 09 ff b6 01 00 00 41 ]
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: read_dst reply is 0xff
> Jun 24 22:37:10 deploy kernel: dst_wait_dst_ready: dst wait ready after 5
> Jun 24 22:37:10 deploy kernel: read_dst reply is 0x0
> Jun 24 22:37:10 deploy kernel:  0x9 0xff 0xb6 0x1 0x0 0x0 0x41
> Jun 24 22:37:10 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:10 deploy kernel: write_dst writing [ 00 08 04 e0 10 38 f3 d9 ]
> Jun 24 22:37:10 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:37:10 deploy kernel: read_dst reply is 0xff
> Jun 24 22:37:11 deploy kernel: dst_wait_dst_ready: dst wait ready after 28
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0x0
> Jun 24 22:37:11 deploy kernel:  0x8 0x4 0xe0 0x10 0x38 0xf3 0xd9
> Jun 24 22:37:11 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:11 deploy kernel: write_dst writing [ 00 09 ff 02 01 00 00 f5 ]
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0xff
> Jun 24 22:37:11 deploy kernel: dst_wait_dst_ready: dst wait ready after 5
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0x0
> Jun 24 22:37:11 deploy kernel:  0x9 0xff 0x2 0x1 0x0 0x0 0xf5
> Jun 24 22:37:11 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:11 deploy kernel: write_dst writing [ 00 09 02 02 01 00 00 f2 ]
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0xff
> Jun 24 22:37:11 deploy kernel: dst_wait_dst_ready: dst wait ready after 5
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0x0
> Jun 24 22:37:11 deploy kernel:  0x9 0x2 0x2 0x1 0x0 0x0 0xf2
> Jun 24 22:37:11 deploy kernel: dst_set_freq: set Frequency 1396000
> Jun 24 22:37:11 deploy kernel: Set Frequency=[1396000]
> Jun 24 22:37:11 deploy kernel: dst_set_polarization:
> Polarization=[Horizontal]
> Jun 24 22:37:11 deploy kernel: Set Symbolrate=[27500000]
> Jun 24 22:37:11 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:11 deploy kernel: write_dst writing [ 09 00 05 74 01 00 6b
> 6c 40 66 ]
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0xff
> Jun 24 22:37:11 deploy kernel: dst_wait_dst_ready: dst wait ready after 2
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0x9
> Jun 24 22:37:11 deploy kernel:  0x0 0x5 0x74 0x17 0x7b 0x0 0x3b 0x0 0xb1
> Jun 24 22:37:11 deploy kernel: dst_get_signal: Getting Signal strength
> and other parameters !!!!!!!!
> Jun 24 22:37:11 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:11 deploy kernel: write_dst writing [ 00 05 00 00 00 00 00 fb ]
> Jun 24 22:37:11 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0xff
> Jun 24 22:37:11 deploy kernel: dst_wait_dst_ready: dst wait ready after 1
> Jun 24 22:37:11 deploy kernel: read_dst reply is 0x5
> Jun 24 22:37:11 deploy kernel:  0x74 0x17 0x7a 0x80 0x3a 0x0 0x3c
> Jun 24 22:37:11 deploy kernel: dst_get_signal: Getting Signal strength
> and other parameters !!!!!!!!
> Jun 24 22:37:28 deploy kernel: dst_ca_open:Device opened [ecedb980]
> Jun 24 22:37:28 deploy kernel: dst_ca_ioctl: Sending message
> Jun 24 22:37:28 deploy kernel: ca_send_message
> Jun 24 22:37:28 deploy kernel: ca_send_message:Command=[0x9f8032]
> Jun 24 22:37:28 deploy kernel: Command = SEND_CA_PMT
> Jun 24 22:37:28 deploy kernel: asn_1_decode: Length field=[19]
> Jun 24 22:37:28 deploy kernel: asn_1_decode: Length=[19]
> Jun 24 22:37:28 deploy kernel: ca_set_pmt: CA Message length=[25]
> Jun 24 22:37:28 deploy kernel: ca_set_pmt: ASN.1  String=[ 03 01 33 11
> 10 08 01 09 06 06 04 05 4a ff f1 02 e0 cf f0 00 04 e1 33 f0 00 ]
> Jun 24 22:37:28 deploy kernel: copy_string: Copying [ 03 01 33 11 10 08]
> Jun 24 22:37:28 deploy kernel: ca_set_pmt: Probably an ASIC bug !!!
> Jun 24 22:37:28 deploy kernel:  String=[ 20 40 03 00 03 19 00 03 01 33
> 11 00 08 00 00 00 00 00 00 ]
> Jun 24 22:37:28 deploy kernel: ca_set_pmt: Program info length=[08]
> Jun 24 22:37:28 deploy kernel: copy_string: Copying [ 01 09 06 06 04 05
> 4a ff f1]
> Jun 24 22:37:28 deploy kernel: copy_string: Copying [ 02 e0 cf f0 00]
> Jun 24 22:37:28 deploy kernel: ca_set_pmt: ES Info length bytes = [00 04]
> Jun 24 22:37:28 deploy kernel: ca_set_pmt: ES info length=[04]
> Jun 24 22:37:28 deploy kernel: copy_string: Copying [ 04 e1 33 f0 00]
> Jun 24 22:37:28 deploy kernel: ca_set_pmt: ES Info length bytes = [00 00]
> Jun 24 22:37:28 deploy kernel: ca_set_pmt: ES info length=[00]
> Jun 24 22:37:28 deploy kernel:  String=[ 20 40 03 00 03 19 00 03 01 33
> 11 00 09 01 09 06 06 04 05 4a ff f1 02 e0 cf 00 00 04 e1 33 00 00 0e ]
> Jun 24 22:37:28 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:28 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:28 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:28 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:29 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:29 deploy kernel: dst_put_ci: Put Command
> Jun 24 22:37:29 deploy kernel: dst_comm_init: Initializing DST..
> Jun 24 22:37:29 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0001], outhigh=[0000]
> Jun 24 22:37:29 deploy kernel: rdc_reset_state: Resetting state machine
> Jun 24 22:37:29 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0000]
> Jun 24 22:37:29 deploy kernel: dst_gpio_outb: mask=[0002], enbb=[0002],
> outhigh=[0002]
> Jun 24 22:37:29 deploy kernel: write_dst writing [ 20 40 03 00 03 19 00
> 03 01 33 11 00 09 01 09 06 06 04 05 4a ff f1 02 e0 cf 00 00 04 e1 33 00
> 00 0e ]
> Jun 24 22:37:29 deploy kernel: dst_gpio_outb: mask=[ffffffff],
> enbb=[0000], outhigh=[0000]
> Jun 24 22:37:29 deploy kernel: read_dst reply is 0xff
> Jun 24 22:37:29 deploy kernel: write_to_8820: DST-CI Command succes.
> Jun 24 22:37:29 deploy kernel: ca_send_message: -->CA_PMT Success !
> Jun 24 22:37:29 deploy kernel: dst_ca_release:Device closed.
> 
> 
> My channels.conf is like this ...
> 
> TVL:11996:h:0:27500:201:301:301
> TVL+2:11996:h:0:27500:202:302:302
> PRM:11996:h:0:27500:203:303:303
> PRM+2:11996:h:0:27500:204:304:304
> TMC:11996:h:0:27500:205:305:305
> TMC+1:11996:h:0:27500:206:306:306
> 
> 
> When running ca_zap after a szap,
> 
> # ca_zap -a 0 -c ~/channels.conf -t sat -d 0 -s 0 -f 0 -n TMC2
> 
> 
> I get like this ...
> 
> [root at deploy ca_zap]#./ca_zap -a 0 -c ~/channels.conf  -t sat -d 0 -s 0
> -f 0 -n TMC2
> Using Adpater=[/dev/dvb/adapter0]
>   Frontend=[/dev/dvb/adapter0/frontend0]
>   Demux=[/dev/dvb/adapter0/demux0]
>   Slot=[/dev/dvb/adapter0/ca0]
> Parsing /root/channels.conf
> Satellite frontend
> parse_sat_channel_list: Channel=[TMC2], Frequency=[11996],
> Satellite=[0], Symbol Rate=[27500], Video=[207], Audio=[307], Service=[307]
> Service ID=[307]
> parse_pat: ----------------->parse PAT section
> parse_pat: PAT => Section Length=[69], TS ID=[17667]
> parse_si: PMT PID = [107]
> parse_si: PAT: Close Demux /dev/dvb/adapter0/demux0
> parse_pmt: PMT Words=[ 02 b0 1f 01 33 c9 00 00 e0 cf f0 08 09 06 06 04
> 05 4a ff f1 02 e0 cf f0 00 04 e1 33 f0 00 ed 73 38 4a ]
> 
> parse_pmt: ----------->parse PMT section, PMT PID=[107], bytes=[34]
> parse_pmt_header: Table ID=[2], Section Length=[31], Program
> Number=[307], Section Number=[0], PCR PID=[207], Program info length=[8]
> parse_pmt: Program info length=[8]
> INFO:: Parsing descriptor: parse_ca_descriptor, Tag=[09], Length=[6]
> parse_ca_descriptor: Tag=[09], Length=[06], CA System=[604], CA PID=[54a]
> parse_ca_descriptor: CA Private Data=[ ff f1 ]
> parse_ca_descriptor: Pos=[20]
> parse_pmt: Count=[20], Position=[20], Program descriptor count=[8]
> 
>      parse_streams: Elements=[ 02 e0 cf f0 00]
>      parse_streams: Stream=[0], Stream Type=[2], Elementary PID=[207],
> ES info length=[0]
> 
>      parse_streams: Elements=[ 04 e1 33 f0 00]
>      parse_streams: Stream=[1], Stream Type=[4], Elementary PID=[307],
> ES info length=[0]
> 
> copy_en50221_pmt_object: Copying EN50221 Header
> copy_en50221_pmt_object: Program Number=[307], Program info length=[8]
> copy_en50221_pmt_object: Program level descriptor count=[1]
> copy_en50221_pmt_object: CA descriptor=[09] found, @ [0xbfffe008],
> descriptor length=[06]
>      copy_en50221_descriptor_object: Tag=[09], Length=[06], CA system
> ID=[604], CA PID=[54a]
> copy_en50221_descriptor_object: Private bytes=[2] [ ff f1 ]
> copy_en50221_pmt_object: [0] CA descriptor copied
> copy_en50221_stream_object: Stream Type=[2], Elementary PID=[207], ES
> length=[0], Number of descriptors=[0]
> copy_en50221_stream_object: Stream Type=[4], Elementary PID=[307], 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=[200], Total length=[25]
> asn_1_encode: Length=[25]
> asn_1_encode: length indicator=[19]
> do_en50221_pmt_object: ASN.1 words=[1], Length Array=[  25 ]
> en50221_encode_header: CA PMT List Mgmt=[3], Program Number=[307],
> Program info length=[8]
> write_en50221_pmt_object: EN50221 header encoded
> write_en50221_pmt_object: Program level descriptor @ [0x804e088],
> count=[1], tag=[09], length=[06]
> encode_ca_pmt_command: Encoding SCRAMBLING @ PROGRAM Level, Command=[01]
> en50221_encode_descriptor: Tag=[09], length=[06], CA system id=[604], CA
> PID=[54a]
> en50221_encode_descriptor: Private Bytes=[2] [ ff f1 ]
> en50221_encode_streams: Stream type=[02], ES PID=[cf], ES Info length=[00]
> en50221_encode_streams: Stream type=[04], ES PID=[133], ES Info length=[00]
> debug_message: CA MESSAGE=[ 9f 80 32 19 03 01 33 11 10 08 01 09 06 06 04
> 05 4a ff f1 02 e0 cf f0 00 04 e1 33 f0 00  ]
> [root at deploy ca_zap]# exit
> 
> Script done on Thu 23 Jun 2005 04:24:57 PM GST
> 
> 
> 
> 
> 
>




More information about the linux-dvb mailing list