2018-09-27 07:01 AM
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.
Solved! Go to Solution.
2018-10-08 07:49 AM
Hi Martin,
release 1.3.1 of the ST25SDK is available at:
https://www.st.com/en/embedded-software/stsw-st25sdk001.html
Cheers,
Damien
2018-09-27 07:31 AM
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.
2018-09-28 01:30 AM
Hi Damien,
Thanks for the update.
Martin.
2018-09-28 01:50 AM
Release v1.3.1 (or 1.4.0) is planned for next week.
2018-10-08 07:49 AM
Hi Martin,
release 1.3.1 of the ST25SDK is available at:
https://www.st.com/en/embedded-software/stsw-st25sdk001.html
Cheers,
Damien