2024-05-28 04:55 PM
Hi,
I am reading mifare desfire tag which is iso14443-4 compliant using cr95hf.
Most of the time, communication is completed successfully but sometime, i am getting 0x90 result code when using SendRecv command.
0x90 EUnintByte Residual bits in last byte. Useful for ACK/NAK reception of ISO/IEC 14443 Type A.
I do not know how to handle this error and i could not find any information in the iso14443a specifications.
Could help me to find resources for this topic?
Is it recoverable error or should i stop the communication after getting this error?
Regards.
Solved! Go to Solution.
2024-05-29 01:46 AM
Hi,
the 0x90 result code is used when the last received byte is incomplete. This is used typically in T2T mode to receive 4-bits ACK/NACK responses.
Your tag is not a T2T tag and IsoDep (ISO14443-4) protocol is used for Reader<->Tag communication. Having a 0x90 result code in your case is due to a transmission error. The IsoDep protocol has to manage this as an invalid block and has to act accordingly to cause the retransmission of the block.
If your are using your own implementation of the IsoDep layer (ISO14443-4), make sure to follow Rule 4. and Rule 5. from ISO14443-4.
If you are using ST RFAL middleware, the IsoDep layer properly manages this case .
Note: I would recommend to use the ST RFAL which provides ready to use source code for NFC communication with ST25R readers. See STSW-ST25R017 for the ST25 embedded NFC library for ST25R95 reader and tag products.
Rgds
BT
2024-05-29 01:46 AM
Hi,
the 0x90 result code is used when the last received byte is incomplete. This is used typically in T2T mode to receive 4-bits ACK/NACK responses.
Your tag is not a T2T tag and IsoDep (ISO14443-4) protocol is used for Reader<->Tag communication. Having a 0x90 result code in your case is due to a transmission error. The IsoDep protocol has to manage this as an invalid block and has to act accordingly to cause the retransmission of the block.
If your are using your own implementation of the IsoDep layer (ISO14443-4), make sure to follow Rule 4. and Rule 5. from ISO14443-4.
If you are using ST RFAL middleware, the IsoDep layer properly manages this case .
Note: I would recommend to use the ST RFAL which provides ready to use source code for NFC communication with ST25R readers. See STSW-ST25R017 for the ST25 embedded NFC library for ST25R95 reader and tag products.
Rgds
BT