A akinnovation Member Licensed User Longtime User Jun 5, 2017 #1 Hi, I'm try to get the AFI from an Iso15693 tag using the NFC library 2.0. I have seen that this field is into the java object returned from the getTag method. Code: TagTech.Initialize("TagTech", "android.nfc.tech.NfcV" , si) Dim jo As JavaObject = TagTech Dim tagNfc As JavaObject = jo.RunMethod("getTag", Null) if I watch the tagNfc variable in debugger I see that the value I wish is: mtagNfc.mTechExtras[0].mMap[1] How I can read this value ? I have try with tagNfc.getfield, with .getfieldjo, but the return is always an error with " mtagNfc.mTechExtras[0].mMap[1] doesn't exist". Please help me. Best regards marco
Hi, I'm try to get the AFI from an Iso15693 tag using the NFC library 2.0. I have seen that this field is into the java object returned from the getTag method. Code: TagTech.Initialize("TagTech", "android.nfc.tech.NfcV" , si) Dim jo As JavaObject = TagTech Dim tagNfc As JavaObject = jo.RunMethod("getTag", Null) if I watch the tagNfc variable in debugger I see that the value I wish is: mtagNfc.mTechExtras[0].mMap[1] How I can read this value ? I have try with tagNfc.getfield, with .getfieldjo, but the return is always an error with " mtagNfc.mTechExtras[0].mMap[1] doesn't exist". Please help me. Best regards marco
Erel B4X founder Staff member Licensed User Longtime User Jun 6, 2017 #2 Is AFI the same as DSF ID ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jun 6, 2017 #4 Can you post a screenshot of the debug window which shows the value? Upvote 0
A akinnovation Member Licensed User Longtime User Jun 7, 2017 #5 Erel said: Can you post a screenshot of the debug window which shows the value? Click to expand... This is the screenshot. I need to read the 0x30 value -mArray(1)- Upvote 0
Erel said: Can you post a screenshot of the debug window which shows the value? Click to expand... This is the screenshot. I need to read the 0x30 value -mArray(1)-
Erel B4X founder Staff member Licensed User Longtime User Jun 7, 2017 #6 Try this: Code: Log(GetType(jo)) Log(jo.RunMethod("getResponseFlags", Null)) Upvote 0
A akinnovation Member Licensed User Longtime User Jun 13, 2017 #7 OK EREL, Great ! jo.RunMethod("getResponseFlags") return exactly the iso15693 AFI byte. Many Thanks marco Upvote 0
OK EREL, Great ! jo.RunMethod("getResponseFlags") return exactly the iso15693 AFI byte. Many Thanks marco