Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xfr with aspected result runs in an issue #14

Closed
AppWerft opened this issue Mar 13, 2020 · 2 comments
Closed

Xfr with aspected result runs in an issue #14

AppWerft opened this issue Mar 13, 2020 · 2 comments

Comments

@AppWerft
Copy link

Hello,
all APDU which returns 9000 works as aspected.

This APDU for getting data from card runs in an issue:

byte[] READ_PD = new byte[] { 0x00, (byte) 0xb0, (byte) (0x80 + 0x01), 0x00, 0x00, 0x00, 0x00 };
ftReader.readerXfr(0, READ_PD);		

returns:

[com.ftsafe.readerScheme.FTReader:readerXfr]
[apdu send recv error]
[java.lang.Exception: apdu send recv error]

Any ideas whats going wrong?

@FeitianSmartcardReader
Copy link
Owner

I will feedback to our engineer next Monday, they will back to you then, thanks

@AppWerft
Copy link
Author

AppWerft commented Mar 14, 2020

here my log:

SEND: 00a4040c07d2760001448000  //  SELECT_MF
RCV: 9000 // OK
SEND: 00a4040c06d27600000102 // SELECT_HCA
RCV: 9000 // OK
SEND: 00b08c0000  (READ_BINARY_EF_STATUSVD)
RCV: 303230313930353134313831313235005002000000300000049000
SEND: 00b0810002 // SELECT_FILE_PD
RCV: 016c9000  //  OK file size = 016c (364 Bytes)
SEND: 00b08100000000 // READ_PD
[ERROR][com.ftsafe.readerScheme.FTReader:readerXfr][apdu send recv error][java.lang.Exception: apdu send recv error]

With other words: I send a valid(?) byte sequence and an exception will caught.
Expected behaviour: an error code

In FTReader.java#124

 array = (byte[])this.ccidScheme.readerXfrBlock(index, data);
 if (array.length <= 0) {       
        throw new Exception("apdu send recv error");
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants