title: DESFire write data command fails with 917E (length error)
body: <p>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.</p>
  
  <p>Try to write 11 bytes:</p>
  
  <pre>
  &lt;-- 90 3D 00 00 12 01 000000 0B0000 1234567890AABBCC DDEEFF 00
  --&gt; 9100 (success)
  </pre>
  
  <p>Try to write 50 bytes:</p>
  
  <pre>
  &lt;-- 90 3D 00 00 39 01 000000 320000 1234567890AABBCC DDEE1234567890AA
                                      BBCCDDEE12345678 90AABBCCDDEE1234
                                      567890AABBCCDDEE 1234567890AABBCC DDEE 00
  --&gt; 917E (length error)
  </pre>