OK, 3rd day.
Searching for the root cause I created a super simple 2 blocsk app. (images attached). One button to enable "read" and color changing block to signal a tag has been read. Created "apk" file and installed it on my cell phone (Android samsung S3)
In addition, I am using one stable NFC write/read app downloaded off of the Google Store which is not showing any issues
Also I decided not to swing and move the phone around but rather;
- place it over (on) the tag
- keep it there, static for a while
- only _then_ interact with my app UI (click the "read" button) to enable the read thread. Here is what I observed;
1) placed a phone over the tag
2) waited 1/2 -1 sec (before I would touch the 'read' button)
3) before I had a change to touch the UI (the "read" button), the phone interacted with the tag and popped up the message "Empty Tag" ... "unknown tag type"...(attached: Image 1)
4) repeated the above several times and got the same results
At this point I wanted to understand if this is some issue due to the apps I created or tags or the cell phone ? So I continued:
5) shut off my NFC app (that I created), left the cell phone NFC = "ON" and put it over a tag (repeated for several tags)
6) received the same "Empty Tag" ".. "Unknown tag type" message for the NTAG216 which had its memory wiped with some "Tag Tool"
7) received a different popup message for NTAG213 and NTAG216 that had some txt on them - asking me whihc app I want to use to interact with them (see Image 2 attached)
Now it seemed clear the issue of the "Empty Tag" messasge was not caused by my apps but rather by the cell phone NFC feature - or better to say by some system level process related to the NFC being set "ON" (in the PC world I would say - "NFC driver issue" to express what I think is messign up with me here). To conclude I did the following:
8) power cycled the phone, set NFC= OFF, placed the phone on a tag -- > no reaction, nothing
9) set the NFC= ON, placed the phone on a tag -- > got the same messages and behavior described under 6 and 7 above....
Conclusion:
A) Some "default" app / feature (unknown to me), related to my phone's NFC settings (when NFC=ON) coexists with the NFC apps I created and installed and is interacting with the tag, regardles of my installed app (see 5, 6, 7 above). This could help explain intermittent success /error episodes observed previously during read / write sessions.
B) The tags are not the issue (NTAG213, NTAG 216) but the interaction between that NFC generic/built in "process" and my own apps
Now, ideas are needed to find out what that "hidden" process is and how to neutralize it ?
Given the structure of the message presented on the image 2 -
Thank you
Milan