Mailing List archive

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

[vdr] Re: SV: CAM support, was Improved CAM support in VDR



micael.beronius@telia.com wrote:
> 
> Hello Klaus,
> 
> KS> I have now added checks to the ioctl() calls in cCiTransportLayer::ResetSlot(),
> KS> just in case they return an error (will be logged in /var/log/messages).
> KS> maybe you want to get the new ftp://ftp.cadsoft.de/vdr/Developer/ci.c and
> KS> give it a try...
> 
> Oj! ;-) I was about to attach the result, but it was 9MB... In short
> this is what it contained;
> 
> slot 0  state 0001
> slot 0  state 0001
> slot 0  state 0001
> slot 0  state 0001
> slot 0  state 0001
> slot 0  state 0001
> [ many many lines like this ]
> slot 0  state 0001
> slot 0  state 0001
> slot 1  state 0000
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01
> --> 00 01 82 01 01

The state 0001 indicates that a CAM is _present_, but apparently it doesn't
become _ready_ (which would have to result in a state of 0003).

So you should focus on the CA_RESET, which obviously doesn't work.
Maybe there's something wrong with the ci_ll_reset() function in DVB/driver/av7110/av7110.c.
So far I haven't figured out what the data sent to reset the CAM actually means, and where
a sepcification of these bytes could be found. The data that's sent is

  00 06 ss 00 FF 02 00 00

where ss is the slot number (00 or 01). However, as far as I understand these things,
this is sent in a context where normally a TPDU packet would be sent, which typically looks
something like this:

  ss id tg ...

where ss is the slot number, id is the transport connection id and tg is the tag (one
of 0x80..0x88 or 0xA0..0xA1). So this doesn't quite fit together. But then again maybe
I'm simply looking at the wrong stuff...

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index