mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-19 04:49:38 -07:00
Added Enios cool tuning-trick (LF) from forum-post: http://www.proxmark.org/forum/viewtopic.php?pid=13060#p13060
This commit is contained in:
parent
ca4714cd23
commit
d6a120a25b
3 changed files with 23 additions and 1 deletions
|
@ -203,7 +203,7 @@ void MeasureAntennaTuning(void)
|
||||||
|
|
||||||
LED_B_ON();
|
LED_B_ON();
|
||||||
DbpString("Measuring antenna characteristics, please wait...");
|
DbpString("Measuring antenna characteristics, please wait...");
|
||||||
memset(dest,0,sizeof(FREE_BUFFER_SIZE));
|
memset(dest,0,FREE_BUFFER_SIZE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sweeps the useful LF range of the proxmark from
|
* Sweeps the useful LF range of the proxmark from
|
||||||
|
|
|
@ -479,6 +479,26 @@ int CmdSamples(const char *Cmd)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int CmdTuneSamples(const char *Cmd)
|
||||||
|
{
|
||||||
|
int cnt = 0;
|
||||||
|
int n = 255;
|
||||||
|
uint8_t got[255];
|
||||||
|
|
||||||
|
PrintAndLog("Reading %d samples\n", n);
|
||||||
|
GetFromBigBuf(got,n,7256); // armsrc/apps.h: #define FREE_BUFFER_OFFSET 7256
|
||||||
|
WaitForResponse(CMD_ACK,NULL);
|
||||||
|
for (int j = 0; j < n; j++) {
|
||||||
|
GraphBuffer[cnt++] = ((int)got[j]) - 128;
|
||||||
|
}
|
||||||
|
|
||||||
|
PrintAndLog("Done! Divisor 89 is 134khz, 95 is 125khz.\n");
|
||||||
|
PrintAndLog("\n");
|
||||||
|
GraphTraceLen = n;
|
||||||
|
RepaintGraphWindow();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int CmdLoad(const char *Cmd)
|
int CmdLoad(const char *Cmd)
|
||||||
{
|
{
|
||||||
FILE *f = fopen(Cmd, "r");
|
FILE *f = fopen(Cmd, "r");
|
||||||
|
@ -906,6 +926,7 @@ static command_t CommandTable[] =
|
||||||
{"norm", CmdNorm, 1, "Normalize max/min to +/-500"},
|
{"norm", CmdNorm, 1, "Normalize max/min to +/-500"},
|
||||||
{"plot", CmdPlot, 1, "Show graph window (hit 'h' in window for keystroke help)"},
|
{"plot", CmdPlot, 1, "Show graph window (hit 'h' in window for keystroke help)"},
|
||||||
{"samples", CmdSamples, 0, "[512 - 40000] -- Get raw samples for graph window"},
|
{"samples", CmdSamples, 0, "[512 - 40000] -- Get raw samples for graph window"},
|
||||||
|
{"tune", CmdTuneSamples, 0, "Get hw tune samples for graph window"},
|
||||||
{"save", CmdSave, 1, "<filename> -- Save trace (from graph window)"},
|
{"save", CmdSave, 1, "<filename> -- Save trace (from graph window)"},
|
||||||
{"scale", CmdScale, 1, "<int> -- Set cursor display scale"},
|
{"scale", CmdScale, 1, "<int> -- Set cursor display scale"},
|
||||||
{"threshold", CmdThreshold, 1, "<threshold> -- Maximize/minimize every value in the graph window depending on threshold"},
|
{"threshold", CmdThreshold, 1, "<threshold> -- Maximize/minimize every value in the graph window depending on threshold"},
|
||||||
|
|
|
@ -35,6 +35,7 @@ int CmdManchesterMod(const char *Cmd);
|
||||||
int CmdNorm(const char *Cmd);
|
int CmdNorm(const char *Cmd);
|
||||||
int CmdPlot(const char *Cmd);
|
int CmdPlot(const char *Cmd);
|
||||||
int CmdSamples(const char *Cmd);
|
int CmdSamples(const char *Cmd);
|
||||||
|
int CmdTuneSamples(const char *Cmd);
|
||||||
int CmdSave(const char *Cmd);
|
int CmdSave(const char *Cmd);
|
||||||
int CmdScale(const char *Cmd);
|
int CmdScale(const char *Cmd);
|
||||||
int CmdThreshold(const char *Cmd);
|
int CmdThreshold(const char *Cmd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue