当我的 Android NFC 手机点击它时,我需要读取存储在 NFC 板上的文本记录。现在我不确定这是一种什么样的操作模式。是否可以让 NFC 板表现得像 nfc 标签,以便我可以使用 NFC 手机作为阅读器读取它?
3 回答
是的。你说的对。您必须将板子做成 nfc 标签,然后使用 nfc 阅读器(如手机或 PN532 板)读取它。
更新:我认为您需要动态 NFC 标签,例如 TI 的 M24SR。它可以通过I2C存储数据,并通过手机读取。
我认为如果您想将文本记录发送到 Android,那么您必须将数据格式化为 NDEF 消息,因为手机只能理解 ndef 格式的数据。
Referring the data sheet of Arduino PN532 https://www.electroschematics.com/14474/nfc-rfid-module-pn532/ following are to be noted: - Works as a 1443-A card or a virtual card - Supports NFC with Android phone It acts as a Type-A tag and you can read it using the phone
Referring to a) PN532 spec, https://www.nxp.com/docs/en/user-guide/141520.pdf
- Virtual Card means that the couple PN532+SAM is seen as only one contactless SAM card from the external world.
- In the Virtual Card mode, the PN532 acts as real contactless card, and all the responses to external requests are handled by the SAM itself; neither the PN532 nor the host controller have to take care of the data exchanges. The PN532 acts just as bridge (analog front-end + antenna) between the PCD and the SAM.
b) https://community.nxp.com/thread/433429
PN532 doesn't include a SAM, but needs to be attached separately
Read of this data is not a P2P operation, but is a Tag read operation