]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdlf.c
Add License/Copyright headers/notices. Please add your own copyright notice if you...
[proxmark3-svn] / client / cmdlf.c
index e82e48aefce6e8108f3a4aa00d9cc1d3189e14c9..7b87c70fbfcfc87f1991163215303b4d9848a5a2 100644 (file)
@@ -1,10 +1,23 @@
+//-----------------------------------------------------------------------------
+// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
+//
+// This code is licensed to you under the terms of the GNU GPL, version 2 or,
+// at your option, any later version. See the LICENSE.txt file for the text of
+// the license.
+//-----------------------------------------------------------------------------
+// Low frequency commands
+//-----------------------------------------------------------------------------
+
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
+#include <limits.h>
 #include "proxusb.h"
 #include "data.h"
 #include "graph.h"
 #include "ui.h"
 #include "cmdparser.h"
+#include "cmdmain.h"
 #include "cmddata.h"
 #include "cmdlf.h"
 #include "cmdlfhid.h"
@@ -266,6 +279,7 @@ int CmdLFRead(const char *Cmd)
     return 0;
   }
   SendCommand(&c);
+  WaitForResponse(CMD_ACK);
   return 0;
 }
 
@@ -427,15 +441,15 @@ static command_t CommandTable[] =
 {
   {"help",        CmdHelp,            1, "This help"},
   {"cmdread",     CmdLFCommandRead,   0, "<off period> <'0' period> <'1' period> <command> ['h'] -- Modulate LF reader field to send command before read (all periods in microseconds) (option 'h' for 134)"},
-  {"em4x",        CmdLFEM4X,          1, "EM4X RFIDs"},
+  {"em4x",        CmdLFEM4X,          1, "{ EM4X RFIDs... }"},
   {"flexdemod",   CmdFlexdemod,       1, "Demodulate samples for FlexPass"},
-  {"hid",         CmdLFHID,           1, "HID RFIDs"},
+  {"hid",         CmdLFHID,           1, "{ HID RFIDs... }"},
   {"indalademod", CmdIndalaDemod,     1, "['224'] -- Demodulate samples for Indala 64 bit UID (option '224' for 224 bit)"},
   {"read",        CmdLFRead,          0, "['h'] -- Read 125/134 kHz LF ID-only tag (option 'h' for 134)"},
   {"sim",         CmdLFSim,           0, "[GAP] -- Simulate LF tag from buffer with optional GAP (in microseconds)"},
   {"simbidir",    CmdLFSimBidir,      0, "Simulate LF tag (with bidirectional data transmission between reader and tag)"},
   {"simman",      CmdLFSimManchester, 0, "<Clock> <Bitstream> [GAP] Simulate arbitrary Manchester LF tag"},
-  {"ti",          CmdLFTI,            1, "TI RFIDs"},
+  {"ti",          CmdLFTI,            1, "{ TI RFIDs... }"},
   {"vchdemod",    CmdVchDemod,        1, "['clone'] -- Demodulate samples for VeriChip"},
   {NULL, NULL, 0, NULL}
 };
Impressum, Datenschutz