beautypg.com

Demo app program configuration, Rtc: real time clock – ThingMagic Mercury xPRESS Platform v1.7 User Manual

Page 28

background image

RFID Sensor Application

A D I V I S I O N O F T R I M B L E

28

Using the Sample Application



Within wedge_ui_process is a call to xQueueReceive from epcQueue.

Whenever the current string is depleted, the state machine automatically
calls this function to get the next available tag read string.

Demo App Program Configuration

To modify the workflow, there are many compile-time switches in xpressreader/app/
conf/conf_xpress_reader.h
:



To change which button is the trigger, modify all strings related to

PRODUCT_MAIN_BUTTON.



To change trigger behavior, change the ENABLE_GPI_READ definition.



ENABLE_GPI_READ_WHILE_PRESSED: Keep reading as long as trigger is held

down.



ENABLE_GPI_READ_ON_OFF: Toggle reading each time trigger is pulled.



ENABLE_GPI_READ_ONCE: Read once for each trigger pull.



To change tag read feedback



ENABLE_TAG_READ_BUZZER



ENABLE_TAG_READ_LEDS



To change the tag read output format



SIMPLE_TAG_EPC_OUTPUT



FULL_TAG_DATA_SINGLE_LINE_OUTPUT



FULL_TAG_DATA_FORM_OUTPUT



For finer-grained control, use the TAG_*_{PRE,POST}FIX macros

RTC: Real Time Clock

The xPRESS system has RTC block which is in-built to main controller and used to
append timestamp of tag read into Sensor output data format.

Due to hardware limitation of not having external 32kHz crystal (RTC will have to use
internal RC which won’t be as accurate), the user will need to set RTC date and time at