Hi again, has the problem i described below anything to do with the transportprotocol? I read in an other mail that the PassThruCardService will only work with the T=0 protocol. If this is the problem, how do i modify my program so that it will use T=0 instead of T=1 ?
Thanks, Matthias > Hi, > > trying to programm my first attempt with JavaCard/OpenCard, i thought > i go the easy way and use > the PassThruCardService. But i can't use the sendCommandAPDU without > running into following Exception: > > --- message PCSC Exception in method SCardTransmit: error occurred > with SCardTransmit > return code = 00000057 > > this is the relevant Code: > > PassThruCardService ptcs = > (PassThruCardService)sc.getCardService( > PassThruCardService.class, true ); > CommandAPDU selAPDU = new CommandAPDU(selectApplet); > // ... and now the exception: > byte[] res=(ptcs.sendCommandAPDU(selAPDU)).getBuffer(); > > I use a PCSC-Terminal and a Orga "SmartJava Basic"-Card. Can anybody > please help me? > > Thanks > --- > 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.
