cancel
Showing results for 
Search instead for 
Did you mean: 

ST25SDK V1.3.0 - Not reading M24SR02-Y tag anymore.

Martin Davey
Associate III

Hi,

Just switched over to ST25SDK V1.3.0, and can no longer read my M24SR02 tag. After stepping through it appears I am getting a java cast exception during a Log call in file AndroidType4ReaderClass, function:

public byte[] transceive(Object TAG, String commandName, byte[] data) throws STException (Line 61)

java.lang.ClassCastException: com.st.st25sdk.command.Iso14443aCommand$iso14443aFrameMode cannot be cast to java.lang.String

Line 61:

Log.d((String)TAG, frame);

Causes java.lang.ClassCastException: com.st.st25sdk.command.Iso14443aCommand$iso14443aFrameMode cannot be cast to java.lang.String

Because TAG is of class com.st.st25sdk.command.Iso14443aCommand$iso14443aFrameMode type.

Thanks,

Martin.

1 ACCEPTED SOLUTION

Accepted Solutions
Damien G.
ST Employee

Hi Martin,

release 1.3.1 of the ST25SDK is available at:

https://www.st.com/en/embedded-software/stsw-st25sdk001.html

Cheers,

Damien

View solution in original post

4 REPLIES 4
Damien G.
ST Employee

Hello Martin,

Thanks for reporting the bug.

I confirm that there is a regression in version 1.3.0 of the SDK for Android devices.

Unitary ISO 14443-A commands were added to support USB NFC readers but raw commands were used in TagHelper.identifyType4Product() instead of going through the RFReaderInterface. The phone's NFC controller tries (and fails) to send short frame commands usually handled inside the Android's native NFC stack.

Sorry for the inconvenience. We are working to resolve this issue in priority for release v1.3.1.

Martin Davey
Associate III

Hi Damien,

Thanks for the update.

Martin.

Damien G.
ST Employee

Release v1.3.1 (or 1.4.0) is planned for next week.

Damien G.
ST Employee

Hi Martin,

release 1.3.1 of the ST25SDK is available at:

https://www.st.com/en/embedded-software/stsw-st25sdk001.html

Cheers,

Damien