[英]how to organize large data file on a NFC type 4 tag emulation
I'm working on an application where I store data on a 4Mbit dataflash and read it out with a smartphone via NFC. 我正在开发一个将数据存储在4Mbit数据闪存上并通过NFC用智能手机读出的应用程序。 To do this I use a NFC frontent (AS3953) and a microcontroller to emulate a Type 4 tag.
为此,我使用NFC前端(AS3953)和微控制器来模拟Type 4标签。 It would be convenient to split the data into 264 bytes chunks (page-size of flash) and read them out sequentially.
将数据拆分为264字节的块(闪存的页面大小)并顺序读取它们会很方便。
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? 那么更好的结构是什么:一个大的NDEF文件,每个记录有264个字节的许多记录,或者一个专用文件下的许多单个基本文件?
Thanks for inputs, Andreas 感谢您的投入,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. 您可以构建遵循NFC论坛4类标签规范并仅使用NDEF数据抽象层的NFC标签。
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 (eg 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). 您可以构建遵循NFC论坛4类标签规范并结合使用NDEF数据抽象层(例如,存储允许您的应用自动启动并标识专有协议的信息)和专有数据文件的NFC标签( (如NFC论坛4型标签操作规范中所指定)。
IsoDep
class). IsoDep
类的Android上)。 You can create a completely custom protocol based on ISO 14443/ISO 7816-4. 您可以基于ISO 14443 / ISO 7816-4创建完全自定义的协议。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.