tag:blogger.com,1999:blog-5376484764156858875.post8654379630339079914..comments2022-04-03T23:20:59.216+08:00Comments on redmilk's study blog: libnfc exampleAnonymoushttp://www.blogger.com/profile/02512112893038405963noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5376484764156858875.post-79074096053421691912019-01-23T05:39:31.885+08:002019-01-23T05:39:31.885+08:00Hey. How can we read the data in the tag? These ex...Hey. How can we read the data in the tag? These example is just reading the UID. And how can I do a write into the tag instead of just reading?Anonymoushttps://www.blogger.com/profile/05985322115116830938noreply@blogger.comtag:blogger.com,1999:blog-5376484764156858875.post-4803695173132902822015-07-06T15:46:50.913+08:002015-07-06T15:46:50.913+08:00Hi Josua,
nt is a type of struct nfc_target which...Hi Josua,<br /><br />nt is a type of struct nfc_target which is defined in nfc-types.h of libnfc. I believe the value of nt is filled within "nfc_initiator_poll_target(pnd, nmModulations, szModulations, uiPollNr, uiPeriod, &nt)" after a nfc target is detected. As you can see nt is passed a pointer in parameter in nfc_initiator_poll_target.<br /><br />Anonymoushttps://www.blogger.com/profile/02512112893038405963noreply@blogger.comtag:blogger.com,1999:blog-5376484764156858875.post-14538746103853417972015-07-06T13:07:47.947+08:002015-07-06T13:07:47.947+08:00Hello. Greeting Mr. Wei-Chi Lai. I am new to NFC t...Hello. Greeting Mr. Wei-Chi Lai. I am new to NFC technology. I see you make a post about this libnfc example codes. I am currently working on a project using this libnfc. I have tried to study and searching to understand what is the meaning of this codes. I am trying to use a Raspberry Pi and NFC module PN532 to read and write an NFC tag. Can you give me explanation about this : nt.nti.nai.szAtsLen on print_hex(nt.nti.nai.abtAtqa, 2); I know it use function print_hex on the above. <br /><br />print_hex(const uint8_t *pbtData, const size_t szBytes) {<br /> size_t szPos;<br /><br /> for (szPos = 0; szPos < szBytes; szPos++) {<br /> printf("%02x ", pbtData[szPos]);<br /> }<br /> printf("\n");<br />}<br /><br />But how do we know the value for : const uint8_t *pbtData, const size_t szBytes<br />Where does nt.nti.nai.szAtsLen coming from?Josua A Shttps://www.blogger.com/profile/04578089962647254835noreply@blogger.com