Dear IBM contributors,

resetting the terminal sounds good, unfortunaly the internalReset method of 
com.ibm.opencard.terminal.pcsc10.Pcsc10CardTerminal instanciates a CardID 
(to be stored into cid member) with the old cachedATR value.

the cachedATR member is only updated by the isCardPresent method called by 
the polling process, unfortunaly that polling notifies listeners only if 
the state card present/removed changes not if the ATR value changes.

a quick and basic patch is to insert a call to isCardPresent between the 
call to pcsc.SCardReconnect() and the call to the constructor of CardID in 
the internalReset method.

do you suggest other correction and plan to provide an ATR change 
notification ?

thank in advance.

Sylvain Ferey.
(also at [EMAIL PROTECTED])


At 01:45 15/02/00 +0100, you wrote:
>Hello All,
>
>how to force a CardTerminal instance to update its reference of CardID ?
>
>* after a change of the card-ATR value, i'm not able to get that new value 
>with the CardID.getATR method; closing and opening the CardTerminal 
>instance or the SlotChannel seems to make not effect; what's the right way ?
>
>thank in advance.
>
>Sylvain.



---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to