I am about to lose my mind here!

I use two GPK8000 cards in my application, and I communicate with my GCR410P
readers through the Pcsc10CardTerminalFactory.

I have one instance of GPKFileSystemService ("fss" from now on) for EACH
card.

I then use fss.read() to read from transparent files with public access (AC
all 0x00's).

The following scenario fails, and I simply can't figure out what I am doing
wrong.

------------
read from card 2: 3F00:0200:0204, 0, 16 (file, offset, length)
read from card 1: 3F00:0200:0201, 0, 2
read from card 1: 3F00:0200:0201, 4, 60
read from card 1: 3F00:0200:0201, 64, 60
read from card 1: 3F00:0200:0201, 124, 25
read from card 2: 3F00:0200:0201, 0, 2   // ERROR!!!!!
------------

The last command returns the first two bytes of the file 3F00:0200:0204 on
card 2!!!
If I swap the reads (ie. swap "card 1" and "card 2"), the result is the same
(the last command reads 2 bytes from 3F00:0200:0204 on card 1).

It is as if fss.read() doesn't properly select the new file and reads from
the same file as in the previous call.

Can anybody help?

Regards,
Jacob Tjornholm

________________________
Jacob Tjornholm
Systems Engineer
Cryptomathic A/S
Kannikegade 14, 3.
DK-8000 Aarhus C
tel. +45 8613 9020
www.cryptomathic.com

Email : [EMAIL PROTECTED]
direct tel. +45 8676 2282
________________________








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