lukasznowarkiewicz / NFCBusinessCard

0 stars 0 forks source link

Application POC #1

Closed lukasznowarkiewicz closed 4 months ago

lukasznowarkiewicz commented 6 months ago

Subject of this task is to achieve basic prove of concept - connection with USB AP122 reader, reading UID from card, reading NDEF URL record written with reference application.

lukasznowarkiewicz commented 6 months ago

ChatGPT conversation with debugging: https://chat.openai.com/share/81939500-1ece-49f6-9104-79e5c0044fac

lukasznowarkiewicz commented 6 months ago

Tried library pynfc:

lukasznowarkiewicz commented 6 months ago

Card I've got it's NTAG 215, according to norm ISO 14443-3A. I does not use Mifare classic standard. Wrote sample URL using NFC Tools for Desktop application:

Screenshot 2024-04-21 at 14 01 59
lukasznowarkiewicz commented 6 months ago

With application on commit https://github.com/lukasznowarkiewicz/NFCBusinessCard/commit/057c0596be93412d309b320849c2b88c63bed442 successfully read UID

Available readers: ['ACS ACR122U PICC Interface']
Using reader: ACS ACR122U PICC Interface
Enter the hex command to send (or type 'exit' to quit): FF B0 00 00 08
Card response: 04 0D 5C DD C1 79 00 00 Status words: 90 00
lukasznowarkiewicz commented 6 months ago

Info sent:

Enter the hex command to send (or type 'exit' to quit): FF B0 00 03 10
Card response: E1 10 3E 00 03 2A D1 01 26 55 01 67 69 74 68 75 Status words: 90 00

Interpretation:

Enter the hex command to send (or type 'exit' to quit): FF B0 00 07 10
Card response: 62 2E 63 6F 6D 2F 6C 75 6B 61 73 7A 6E 6F 77 61 Status words: 90 00

http://www.github.com/lukasznowa.

Enter the hex command to send (or type 'exit' to quit): FF B0 00 0B 10
Card response: 72 6B 69 65 77 69 63 7A 2F 61 62 6F 75 74 4D 65 Status words: 90 00

When decoded, these bytes spell out rkiewicz/aboutMe.

http://www.github.com/lukasznowarkiewicz/aboutMe

Enter the hex command to send (or type 'exit' to quit): FF B0 00 0C 10
Card response: 77 69 63 7A 2F 61 62 6F 75 74 4D 65 FE 00 00 00 Status words: 90 00

FE - This byte is often used as a terminator in NDEF messages, indicating the end of the NDEF data. The remaining 00 00 00 bytes are typically padding or reserved bytes to fill the rest of the block.

lukasznowarkiewicz commented 6 months ago

https://github.com/lukasznowarkiewicz/NFCBusinessCard/commit/eb21bd26dc22db2556c0c6ff37536d40122a4657

Available readers: ['ACS ACR122U PICC Interface']
Using reader: ACS ACR122U PICC Interface
Enter the hex command to send, type 'read_ndef' to read NDEF data, or type 'exit' to quit: read_ndef
Reading NDEF data...
NDEF Data Read from the Card: *&Ugithub.com/lukasznowarkiewicz/aboutMe
lukasznowarkiewicz commented 6 months ago

NDEF record used till this point: NDEF_data.json

lukasznowarkiewicz commented 5 months ago

Last commit form POC app: https://github.com/lukasznowarkiewicz/NFCBusinessCard/commit/e7f0127be4d335b54e2073499f9afa572542e1d4