Mar-24-2018, 06:02 PM
Hi,
I am currently neck deep in my first Raspberry Pi/NFC project and need some advice with a Python bytearray. When reading the contents of a Classic Mifare 1K card (16 sectors, 4 blocks):
https://www.nxp.com/docs/en/application-note/AN1304.pdf
I am returning the following bytearray:
Any pointers to get me started would be really helpful.
Thanks in advance,
Matt
I am currently neck deep in my first Raspberry Pi/NFC project and need some advice with a Python bytearray. When reading the contents of a Classic Mifare 1K card (16 sectors, 4 blocks):
https://www.nxp.com/docs/en/application-note/AN1304.pdf
I am returning the following bytearray:
bytearray(b'K\x01\x01\x00\x00\x08\x04\x97*f9')I am trying to retrieve the serial ID of the card, which I know is in sector 0, block 0 and is 97:2A:66:39. I suspect it is contained within the last byte of the returned byte array, but after reading the Python documentation I don't understand the
Quote:x97*f9as I suspect this contains what I need. How can I extract the contents of this byte (or am I barking up the wrong tree?).
Any pointers to get me started would be really helpful.
Thanks in advance,
Matt