2024-11-08 12:39 AM - edited 2024-11-08 01:32 AM
Hello All,
I am facing a problem with NFC reading with ST25DV64KC-DISCO board.
To integrate the SDK, I have followed the instruction over here
Even though I have imported all of the SDK files, and supporting files as well (including models, protocols and utilities).
But this same code detects the tag in original project, but in my project it fails to type cast to original form.
In specific, I get problem with following code in from "ST25DVMailboxManagementViewController"
The following condition fails in my code, but succeeds in iOS NFCTap App.
if (!(st25SDKTag is ST25DVTag || st25SDKTag is ST25DVCTag)){}
Did anyone face something similar?
Any leads will be greatly appreciated.
2024-11-15 02:52 AM
Hello Vincent,
Thanks to you, now my product id seems to be working.
But the problem continues as everytime I try to access the mailbox status, it simple fails without an exception.
Any idea why this can be the case.
Attached a screen capture for your reference.
2024-11-15 05:05 AM
hi Aly,
Ok good news : from now, tag is instantiated well.
Regarding your traces, I see that even a single read command fails.
How do you call iso15693 commands into your code ? What is the value of flag parameter ?
Could you send me a more detailed log on command sent ?
Thx and br,
2024-11-15 05:46 AM
Hey Vincent,
About the tag, I do not modify it, and whatever I get from iOSReaderSession I use it inside the handleTag delegate call back.
Something I have noticed additional to it is that my Log shows Following:
I provide the default 8-byte password to activate mailbox "00 00 00 00 00 00 00 00"
Does that help to identify what might be wrong?
2024-11-15 05:54 AM
Hello again Vincent,
Reffering to my previous message, the iOSReaderSession defines a iOSRFReaderInterface.
And inside this interface the tag is recieved with asNFCISO15693Tag() function.
2024-11-15 07:16 AM
please, could you share your swift file ? It will be easier for my understanding.
Thx
2024-11-18 01:57 AM
Hey Vincent,
The code shared in one previous post is not my code,
Its infact from the NFCTap Ios app code itself.
Its specifically the file 'iOSReaderSession.swift' and 'iOSRFReaderInterface.swift'
Im just reusing them in my project.
(Cant attach files since this editor is giving me weird error for swift file upload)
)
Hopefully you can recommend something.
Will be looking forward to hearing from you.
2024-11-19 12:36 AM
Please, make a zip file of your whole project if possible, then send me it. It will be easier for me to understand your issue.
Thx and br
2024-11-19 02:31 AM
2024-11-19 07:16 AM
I had not seen before, but into your code, you stop the NFC session both whenever CCFile is valid or not.
This explains why all other NFC commands fails afterward.
Remove the line as follow, and it should work better :
let isValidCCFile = tagInfoType5.tagInformationProcess()
/*
if (isValidCCFile == true){
self.stopTagReaderSession()
} else {
self.stopTagReaderSession("No valid CCFile for NDEF record : please, update your CCFile")
}*/
if (isValidCCFile != true){
self.stopTagReaderSession("No valid CCFile for NDEF record : please, update your CCFile")
return
}
hope it helps