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:
> 
> >> I think I now see the change, but I guess that
> >>     "if (tc[i].CreateConnection() == OK) {"
> >> will fail the second time and hence no more tries to
> >>     "if (tc[i].RecvTPDU() == T_CTC_REPLY)"
> >> are done. This is only a guess though...
> 
> KS> You're right, I see that, too, now.
> 
> KS> I guess I'll combine the NewConnection() and CreateConnection()
> KS> functions. However, that'll have to wait until tomorrow, since there's
> KS> currently a recording going on on my VDR box...
> 
> OK, so I did this;
> -------------------------------------------
> if (tc[i].CreateConnection() == OK && tc[i].RecvTPDU() == T_CTC_REPLY )
>   return &tc[i];
> else
>   dsyslog("CAM didn't reply correctly to T_CREATE_TC - retrying...");
> -------------------------------------------
> 
> and this in cCiTransportConnection::Data();
> -------------------------------------------
> if (state == stIDLE || state == stCREATION) {
>                     ^^^^^^^^^^^^^^^^^^^^^^
> -------------------------------------------
> 
> And now several tries are done, but my CAM is not seen anyway...

Are you actually observing several

--> 00 01 82 01 01

or are you just seeing

CAM didn't reply correctly to T_CREATE_TC - retrying...

in the log file? I assume the latter is the case, since CreateConnection() sets
'state = stCREATION', and after that no more T_CREATE_TC will be sent.

I have uploaded a new version to ftp://ftp.cadsoft.de/vdr/Developer/ci.c which
hopefully should correctly repeat the initial T_CREATE_TC. Please try this one and
send me the debug output.

> Is there another way of checking the result, apart from poll()?
> (Are there any up to date doc on the CA api?)

The document's name is "En50221". I've uploaded it to

  ftp://ftp.cadsoft.de/pub/etc/En50221.pdf

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