cancel
Showing results for 
Search instead for 
Did you mean: 

ST25DV64K - How to access mailbox memory and read 256 bytes of data in mailbox using iOS app?

RJaya.2
Associate II

Currently in our app, we are able to read 64 EEPROM memory from ST25DV64k using extendedReadMultipleBlocks command. But we would need to know the procedure to read the Mailbox memory of 256 bytes to get the active data from NFC Mailbox memory. Could you please help with the commands for the same and also if you can show us an iOS example code for the same it will be very helpful?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi Rjaya,

The ST25SDK iOS depends on J2OBJC library that converts Java source code into ObjC.

Here attached a file describing how to install and use it for compiling iOS NFC Tap.

Let me know if it is enough.

Br,

View solution in original post

5 REPLIES 5
victor laraison
ST Employee

Hi Rjaya,

The iOS NFC Tap source code is provided with an example of Data Transfer with Mailbox between iPhone and ST25DV Discovery Board.

You have to use a ST25DV DiscoveryBoard with the latest FW version available on st.com web site (normally it should be 2.1.0) .

On Discovery board :

  • Select FTM Icon
  • Select 2nd icon from the bottom left on display (the one looks like a page with pen) => this selects the data transfer demo.
  • Enter a number of byte to transfer. Hit "1" will select 1Kbyte.

On iOS NFC Tap :

  • Once tag detected, go into "ST25DV Fast Transfer Mode" menu, then select "FTM - Data Transfer"
  • Disable Switch "Write/read Mailbox buffer" => Swipe to the left for enabling reading Mailbox.
  • Then hit "Start" button

=> This demo will use the FTM protocol SW stack included into our ST25SDK library.

Refer to "ST25DVI2CDataTransferViewController.swift" for example code.

Hope it helps.

Br,

Hi Victor,

We tried using the ST25SDK library from the ST NFC Tap iOS Source Code, but the SDK is not compiling and there are lot of dependent files missing. So, we would like to receive a working ST25SDK library which can be included in our app and can be used for accessing the mailbox memory buffer.

Also, other thing is we would like to get a list of custom commands (Hex commands) that we can operate with the Mailbox so that we can try sending the custom command directly from our end as well?

Please check and let us know if this is possible.

Joe WILLIAMS
ST Employee

Your question has been routed to the online support team. A case has been created and you'll be contacted shortly.

Hi Rjaya,

The ST25SDK iOS depends on J2OBJC library that converts Java source code into ObjC.

Here attached a file describing how to install and use it for compiling iOS NFC Tap.

Let me know if it is enough.

Br,

for the command list of mailbox , I suggest you to have a look into ST25DV datasheet : ref to https://www.st.com/resource/en/datasheet/st25dv04k.pdf

in the iOS NFC Tap, the mailbox commands are accessible directly in ST25SDK iOS :

disableMailbox()

enableMailbox()

isMailboxEnabled()

hasHost......()

hasRF.....()

ReadMailBoxMessage()

WriteMailBoxMessage()

fastReadMailBoxMessage()

fastWriteMailboxMessage()