David Timothy Corcoran wrote:
> You should notice if you have the latest ctapi driver for the Reflex that
> in the Ct_data function most of the CTBCS functions are interpreted.
Sorry Dave, it 03:30 AM and I am a bit dumb and you will have to be more
explicit.
I have the ctapi-1.0 driver. I undestand that all CTBCS are performed at the
CT_Data level (or have to be mapped onto corresponding CT instructions).
However, I do not see the code corresponding to the interpretation of the
CTBCS commands inside the code of the ctapi-1.0 driver.
> I
> have masked off some of the bytes mainly due to the fact for example in a
> Reset, I always return the ATR no matter what. I realize it is not fully
> ctbcs compliant but it does cover most of the important stuff like
> request, reset, status, and eject.
Ok. The premise is that, if it works it is good.
This said, I believe it could be useful (mostly to the enjoyment of SM
novices like me) to make explicit the structure inside the driver itself. In
this case this means reflecting what you have proposed in the CT-skeleton
driver.
Please note that I do not care if you make the same things for most of the
cases (i.e., if you have to do the same things for a reset CT and a request
ICC, for examples): I guess you have no strong performance requirements, so
in this particular case, preference should be accorder to clarity instead of
shortness
> I do need to return errors on extended
> ctbcs commands such as LCD commands/etc. Right now, the Resource manager
> must be able to request first, reset 2nd, status 3rd, and eject last.
Ok, however I believe that CTBCS compliance (together with compliance of the
Resource Manager with the PC/SC specs) is an important topic.
> Thanks
> Dave
>
Regards
Paolo Bizzarri
Technical Manager
I3 Icube Srl
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************