38 #endif // HAVE_CONFIG_H
47 #define MAX_FRAME_LEN 264
50 main (
int argc,
const char *argv[])
52 byte_t abtRx[MAX_FRAME_LEN];
55 byte_t abtTx[] =
"Hello Mars!";
57 #define MAX_DEVICE_COUNT 2
64 if (szDeviceFound == 1) {
66 }
else if (szDeviceFound > 1) {
69 printf(
"No device found.");
74 printf (
"Usage: %s\n", argv[0]);
80 .nm.nbr = NBR_UNDEFINED,
81 .nti.ndi.abtNFCID3 = { 0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc, 0xde, 0xff, 0x00, 0x00 },
83 .nti.ndi.abtGB = { 0x12, 0x34, 0x56, 0x78 },
85 .nti.ndi.btDID = 0x00,
93 printf(
"Unable to connect to NFC device.\n");
96 printf (
"Connected to NFC device: %s\n", pnd->
acName);
98 printf (
"NFC device will now act as: ");
99 print_nfc_target (nt,
false);
101 printf (
"Waiting for initiator request...\n");
107 printf(
"Initiator request received. Waiting for data...\n");
113 printf (
"Received: %s\n", abtRx);
115 printf (
"Sending: %s\n", abtTx);
120 printf(
"Data sent.\n");