From c52cdb10c8aa40556d08bf82c981c1dff8924c32 Mon Sep 17 00:00:00 2001 From: Stean Date: Sun, 4 Nov 2018 21:22:46 +0100 Subject: [PATCH 1/2] Add undocumented option -s to usage listing --- utils/nfc-relay-picc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/nfc-relay-picc.c b/utils/nfc-relay-picc.c index 802372b..d694f8a 100644 --- a/utils/nfc-relay-picc.c +++ b/utils/nfc-relay-picc.c @@ -99,6 +99,7 @@ print_usage(char *argv[]) printf("\t-q\tQuiet mode. Suppress printing of relayed data (improves timing).\n"); printf("\t-t\tTarget mode only (the one on reader side). Data expected from FD3 to FD4.\n"); printf("\t-i\tInitiator mode only (the one on tag side). Data expected from FD3 to FD4.\n"); + printf("\t-s\tSwap roles of found devices.\n"); printf("\t-n N\tAdds a waiting time of N seconds (integer) in the relay to mimic long distance.\n"); } From f93169feb48af829685c716d2475cbbc7b41b343 Mon Sep 17 00:00:00 2001 From: Stean Date: Sun, 4 Nov 2018 21:30:35 +0100 Subject: [PATCH 2/2] Add undocumented option -s to nfc-relay-picc man page --- utils/nfc-relay-picc.1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utils/nfc-relay-picc.1 b/utils/nfc-relay-picc.1 index f95db28..e622752 100644 --- a/utils/nfc-relay-picc.1 +++ b/utils/nfc-relay-picc.1 @@ -34,6 +34,11 @@ tag <---> initiator (relay) <---> target (relay) <---> original reader Commands are read from file descriptor 3 Responses are sent to file descriptor 4 +\fB-s\fP + Swap roles of found devices + Usually the first found device is used as target (emulator) and the second + as initiator (reader). Using this option these roles are inversed. + \fB-n\fP \fIN\fP Adds a waiting time of \fIN\fP seconds (integer) in the loop