cvend
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cvend [2026-11-23 00:40 UTC (5 days ago)] – restore new protocol details from rewrite doof | cvend [2026-11-23 00:56 UTC (5 days ago)] (current) – fix Ultralight reply header to remove emdash qkb | ||
|---|---|---|---|
| Line 43: | Line 43: | ||
| | 0x97 | <- | PutFileReply | | | | 0x97 | <- | PutFileReply | | | ||
| | 0x98 | -> | GetFile | '' | | 0x98 | -> | GetFile | '' | ||
| - | | 0x99 | <- | GetFileReply | '' | + | | 0x99 | <- | GetFileReply | '' |
| | 0x9a | -> | DeleteFile | | | | 0x9a | -> | DeleteFile | | | ||
| | 0x9b | <- | DeleteFileReply | | | | 0x9b | <- | DeleteFileReply | | | ||
| | 0x9c | -> | FileInfo | '' | | 0x9c | -> | FileInfo | '' | ||
| - | | 0x9d | <- | FileInfoReply | '' | + | | 0x9d | <- | FileInfoReply | '' |
| | 0xa4 | -> | FileList | '' | | 0xa4 | -> | FileList | '' | ||
| - | | 0xa5 | <- | FileListReply | '' | + | | 0xa5 | <- | FileListReply | '' |
| | 0xaa | -> | SetTime | payload is a timestamp | | | 0xaa | -> | SetTime | payload is a timestamp | | ||
| | 0xab | <- | SetTimeReply | | | | 0xab | <- | SetTimeReply | | | ||
| Line 84: | Line 84: | ||
| <- - Reader to Host | <- - Reader to Host | ||
| - | ===== LEDs ===== | + | ==== 0x20 LEDs ==== |
| The '' | The '' | ||
| Line 98: | Line 98: | ||
| | 0x80 | NFC logo, left | | | 0x80 | NFC logo, left | | ||
| - | ==== 0xD5 UltralightReply | + | ==== 0xD5 UltralightReply |
| '' | '' | ||
| Line 127: | Line 127: | ||
| * If no card is in the field, the device echoes '' | * If no card is in the field, the device echoes '' | ||
| * To read all pages of an NTAG 215: send subcmd 0x02 with '' | * To read all pages of an NTAG 215: send subcmd 0x02 with '' | ||
| + | |||
| + | ==== 0xD1 EMVStatus ==== | ||
| + | |||
| + | '' | ||
| + | |||
| + | < | ||
| + | 05 fffee004 39 outer container, 0x39 bytes | ||
| + | df fe e0 08 01 10 | ||
| + | df fe e0 09 01 01 | ||
| + | df fe e0 0a 03 000000 | ||
| + | df fe e0 0e 08 00...00 | ||
| + | df fe e0 0b 01 00 | ||
| + | df fe e0 0c 06 00...00 | ||
| + | df fe e0 0d 02 0000 | ||
| + | </ | ||
| + | |||
| + | The '' | ||
| ==== Sample reader flow ==== | ==== Sample reader flow ==== | ||
| Line 139: | Line 156: | ||
| - Host sends read command. To read the full contents of file 0x00, the body is '' | - Host sends read command. To read the full contents of file 0x00, the body is '' | ||
| - Reader responds with the status code and file data. | - Reader responds with the status code and file data. | ||
| - | |||
| - | ==== Reader -> Host ==== | ||
| - | |||
| - | packet type 0xED seems to be a log message: | ||
| - | \xBC\xB9\0\xED\0h\xB6\x0306: | ||
| - | |||
| - | 0xB9 - card read? | ||
| - | |||
| - | ==== Host -> reader ==== | ||
| - | 0xBC - appears after every read (ack of some sort?) | ||
| - | |||
| ==== Card read flow ==== | ==== Card read flow ==== | ||
| Line 180: | Line 186: | ||
| 00000070 | 00000070 | ||
| 00000080 | 00000080 | ||
| - | | ||
| - | | ||
| - | | ||
| - | There are 4 bytes appended at the end of some messages (presumably those with ID LSB=1, if the Rust struct description is accurate?) which is not a CRC32 with any polynomial I recognize, but a CRC32 of (message + CRC) is always 0xFFFFFFFF. These 4 bytes are NOT included in the length. | ||
| - | |||
| - | The checksum is _appended_, as can be seen by it following the log message (after the final \0). | ||
| - | |||
| - | is it a _little endian_, _bit negated_ CRC32. Which is weird because the length is big endian?.. | ||
| - | |||
| - | * Host only sends two types of messages after initialization - both of type 0xBC. One is length 1 and the body is always 0x60 (+ negated CRC 2A714F60), the other is of length 4 and the body is always 5A2BC3F9 (+ negated-CRC 11A8A56A) | ||
cvend.1795394425.txt.gz · Last modified: by doof
