Hi, Guys
Just started a project to handle NFC tags - found Erel's tutorial on read/write NFC tags
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
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
NFC - Reading and Writing
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)...
www.b4x.com
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
Getting UID from an nfc-v tag (NFC2 lib)
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...
www.b4x.com
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