]> git.zerfleddert.de Git - proxmark3-svn/blame - client/cmdlfcotag.c
CHG: 'lf snoop' - now automatically downloads samples after finished. (annoying...
[proxmark3-svn] / client / cmdlfcotag.c
CommitLineData
4653da43 1//-----------------------------------------------------------------------------
2// Authored by Iceman
3//
4// This code is licensed to you under the terms of the GNU GPL, version 2 or,
5// at your option, any later version. See the LICENSE.txt file for the text of
6// the license.
7//-----------------------------------------------------------------------------
8// Low frequency COTAG commands
9//-----------------------------------------------------------------------------
10#include "cmdlfcotag.h" // COTAG function declarations
11
12static int CmdHelp(const char *Cmd);
13
14int CmdCOTAGRead(const char *Cmd) {
15
16// if (Cmd[0] == 'h' || Cmd[0] == 'H') return usage_lf_cotag_read();
17
18 UsbCommand c = {CMD_COTAG, {0, 0, 0}};
19 clearCommandBuffer();
20 SendCommand(&c);
b828a4e1 21 if ( !WaitForResponseTimeout(CMD_ACK, NULL, 2500) ) {
22 //PrintAndLog("command execution time out");
23 return 1;
24 }
25 getSamples("", true);
26 //return CmdFSKdemodAWID(Cmd);
27 return 0;
4653da43 28}
29
30static command_t CommandTable[] = {
31 {"help", CmdHelp, 1, "This help"},
32 {"read", CmdCOTAGRead, 0, "Attempt to read and extract tag data"},
33 {NULL, NULL, 0, NULL}
34};
35
36int CmdLFCOTAG(const char *Cmd) {
37 clearCommandBuffer();
38 CmdsParse(CommandTable, Cmd);
39 return 0;
40}
41
42int CmdHelp(const char *Cmd) {
43 CmdsHelp(CommandTable);
44 return 0;
45}
Impressum, Datenschutz