Victor,
If you are using the event model, you can do the following to get the slot
channel in your cardInserted method.

public void cardInserted(CardTerminalEvent event)
      throws CardTerminalException, InvalidSlotChannelException
{
       SlotChannel    channel =
            event.getSlot().getCardTerminal().openSlotChannel(blueDot);

        // Send your apdu ......
}

You need to make sure that you close the SlotChannel when you are through
with it.

Clayton Ware
Senior Design Engineer
Dallas Semiconductor



----- Original Message -----
From: <"gayoso_v"@tsm.es>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 11, 2000 8:16 AM
Subject: [OCF] Sending APDUs




01/11/2000 03:16 PM
(subscript: Victor Gayoso Martinez@TSM)
Hi all

I�d like to known which is the correct way to send APDUs to the smart card.
I�ve
tried to use "sendAPDU(SlotChannel, CommandAPDU, int) ", but I didn�t find
any
method to get the SlotChannel currently used. Besides, if I try to
instantiate a
new SlotChannel, there is a problem because "there is another SlotChannel
already opened".

Thanks in advance,

V�ctor Gayoso




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

Reply via email to