Setting GPO from Android app throws exception - on some mobile phones
Hi,
I am trying to set the GPO pin on a ST25DV based device from an Android app. I am using the following code:
AndroidReaderInterface reader = AndroidReaderInterface.newInstance(mTag);
try {
ST25DVTag mTag = new ST25DVTag(reader, ((Type5Tag) mNFCTag).getUid());
byte response = mTag.manageGpoCommand(ST25DVTag.GpoCommand.SET, (byte)0x00);
Log.i(TAG, "Response: " + Helper.convertByteToHexString(response));
} catch (STException | Exception e) {
Log.w(TAG, "ManageGPO failed: " + e.getMessage());
}This is what we concluded so far:
1. The NFC device really receive the command and set the GPO. We confirmed this with oscilloscope.
2. We tested the app on 2 different Samsung phones and Xiaomi. The same code executed fine on one mobile phone but throws an exception on two others.
What are we doing wrong?
Many thanks in advance.
