I am facing a very strange problem with MIFARE DESFire. When I write small amounts of data (e.g. 11 bytes), the write operation succeeds. However, when I try to write e.g. 50 byte, the response is 917E, which means there is some length issue in command.
Try to write 11 bytes:
<-- 90 3D 00 00 12 01 000000 0B0000 1234567890AABBCC DDEEFF 00 --> 9100 (success)
Try to write 50 bytes:
<-- 90 3D 00 00 39 01 000000 320000 1234567890AABBCC DDEE1234567890AA BBCCDDEE12345678 90AABBCCDDEE1234 567890AABBCCDDEE 1234567890AABBCC DDEE 00 --> 917E (length error)