I'm working on an application where I store data on a 4Mbit dataflash and read it out with a smartphone via NFC. To do this I use a NFC frontent (AS3953) and a microcontroller to emulate a Type 4 tag. It would be convenient to split the data into 264 bytes chunks (page-size of flash) and read them out sequentially.
What is then the better structure: one big NDEF file with many records of 264 bytes each, or many single elementary files under one dedicated file?
Thanks for inputs, Andreas
This heavily depends on what you want to achieve with your solution and what platforms you target:
You can build an NFC tag that follows the NFC Forum Type 4 tag specification and uses only the NDEF data abstraction layer.
You can build an NFC tag that follows the NFC Forum Type 4 tag specification and uses a combination of the NDEF data abstraction layer (e.g. to store information that permits your app to be started automatically and to identify the prorietary protocol) and proprietary data files (as specified in the NFC Forum Type 4 Tag Operation specification).
IsoDep
class).You can create a completely custom protocol based on ISO 14443/ISO 7816-4.