Download UM0148 User Manual - STMicroelectronics

Transcript
3 Configuring the demo
3
UM0148 User Manual
Configuring the demo
Once installed, the demo software can be configured using the config.ini file, which is stored in
the Res subdirectory of the program main directory (set during installation).
The config.ini file contains the following parameters:
●
●
●
WriteProtection – the tag’s memory write protection flag, active when set to “one”
MasterKey – a demonstration parameter used internally for calculating certificates Fc2
and Fc3 (Appendix A: Certificates).
IssuerMachineReaderIndex, ReloadMachineReaderIndex, VendingMachineX/
ReaderIndex – these are order indexes of specific virtual machines (issuer machine,
reload/recover machine, specific vending machines). All indexes are set to zero by default,
which means that it is configured for 1 reader.
The indexes address the reader’s tables, which are found during the initialization process.
The initialization process searches incrementally for the CRX14 readers, via the I2C bus,
on all USB readers connected to the PC.
When there is only one USB reader with several CRX14 readers connected via the I2C
bus, the CRX14 readers with lower I2C address are the first to be added to the table and
are put in the lower index position.
In the case of multiple USB readers, the situation is more complex (it depends on how the
operating system manages the USB devices) and it is necessary to plug the readers into
the PC to find and set the correct indexes.
●
VendingMachineX/PersonalName – usually the name of the vending machine location
●
VendingMachineX/PersonalID – the ID number linked to the location
●
VendingMachineX/BackgroundJPEG – the link to the background JPEG image for a pair
of vending machines (left or right, recommended resolution of this image is 400 x 500
pixels.
VendingMachineX/OfferNameY – the list of item’s offered by the vending machine, it
indicates the name of the products offered.
VendingMachineX/OfferPriceY – the price list of the item’s offered by the vending
machine, it indicates the unit price of a particular product.
VendingMachineX/OfferBMPY – the list of images which correspond to the item’s offered
by the vending machine, it indicates the link to the bitmap image (45 x 45 pixels), which
represents the particular product.
●
●
●
8/25