Topic: Reading the correct data from tag in C
I am very new to this but I have managed to implement in my own project the code from nfc-mfultralight.c.
What I don't understand is that when I read the data I get lots of garbage.
For example, I have 255555574558888 in the tag (I used an android device to do this).
Now when I run :
nfc-mfultralight r /home/user/dump
I get this
This is from the examples, so shouldn't it just read the correct data? The android app I am using just sees the 255555574558888 value. The value -67644-67546-2346 is part of what I had written before.
How do I know just the correct data I need to read? What should I change in the example code so that it works correctly?
I am using an ACR122 to read the data from the tags.
PS: This is my first project with nfc devices, lib nfc and MIFARE Ultralight tags, so any things you think I should read please do tell me. Regards.