I tried with the Reflex72 (PC/SC) reader and it worked perfecly. Thanks !
NB : It doesn't seem to work on the Reflex60 reader (perhaps Forges
drivers?)...
Arno Mauhourat
At 22:54 08/03/00 +0100, Sylvain Ferey wrote:
>Hi,
>
>if you only have a CardChannel instance, you can't.
>if you're in a CardService, you can manage as follows:
>
>...
> protected CardTerminal terminal;
> protected SlotChannel slotChannel;
>...
>
>public void initialize(CardServiceScheduler scheduler,
> SmartCard card, boolean blocking){
> try {
> super.initialize(scheduler, card, blocking);
> slotChannel = scheduler.getSlotChannel();
> terminal = slotChannel.getCardTerminal();
> }
> catch (CardServiceException cse){
> }
>}
>
>...
>now, when it's needed, just call:
>
> terminal.reset(slotChannel);
>
>note that the CardService class holds a reference to the scheduler but
>define that member private and does not provide a getScheduler() method
>... why ?!?
>
>cheers,
>Sylvain.
>
>
>At 11:30 08/03/00 +0100, Arno Mauhourat wrote:
>
>>How do I reset a card when I have an instance of CardChannel ?
>>
>>
>>
>>Regards,
>>Arno Mauhourat
>>
>>
>>
>>---
>>>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.
>
>
>
>---
>>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.
>
---
> 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.