mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Replace rf reset with an s-block deselect when using 'hf 14a reader --ecp'
This commit is contained in:
parent
13e13b70f4
commit
8e8618c989
1 changed files with 6 additions and 3 deletions
|
@ -2445,6 +2445,7 @@ static int GetATQA(uint8_t *resp, uint8_t *resp_par, bool use_ecp, bool use_mags
|
|||
#define ECP_RETRY_TIMEOUT 100
|
||||
#define WUPA_RETRY_TIMEOUT 10 // 10ms
|
||||
|
||||
|
||||
// 0x26 - REQA
|
||||
// 0x52 - WAKE-UP
|
||||
// 0x7A - MAGESAFE WAKE UP
|
||||
|
@ -2456,9 +2457,11 @@ static int GetATQA(uint8_t *resp, uint8_t *resp_par, bool use_ecp, bool use_mags
|
|||
}
|
||||
|
||||
if (use_ecp) {
|
||||
// We drop the field to bring the phone back into an 'IDLE' state
|
||||
switch_off();
|
||||
set_tracing(true);
|
||||
// In case a device was already selected, we send a S-BLOCK deselect to bring it into an idle state so it can be selected again
|
||||
uint8_t deselect_cmd[] = {0xc2, 0xe0, 0xb4};
|
||||
ReaderTransmit(deselect_cmd, sizeof(deselect_cmd), NULL);
|
||||
// Read response if present
|
||||
ReaderReceive(resp, resp_par);
|
||||
}
|
||||
|
||||
uint32_t save_iso14a_timeout = iso14a_get_timeout();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue