mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
hw tia, status - textual
This commit is contained in:
parent
56ee5313b3
commit
a3a7f0d4ad
1 changed files with 10 additions and 6 deletions
|
@ -507,19 +507,23 @@ static int CmdStatus(const char *Cmd) {
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
PacketResponseNG resp;
|
PacketResponseNG resp;
|
||||||
SendCommandNG(CMD_STATUS, NULL, 0);
|
SendCommandNG(CMD_STATUS, NULL, 0);
|
||||||
if (WaitForResponseTimeout(CMD_STATUS, &resp, 2000) == false)
|
if (WaitForResponseTimeout(CMD_STATUS, &resp, 2000) == false) {
|
||||||
PrintAndLogEx(WARNING, "Status command failed. Communication speed test timed out");
|
PrintAndLogEx(WARNING, "Status command timeout. Communication speed test timed out");
|
||||||
|
return PM3_ETIMEOUT;
|
||||||
|
}
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdTia(const char *Cmd) {
|
static int CmdTia(const char *Cmd) {
|
||||||
(void)Cmd; // Cmd is not used so far
|
(void)Cmd; // Cmd is not used so far
|
||||||
clearCommandBuffer();
|
|
||||||
PrintAndLogEx(INFO, "Triggering new Timing Interval Acquisition (TIA)...");
|
PrintAndLogEx(INFO, "Triggering new Timing Interval Acquisition (TIA)...");
|
||||||
PacketResponseNG resp;
|
clearCommandBuffer();
|
||||||
SendCommandNG(CMD_TIA, NULL, 0);
|
SendCommandNG(CMD_TIA, NULL, 0);
|
||||||
if (WaitForResponseTimeout(CMD_TIA, &resp, 2000) == false)
|
PacketResponseNG resp;
|
||||||
PrintAndLogEx(WARNING, "TIA command failed. You probably need to unplug the Proxmark3.");
|
if (WaitForResponseTimeout(CMD_TIA, &resp, 2000) == false) {
|
||||||
|
PrintAndLogEx(WARNING, "TIA command timeout. You probably need to unplug the Proxmark3.");
|
||||||
|
return PM3_ETIMEOUT;
|
||||||
|
}
|
||||||
PrintAndLogEx(INFO, "TIA done.");
|
PrintAndLogEx(INFO, "TIA done.");
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue