1

我致力于在 ACR122U 和 AS3953 之间实现自定义 ISO 14443-3A 协议。我想在标签处于活动状态但不使用 ISO 14443-4 时发送帧。

那么,使用 libnfc,以下步骤是否正确发送内容到标签?

环境:Win10,libnfc 1.6.0

nfc_init (NULL);

pnd = nfc_open (NULL, NULL);
nfc_initiator_init (pnd);

//set some properties
nfc_device_set_property_bool (pnd, NP_EASY_FRAMING, true);
nfc_device_set_property_bool (pnd, NP_AUTO_ISO14443_4, false);

//selecting target
nfc_initiator_list_passive_targets (pnd, nm, ant, MAX_TARGET_COUNT);
nfc_initiator_select_passive_target (pnd, nm, NULL, 0, &(ant[n]));

此时标签是否进入 ACTIVE 状态?

这里是基于 ISO 14443-3 的收发吗?

nfc_initiator_transceive_bytes(pnd, TFrame, TFrameSize, RFrame, &RFrameSize, -1);

然后我们停止目标。

//deselect
nfc_initiator_deselect_target(pnd);

nfc_close (pnd);
nfc_exit (NULL);

但是阅读器和标签不会以这种方式接收对方的数据。

因为双方都可能导致通信失败,所以首先我想保证我以正确的方式发送正确的东西。

4

0 回答 0