ARYGON APDB1UA33N works with the revision.
This commit is contained in:
parent
d799098753
commit
e92b8ab76f
2 changed files with 8 additions and 1 deletions
|
@ -28,6 +28,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
|||
#ifdef __APPLE__
|
||||
#define SERIAL_STRING "/dev/tty.SLAB_USBtoUART"
|
||||
#else
|
||||
// unistd.h is needed for udelay() fct.
|
||||
#include "unistd.h"
|
||||
#define SERIAL_STRING "/dev/ttyUSB"
|
||||
#endif
|
||||
#endif
|
||||
|
@ -134,6 +136,12 @@ bool dev_arygon_transceive(const dev_spec ds, const byte_t* pbtTx, const uint32_
|
|||
return false;
|
||||
}
|
||||
|
||||
/** @note ARYGON-APDB need 20ms between sending and receiving frame. No information regarding this in ARYGON datasheet... */
|
||||
usleep(20000);
|
||||
|
||||
/** @note ARYGON-APDB need 20ms more to be able to report (correctly) present tag. */
|
||||
usleep(20000);
|
||||
|
||||
if (!rs232_receive((serial_port)ds,abtRxBuf,&uiRxBufLen)) {
|
||||
ERR("Unable to receive data. (RX)");
|
||||
return false;
|
||||
|
|
|
@ -87,7 +87,6 @@ serial_port rs232_open(const char* pcPortName)
|
|||
*/
|
||||
/** @todo provide this settings dynamically */
|
||||
#define DEBUG__TRY_ARYGON_APDB
|
||||
|
||||
#ifdef DEBUG__TRY_ARYGON_APDB
|
||||
cfsetispeed(&(sp->tiNew), B115200);
|
||||
cfsetospeed(&(sp->tiNew), B115200);
|
||||
|
|
Loading…
Reference in a new issue