It may be caused by 2 reasons.
(1)  Your smart card does not have 256 byte buffer.
(2)  Your card reader does not have 256 byte buffer to handle your request.

Many smart cards may has 252 or less RAM for read /write operation.  (most
8051 core smart card).

Lawrence


----- Original Message -----
From: "Christian Del Rosso" <[EMAIL PROTECTED]>
To: "Tommaso Cucinotta" <[EMAIL PROTECTED]>e
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, October 20, 2000 5:09 PM
Subject: Re: [Smartsign-users] Re: MUSCLE ..Error communicating to:
Schlumberger Reflex 62


> Hi,
>
> I've done some tests, thanks to  David Corcoran and
> Tommaso Cucinotta, I've modified the ReadBinary() function in smartsign.
> If I try to read 0xFF bytes at once I get an error .
>
> By now, I've changed the ReadBinary() function in the smart_util.c
> in this way:
>
> while (len > 0) {
>     if (len <= 253)
>       partial = len;
>     else
>         // before
>       // partial = 255;
>
> // now
>         partial=253;
>
>
> I've tried differents values for "partial", "253" is the highest that
worked.
> with 254 I would get the same error. Why does this happen?
>
>
>
> Christian
>
>
>
> > >David Corcoran wrote:
> > > You might try modifying the code to try and read binary smaller
amounts
> > > instead of FF you might try a lower number just to try and track down
the
> > > problem.
>
> > Tommaso Cucinotta wrote:
> > You can try this modifying the ReadBinary() function in smart_util.c
> > There you have a loop in which 0xFF bytes are read at once, modify the
> > value to something smallest. Please, consider that you should (perhaps)
> > modify WriteBinary() too, if it worked.
> >
> > Please, let me know if that works, bye,
> >
> > Tommaso.
> ***************************************************************
> 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
> ***************************************************************

***************************************************************
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
***************************************************************

Reply via email to