mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
fix hf 15 sample
This commit is contained in:
parent
20738a57a8
commit
0a32e3ca05
1 changed files with 27 additions and 7 deletions
|
@ -1195,21 +1195,39 @@ int GetIso15693CommandFromReader(uint8_t *received, size_t max_len, uint32_t *eo
|
||||||
// so that it can be downloaded to a PC and processed there.
|
// so that it can be downloaded to a PC and processed there.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void AcquireRawAdcSamplesIso15693(void) {
|
void AcquireRawAdcSamplesIso15693(void) {
|
||||||
LED_A_ON();
|
|
||||||
uint8_t *dest = BigBuf_malloc(4000);
|
|
||||||
|
|
||||||
|
LEDsoff();
|
||||||
|
DbpString("Starting to acquire data...");
|
||||||
FpgaDownloadAndGo(FPGA_BITSTREAM_HF);
|
FpgaDownloadAndGo(FPGA_BITSTREAM_HF);
|
||||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER);
|
|
||||||
LED_D_ON();
|
BigBuf_free();
|
||||||
FpgaSetupSsc(FPGA_MAJOR_MODE_HF_READER);
|
clear_trace();
|
||||||
SetAdcMuxFor(GPIO_MUXSEL_HIPKD);
|
|
||||||
|
// Start from off (no field generated)
|
||||||
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||||
|
SpinDelay(10);
|
||||||
|
|
||||||
|
|
||||||
uint8_t cmd[5];
|
uint8_t cmd[5];
|
||||||
BuildIdentifyRequest(cmd);
|
BuildIdentifyRequest(cmd);
|
||||||
CodeIso15693AsReader(cmd, sizeof(cmd));
|
CodeIso15693AsReader(cmd, sizeof(cmd));
|
||||||
|
|
||||||
|
LED_A_ON();
|
||||||
|
|
||||||
|
uint8_t *dest = BigBuf_malloc(4000);
|
||||||
|
|
||||||
|
// switch field on
|
||||||
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER);
|
||||||
|
LED_D_ON();
|
||||||
|
|
||||||
|
// initialize SSC and select proper AD input
|
||||||
|
FpgaSetupSsc(FPGA_MAJOR_MODE_HF_READER);
|
||||||
|
SetAdcMuxFor(GPIO_MUXSEL_HIPKD);
|
||||||
|
|
||||||
|
StartCountSspClk();
|
||||||
|
|
||||||
// Give the tags time to energize
|
// Give the tags time to energize
|
||||||
SpinDelay(100);
|
SpinDelay(250);
|
||||||
|
|
||||||
// Now send the command
|
// Now send the command
|
||||||
tosend_t *ts = get_tosend();
|
tosend_t *ts = get_tosend();
|
||||||
|
@ -1229,6 +1247,8 @@ void AcquireRawAdcSamplesIso15693(void) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
FpgaDisableSscDma();
|
||||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||||
LEDsoff();
|
LEDsoff();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue