cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Detect ST25DVC Tag in iOS

Aly
Associate III

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"

Screenshot 2024-11-08 at 09.34.38.png

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.

21 REPLIES 21

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.

Screenshot 2024-11-15 at 11.50.22.png

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,

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:

Screenshot 2024-11-15 at 14.45.49.png

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?

Aly
Associate III

Hello again Vincent,

 

Reffering to my previous message, the iOSReaderSession defines a iOSRFReaderInterface.

And inside this interface the tag is recieved with asNFCISO15693Tag() function.

Screenshot 2024-11-15 at 14.50.55.png

Screenshot 2024-11-15 at 14.51.05.png

  

please, could you share your swift file ? It will be easier for my understanding.

Thx 

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) 

Screenshot 2024-11-18 at 10.57.36.png

)

 

Hopefully you can recommend something.

Will be looking forward to hearing from you.

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

 

Hello Vincent,

 

I have attached the files here.

Do let me know if we can do something to fix my issue.

 

Best Regards,

Aly

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

 

Hello Vincent,

I did the change as suggested,
But no solution still as now it crashes when checking the mailbox status,

Screenshot 2024-11-25 at 09.51.03.png

Any idea why its still failing?

It is also every time falling into stop session state with message:

"No valid CCFile for NDEF record : please, update your CCFile"

 

I will be looking forward to your response.

Best reagrds,