Re: MUSCLE timeout problem...

2001-02-21 Thread Herbert Tolosa



hello can you tell me how ca i sign off of this list???
>From: "Emiliano Ida'" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: MUSCLE timeout problem...
>Date: Tue, 20 Feb 2001 13:06:23 +0100
>
>Hi,
>We are two undergraduate students and we are working on Cyberflex Access 
>cards
>with a Reflex 64 reader, using pcsclite 0.5.5 and OCF 1.2, for research
>purposes.
>We have one problem:
>we must implement a multiplication on-card between two byte arrays. We did
>it... but if the arrays are too long, the ocf returns this:
>
>opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC
>Exception in method SCardTransmit: error occurred with SCardTransmit
>return code = 0114
>
>We think that it can be a timeout error. We have tried to use
>apdu.waitExtension() on our cardlet, but we haven't seen any difference 
>because
>the number of iteration in the cardlet loop remains the same.
>We got the same result changing the java ATR in this way:
>3b979440fc57656263617264
>
>How can we increase the timeout? Is there something wrong in our ATR?
>
>We thank you all in andvance for your help,
>Emiliano Ida'
>Simone Baldi
>***
>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
>***

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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



Re: MUSCLE timeout problem...

2001-02-20 Thread Jim Rees

  How can we increase the timeout? Is there something wrong in our ATR?

That atr specifies a 35 second waiting time, which should be plenty (it also
lies about the card type).  One possibility is that your reader driver is
ignoring the timing info in the atr.  Have you tried a different reader?
Can you get an apdu log and see where it's failing?

You may need a very large number of calls to apdu.waitExtension().
***
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
***



MUSCLE timeout problem...

2001-02-20 Thread Emiliano Ida'

Hi,
We are two undergraduate students and we are working on Cyberflex Access cards
with a Reflex 64 reader, using pcsclite 0.5.5 and OCF 1.2, for research
purposes. 
We have one problem:
we must implement a multiplication on-card between two byte arrays. We did
it... but if the arrays are too long, the ocf returns this:

opencard.core.terminal.CardTerminalException: Pcsc10CardTerminal: PCSC
Exception in method SCardTransmit: error occurred with SCardTransmit
return code = 0114

We think that it can be a timeout error. We have tried to use
apdu.waitExtension() on our cardlet, but we haven't seen any difference because
the number of iteration in the cardlet loop remains the same.
We got the same result changing the java ATR in this way:
3b979440fc57656263617264

How can we increase the timeout? Is there something wrong in our ATR?

We thank you all in andvance for your help,
Emiliano Ida'
Simone Baldi
***
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
***



MUSCLE Timeout

1999-12-22 Thread David Corcoran

Hello,

I added a function to the library called:

SCardSetTimeout( SCARDCONTEXT hContext, DWORD dwTimeout );

This function sets the RPC timeout value.  I noticed I needed a bit more
time with the Siemens SieCrypt card - almost 40 seconds to read 30 bytes !

Calling this function before a transmit will keep RPC from timing out.

It will be included in the next release.

Also, does anyone know of a good way in RPC at the server to determine
whether the client is still alive or not.  I have a function called
SCardCollectZombies on the server side that looks through all the open
contexts periodically but I would like to Disconnect all readers that have
a dead client.

Let me know if you have any suggestions.


Best Regards,
Dave

David Corcoran  Purdue University

1008 Cherry LaneMUSCLE Smartcard Developers
West Lafayette, IN 47906http://www.linuxnet.com
765-463-0096317-514-4797

If you can't make it work - at least make it look good.  ~ Bill Gates, M$



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



MUSCLE Timeout in SCardTransmit

1999-12-14 Thread Jordi Planes


Hello.

I send several APDUs to a Smart Card. There is one instruction
that computes data. I call SCardTransmit with this instruccion and returns
a NOT_TRANSACTED error. I supose it's due to the timeout.

Is there any way to change the timeout of this function?

Thanks.

Jordi


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