From 2d283c42a668a350fb6e5d4ccbab39690618e454 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 27 Sep 2017 12:12:43 +0200 Subject: [PATCH] FIX: ISO15, increased reading distance by letting tag some time to powerup. --- armsrc/iso15693.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/armsrc/iso15693.c b/armsrc/iso15693.c index f92a03281..1b1288fb0 100644 --- a/armsrc/iso15693.c +++ b/armsrc/iso15693.c @@ -412,7 +412,7 @@ static int GetIso15693AnswerFromTag(uint8_t *received, int *elapsed) { if (elapsed) *elapsed = 0; FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER_RX_XCORR); - + // for (counter = 0; counter < wait;) { // WDT_HIT(); @@ -482,7 +482,7 @@ static int GetIso15693AnswerFromSniff(uint8_t *received, int *samples, int *elap time_0 = GetCountSspClk(); FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER_RX_XCORR); - + for(;;) { WDT_HIT(); @@ -534,11 +534,11 @@ void AcquireRawAdcSamplesIso15693(void) { SetAdcMuxFor(GPIO_MUXSEL_HIPKD); FpgaSetupSsc(); // Give the tags time to energize - FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER_RX_XCORR); - SpinDelay(100); - + //FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER_RX_XCORR); + // Now send the command FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER_TX); + SpinDelay(200); uint8_t *buf = BigBuf_get_addr(); @@ -668,7 +668,7 @@ void Iso15693InitReader(void) { // Give the tags time to energize FpgaWriteConfWord(FPGA_MAJOR_MODE_HF_READER_RX_XCORR); - SpinDelay(100); + SpinDelay(200); // Start the timer StartCountSspClk();