I am using a GemSafe GPK8000. Although I am able to read and update a file
on the smartcard I experience a "no response from smartcard" whenever I try
to readRecord or writeRecord as follows:
byte [] d = ("7"+s+s+s+s).getBytes();
CardFile file = new CardFile(fus, ef_0207);
fus.writeRecord(file.getPath(), 2, d);
System.out.println(""+file.getPath()+" >>>"+new
String(fus.readRecord(file.getPath(), 2))+"<<<");
the error meassage follows:
Uses OCF Polling list techniques
opencard.core.terminal.CardTerminalException: no response from smartcard
at
com.gemplus.opencard.terminal.GemplusCardTerminal.internalSendAPDU(GemplusCa
rdTerminal.java:791)
at
opencard.core.terminal.CardTerminal.sendAPDU(CardTerminal.java:494)
at opencard.core.terminal.SlotChannel.sendAPDU(SlotChannel.java:115)
at
opencard.core.service.CardChannel.sendCommandAPDU(CardChannel.java:22)
at
com.gemplus.opencard.service.gpk.access.GPKCardAccessor.internalSendCmmandAP
DU(GPKCardAccessor.java:581)
at
com.gemplus.opencard.service.gpk.access.GPKCardAccessor.executeCommand
(GPKCardAccessor.java:363)
at
.gemplus.opencard.service.file.AbstractFileAccessCardService.readRecordcom/g
emplus/opencard/service/file/AbstractFileAccessCardService.java:315)
at FillCardWithStuff.main(FillCardWithStuff.java:71)
What is peculiar is that the code in question runs in an associate's
environment but not on mine, both using the GPK8000. I am using windows
with a serial terminal:
OpenCard.terminals =
com.gemplus.opencard.terminal.GemplusCardTerminalFactory|mygcr|GCR410|COM1
While my associate is using windows with:
OpenCard.terminals =
com.ibm.opencard.terminal.pcscmig.PcscMigCardTerminalFactory
I believe this has to do with protocol in T=0 and T=1 but do not know how to
correct the situation. Can any offer a suggestion?
---
> 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.