- Jun 6, 2020
- 11,559
- 4,422
Hi, Guys
Just started a project to handle NFC tags - found Erel's tutorial on read/write NFC tags
[H3]
NFC v2.00 adds support for low level access to the NFC features. This allows reading and writing from NFC tags. The NFC library provides three features: - Reading Ndef tags based intent filters: Reading NDEF data from NFC tags - Sending data between two devices (Android Beam)...
And it works great for the tags I am using, should be easy to adapt it to fit into my project.
However, I need to also read the tag's UID along with a small amount of tag data (the UID code is used as an encryption key to ensure the tag has not been tampered with or duplicated).
Question is: Is there a simple way to adapt Erel's code to read the UID along with some data from the tag?
I did find another post
[H3]
Hello, I'm using the nfc2 library to handle nfc-v tags, calling runasync with transceive (and related byte payload). Is there a way to use the same system to retrieve the Unique Tag Id? As far as i know it should be visible after the _connected event, but i see no way to retrieve it. I'm...
but is did not give an detailed example on how to do it (I assume it was posted by someone who knows a lot more about using NFC technologies than me!)
Once again, grateful for any help
Dave Morris
Just started a project to handle NFC tags - found Erel's tutorial on read/write NFC tags
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]NFC v2.00 adds support for low level access to the NFC features. This allows reading and writing from NFC tags. The NFC library provides three features: - Reading Ndef tags based intent filters: Reading NDEF data from NFC tags - Sending data between two devices (Android Beam)...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
And it works great for the tags I am using, should be easy to adapt it to fit into my project.
However, I need to also read the tag's UID along with a small amount of tag data (the UID code is used as an encryption key to ensure the tag has not been tampered with or duplicated).
Question is: Is there a simple way to adapt Erel's code to read the UID along with some data from the tag?
I did find another post
[H3]
برای دیدن لینک ها باید ثبت نام کنید
[/H3]Hello, I'm using the nfc2 library to handle nfc-v tags, calling runasync with transceive (and related byte payload). Is there a way to use the same system to retrieve the Unique Tag Id? As far as i know it should be visible after the _connected event, but i see no way to retrieve it. I'm...
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
but is did not give an detailed example on how to do it (I assume it was posted by someone who knows a lot more about using NFC technologies than me!)
Once again, grateful for any help
Dave Morris
برای دیدن لینک ها باید ثبت نام کنید