Write on Mailbox via Android APP (ST25DV64KC)
Hello everyone,
I'm working with the Nucleo NFC07A1 board, which mount the ST25DV64KC chip, to create a simple Tag-Reader system. At the moment, I'm testing the ST25 with my smartphone, using the ST25 Android app.
A user from the ST community suggested I use the "Send Custom Command" function on the Android app to send commands via the RF antenna coils.
I started with simple commands, and they worked fine. For example, I was able to read and write to the EEPROM and check the configuration of some registers, all without any issues.
However, when I try to use the Mailbox read and write commands, nothing seems to work. Here's what I did:
- First, I enabled the Mailbox in the "Mailbox Management" menu.
- Then, I verified that FTM mode was enabled by checking the MB Control Dyn register in the "Dyn Register Management" menu (it was set to 0x01).
Next, I sent the following message through the "Send Custom Command" menu using this configuration:
- Option Flag: Disabled
- Addressed mode: Enabled
- Select mode: Disabled
- High Data Rate: Disabled
- Format Extension: Disabled
- CMD_CODE = 0xCA (MBFastWriteMsg)
- Manufacturer = 0x02
- DATA = 0x0311223344
- UID = 0B D2 15 76 66 51 02 E0
Command: 20 CA 02 0B D2 15 76 66 51 02 E0 03 11 22 33 44
The tag responds with one of these two error messages:
- "Tag not in field"
- "CMD_ERROR"
However, I’m sure tag and smartphone are connected, as the interrupt on GPO is triggered, and the RF_FIELD bit is high.
After these errors, I checked the MB Control Dyn register again, and it was written with the value 0x85, which I believe indicates that the Mailbox was written. Is that correct?
Before suggesting other approaches, I want to clarify that I’ve already tried various methods. For example, I’ve tried sending messages without enabling FTM mode first, and I’ve also tried enabling the High Data Rate flag. Regardless these variations, I keep encountering the same issue.
Could anyone help me understand how to correctly write to the Mailbox using the Android app?
Thank you in advance!
Best Regards.
