2022-10-04 07:28 AM
All,
I would like to first begin with saying thank you for your time in attempting to assist me.
I am attempting to read and write from/to a tag; more specifically a Type-2 and Type-4. I have been looking through example code which uses the same library as me and stumbled across the following code, shown in nfcDataExchange.png. I have been using the code to try and read/write from/to a tag, but I haven't had much success.
Google doesn't seem to be useful for this either, since I only stumble across posts explaining the structure of a NFC Data Exchange Frame (NDEF), but from what I know T2T and T4T tags require different payload structures.
So my question is, are there documents available that show how to read/write to a tag and also how to structure the tx buffer depending on the tag type? or is someone willing to explain this to me? or can someone point me in the right direction?
Also, given that the example code I looked at had the code shown in the png, I am assuming this is the correct route to take when reading/writing. Can someone confirm this?
Thanks,
Adan
Solved! Go to Solution.
2023-07-13 01:33 AM
Hi Khoa,
a citizen ID card I expect to have an applet exchanging APDUs over ISODEP. NDEF on a T4T is a similar application so you can use it as basis but you need to implement the APDUs (e.g. Select Application and others) according to the citizen ID specification. Typically response APDU have and 9000 status in the end, indicating success.
BR, Ulysses
2023-07-13 06:58 PM
Hi Ulysses,
How secure is the citizend ID card, what library do I need to use to read it?
Khoa,
2023-07-14 03:25 AM
Hi Khoa,
honestly I have no idea. I assume you are talking about a citizen card from some state. You need to check their specifications.
BR, Ulysses