The basic preparation of a terminal involves setting up attributes that control the basic behaviour of the terminal, for Example: whether the terminal is solar powered or uses mains power, if speakers shall be enabled, etc.
A basic setup includes the steps described below.
1.Preparation
Start by creating an empty XML document or by copying an existing cwtconfig.xml file and removing everything except the cwt element. The cwt element contains all attributes and works as a container for them.
The first empty XML document should look like this:
<cwt xmlns="http://tempuri.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
</cwt>
2.CORE element
Now add the CORE element that will contain the basic terminal attributes. See full Example: at the end of the Example:).
3.Power supply
The first thing to specify in the CORE element is if the terminal will be solar or mains powered. For solar powered, set powerSaveMode=”Solar”. For mains powered, set powerSaveMode=”Mains”.
4.Speakers
Then decide if the terminal shall use the built in speakers (optional equipment) by setting the speaker attribute to either speaker=”true” or speaker=”false”. Using sound requires that the user interface is set up to play sounds in different situations. See User Interface Design Handbook for further details.
5.RFID reader
If the terminal has an RFID reader for access control or for end user purposes set rfid=”PowerSave” otherwise set it to rfid=”None”. When RFID is set to “PowerSave” the RFID reader will use PowerSave settings, to configure the RFID reader see more information in RFID CORE element in .
6.Article and payment services
Now you have to decide if it shall be possible to select articles and payment services via the user interface. If it shall be possible to select just one payment service and one article is it not necessary to select them via the user interface, but with many articles or different payment services, selecting via the user interface may be necessary.
If it is required to select payment service via the user interface set paymentServiceChoice=”true” otherwise paymentServiceChoice=”false”. The same rule applies to articles but the attribute name is articleChoice.
If the terminal shall allow default selection of payment service identity and article identity, both a payment service and an article must be defined in the CORE element. This, in combination with a default tariff definition in the article (which set up in later examples), makes it possible for the end user to start a purchase with payment immediately without making any selection via the user interface.
7.Type of printer
For the CWT 104/Compact Classic terminals that use the MP 104 printer, the printer attribute must be defined and set to printer=”MP104” or the terminal will try to use the TTP2030 printer used in the CWT terminal.
8.Languages
The last thing of the basic setup is to define the languages that shall be supported in the terminal, that is, the languages that can be selected by the end user via the user interface.
The languages defined in the CORE element shall match the translations created in the translation file (see CWT User Interface Design Handbook).
Define each language that shall be available in the terminal by adding a language sub-element in the CORE tag. The language defined with id 0 becomes the default language and will be selected automatically when the terminal starts and when the terminal enters idle mode after a purchase or rejected purchase.
In the Example: below Swedish (sv-SE) will be the default language (since it has id 0). English (en-US) can be selected via the user interface.
Finally
After the CORE element has been created, the XML document should look like this for a solar powered terminal with inactivated speaker function, with activated RFID reader and in which the user does not have to select article or payment service via the user interface:
<?xml version="1.0"?>
<cwt xmlns="http://tempuri.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CORE powerSaveMode="Solar" speaker="false" rfid="true"
articleChoice="false" paymentServiceChoice="false"
defaultArticleId="0" defaultPaymentServiceId="0">
<language id="0" value="sv-SE"/>
<language id="1" value="en-US"/>
</CORE>
</cwt>
Using this basic setup, you can now continue with another Example: below depending on the desired terminal functions.