also addr_size is rather cmd_size, might be misleading to new code-readers.
you are right
2nd try :-): http://codeviewer.org/view/code:bcc
]]>I added an abort statement after the CRC-Error as the key generator is out of sync anyway.
(the usb transfer takes 50ms)
this way removing card during read is detected and trying to read with no legic present does not produce 256 errors
]]>Fixes MIM1024 support
]]>As I didn’t have a MIM1024 card this code is only for MIM256, but nevertheless it’s easy to adopt to the bigger cards (although the crc-iv might change then).
On last hint: the slides mention an ACK being sent 3.6ms after the write command. The time interval is actually different between cards, so a writer should not rely on timing but wait until the ACK is actually received.
You can find the patch here: http://itooktheredpill.dyndns.org/publi … eader.diff
]]>