我正在实施一个项目,在该项目中,我需要通过NFC向堆叠在Arduino上的外部NFC发送消息(数字序列)。我需要知道,这将如何可能从手机接收消息,以及arduino将响应发送回windows手机。
我假设在Arduino方面,您正在使用一些基于NXP PN532的NFC屏蔽。
WP8支持NFC三种操作模式中的两种:
- 对等模式(在NFCIP-1之上的LLCP之上使用SNEP)
- 读写器模式(基于NFC论坛的标签操作规范)
由于PN532支持所有操作模式,您可以在P2P和R/W模式之间进行选择。
因此,这两种情况是可能的:
-
WP8-P2P<->PN532-p-
+----------------------------------------------------------------------------+ | WP8 app (registered to send/receive NDEF message to/from other NFC device) | | | | +------------------------------------------------------+ | | | SNEP | | | +------------------------------------------------------+ | | | LLCP | | | +------------------------------------------------------+ | | | NFCIP-1 | | | +------------------------------------------------------+ | | | +----------------------------------------------------------------------------+ / || / +----------------------------------------------------------------------------+ | | | +------------------------------------------------------+ | | | NFCIP-1* | | | +------------------------------------------------------+ | | | LLCP* | | | +------------------------------------------------------+ | | | SNEP* | | | +------------------------------------------------------+ | | | | Arduino + PN532 | +----------------------------------------------------------------------------+
*)需要进行配置/实现(库可能已经可用)。
-
WP8-R/W<->PN532-ce
+----------------------------------------------------------------------------+ | WP8 app (registered to write/read NDEF message to/from NFC tag) | | | | +------------------------------------------------------+ | | | Reader/writer for NFC Forum Type 4 Tag operation | | | +------------------------------------------------------+ | | | ISO/IEC 7816-4 | | | +------------------------------------------------------+ | | | Reader/writer for ISO/IEC 14443 | | | +------------------------------------------------------+ | | | +----------------------------------------------------------------------------+ / || / +----------------------------------------------------------------------------+ | | | +------------------------------------------------------+ | | | Host card emulation mode for ISO/IEC 14443* | | | +------------------------------------------------------+ | | | ISO/IEC 7816-4* | | | +------------------------------------------------------+ | | | NFC Forum Type 4 Tag operation* | | | +------------------------------------------------------+ | | | | Arduino + PN532 | +----------------------------------------------------------------------------+
*)需要进行配置/实现(库可能已经可用)。