From 9e60b6e3929e20b9e48de25713b3402bb1572dfa Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 9 Sep 2009 13:43:16 +0000 Subject: [PATCH] Add 10ms delay for ARYGON-APDB (PN532 based): some stability issues when reading a tag many times. --- src/dev_arygon.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dev_arygon.c b/src/dev_arygon.c index 16c0091..8cf8930 100644 --- a/src/dev_arygon.c +++ b/src/dev_arygon.c @@ -150,6 +150,7 @@ bool dev_arygon_transceive(const dev_spec ds, const byte_t* pbtTx, const uint32_ return false; } + /** @todo Find why this delay are needed. Maybe in PN532 datasheet, but I (Romuald) haven't it... */ /** @note ARYGON-APDB need 20ms between sending and receiving frame. No information regarding this in ARYGON datasheet... */ #ifdef _WIN32 Sleep(20); @@ -157,11 +158,11 @@ bool dev_arygon_transceive(const dev_spec ds, const byte_t* pbtTx, const uint32_ usleep(20000); #endif - /** @note ARYGON-APDB need 20ms more to be able to report (correctly) present tag. */ + /** @note ARYGON-APDB need 30ms more to be stable (report correctly present tag, at each try: 20ms seems to be enought for one shot...) */ #ifdef _WIN32 - Sleep(20); + Sleep(30); #else - usleep(20000); + usleep(30000); #endif if (!rs232_receive((serial_port)ds,abtRxBuf,&uiRxBufLen)) {