Hi 

How can I retrieve the second ATR from the smart card (with OCF 1.2). 

The example below is showing how I tried to retrieve it but instead the 
cardTerminal.reset() generates the exception telling me "illegal SlotChannel"

Is there any way to do it.
Thanks 

Jacques

      try
      {
        SmartCard.start();
      }
      catch (Exception e)
      {
         e.printStackTrace(System.out);
      }

      try
        {
                console.display(" ");

                CardATR2      cardATR2          = new CardATR2();
                CardRequest  CardATR2Requested = new CardRequest(CardATR2);

                myCard       = SmartCard.waitForCard(CardATR2Requested);
                slot         = (myCard.getCardID()).getSlot();
                cardTerminal = slot.getCardTerminal();

                CardID        cardID = myCard.getCardID();
                myCardService = (PassThruCardService) 
myCard.getCardService(PassThruCardService.class,true);

                SlotChannel mySlotchannel = new 
SlotChannel(cardTerminal,slot.getSlotID(),null);
                cardTerminal.reset(mySlotchannel);

        }
      catch (Exception e){
           e.printStackTrace(System.out);
        }
        finally ()
        {
        SmartCard.shutdown();
        }




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